Custom Field - Additional Email for Confirmation

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #153613

-- url of the page with the problem -- : www.intuicom.com/component/hikashop/checkout
-- HikaShop version -- : HikaShop Essential: 2.3.0
-- Joomla version -- : 2.5.17
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome 34.0.1847.116
-- Error-message(debug-mod must be tuned on) -- : N/A

On this site there are resellers that will go through the checkout and sign up end users. During checkout the reseller creates a unique password via a custom field.

I would like the reseller to be able to enter the end user's email via a custom field, and then have the confirmation e-mail sent to both the reseller and the end user. Is this possible?

Please Log in or Create an account to join the conversation.

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
11 years 1 month ago #153624

Hi,

There is no option for that.
That will require some custom coding to be able to do that.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #153672

Thanks Nicolas. Which file(s) control the sending of the confirmation email so I can start messing around?

A second question. This site has two very different methods of checking out for the same product, one as a reseller and one directly as an end user. Is there any way of having two separate installations of hikashop as each method requires different custom fields, payment methods, and confirmation emails? In your opinion what might be the best way to solve that problem?

Thanks Nicolas, appreciate the insight here.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #153847

Hi,

The confirmation email is controlled directly by the class "order", but you can create a plugin based on the function "onAfterOrderUpdate()" in order to send your custom email, and set the variable "$send_email" to "false".
By this way you can have different emails depending on the payment methods, etc.
That's for the email part.

Regarding the custom fields, you can potentially edit the view "checkout / custom_fields" in order to display or not custom fields based on their name and on the payment method selected which can be found in session.

I think that it's the easiest way of managing your issue, having two different installations can handle a lot of works after, create products trwice, checking the orders at two different places, etc.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 1 month ago #155467

Much appreciated. I've been able to accomplish what I needed by displaying the custom fields depending on which payment method has been selected.

Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum