{LINEVAR:product.product_manufacturer} not working

  • Posts: 30
  • Thank you received: 0
8 years 2 months ago #250441

-- HikaShop version -- : 264
-- Joomla version -- : 362

'Hello,

I created a custom email for order status notification and I need the manufacturer for each product.

I tried the solution from this topic but I can't get it to work.

What am I missing? Please let me know what you need to help me with this.

Thank You!

Regards,
Syno

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #250442

Hi,

As asked in the other thread :

Did you insert it between the <!--{START:PRODUCT_LINE}--> and <!--{END:PRODUCT_LINE}--> tags of your HTML version ?


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: 30
  • Thank you received: 0
8 years 2 months ago #250494

Hello Jerome,

thank you for your answer! Yes I did. My code looks like this:

<!--{START:PRODUCT_LINE}-->
<tr>
<td style="border-bottom: 1px solid #ddd; text-align: left;">{LINEVAR:PRODUCT_CODE}</td>
<td style="border-bottom: 1px solid #ddd; text-align: left;">{LINEVAR:PRODUCT_NAME}</td>
<td style="border-bottom: 1px solid #ddd; text-align: left;">{LINEVAR:product.product_manufacturer}</td>
<td style="border-bottom: 1px solid #ddd; text-align: left;">{LINEVAR:PRODUCT_QUANTITY}</td>
</tr>
<!--{END:PRODUCT_LINE}--></tbody>

Regards,
Syno

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 2 months ago #250508

Hi,

I think that you'll have to add such code:

$categoryClass = hikashop_get('class.category');
$manufacturer = $categoryClass->get($product->product_manufacturer_id);
$product->product_manufacturer = $manufacturer->category_name;
after the line:
$product = @$productClass->all_products[$item->product_id];
in the preload of the email for that to work.

The following user(s) said Thank You: syno

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

  • Posts: 30
  • Thank you received: 0
8 years 2 months ago #250572

Hello Nicolas,

Perfect! This is exactly what I needed.

Thank you so much!

Regards,
Syno

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

Time to create page: 0.068 seconds
Powered by Kunena Forum