Shopify themes, liquid, logos, and UX
Hi, I managed to display the SKU on the product page with this code:
{% assign current_variant = product.selected_or_first_available_variant %} <span class="variant-sku">{{ current_variant.sku }}</span>
I can't do that in the shopping cart and check out.
Can someone help?
Theme: Warehouse
It should look like this:
-------------
Cart
Product 1
Price
SKU
Product 2
Price
SKU
--------------
Thanks in advice, MBO
Solved! Go to the solution
This is an accepted solution.
Hello @mbo ,
Use same code in input hidden field as value and place it inside the form tag in product single page.
e.g.
<input id="sku" type="hidden" value="{{ current_variant.sku }}" name="properties[SKu]">
Thanks
This is an accepted solution.
Hello @mbo ,
Use same code in input hidden field as value and place it inside the form tag in product single page.
e.g.
<input id="sku" type="hidden" value="{{ current_variant.sku }}" name="properties[SKu]">
Thanks
Hi,
We are using the same theme, where in the cart liquid would you add this code?
We are trying to get SKU or even barcode visible on products pages, cart and checkout.
Thanks
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024