Hi, I am very new in these apis and more in the shopify theme, I am making a custom application, I am using REST API and php to create the variants and thus have a dynamic price.
Why when adding a variant and adding an item to the cart you have to wait 5-20 seconds for the information to load?
Show More
TRANSLATED
Hi @motar2k :
-
Why are you using Rest API and not GraphQL
-
How have you hosted your app( fly, Heroku or on your PC for development ).
-
Also how is the cart page constructed and what’s its dependency on your app.
-
When you say dynamic pricing for variant do you mean tier discounts if so you shall use Meta data and discount functions from within Shopify rather then using app that involves API with data of pricing on your app data base.
The implementation of tier pricing( if this is what you are targeting ) is pretty tricky and there will be challenges as a beginner to handle this.
Hope our above suggestion helps you architect your solution in a way that results in faster pages.
Thanks!!