Email Tags like order status and ....

  • Posts: 129
  • Thank you received: 0
8 years 5 months ago #241783

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

hi,

i'd like to know if i can add my own custom info in user email and admin email.
for example in admin order notification mail i want to add order status and order date .

1. where can i see a list of all the text and infos i can add into my email templates?

2. can i separate the data in user address form ?
i want to change the show from this : MR - John Doe - California - 849387498375 - 09377247
to this:
Name: JohnDoe
Title: MR
Zip: 849387498375
Phone: 09377247

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #241800

Hi,

1. There is no such documentation. Since this requires PHP skills, we suppose that you can directly read the code where you want to do your change to know what you can do.
For the order_status you can use such tag in the HTML version: {VAR:order.order_status}
For the order_data, you can use such code:

<?php echo hikashop_getDate($data->cart->order_date); ?>

2. You can edit the file "address_template" for your template frontend and backend via the menu Display>Views and it will allow you to change the display format of the addresses.

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

  • Posts: 129
  • Thank you received: 0
8 years 5 months ago #242420

Thanks this code works just fine : {VAR:order.order_status}
but this one : <?php echo hikashop_getDate($data->cart->order_date); ?>
won't return anything in order_status_notification.html.modified.php file.
should i add something in order_status_notification.preload.modified.php first ?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #242428

Sorry, it should be:
<?php echo hikashop_getDate($data->cart->order_created); ?>
it's in the HTML version that you need to add it.

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

  • Posts: 129
  • Thank you received: 0
8 years 3 months ago #247744

hi,
i got a problem,
when a customers goes to checkout without paying the price an order will be created and an email will be sent to admin with order status of : Created
and when the user pays the price the order status will be changed to confirmed but no emails sent to admin

i want my shop admin to only receive an email when a users pays for an invoice , or i should say i want my admin to only recieve the Confirmed order email notification not created order invoices!

how can i do that ?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #247750

Hi,

when a customers goes to checkout without paying the price an order

I am sorry but I am not able to understand the beginning of your message.

i want my shop admin to only receive an email when a users pays for an invoice

You can manage your HikaShop emails in the HikaShop backend (requires Business edition), there you will be able to unpublished the email you don't want to send anymore, like the order creation email.

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: 129
  • Thank you received: 0
8 years 3 months ago #247872

"You can manage your HikaShop emails in the HikaShop backend (requires Business edition), there you will be able to unpublished the email you don't want to send anymore, like the order creation email."

i know that i even have my own custom email templates.
but the admin notification email sends both "Created" Order invoices to my admin
when i check the invoice i can see that the invoices created at a time status "Created" assigned to it and an email has been sent to my admin's email. after 5 minutes that order has been changed to "Confirmed" after customer pays the price but the only email my admin receives is an email of invoice with "Created" status
i want my admin to receive an email ONLY when an invoice gets "Confirmed" Status.

and as you say if i turn off the admin notification email my admin will not receive any email after that.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #247931

Hi,

Okay.
So, please check that forum thread :
www.hikashop.com/support/forum/orders-ma...er-is-confirmed.html

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: 129
  • Thank you received: 0
8 years 3 months ago #248068

okay,

and what is the code to show a product options in customers email ?
i tried

{LINEVAR:PRODUCT_DETAILS}
and
{LINEVAR:CUSTOMFIELD_VALUE}
but no chance

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #248073

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: 129
  • Thank you received: 0
8 years 3 months ago #248248

in there they are talking about custom fields but i'm talking about products Options and charactristics
like color like size like ....

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 3 months ago #248269

Hi,

Options and characteristics are automatically displayed in the emails along with the product name. So there is no tag to add them. It's added to the product name automatically in the "preload" section of the email.
If you don't see the options or the characteristics, then either you're using a really old version of the emails, or the characteristics/options are also not in the order and the problem is not in the emails but with the order creation, or even the add to cart process.
We would need more details/screenshots to be able to say more about what you're talking about.

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

  • Posts: 129
  • Thank you received: 0
8 years 3 months ago #248409

i might have removed them in email customizations,
would you mind please tell me the exact lines that print out the options and characteristics ?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 3 months ago #248420

Hi,

The characteristic values should actually always there as they are added to the product name when the order is created. The only way they wouldn't would be if you had deactivated the option "append characteristics values to product name". But that option has been removed from the HikaShop configuration so you shouldn't see it if you have a recent version of HikaShop. You can still check.
For the options, it's done by that code:

		if($group){
			foreach($data->cart->products as $j => $optionElement){
				if($optionElement->order_product_option_parent_id != $item->order_product_id) continue;

				$item->order_product_price +=$optionElement->order_product_price;
				$item->order_product_tax +=$optionElement->order_product_tax;
				$item->order_product_total_price+=$optionElement->order_product_total_price;
				$item->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;

				$t .= '<p class="hikashop_order_option_name">' . $optionElement->order_product_name;
				if($optionElement->order_product_price>0){
					if($config->get('price_with_tax')){
						$t .= ' ( + '.$currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$data->cart->order_currency_id).' )';
					}else{
						$t .= ' ( + '.$currencyHelper->format($optionElement->order_product_price,$data->cart->order_currency_id).' )';
					}
				}
				$t .= '</p>';
			}
		}
in the preload of the emails.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum