Auto update quantity of products bought together according to the main product qty in Supermarket theme
Insert the code below to Storefront > Script Manager:<script>(function($) { $('body').on('change', '[data-also-bought-parent-scope] [data-quantity-change] input', function(event) { var qty = $(event.currentTarget).val(); $('[data-also-bought] [data-quantity-change] input').val(qty); }); $('body').on('click', '[data-also-bought-parent-scope] [data-quantity-change] [data-action]', function(event) { $(event.currentTarget).closest('[data-quantity-change]').find
…
9th Sep 2019
Identify which products bought together belong to the main product in Supermarket theme
Solution:Create a product option named Parent SKU:Edit the option set of your also bought together products and add Parent SKU option to option set. Set Required = No:Make sure your also bought together products has Parent SKU field:Now, view a product which has the also bought together products from store front. Verify it has Parent SKU option:Create a new script in Storefront > Script Manager, insert the code below:<script>(function($) { $('body').on('change', '[data-also-bought-ch
…
9th Sep 2019
Fix product main image does not show up on product page on BigCommerce theme Supermarket, SarahMarket, ParallaxBag
Problem happen when BigCommerce change product main image URL recently.To fix this problem, please upgrade all themes to the latest version.If your theme already modified, you can fix this issue manually by editing file templates/components/products/product-view.htmlReplace all string:{{#if ../product.main_image.data '==' this.data}} slick-current{{/if}}By:{{#startsWith this.data ../product.main_image.data}} slick-current{{/startsWith}}If you have any problem, feel free to contact us at&nbs
…
7th Nov 2017