Fields added to a product not displayed
10 months 1 week ago #369362
by hkoopman
Fields added to a product not displayed was created by hkoopman
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
10 months 1 week ago #369363
by nicolas
Replied by nicolas on topic Fields added to a product not displayed
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:
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.
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:
So your tag should be "{LINEVAR:product.lokatie}" supposing that the column name of your custom product field is lokatie.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.
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.
10 months 1 week ago #369368
by hkoopman
Replied by hkoopman on topic Fields added to a product not displayed
Thanks. I copied your suggestion {LINEVAR:product.lokatie} in the template and it is now working.
Is it capital depended?
Is it capital depended?
Please Log in or Create an account to join the conversation.
10 months 1 week ago #369369
by nicolas
Replied by nicolas on topic Fields added to a product not displayed
Hi,
Yes, you need to use the same case as you have in the "column name" setting of the custom field.
Yes, you need to use the same case as you have in the "column name" setting of the custom field.
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds