- Posts: 7
- Thank you received: 0
Make the Personnalized product layout the default
- noisypenguin
-
Topic Author
- Offline
Less
More
13 years 5 months ago #107370
by noisypenguin
Make the Personnalized product layout the default was created by noisypenguin
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
Thank you
Please Log in or Create an account to join the conversation.
13 years 5 months ago #107385
by nicolas
Replied by nicolas on topic Make the Personnalized product layout the default
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;
include(HIKASHOP_FRONT.'views'.DS.'product'.DS.'tmpl'.DS.'show.php');
return;
Please Log in or Create an account to join the conversation.
- noisypenguin
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
13 years 5 months ago #107428
by noisypenguin
Replied by noisypenguin on topic Make the Personnalized product layout the default
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
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.
13 years 5 months ago #107459
by Xavier
Replied by Xavier on topic Make the Personnalized product layout the default
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.
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.
- noisypenguin
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
13 years 5 months ago - 13 years 5 months ago #107466
by noisypenguin
Replied by noisypenguin on topic Make the Personnalized product layout the default
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.
How do I take this format and apply it to all products.
Last edit: 13 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.
13 years 5 months ago #107500
by nicolas
Replied by nicolas on topic Make the Personnalized product layout the default
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.
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.
- noisypenguin
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
13 years 4 months ago #107690
by noisypenguin
Replied by noisypenguin on topic Make the Personnalized product layout the default
Excellent - Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds