Co existing views sets

  • Posts: 75
  • Thank you received: 12
7 years 3 months ago #287472

Hi
What is the recommended way a Hikashop template can have 2 co existing view sets ?
I would like some products to use a view and others to use another
A dev of ours created a complete UIKIT version of the default template views and installed that in templates/yoothemepro/html/ as com_hikashop. This works but applies the new layout to all products
If I want to add another style for some of the other products, where would these go ?
Thanks
Danny


Danny Malouin
BeNu - Digital success agency
benu.ca

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

  • Posts: 83778
  • Thank you received: 13565
  • MODERATOR
7 years 3 months ago #287506

Hi,

I suppose that you're talking about the product page.
So I suppose that your dev made a file for templates/yoothemepro/html/com_hikashop/product/show_default.php
In that case, he can make another file named templates/yoothemepro/html/com_hikashop/product/show_XXX.php where XXX is replaced by whatever text you want. HikaShop will detect it automatically and add it to the list of layouts in the "layout on product page" settings (in the HikaShop configuration for the default one, in the categories and in the products). So the persons using your uikit will be able to switch the product page layout between the different ones you provide for each product.

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

  • Posts: 75
  • Thank you received: 12
7 years 3 months ago #287556

Hi Nicolas

I am refering to all views in a template. I had all views rewritten to be UIKIT compatible. The developper that did this just rewrote them and posted them in templates/yoothemepro/html/com_hikashop

I also had a product layout adapted to group products in a hosting package layout. This one requires some core files adaptations as per this programmer. I asked the programmer to create a plugin that would allow the admin to configure/select specific products for which to apply this layout to. The results are good for now: joomsting.com/catalog/product/j-one

Now I want to create an installer package for this
One to deploy the complete view set, the other to install the Product Plan template/view

Right now, it looks like my best option is to
1- Install and configure Hikashop
2- Install UIKIT theme (view set) in templates/yoothemepro/html/com_hikashop
3- Install Product Plan view package (plugin which will overwrite some Hikashop core files and some views in templates/yoothemepro/html/com_hikashop)
4- Configure the products I want to use the Product Plan view via the new plugin

This means, to revert, I will inevitably have to reinstall Hikashop and remove the templates/yoothemepro/html/com_hikashop folder.

Do you see this as my most logical deployment route ?

Danny


Danny Malouin
BeNu - Digital success agency
benu.ca

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

  • Posts: 83778
  • Thank you received: 13565
  • MODERATOR
7 years 3 months ago #287563

Hi,

If you really need to replace core files of HikaShop, then yes. I would recommend to try and do without modifying core files.
Most of the things should be overridable, extendable, etc one way or another.
If you can provide information on what core files need to be replaced and why, then we can potentially provide advices on how to do it best.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum