Customise the Best Seller module

  • Posts: 233
  • Thank you received: 4
  • Hikaserial Standard Hikashop Business
8 years 7 months ago #253385

-- url of the page with the problem -- : cotswoldlavender.under-development.info/
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.4

Help,
How can I modify the Best seller module layout?

It seems the template files are used for more than one display type. Is it possible to setup a unique template override just for the best sellers module?

How can I achieve this.

Lee

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 7 months ago #253387

Hi,

Yes. When, you edit the file listing_img_title of the view product via the menu Display>Views, you can change the name of the view file in order to create a custom one.
Then, you can select that layout instead of the default one in the settings of the module.

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

  • Posts: 233
  • Thank you received: 4
  • Hikaserial Standard Hikashop Business
8 years 7 months ago #253695

Nicolas,
Thanks for the reply and I understand what you have said. However I tried that and it does not seem to give me the level of control I need. If you take a look at:

http://cotswoldlavender.under-development.info/index.php?option=com_hikashop&view=product&layout=listing&Itemid=159http://cotswoldlavender.under-development.info/index.php?option=com_hikashop&view=product&layout=listing&Itemid=159

This is a grid of products. I have modified the lisiting_div.php file via a template override to add my bootstrap code to the outside <li> tag to give the grid display of products shown above. This is at line 135:

<<?php echo (HK_GRID_THUMBNAILS !== false && HK_GRID_THUMBNAILS != '') ? 'li' : 'div'; ?> class="col-xs-12 col-sm-6 col-md-3 nopad hikashop_product hikashop_product_column_<?php echo $current_column; ?> hikashop_product_row_<?php echo $current_row; ?>">

Now if you scroll down to the footer, you will see the Best Seller module that I believe is also using this same listing_div.php file and hence the bootstrap code above is being used and is restricting the container <li> tag and causing the display issue.

Does that make sense? I need to customise the outer listing_div.php file for the Best Seller module. is this possible?

Thanks

Lee

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 7 months ago #253710

Hi,

Then, you could copy paste your code to listing_list and select the "list" display layout in your Best seller module and revert to the default listing_div.
That way, you would get two different main layout for your products listings.

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

Time to create page: 0.037 seconds
Powered by Kunena Forum