Store email does not show new text area

  • Posts: 247
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
9 years 2 weeks ago #220051

-- url of the page with the problem -- : beeswaxcandleshop.com/Order-Beeswax-Candles/category.html
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.30
-- Browser(s) name and version -- : firefox/chrome

I have just added a text area for gift card info or instructions. It shows in the email to the customer (image below) but not in the email to the store superuser. (Images were taken with version 2.5.0 (since updated to 2.6.0)







How do I make this additional customer comments show in the both emails?

Attachments:
Last edit: 9 years 2 weeks ago by bigfoot. Reason: correct error

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 weeks ago #220128

Hi,

The two emails are using two different entries in the HikaShop emails.
www.hikashop.com/support/documentation/i...-listing.html#emails

So if you have modified the customer email ; you might need to edit the administrator one too.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 247
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
9 years 1 week ago #220443

I am a bit confused. I made a "custom field" in the "order" group and it appeared fine in the customers email. I looked at both emails in the back end and do not know what code to add and where. Do I need to past some code in?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 1 week ago #220465

Hi,

The code to display the custom order fields is already present in both emails.
It's:

ob_start();

	$sep = '';
	if(hikashop_level(2)) {
		$fields = $fieldsClass->getFields('frontcomp',$data,'order','');
		foreach($fields as $fieldName => $oneExtraField) {
			if(empty($data->cart->$fieldName))
				continue;
			echo $sep . $fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField, $data->cart->$fieldName,'admin_email');
			$sep = '<br />';
		}
	}

	JPluginHelper::importPlugin('hikashop');
	$dispatcher = JDispatcher::getInstance();
	$dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html'));

$content = ob_get_clean();
$vars['ORDER_SUMMARY'] = trim($content);
You can see you'll find it in both preloads of the emails.
If you have it displayed on one email and not the other, it means that you must have somehow modified the code of one of the two emails.

The following user(s) said Thank You: bigfoot

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

  • Posts: 247
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
9 years 1 week ago #220532

Thank you - I did have other stuff in the email (I had thought they were supposed to be there) - I removed them and emails are fine now.

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

  • Posts: 247
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
9 years 4 days ago #221453

By removing some customization in the order email I did get my "Additional Information" area back, But I lost some important info in the email.

The email used to say(example): Customer Order: 10312 - Cznarcki (order number and name) but now it just says: "A new order has been created on your website" (without name & order number)

This is very problematic when we get many orders in at the same time. How do I get back to the original email?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 3 days ago #221561

Hi,

You can do that by simply changing the subject of the order admin notification via the System>Emails interface when you edit the email:
www.hikashop.com/forum/feature-request/8...f-emails.html#183210

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

Time to create page: 0.115 seconds
Powered by Kunena Forum