Skip to main content

How to add custom team to email invoice and order?

More
12 years 3 months ago #164324 by angelfila
-- url of the page with the problem -- : N/A [Currently in local development]
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome Version 35.0.1916.153 m


I have created to custom field: "subject" and "publisher".
How do i add these custom field to the email invoices and view order?

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

More
12 years 3 months ago #164335 by Mohamed Thelji
Hello,
For your invoices, you'll have to edit the code of the "invoice" file of the "order" view of your front-end template via "Hikashop->Display->Views".
For your emails, you'll have to edit the code of your emails via "Hikashop->System->Emails".

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

More
12 years 3 months ago #164395 by angelfila
What code do i add? Please do guide me?

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

More
12 years 3 months ago #164469 by Mohamed Thelji
Hello,

For your email, you'll probably find the solution through that thread : www.hikashop.com/forum/orders-management...ry-email.html#134103

In the email you can add the following tag:

Code:
{LINEVAR:product.CUSTOM_FIELD_NAME}
after this line:
Code:
{LINEVAR:PRODUCT_NAME}<!--{IF:ORDER_PRODUCT_CODE}--> {LINEVAR:PRODUCT_CODE}<!--{ENDIF:ORDER_PRODUCT_CODE}-->


For your invoices some development skills will be require to do that.

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

More
12 years 3 months ago #165909 by angelfila
How do I add custom field: "subject" and "publisher to frontend, HikaMarket>order>show

I have added the following but nothing showing up.
<td>
<php echo $this->row->subject; ?>
</td>

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

More
12 years 3 months ago #166012 by nicolas
Hi,

You need to edit the file show_products of HikaMarket via the menu Display>Views and add such code:
Code:
$class = hikashop_get('class.product'); $data = $class->get($product->product_id); echo $data->subjet;
for example, before the line:
echo $product->order_product_code;

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

More
12 years 3 months ago #166069 by angelfila
Thank you. It is working now.

Currently I am having another issue on the same page. When Iclick on Email, the component alignment is off.
How do I correct the alignment?

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

More
12 years 3 months ago #166101 by Jerome
Hi,

It means that your front-end template is not compatible with the Bootstrap modal system.
In your HikaShop configuration, please change the option "Popup mode" to "mootools".
www.hikashop.com/support/support/documen...-config.html#display

Regards,

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

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

Time to create page: 0.069 seconds
Powered by Kunena Forum