Skip to main content

Different page layout per product

More
10 years 9 months ago #225599 by xatzopou
-- 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.

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

More
10 years 9 months ago #225613 by lousyfool
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.

More
10 years 9 months ago #225605 by Xavier
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.232 seconds
Powered by Kunena Forum