Shopify
Add GoPayLocal PPP discounts to your Shopify store.
Add GoPayLocal to your Shopify store by adding the banner script to your theme.
Installation
Section titled “Installation”-
Get your API key from the GoPayLocal dashboard
-
Add the script to your theme
Go to Online Store > Themes > Edit Code and open
theme.liquid(orlayout/theme.liquid).Add the script before the closing
</body>tag:<scriptsrc="https://api.gopaylocal.com/v1/banner/script.js?key=gpl_pk_live_abc123"async></script> -
Configure discounts in the GoPayLocal dashboard
Shopify Discount Codes
Section titled “Shopify Discount Codes”GoPayLocal works with Shopify’s native discount code system. Create discount codes in Shopify that match the codes GoPayLocal generates:
- In GoPayLocal, set your coupon prefix (e.g., “PPP”)
- GoPayLocal generates codes like
PPP-INDIA-30,PPP-BRAZIL-25 - Create matching automatic discounts in Shopify, or use Shopify Functions for dynamic discounts
Auto-Apply via URL
Section titled “Auto-Apply via URL”Shopify supports applying discount codes via URL:
https://yourstore.myshopify.com/discount/PPP-INDIA-30This redirects the customer and automatically applies the discount to their cart.
Only Show on Specific Pages
Section titled “Only Show on Specific Pages”To only show the banner on your pricing/product pages:
{% if template == 'product' or template == 'collection' %} <script src="https://api.gopaylocal.com/v1/banner/script.js?key=gpl_pk_live_abc123" async ></script>{% endif %}