Different page layout per product

  • Posts: 52
  • Thank you received: 1
  • Hikashop Business
9 years 8 months ago #225599

-- url of the page with the problem -- : 185.25.22.156/petshop.gr/
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

Hello and a Happy New Year.
On product's backend I see that there is the option to choose Page Layout one from the prebuilds Hikashop's layouts (Inherit, Default, Reversed, Tabular).
I already know how to override and customize them by my needs but I want to add a couple of new layouts e.g. MyLayout1, MyLayout2, etc so to easily select it from the product's backend.

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 8 months ago #225613

Hi,

You can create and use as many product page layouts as you want, just make sure the file names start with "show_". So, name them e.g. "show_mylayout1.php", "show_mylayout2.php". They will then be selectable in the dropdown.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: xatzopou

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #225605

Hi,

So in HikaShop > Display > Views, edit a product display view, for example "show_default" and then you will see that you can rename it: take.ms/0h0RF

So just rename the view, and save it. That way it will create a new product display view, and you will be able to select it from the product edition page.

The following user(s) said Thank You: xatzopou

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

Time to create page: 0.083 seconds
Powered by Kunena Forum