Re: How do I make a product choice is this a regular purchase or a purchase for a gift

Solved

How do I make a product choice is this a regular purchase or a purchase for a gift

vladdusenkoo
Tourist
9 0 1

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?

Accepted Solution (1)
gr_trading
Shopify Partner
1922 145 200

This is an accepted solution.

Yes, that's correct 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

View solution in original post

Replies 7 (7)

gr_trading
Shopify Partner
1922 145 200

Hi @vladdusenkoo 

 

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.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
vladdusenkoo
Tourist
9 0 1

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?

gr_trading
Shopify Partner
1922 145 200

Yes

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
vladdusenkoo
Tourist
9 0 1

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?

gr_trading
Shopify Partner
1922 145 200

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.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
vladdusenkoo
Tourist
9 0 1

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?

gr_trading
Shopify Partner
1922 145 200

This is an accepted solution.

Yes, that's correct 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee