All things Shopify and commerce
Hi All,
First time caller, long time listener so appreciate the help in advance, amazing community. As you know, Shop Pay installments are only available to customers when their purchase is $50.00 or more. I do understand that's based on the total cart and not the specific item. Nonetheless, I'm trying to hide the "4 interest-free installments, or from $39.62/mo with Shop Pay" if the product price <= $50.00. Below is the code that is not accomplishing that. Any suggestions?
{%- if product.price > 50 -%}
{%- form 'product', product, class: 'js-instalments-form' -%}
<input type="hidden" name="id" value="{% if current_variant %}{{ current_variant.id }}{% endif %}">
{{ form | payment_terms }}
{%- endform -%}
{%- endif -%}
Thanks
Solved! Go to the solution
This is an accepted solution.
Hi there 🙂
Shopify returns product prices in cents, so that conditional will be true in most cases. If you want it to work on products that are more than $50.00, you'd need to use the value in cents, in this case:
{%- if product.price > 50000 -%}
Does this make sense? Please let me know if you have questions about it.
This is an accepted solution.
Hi there 🙂
Shopify returns product prices in cents, so that conditional will be true in most cases. If you want it to work on products that are more than $50.00, you'd need to use the value in cents, in this case:
{%- if product.price > 50000 -%}
Does this make sense? Please let me know if you have questions about it.
That did it (5000 instead of 50000 but I know what you meant). Super appreciated!
We 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, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024