Can you place the free gift below or at the bottom of the paid item or product?
APP SETUP
CREATE FREE GIFTS
HOW TO'S
PROMOTE YOUR FREE GIFT
GIFT INVENTORY
GIFT FRAUD
FAQS
TROUBLESHOOTING
Can you place the free gift below or at the bottom of the paid item or product?
Unfortunately, the order of items in the cart is beyond our app’s control. Here’s why and what you need to know:
Why Can’t the Free Gift Be Placed at the Bottom?
Our app Dr Free Gift, BOGO Buy X Get Y uses Shopify’s standard /cart/update endpoint to add free gifts to the cart. This API does not support changing the order of items in the cart. For reference, you can review Shopify’s official documentation here.
While it allows us to adjust item quantities, the order of items remains fixed based on how Shopify handles cart logic.
What About Customizing the Cart?
We have observed that some shop owners attempt to reorder items in the cart by customizing the cart loop’s liquid code to loop in reverse. This method can force the newest items, such as free gifts, to appear at the bottom of the cart. However, this approach comes with risks:
- Theme Compatibility Issues: Many themes assume products are in a specific order in the cart. Customizing the order can cause unintended behavior, such as applying quantity changes to the wrong items.
- Breaks in Functionality: If the theme contains JavaScript or liquid code dependent on the default order, customizations may disrupt the functionality of the cart and checkout processes.
What We Recommend
Unless you have access to a highly skilled theme developer who can account for all potential issues, we do not recommend attempting to customize the cart’s item order. Doing so could lead to complications that negatively impact the user experience.
While we understand this limitation may be frustrating, it is inherent to Shopify’s cart system and is not something we can directly influence with our app.