Fields added to a product not displayed

  • Posts: 7
  • Thank you received: 0
16 hours 56 minutes ago #369362

-- url of the page with the problem -- : www.vobovie.nl
-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.2.29
-- Browser(s) name and version -- : Chrome 142.0.7444.162
-- Error-message(debug-mod must be tuned on) -- : na

I created a custom field named lokatie for a product. It is a text field.
It appaers on the packing slip but not on Order Administrator notification mail, although I added

<!-- PRODUCT LOKATIE VALUE -->
<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right">{LINEVAR:LOKATIE}</td>
<!-- EO PRODUCT LOKATIE VALUE -->

to the product line section in the HTML part.
In the attachment is the whole source.
Why is the content of the field lokatie not displayed in het mail.

Attachments:

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

  • Posts: 84660
  • Thank you received: 13772
  • MODERATOR
12 hours 40 minutes ago #369363

Hi,

The tag "{LINEVAR:LOKATIE}" does not exist.
When you edit an order email, you can use the "list of available tags" button to see the list of all the tags.
There, you can read:

product_field
You can also display the value of custom fields with this kind of tags :
{LINEVAR:product.XXX}
where 'XXX' is the custom field column name.

So your tag should be "{LINEVAR:product.lokatie}" supposing that the column name of your custom product field is lokatie.
Note however that this will display the value straight from the database. For some types of fields, it won't be readable / usable. Also, you're adding a td for the value, but you also need to add it for the headers of the table.
Finally, note that if you edit your custom field via the menu Display>Custom fields, you'll find email display options there. By activating them, the custom field value will display automatically in the corresponding emails without having to customize the emails at all, with the header, and the value being processed by the field system if necessary.

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

  • Posts: 7
  • Thank you received: 0
54 minutes ago #369368

Thanks. I copied your suggestion {LINEVAR:product.lokatie} in the template and it is now working.
Is it capital depended?

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

Time to create page: 0.053 seconds
Powered by Kunena Forum