[Bug Fix] Cart button not functioning properly on certain products (ShowTime 7.0.0)
We have been made aware of an issue in ShowTime 7.0.0 where, under certain conditions, the Add to Cart button will not add the product to the cart. If you are encountering this issue, please follow the steps below to fix it. If the steps seem daunting and you don't feel comfortable making the changes, please contact us and we'd be happy to apply the patch to your store for you. Note that this bug affects only version 7.0 of the ShowTime theme and has been patched in later versions.
To fix the issue, please follow these steps:
- From your Shopify dashboard, look for the Sales Channel heading on the left, then click Online Store > Themes and look for ShowTime
- Click the Actions button and then Duplicate to create a backup of your theme (this is an optional, precautionary step that we always suggest when editing code on your theme)
- Then, on your original ShowTime theme, click the Actions button, then Edit Code from the drop-down menu
- Navigate to the Sections folder and click to open the files called d_featured-product.liquid and s_product.liquid
In d_featured-product.liquid, scroll down to line 101 (assuming you have not previously edited this file) and follow the instructions in the screenshot below
In s_product.liquid do the same at line 87:
- Navigate to the Snippets folder and open the file called product-variant-selector.liquid
- In line 14, you should see <{{NS}} in the code
- In a line after that, add this line of code:
{% if product.has_only_default_variant %} hidden {% endif %
When finished, the code should look like this:
- Make sure to save all files when you are finished
This should resolve the issue. We apologize for any inconvenience this might cause. This issue has been resolved in version 7.0.1 of the theme.