VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gcap on September 20, 2018, 07:41:11 AM

Title: Categories per row not changing
Post by: gcap on September 20, 2018, 07:41:11 AM
I have searched these forums for an answer and not managing to make it happen

Im using VM 3.2.14 and a template call jl_teatree_free

I have tried to get 4 cateories in a row in my shop and the it just wont change from3. Ive tried the admin settings in the VM config as well as changing this:

$categories_per_row = !empty($viewData['categories_per_row'])? $viewData['categories_per_row']:VmConfig::get ( 'categories_per_row', 4 );
if(empty($categories_per_row)) $categories_per_row = 4;


Neither changes a thing, ive cleared cache and no change, Ive checked in chrome and firefox

Any advise would be most welcome as the shop is still in localhost and the lone category below all others looks daft
Title: Re: Categories per row not changing
Post by: jenkinhill on September 20, 2018, 10:49:30 AM
Try with Protostar in case it is a template issue.
Title: Re: Categories per row not changing
Post by: GJC Web Design on September 20, 2018, 14:49:10 PM
also check your setting in the cat and in the menu if u have one
Title: Re: Categories per row not changing
Post by: gcap on September 20, 2018, 16:37:07 PM
sorry which setting in the cat and menu?
Title: Re: Categories per row not changing
Post by: gcap on September 20, 2018, 16:40:54 PM
no change in protostar
Title: Re: Categories per row not changing
Post by: jenkinhill on September 20, 2018, 17:34:22 PM
Look at Default number of categories in a row settings under the settings tab for your Joomla menu item.

Cat view is on the Virtuemart category view settings tab on each category editor/manager but that is for products within a category.
Title: Re: Categories per row not changing
Post by: gcap on September 20, 2018, 17:36:46 PM
thanks - have done that with no effect, im baffled
Title: Re: Categories per row not changing
Post by: gcap on September 22, 2018, 10:20:29 AM
here is a screenshot
Title: Re: Categories per row not changing
Post by: GJC Web Design on September 22, 2018, 11:00:48 AM
Doesn't help -- need a live url
Title: Re: Categories per row not changing
Post by: gcap on September 22, 2018, 11:15:34 AM
perhaps ill make it live and post - currently on localhost.
Title: Re: Categories per row not changing
Post by: GJC Web Design on September 22, 2018, 12:22:07 PM
prob something like css over riding or missing
Title: Re: Categories per row not changing
Post by: StefanSTS on September 22, 2018, 12:42:28 PM
You have a link Shop in your main navigation.

Did you check the settings in the second tab of the menu item settings?

Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 07:54:29 AM
Stefan sorry but what am i looking for?
Title: Re: Categories per row not changing
Post by: StefanSTS on September 23, 2018, 09:18:28 AM
The link should be a reference to "virtuemart category layout", showing the highest category level.

In the second tab you see a setting for categories per row.

Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 09:34:19 AM
sorry is this what you mean?
Title: Re: Categories per row not changing
Post by: GJC Web Design on September 23, 2018, 10:41:50 AM
no - in your shop home menu  - the root VM menu -- visible or hidden .. doesn't matter

Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 10:49:43 AM
thank you for your responses - mine looks somewhat different to yours.
Title: Re: Categories per row not changing
Post by: GJC Web Design on September 23, 2018, 10:56:27 AM
Quotethe root VM menu
!!!!
Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 11:01:22 AM
my sincere apologies, im sure you have concluded that you are dealing with an idiot - you aren't wrong. Ill try figure out how to see that root VM. thank you and sorry for the frustration
Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 11:13:53 AM
found it and changed it with no effect even after cleared chache
Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 11:15:50 AM
Managed to fix it - I really cant thank you enough. Thank goodness for people like you that help the rest of us. Many thanks!
Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 11:22:28 AM
One last question if you dont mind. Everything is looking great but now I have products under my categories - can i change this? I just want the 4 category images on that page

Title: Re: Categories per row not changing
Post by: gcap on September 23, 2018, 11:41:07 AM
all fixed tx
Title: Re: Categories per row not changing
Post by: StefanSTS on September 23, 2018, 13:22:40 PM
No, I was talking about a created menu item with the name shop.
Joomla Menu - Menus - Manage
There you find you main menu.
Inside somewhere is a menu item "Shop".
That one has settings.
Title: Re: Categories per row not changing
Post by: m.noroozy@yahoo.com on August 16, 2020, 20:49:04 PM
It's 2020 and problem has not fixed yet! I set both Virtuemart global setting and root menu category layout but still 3 cols in a row  ???
Title: Re: Categories per row not changing
Post by: Jörgen on August 17, 2020, 01:33:54 AM
It was fixed already in 2018.

Jörgen
Title: Re: Categories per row not changing
Post by: m.noroozy@yahoo.com on August 25, 2020, 18:48:53 PM
I removed override template and see that problem fixed. thank you