Product Module Div layout including ul

  • Posts: 147
  • Thank you received: 6
10 years 5 months ago #161771

Hi,
I am using Hikashop content module and I have selected 'Div' on the layout configuration.
But it wraps up the item in ul and li.

I looks very messy, div > div > div > div > ul > li > div > div > content

Is it how it is meant to be?

As an alternative I am trying to create a custom Type of item layout.
I copied the listing_div.php from the component's folder into my template and called it listing_custom, went on the module configuration under Parameters for DIV and selacted the 'custom'. But I am getting a blank page.

At this stage I didn't change anything. Just copied from the component into the template and renamed it. What is the trick here?

Thanks

-- HikaShop version -- :HikaShop Business: 2.3.1
-- Joomla version -- : 3.3

Last edit: 10 years 5 months ago by maujbigo.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #161782

Hello,
No, if you set the "Type of layout" option of your content module to DIV, you should only have DIVs on your content module, can your tell me how did you set the "Type of content" option of your content module ?

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

  • Posts: 147
  • Thank you received: 6
10 years 5 months ago #161859

Hi Mohamed,
I think I found out why the ul li is coming up.
If in the configurations I set 'Use Bootstrap Design:Yes' it then wraps the products with ul and li. Odd isn't is?
There is no need for that. Is this how it should be? I man we don't need the ul or li, you could just change the classes 'hikashop_product_column_1' with bootstrap class. span4.

Also can you please clarify how can I create custom Type of item layout for the module?
as I explained on my previous post I am getting a blank page when creating a custom listing_div layout. Please see my previous post for explanation.

Thanks.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #162026

Hi,

It's not odd. When you activate the bootstrap system, the grid layout (div) uses the thumbnail list system of bootstrap for a nicer look of each product block. The thumbnail list system of bootstrap uses ul/li and so the HTML is like that.

If never the less you want to change that, you can edit the file "listing_div" of the view "product" via the menu Display>Views.

A blank page doesn't help. Could you please turn on the debug mode and error reporting options of the Joomla configuration and try again ? That should display an error message on the blank page explaining what's going on.

Last edit: 10 years 5 months ago by nicolas.

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

  • Posts: 147
  • Thank you received: 6
10 years 5 months ago #162197

Hi, I did turn the error reporting and debug on but it still just a blank page.

Seems to me that the problem is here $this->setLayout('listing_'.$this->params->get('div_item_layout_type'));
It is looking for the custom_div_layout I created and set on the module parameters in the component folder. But it is not looking for it on my templates/customTemplate/html/com_hikashop/product/ folder.

If I comment echo $this->loadTemplate(); the page loads normally bur obviously no product is displayed.

Do we have a fix for this?

Thnks

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

  • Posts: 147
  • Thank you received: 6
10 years 5 months ago #162219

Also, how do I create an alternative type of layout?
s24.postimg.org/mxalydix1/Screen_Shot_20...28_at_6_18_00_pm.png
I don't want to change the entire listing view. All I want is to be able to create a custom 'Alternative Layout' for an specific module.
This is one of the most powerful features in joomla the I can't find or is missing in hikashop.

I want to create an 'Alternative Layout' called products bootstrap-carousel, another called products bootstrap-accordion.
And Just select it on the desired modules I want.

I am stuck on this for a few days now.

Thanks, for the help.

Joomla 3.3
Hikashop Business 2.3.1

Last edit: 10 years 5 months ago by maujbigo.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #162237

Hi,

You're talking about different things at the same time so I'm not sure what your problem is...hard to provide a fix in that case.
The line $this->setLayout('listing_'.$this->params->get('div_item_layout_type')); is to load an item box layout (a layout for a box of a product) while on your screenshot, you're showing the "type of layout" option of your listing module and that option is for the layout of the whole listing, not for each element of the listing.

Reading the end of your last message, it seems that you want to create a new type of layout and not a new item box layout.
So editing the item box layout files won't help.
Actually, there is no option to create new layouts of listings.
There are only these three layouts: div, table and list.
And you can customize each one.
I doubt that you're using all three layouts on your website. So simply edit one of these (listing_div, listing_table listing_list) that you don't use via the menu Display->Views and modify its code directly to suits your needs.

Regarding the blank page, you must have the error. If you don't see it on the page, then it means that your server is configured to not display the errors but log them. So you'll have to look in the PHP error log of your web server for the Fatal error message which generate the blank page. That will provide valuable information on what's going on and we'll be able to tell you what to do.

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

  • Posts: 147
  • Thank you received: 6
10 years 5 months ago #162271

Hi,
Thanks for the explanation. And you are right, I am not using the the type of layout so I could just override one of them.
But I ended up creating an override for the carousel instead, which did what I needed.

Thanks.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum