One-step custom checkout page

Highlighted
Excursionist
18 1 1

Hello,

 

I created a custom liquid one-step checkout page with custom css and javascript codes, I passed the product details, quantity and the price through the liquid objects.

I have also a discount code input and I want to check if the discount code available. However, due to security purposes,  I can't access the discount object. The same thing for the Storefront API, it doesn't allow accessing the priceRule field.

 

Is there another method to achieve that?

Thank you.

0 Likes
Excursionist
18 1 1

Is it possible? Or is there another approach to get the values that I want from the Client-side?

0 Likes
Excursionist
18 1 1

I've read the documentation of app proxy, but I'm still stuck with how to receive data from the store.

I created a new app in Shopify partners and I followed all the steps in the documentation.

Now, how can I get the discount codes from Javascript? (I'm using nodejs and react for developing the app)

0 Likes