Products in the slider instead of categories!

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #127768

-- HikaShop version -- : Business 2.2.2
-- Joomla version -- : Joomla! 2.5.6

I need create on page the slider with products, instead of categories. I not understand how to display the slider on main (contant) position instead of a new (module) position of template and as a result on the page appears the slider with products (module) and related categories.
Here is example of what I would like to see on my site www.basilurtea.ca/basilur/bouquet.html - its page of some category оn the site, which displayed the slider with products instead of subcategories.

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #127782

Ok, I was able to integrate slider (module) in page via fied "Position" and {loadposition name position} option. But I dont now how to exclude old subcategories from page? :dry:

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #127803

Hi,

I don't fully understood the problem that you are having with your product listings but can you explain it through some screenshots of how did you configured your module/product listing, and of what you are getting ? also some links of the issue that you are having will probably help.
Thanks :).

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #127829

Just tell me, how would you implement this page structure ( www.basilurtea.ca/basilur/bouquet.html ) in Hikashop?

I did the following:
1) Create categories in main menu and they are displayed subcategories
2) Set a one "HikaShop Content Module" which displayed products of subcategories in slider
3) Via fied "Position" and {loadposition name position} displayed slider in contеnt plаce

But how to switch off old displayed subcategories on the site? Now the page displayed a slider with products of subcategories and themselves subcategories.

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #127871

Hi,

In HikaShop the easiest way is to set the option "Sub elements filter" to "Grouped by category" in the menu/module option.
By this way the products will be displayed by subcategory of the selected one in the menu/module.
Then you will have to edit the view "product / listing_div" to create your own carousel effect.
It require PHP - JS knowledges.

Else you will have to assign modules on certain menus and it will be complicated to manage that I think.

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #127919

I dont need the new effect for slider, I just need only structure as on example site.

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #127957

Hi,

You can probably just use some css properties.
Here is a little tutorial which explains how to customize the layout:
www.hikashop.com/support/documentation/1...ize-the-display.html

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #128053

Thanks you very much! Everything works!

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #128465

And the last question! How to connect a different templates for categories and subcategorie? Hikashop has no defference categories (class="hikashop_subcategories_listing) and subcategories (class="hikashop_subcategories_listing) in the template file:

$layout_type = $this->params->get('layout_type');
if(empty($layout_type) || $layout_type=='table') $layout_type = 'div';
$html = $this->loadTemplate($layout_type);
if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 81716
  • Thank you received: 13106
  • MODERATOR
10 years 7 months ago #128476

You could do like that:
if($this->element->category_name=='My category'){
$layout_type = 'my_layout';
}

before:
$html = $this->loadTemplate($layout_type);

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

  • Posts: 126
  • Thank you received: 0
10 years 7 months ago #128526

In my case I can do this:

if($this->element->category_id=='2' && !empty($html))
echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';

But, what to insert in place of "my_layout", if I want а total new tempate?

Last edit: 10 years 7 months ago by neviqimka.

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

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
10 years 7 months ago #128627

Hi,

The name of your layout type ; like "img_title", "div", "slider_horizontal".
When you have a "product | listing_..." you have a layout type.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.103 seconds
Powered by Kunena Forum