Blog Sections Open
Fixing Shopkeeper Add-to-Cart Behavior in Ditto Listings
Why add-to-cart actions can behave incorrectly when Shopkeeper is called inside a Ditto loop, and what to normalize before blaming the cart itself.
Shopkeeper usually fails inside a listing for one of two reasons: form fields are not unique enough for each product row, or the product data passed from Ditto is incomplete or inconsistent. The result looks like a cart bug, but the real issue is often in the listing template.
What to Check
- that each product row outputs its own complete data set
- that hidden inputs and option names are unique where required
- that image and price fields come from the same resource context
When debugging, start from one product row outside the loop. If it works alone but fails inside Ditto, the loop template is almost always the source of the problem.
Troubleshooting Shopkeeper Cart Recalculation Helpers
Why the quantity helper in the large checkout cart may stop appearing and how to verify the Shopkeeper call, helper target, and JavaScript binding.
Building Infinite Scroll for Ditto Listings
How to extend a Ditto-based listing with infinite scroll so visitors can load more items without classic pagination clicks.