All things Shopify and commerce
I have a problem, the product has several options, a regular purchase, a gift purchase and a corporate purchase.
I need to do this, in the window where I can choose the product's bulk and pay for it. I also need this data to be sent to the mail, that is, when the payment is made, the first name, last name, email, which product, quantity and what type of purchase they chose for themselves, a gift or a corporate purchase, will be sent to the mail.
Can you please tell me how this can be implemented?
Solved! Go to the solution
This is an accepted solution.
Yes, that's correct
You can custom code in the theme where you there will be a radio button with option of corporate, gift and self.
Self option will be selected on load.
Based on selection email notification will be modified to show the appropriate msg.
If you have any logic for corporate that can be achieved too.
Thank you very much!) And I have an idea: if you create a "product variants" for a product, will this field be sent to the email?
Yes
I'm sorry, but I have one more question. I have a backend part to which I also need to send this data. I created a webhook that sends data when the product is successfully paid for. Did I understand correctly, the data about the options will go to the backend like all the others, so what do I need to do for the selected option to make a separate webhook?
I didn't understand why you need webhook to implement mail thing.
You can customise the order mail template in settings -> notification
And write the code for type of product and msg.
And yes, all data will be available in the webhook too.
I just need to make sure that the data of who bought the product, name, surname, email, and product variant goes to the backend server, which reads this data and performs its own functionality (I don't know what it is, I was asked to do it by the developers).
That's why I had a question: if it's possible to do this with a webhook, then I understand that using this webhook (Order creation), you can transfer data about the choice of a variant to the backend server. Is this correct?
This is an accepted solution.
Yes, that's correct
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024