Make the Personnalized product layout the default

  • Posts: 7
  • Thank you received: 0
11 years 5 months ago #107370

I am using the Hagane template. How easy is it to make the Personnalized product layout the default for all products? How would I go about it it?

Thank you

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #107385

You can edit the file "show" of the view "product" for the hagane template via the menu Display->Views and remove the lines:
include(HIKASHOP_FRONT.'views'.DS.'product'.DS.'tmpl'.DS.'show.php');
return;

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

  • Posts: 7
  • Thank you received: 0
11 years 5 months ago #107428

I have done this but I'm still not getting the right result.

I have deleted those 2 lines from Shop.php
If I then select the Personnalize layout option from the product page menu I get the graphic tablet with all the right formatting, the background image and everything in the right place. This is what I want for all products.

If I select the same product (Graphics tablet) from the category menu on the left then some of the alignment of the add cart button and qty buttons goes wrong.

If I create a new product it does not have the background image, the product border, the tab formatting etc.

If I copy the graphic tablet product to create a new product then I lose the background images, the alignment goes wrong and the tab formatting disappears. It reverts back to the original buttons for add to cart etc.

I assume selecting the product from the main menu calls a different class, but where is this set?

The site is www.soundwarehouse.co.uk

Thanks again for your help and quick responses

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #107459

Hi,

You are talking about the view like "default, reversed, tabular" ?

If it is, you can change the default value in Configuration > Display > Default parameters for product > Layout on product page

Or in the code of the view "product / show" replace the value of the variable $this->productlayout by your custom view name.

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

  • Posts: 7
  • Thank you received: 0
11 years 5 months ago #107466

I want all the products on the product pages in the shop to have the same format at the graphics tablet has when selected from the main menu on your demo site. (PRODUCT PAGE > PERSONNALIZE LAYOUT)

How do I take this format and apply it to all products.

Last edit: 11 years 5 months ago by noisypenguin. Reason: when i read it back it sounded like gobbledegook!

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #107500

Note that if you want the CSS to apply to other products, you also need to edit the CSS of the template to make the CSS for the graphic tablet to apply to all the products.

So edit the css file of the template and change all the instances of:
#hikashop_product_Graphic_tablet_page_perso

and put instead:
div

and that will apply the CSS to all the products.

The following user(s) said Thank You: noisypenguin

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

  • Posts: 7
  • Thank you received: 0
11 years 5 months ago #107690

Excellent - Thank you

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

Time to create page: 0.074 seconds
Powered by Kunena Forum