Gift Message issue with Paypal checkout and Shop Pay

mikehix
New Member
2 0 0

I changed the title of the "Notes to Seller" box in our Cart to "Gift Message" as that is needed.

The problem we are having is that people who have paid before with Paypal, Google, or Shop Pay, can bypass the cart, and go directly to checkout without the ability to add a Gift Message.

Looking for a workaround or solution. We get calls to add a Gift Message after the order is placed.

Replies 2 (2)
mcsoftware
Tourist
4 0 1

This solution is adapted from @MysticMerchant solution here

The easiest way to solve this is by disabling the express checkout buttons from the cart page and forcing users to go to the checkout page first, they can then use the express checkout buttons for PayPal or Apple Pay there.

Go to Themes > Action >Edit Code

Look for a file called cart.liquid - it may refer you to another file with similar name based on your theme, go to that file.

Look for the following code:

{%- if additional_checkout_buttons -%}
{{ content_for_additional_checkout_buttons }}
{%- endif -%}

 You need to disable that code. You do this by commenting out the code so that its still in the file for future refence but it doesnt run the code. Do this by adding {% comment %} before the code and {% endcomment %} after the code. The final code should look like this:

{% comment %}
{%- if additional_checkout_buttons -%}
{{ content_for_additional_checkout_buttons }}
{%- endif -%}
{% endcomment %}

 Save the file and you should be good to go.

There are other more advanced solutions to have the gift message saved to the order even when using express checkout buttons on the product page or cart page but they require more development.

Hope this helps!

We build & fix websites.
https://mycustomsoftware.com
@husbandwhodoeswebsites on Instagram

ZBKat
New Member
1 0 0

Hi mcsoftware, 

Thanks for your advice! I'm curious if you could elaborate a little on "There are other more advanced solutions to have the gift message saved to the order even when using express checkout buttons on the product page or cart page but they require more development?" Also, would such development require a Shopify Plus?