Product size in cart not what was selected

tayajustice
Visitor
3 0 0

Hi , 

I’m having issues with my site , no matter what size is selected for the items customers select the size will only show as small even if it’s been selected as something else please can someone advise why this is happening. 
 
Hoping someone has a simple solution 
 
 
Thank you 
Replies 3 (3)

tim
Shopify Expert
3443 276 1280

Somebody tried to add code to update cart button based on variant inventory, but it was not done fully. Here is the code -- it fails because inv_qty array is not defined.

          var bcd1=inv_qty[ variant.id ];
          if(bcd1<1){
            var html23='<span id="AddToCartText-product-template-pre">Pre order</span>';
          cache.$addToCartText.html(html23);
          }
          else{
          cache.$addToCartText.html(theme.strings.addToCart);
          }

 I'd try to either comment this part of code by wrapping it with /* ... */, or add the code I "invented" in this forum post: https://community.shopify.com/c/Shopify-Design/Display-variant-inventory-quantity-on-product-page-Bo... 

My code must be added somewhere in product template.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
tayajustice
Visitor
3 0 0
Thank you so much Tim are you able to do this for me as I’m very worried I will make a mess of it ?
tim
Shopify Expert
3443 276 1280

My e-mail address is in the signature -- send me an e-mail.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com