We're trying to add a form that users can subscribe to a Listrak newsletter but I'm not sure if Shopify can handle this. First, you submit an authentication request to https://auth.listrak.com/OAuth2/Token with your client id and client secret. If that is successful, you receive a bearer token to use in further API calls. Once authenticated, we need to process a REST API call to https://api.listrak.com/email/v1 with encoded data (ie. email address, etc). This is pretty simple on an IIS website, but I can't figure out how to do this in Shopify since it requires server side processing. Doing is in a client-side JS would be a big NO NO since it would mean revealing our private keys. Does anyone have any insight into how I could do this? Do I need to develop a private app just for this purpose? If so, what recommendations would you have on where to begin?
... View more
We're running a fundraising website that shows what the expected profit is for the order. For example, on the product page, we have a field on the page that shows what the profit will be and want to update this field whenever the client changes the quantity to add to the cart. So if the quantity is 1 and the expected profit is $10 and the user changes the quantity to 2, we want the field to update to $20. How would I go about doing this? I'm assuming I need to change something in the theme.js file and possibly more. Any pointers or helpful information is greatly appreciated.
... View more