I recently had a need to set up donation functionality on a Shopify web store. Shopify provides a great method for adding donations to the shopping cart, but I found one aspect of functionality lacking.
Because the donations are implemented as an arbitrary number of a 1 cent donation item added to the shopping cart, if the user gets back to a page where the number of items in the shopping cart is displayed (like in a widget in the header), the number shown will be the number of items in the cart, plus the number of cents being donated. Our desired behavior was to have a donation represented in this total as a single item, regardless of the amount.
Continue reading “Quantity in cart for donations on shopify”