Author Topic: Template problem after update to J4  (Read 298 times)

cvrak

  • Jr. Member
  • **
  • Posts: 100
  • A beginner
Template problem after update to J4
« on: March 08, 2023, 12:10:17 pm »
Hi,
I've updated a J3.10 eshop to J 4.2.8, all extensions including VM.
I face a problem regarding the display of products category. Before the joomla update I've set 3 products per row. After update (without changing anything) I see only 1 product per row. This is not possible to change it, eventhough I've tried to set 3 products/row for every category.
Any suggestions?
You can see what I mean at https://bit.ly/3IZ7kr9 (Its in Greek)

Joomla 4.2.8
VM 4.0.12.10777
php 8.1.16

Thanks
Chris

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28533
  • Always on vacation
    • Jenkin Hill Internet
Re: Template problem after update to J4
« Reply #1 on: March 08, 2023, 13:39:41 pm »
Maybe Bootstrap issue? Try changing the bootstrap version in VM Configuration/Templates. Start with None (legacy).
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.14 10805  J 3.10.11 PHP 8.0.27

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10743
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Template problem after update to J4
« Reply #2 on: March 08, 2023, 18:37:47 pm »
yes.. you have bootstrap 5 chosen which is over riding the vm definitions

it u add

.vm-col-4 {
    width: 25% !important;
}

etc to your overrides this fixes it

or as Jenks says experiment with different BootS

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cvrak

  • Jr. Member
  • **
  • Posts: 100
  • A beginner
Re: Template problem after update to J4
« Reply #3 on: March 09, 2023, 13:25:41 pm »
Yes, probably that was te issue. The problem appears eventhough None (legacy) was selected.
Which Bootstrap version should be used for J4 and VM last version?


Maybe Bootstrap issue? Try changing the bootstrap version in VM Configuration/Templates. Start with None (legacy).

cvrak

  • Jr. Member
  • **
  • Posts: 100
  • A beginner
Re: Template problem after update to J4
« Reply #4 on: March 09, 2023, 13:30:18 pm »
Regarding Bootstrap I have selected None (legacy). If I select another version the coloumns are ok but +/- buttons are not present.
I've added your suggested override and the template is ok.
But, is it the correct method? Everything was working ok before the upgrade to J4
Regarding a clean installation with J4 and VM last version which do you think is the correct Bootstrap version?

Thanks
Chris

yes.. you have bootstrap 5 chosen which is over riding the vm definitions

it u add

.vm-col-4 {
    width: 25% !important;
}

etc to your overrides this fixes it

or as Jenks says experiment with different BootS

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10743
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Template problem after update to J4
« Reply #5 on: March 10, 2023, 11:36:28 am »
This depends entirely on your template... and over rides

but simplest is just fix it as suggested .. css is just css

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cvrak

  • Jr. Member
  • **
  • Posts: 100
  • A beginner
Re: Template problem after update to J4
« Reply #6 on: March 13, 2023, 12:23:06 pm »
The suggested css rule works ok in desktop but I've checked in mobile this morning and the page is not displaying ok.
The "!important" forces to display 4 products/row and is not ok.
How can I solve this?

Thanks
Chris

This depends entirely on your template... and over rides

but simplest is just fix it as suggested .. css is just css

cvrak

  • Jr. Member
  • **
  • Posts: 100
  • A beginner
Re: Template problem after update to J4
« Reply #7 on: March 13, 2023, 12:42:26 pm »
I tried the following:

.vm-col-4 {
    width: 25%;
  display: flex;
}

Its working. Do you think its the correct solution?

Thanks