I paid a developer to write custom code for a product where a price would change based on user input. Can I make an AJAX call to my cart API from a custom template javascript within Shopify? I have a developer that is telling me that this is not possible with Shopify and that it has to be a custom app hosted externally on another server using API call. It seems like a simple functionality to just update the cart price with a simple AJAX API call to the cart.
They upload a file with a certain ratio - lets say 1:1 (1 inch x 1 inch)
I have a price per inch (lets say $1)
I need the “total price” or checkout price that saves to the Shopify server to basically reflect whatever the user selects.
so if they select 2x2, it would be 4 square inches and therefor total checkout $4.
Is this something I can do with javascript. I’m not looking for the code, im just asking if this is possible to do client side via JS and not have a build and host a whole separate app just to update this pricing (the image sizing, adjusting prices in real-time - I know I can do all that in javascript - its the updating of the final checkout price that my question revolves around.)