how to display a custom field

  • Posts: 5
  • Thank you received: 0
10 years 11 months ago #174714

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5.22
-- PHP version -- : 5.4.33

Hi I have made 2 custom fields to my product page.
both of the type : Check box.

Both check boxes is displayed in the back end as separate fields.
but in the front end they are listet as one.

Can I echo out the specific fields in the front end by id number or something like that. (how do I do this *?)


In the php file : product / show_default.php I have found this line which writes out both fields.
but my php skills are not good enough to figure out how i write on field out at a time.

if(!empty($this->fields)){
$this->setLayout('show_block_custom_main');

$catogory = $this->loadTemplate();

echo $catogory;

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #174745

Hi,

Do you want that the customer be able to fill these fields ?
If it is, you have to create the custom fields in the "item" table instead of in the "product" one.

Product allow you to set information in the backend, and then it display only the selected value on frontend.
Item allow the customer to make a choice.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum