Creat own Layout on product page

  • Posts: 50
  • Thank you received: 4
12 years 10 months ago #41000

Hi.
Nicolas,
I created in a text editor copy the file /components/com_hikashop/views/product/tmpl/show.php and call it show2.php. He appeared in the Display-Views (administrator/index.php?option=com_hikashop&ctrl=view), but in the product item card (administrator/index.php?option=com_hikashop&ctrl=product&task=edit&cid[]=52) in the Layout on product page it has not appeared.
What did I do wrong?
A similar situation (Creat own Layout on product page) with categories.

I hope I have explained this ok.
Serg.

Last edit: 12 years 10 months ago by korkunov.

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

  • Posts: 50
  • Thank you received: 4
12 years 10 months ago #41146

Up!

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #41186

First make sure you use the latest version of HikaShop.
You should go in the menu Display->Views and edit the file "show" of the view "product" for your template.
Then, at the top, you will be able to change the name of the file and save it.
That will generate an override view file where you can enter your customization code.
Then, in your products/categories or in the configuration, you will be able to select that view file in the layout option instead of the default one and it should work.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum