How to add custom team to email invoice and order?

  • Posts: 29
  • Thank you received: 0
10 years 5 months ago #164324

-- 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?

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #164335

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.

  • Posts: 29
  • Thank you received: 0
10 years 5 months ago #164395

What code do i add? Please do guide me?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #164469

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:

{LINEVAR:product.CUSTOM_FIELD_NAME}
after this line:
{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.

  • Posts: 29
  • Thank you received: 0
10 years 5 months ago #165909

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>

Attachments:

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

  • Posts: 83045
  • Thank you received: 13406
  • MODERATOR
10 years 4 months ago #166012

Hi,

You need to edit the file show_products of HikaMarket via the menu Display>Views and add such 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.

  • Posts: 29
  • Thank you received: 0
10 years 4 months ago #166069

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?

Attachments:

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

  • Posts: 26168
  • Thank you received: 4030
  • MODERATOR
10 years 4 months ago #166101

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.

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.

Time to create page: 0.084 seconds
Powered by Kunena Forum