Using Snippets Buy Button Liquid to overide Check out

Hi,

I have a client who sells Poke bowls and uses Doordash as the delievery vendor. I have modified the buy button by commenting this out -
{% comment %} This is the check out button
<button
id=“ProductSubmitButton-{{ section_id }}”
type=“submit”
name=“add”
class="product-form__submit button button–full-width

        {% if show_dynamic_checkout %}button--secondary{% else %}button--primary{% endif %}"
    {% endcomment %}

and adding this
<a
href=“https://order.online/business/moushi-362414
class=“product-form__submit button button–full-width button–primary”

Unfortunately it does not allow the french version of my site to say the correct words Commander maintenant when the French Lang is selected.

I tried adding

{% if localization.language == ‘fr’ %}
Commander maintenant
{% else %}
Order Now
{% endif %}

But it did not work

What am I missing?

Hey Ryan,

Just to confirm - are you removing the ability for customers to purchase via Shopify’s checkout?

2 Likes

Yes this is correct, all orders are going to Doordash for pickup or delivery

In that case I believe you’d be breaking the Shopify API License and Terms of Use:

Hi Liam,

I just took over this website a few weeks ago. The client informed me the previous developer had permission to redirect to Uber eats. Unfortunately, they cannot find the communication. Are you able to see it on your end?

Hey Ryan - I’ll connect with you via DM