Add to cart button only adding first variant to cart (Warehouse Theme)

Hi all. I am attempting to setup the gift card product on the following website: floorzy.com - however when I select a gift card denomination, for example: £250.. it still only adds the first possible variant to the cart, which is in this case is £10.

I am using the Warehouse theme for this project.

My add to cart button code is below:


You can view the full code here:
https://jsfiddle.net/pL92ehfy/

Any help appreciated. Thanks in advance.

Hi @adammahon ,

Please send me product link ‘gift card’, I will check it.

Hi, thanks for this!

This is still a draft product, can you see using this link?
https://4dj2f8ax8b6zc0tz-60222701807.shopifypreview.com/products_preview?preview_key=cb6b3817ba73ce55ecd3f71f6142f151

Hi @adammahon ,

I checked and you have removed ‘data-product-json’ at product-info.liquid file, you just need to add it again, everything will work fine. Refer code:


Hope it helps!

Hi @LitCommerce I appreciate your help here. I have tested adding this to all relevant files but I am still having the same issue?

TIA

Hi @adammahon ,

Can you create a staff account for me? I will help you debug it

Hi @LitCommerce currently I am unable to create staff accounts on the website as I do not have suffice permission as the website has just been pushed live. Apologies as this will make the task much more difficult.

Hi @adammahon ,

You can also export the theme source and send it to me, I will debug it at my site and send you the update

Hi @LitCommerce great idea! Thanks for that. I have attached the theme code below:
https://we.tl/t-AgIB1c5tlg

Hi @adammahon ,

I checked and it seems that the source you sent is not correct, can you check it again?

And please send me the link to the preview site, I will check it.

Hi @LitCommerce apologies on the delay, I sent over the theme source code which I downloaded directly from Shopify. I’m not sure what other code you would require.

Thank you for your help on this!

Hi @adammahon ,

Please send me the link to the preview site, I will check it.

Hi, This is the preview link to the gift card page:
https://z97jkoin6vmuocio-60222701807.shopifypreview.com/products_preview?preview_key=eafe089c7a71bf150431faf63ff41215

Thanks!

Hi @adammahon ,

Please change the code I sent before to the following code, it will work fine


Hi @LitCommerce thankyou very much this works perfectly!!

1 Like