only display custom field value on the product listing

  • Posts: 21
  • Thank you received: 2
3 months 4 days ago #305763

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox last version

hello,
how are you
I create a new custom field for example : name : Mobile Document & Column name : mobile_document
and set the only display to front end
how display value only the product listing
*** <?php echo $this->element->mobile_document; ?> ==== mobile_document is the column name of custom field.
code don't work in product listing , but work in the product detail
please help me to display custom field value on the product listing
thanks

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

  • Posts: 1009
  • Thank you received: 89
  • Hikashop Business
3 months 4 days ago #305766

Hi,

It's inside row. Your code should look like this:

<?php echo $this->row->mobile_document; ?>


Thanks

The following user(s) said Thank You: p30yaran

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

Time to create page: 0.061 seconds
Powered by Kunena Forum