All things Shopify and commerce
Hello
Below code will add two filed to a product page. once shopper enter value in these two filled these two values must reflect in cart page which is not happening. could anyone help. im using shells theme.
Hello @amazezones
Please add below code within the {%- for item in cart.items -%} loop in cart.liquid or main-cart.liquid or cart-template.liquid or main-cart-items.liquid file.
{%- for property in item.properties -%}
{%- assign property_first_char = property.first | slice: 0 -%}
{%- if property.last != blank and property_first_char != '_' -%}
<div class="product-option">
<dt>{{ property.first }}:</dt>
<dd>
{%- if property.last contains '/uploads/' -%}
<a href="{{ property.last }}" class="link" target="_blank">
{{ property.last | split: '/' | last }}
</a>
{%- else -%}
{{ property.last }}
{%- endif -%}
</dd>
</div>
{%- endif -%}
{%- endfor -%}
If you have any issue with adding code raise an email.
Thanks
hey, thx sweet_savior_3 for reply, but the code is not working
Hello @amazezones
Is it possible to check the code from my end? Can you provide me the access for code editor? If yes do let me know in personal or via mail. So i can help you adding the code.
Thanks
Hi @amazezones,
You should check out the free Easify Product Options app to easily add custom text fields to your product pages – no coding required 🤗. Below is an example:
or:
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024