modify email template for 'contact us'

  • Posts: 69
  • Thank you received: 4
  • Hikashop Business
11 years 8 months ago #91586

Hi,

I want to use Hikashop in catalogue mode for a certain website. The products have prices, enad every prodcuts has variants and/or options, so customers can configure their own product to suit their needs. Customers can see the standard price, including a price of options. I want to use the 'contact us' so that users can send their configuration to the shop-owner to ask the actual lowest price (all prices shown are the adviced prices from the manufacturers, but these items are sold cheeper most of the times).

The email function is working properly, however, I can only see the product, and none of the chosen options. How can I include the options in the email? And is it also possible to send a copy of the email to the customer? I don't want to solve this with a cart system, because there is nothing sold and it's not the kind of prodcut you would buy several items of.

Hope it is clear what I want :)
Thanks.

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 8 months ago #91728

Hi,

That's quite complex to do as the system was not meant to allow that. If you're not a developer, I would recommend you to find one to do that for you.
You need to first edit the file "contact" of the view "product" via the menu Display->Views and add one or several hidden fields which will get the options selected from the POST and pass them to the email.
Then, you need to edit the contact request email via the menu System->Emails and get the selected options from the POST and load their name from the database before displaying them in the email.

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

  • Posts: 69
  • Thank you received: 4
  • Hikashop Business
11 years 5 months ago #105727

Hi nicholas,

Bit late with my reaction ;) but thanks for the answer. As it seems to be complicated (and as I'm a designer, not a code-writer) I decided to go with the 'add the cart'-option and change some translations and skip payment and delivery method, so it now works pretty nice as a system to ask for the lowest price of a certain product. So the order that is sent is actually not an order. But to my surprise the charachteristics are still not mentioned in the confirmation e-mail. Is there a way to display the chosen characteristics? Off course you can see it from the product-code but that's not very clear to my customer ;)

Thanks.
Niqui

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #105761

Hi,

To display the choosen characteristic you will probably have to get the product object from the product id, with: $productClass=hikashop_get('class.product'); $fullProduct = $productClass->getProducts($item->product_id);

Then parse this object to display the desired values. It require php knowledge.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum