Product Tag and layouts

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81305

I am using the product TAG insert to place products in my joomla articles. I would like to change the way the tag displays the product to a table layout like the one on demo page demo.hikashop.com/index.php?option=com_h...ng&Itemid=70&lang=en
but shows only 1 product at a time not the list.

There seems to be layout options for modules and menus but I'm not using either to display my products just the insert TAG so how can I go about getting my products to display in a table looking format?

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

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

You can't display a product in table in a joomla article by default.

What you can do is create a module displaying one product and load it in your article using a plugin which allow to add a module in an article. This can be found here: extensions.joomla.org

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81525

Good to know it cannot be done by default.

1. Can you tell me the file which controls the display of a product using the product TAG insert button so I can adjust the layout within the file, create my own product display layout instead, change how the default looks?

2. Is it in the views section of the Display area in the configuration panel? I read that if files are changed here that they are carried through when you upgrade so you do not loose any of your changes, is this correct?

Any help is very much appreciated.

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

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

This display come from a plugin, to change it edit the file "plugin/system/hikashopproductinsert/hikashopproductinsert_view.php".

When updating you will lose the changes made on this plugin, so don't forget to save it in a safe place.

If you edit views under the section display in the configuration, you will not loose any changes when upgrading.

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81774

Thankyou for pointing me to the right file. I have two more questions, the second being more important.

1. So there is no way in the Display > Views to update the layout because its controlled by the plugin?

2. When I have a product with options/characteristics and use the product TAG insert button to display the product on the website I get the product showing but cannot see the drop down for the Options available, there is a button instead that reads "Choose Option". Is there a way I can have the options show with the product and description and not have to use the button to view the options and add to cart with options already chosen?

Thankyou for all your help so far.

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81956

I've made changes to the file hikashopproductinsert_view.php and ftp'd it in but although the file changed the products on my website did not update layout, I've cleared cache already. Any ideas?

Also still would like an answer to my previous question about option button...below,


2. When I have a product with options/characteristics and use the product TAG insert button to display the product on the website I get the product showing but cannot see the drop down for the Options available, there is a button instead that reads "Choose Option". Is there a way I can have the options show with the product and description and not have to use the button to view the options and add to cart with options already chosen?

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #82161

1. Please make sure that you're overwritting the correct file:
plugin/system/hikashopproductinsert_view.php is on Joomla 1.5,
plugin/system/hikashopproductinsert/hikashopproductinsert_view.php is
on Joomla 2.5 and 3.0
administrator/components/com_hikashop/extensions/plg_system_hikashopproductinsert/hikashopproductinsert_view.php
is the install file for the plugin so it isn't used by HikaShop after the install.

2. That's not possible. the characteristics/options dropdown can only
be displayed on the product page.

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

  • Posts: 13
  • Thank you received: 0
11 years 10 months ago #82337

Isn't there a way I can use the code that calls and displays the option/characteristic and build it into the insert button so that I can replace the "choose option" button.

I need the product inserted to look like the product page, we require as few clicks as possible. The simple products display exactly like the product page and I can add to cart directly, like to do the same with the products that have characteristics/options.

Surely there is a snippet of code I can replace, I'm not great with php so would need some guidance. I have tired taking the product page layout code and using it inside my insert tag file but my skills are not developed enough to get it to work.

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #82505

Everything is possible. I can't say that it's not. But you better be an expert in PHP because there is a lot to it in having characteristics on the listing. It's not just ten lines of code to copy/paste from one place to the other... And even then, that would require several days of work to achieve it I think.
You would have to find a third party developer to do that for you I'm afraid.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum