One-step custom checkout page

One-step custom checkout page

amir_nassal
Tourist
18 0 0

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.

Replies 2 (2)

amir_nassal
Tourist
18 0 0

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

amir_nassal
Tourist
18 0 0

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)