News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Joomla 4 is stable with Virtuemart 4 ?

Started by tuaneric, October 28, 2022, 16:05:46 PM

Previous topic - Next topic

GJC Web Design

does seem to be gone in VM4  - no idea why ... but my code covers this...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

jenkinhill

The option for latest_products_days entry has been removed in recent VM admin. The code GJC provided gets around that by using   if(empty($days)) { $days = 1;}  so that $days is assigned a value.

If required you can hard code a value $days
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

tuaneric

Quote from: jenkinhill on December 30, 2022, 16:59:04 PM
The option for latest_products_days entry has been removed in recent VM admin. The code GJC provided gets around that by using   if(empty($days)) { $days = 1;}  so that $days is assigned a value.

If required you can hard code a value $days

Thank you for your information
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

tuaneric

#33
Hello

I am testing my site, I have another problem with the Paypal payment method.
When I chose the Paypal payment it sends on the Paypal.com site to put Paypal address. I want to click on Cancel and return to Mysite which displays an error

Table 'MySite.ujkn5_virtuemart_payment_plg_tco' doesn't exist

Call stack
# Function Location
1 () JROOT/libraries/joomla/database/driver/mysqli.php:668
2 JDatabaseDriverMysqli->execute() JROOT/libraries/joomla/database/driver.php:1740
3 JDatabaseDriver->loadResult() JROOT/plugins/vmpayment/tco/tco.php:299
4 plgVmPaymentTco->plgVmOnUserPaymentCancel() JROOT/libraries/joomla/event/event.php:70
5 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
6 JEventDispatcher->trigger() JROOT/administrator/components/com_virtuemart/helpers/vdispatcher.php:39
7 vDispatcher::trigger() JROOT/components/com_virtuemart/controllers/vmplg.php:114
8 VirtueMartControllerVmplg->pluginUserPaymentCancel() JROOT/libraries/src/MVC/Controller/BaseController.php:702
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_virtuemart/virtuemart.php:128
10 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
11 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
12 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
13 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
14 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
15 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49


on line 668 of libraries/joomla/database/driver/mysqli.php

throw new JDatabaseExceptionExecuting($query, $this->errorMsg, $this->errorNum);

Thank you
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

tuaneric

Hello

I deactivate the VM Payment - 2Checkout plugin, there is no problem anymore.

Thank you and happy new year !
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

Milbo

Quote from: jenkinhill on December 30, 2022, 16:59:04 PM
The option for latest_products_days entry has been removed in recent VM admin. The code GJC provided gets around that by using   if(empty($days)) { $days = 1;}  so that $days is assigned a value.

If required you can hard code a value $days

Because you need to enter all the time new products, otherwise you get no products back. I think the new solution is just to load a list of products sorted by date, then a random number of this list is given back.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

Quote from: Milbo on January 16, 2023, 14:23:39 PM
Because you need to enter all the time new products, otherwise you get no products back. I think the new solution is just to load a list of products sorted by date, then a random number of this list is given back.

Yes, that seems to be the way to do it. I have never used the latest products option.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

tuaneric

Hi

I tested my site after the update, I have the problem the product detail page on the mobile mode (see the photo), it does not display the product photo.

There is a javascript problem on my Hera template ?

https://youtu.be/SFdyjlRRwMQ

you can test on my site the link: https://www.laptopfix.fr/reparations/pc-portable/remplacer-la-carte-graphique-pc-portable-avec-cpu-core-i3-ou-i5-et-i7-detail

Thanks for your help
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

GJC Web Design

You will have to contact https://extensions.virtuemart.net/ about the Hera template as the error is

Uncaught TypeError: a is undefined
    <anonymous> https://www.laptopfix.fr/templates/hera_j3_vm3/js/owl.carousel.min.js?f08b4779171ca55c0c3ad0769abbdf70:6

on a mobile view -- so it is the carousel - maybe because it is loading first before Jquery?


GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

tuaneric

Hi
You think the Owl Carousel is not compatible with virtuemart 4.

I used Joomla 3, it is still compatible with Hera template
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

tuaneric

Hello GJC Web Design

2 weeks ago I tried to contact the virtuemart.net support service but they told me that they don't have time to fix this problem.

Can you help me ?
THANKS

Quote from: GJC Web Design on February 09, 2023, 13:52:45 PM
You will have to contact https://extensions.virtuemart.net/ about the Hera template as the error is

Uncaught TypeError: a is undefined
    <anonymous> https://www.laptopfix.fr/templates/hera_j3_vm3/js/owl.carousel.min.js?f08b4779171ca55c0c3ad0769abbdf70:6

on a mobile view -- so it is the carousel - maybe because it is loading first before Jquery?



Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

jenkinhill

An interim "fix" is to use the default VM image templates instead of the Hera overrides.

default_images.php
default_images_additional.php
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

tuaneric

hello jenkinhill

Can you tell me more details, how I will do it please

THANKS

Quote from: jenkinhill on February 21, 2023, 11:37:48 AM
An interim "fix" is to use the default VM image templates instead of the Hera overrides.

default_images.php
default_images_additional.php

Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11

jenkinhill

It is very simple. Just rename the override files, eg

default_images.phpX
default_images_additional.phpX

which are in    /templates/hera_j3/html/com_virtuemart/productdetails

I think you will lose touch screen linkage of the images on a mobile but display is OK.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

tuaneric

Hi jenkinhill

I renamed 2 file, it displays image on mobile. Thank you so much

Quote from: jenkinhill on February 21, 2023, 12:05:44 PM
It is very simple. Just rename the override files, eg

default_images.phpX
default_images_additional.phpX

which are in    /templates/hera_j3/html/com_virtuemart/productdetails

I think you will lose touch screen linkage of the images on a mobile but display is OK.
Joomla 3.10.11 & Virtuemart 4.2.4.10922 - PHP 8.2 , Template Hera version 3.11