Is it Possible to have multiple show_default views

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #188644

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.2.4
-- PHP version -- : 5.4.32
-- Browser(s) name and version -- : Opera 27

Is it possible to have multiple show_default product views with different layouts for different type of products? If not what would be the best way of going about this in Hikashop?

And other views associated to product display such as show_block_img.php and show_quanitity

Oh yes apologies for posting in wrong thread! Lack of concentration.

Last edit: 10 years 7 months ago by dda.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #188676

Hi,

You can easily have many different views in HikaShop, just create a file with a name starting by "show_xxx.php" and add it in the folder "templates/your_template/html/com_hikashop/product".
Then in the product edition page you can select the layout for each products, this option can too be set by categories in the categories settings.

Same thing for show_block_img.php but in this case you have to replace in the show_default view (or the other created ones) the code: $this->setLayout('show_block_img');
Bt: $this->setLayout('show_block_img_xxx'); where show_block_img_xxx is the name of hte created file, same thing for show_quantity.

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

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #188837

Thanks that worked. I hadn't looked at the Layout on product page settings in a product before.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum