News:

Support the VirtueMart project and become a member

Main Menu

Recent posts

#21
General Questions / Re: Multi-upload does not acce...
Last post by Milbo - November 15, 2025, 20:29:49 PM
Hello Andrai2,

I think jpeg is just missing in the list of allowed files in the js of multiupload. So Ghost gave the right tip. Hahah, I just thought, what he is talking about sublayouts? There is no backend stuff in FE sublayouts, but in fact the new admin template has one.

so just go to /administrator/templates/vmadmin/html/com_virtuemart/sublayouts/image_upload.php to line 142. You should see there the allowedTypes. Just add jpeg, or take the line below:
allowedTypes:'gif,jpg,jpeg,png,wbmp,webp,svg,doc,pdf,zip',

and of course, thank you for the bug report, one bug less (I fixed it of course directly in my files).
#22
General Questions / Re: Multi-upload does not acce...
Last post by andrai2 - November 15, 2025, 19:59:31 PM
Thansk for answers!

So to reproduce the error "we need" to drag and drop JPEG file (not jpg) to multi image uploud plugin

than we get the error: 2025-11-11 at 20.04.30(1).jpeg is not allowed. Allowed extensions: gif,jpg,png,wbmp,webp,doc,pdf,zip - error is celar to understand but how to fix it....is it Virtuemart bug...or am i tripin...

The thing is that i can upload JPEG file from single upload in Virtuemart and in Joomla media, but not in Multiple image upload box

in joomla medai configuration jpeg is checked

p.s. the partical thing is that one off my clients make photos via whatsapp and than upload via multiple images in product catalog





#23
Virtuemart Development and bug reports / Re: [FIX] Use VirtueMart CSS +...
Last post by iWim - November 15, 2025, 11:28:06 AM
Mkay... I created an empty vm-bs5-common.css in my templates css folder...

Sure my css is no longer overwritten by VM, but now there's always an empty file loaded!
If we only had an option that can enable/disable loading of VM CSS files... [sarcasm OFF]

Anyhow, before we go around in circles, this will do (for now).

Any plans for VM5 to use Joomla's asset manager (joomla.asset.json)?
So I can use $wa->disableStyle(); in my templates to disable the unwanted VM style.
#24
General Questions / Re: Multi-upload does not acce...
Last post by iWim - November 15, 2025, 11:19:59 AM
Check in Joomla's Media options if jpeg is listed in Allowed extension and Legal Image Extensions (File types).
#25
Installation, Migration & Upgrade / InvaliD token Cart Update 4.6....
Last post by DadoO - November 14, 2025, 11:13:34 AM
Hello  :P

 I have Joomla version 4.4.14 and VirtueMart version 4.6.11214.
Everything was working fine.
I received a notification for an update to version 4.6.2, which I installed.
 Then another notification appeared: version 4.6.4. So far, so good.
 On Wednesday at 3 PM, sales were going smoothly, no problems.
But then, strangely, yesterday at 6:40 PM, I got an "Invalid Token Cart" error.
 And it keeps happening.
 I tried changing the PHP code and setting limits, but to no avail.
I reinstalled version 4.6.4, but the problem persists.
I read Milbo's message, applied the token plugin, but nothing changed.
I also applied the command line in the template, but nothing changed. And all four suggested solutions failed.
Impossible.
I had to revert to version 4.6.11214.
And everything has been fine since then.

What's so strange about this, considering it worked for only 24 hours?

Please guide us in resolving this, because I'm sure I'm not the only one.

Thanks for all in advance
David

#26
General Questions / Re: Multi-upload does not acce...
Last post by Ghost - November 14, 2025, 10:33:37 AM
Nothing to do with GD. jpeg and jpg files are exactly the same - JPEG images. You can rename your jpeg files to use jpg extension and they'll work just fine. But any code handling JPEG images should handle both extensions so this should be fixed in VM. in sublayouts/image_upload.php file try adding jpeg to this list:

allowedTypes:'gif,jpg,png,wbmp,webp,svg,doc,pdf,zip',
#27
Development & Testing / Re: search by categories in mo...
Last post by Milbo - November 14, 2025, 08:08:16 AM
Thank you, added.
#28
General Questions / Re: VirtueMart 4.4.x – Checkou...
Last post by psm - November 12, 2025, 16:13:41 PM
I tried also new installation of joomla and virtuemart but still the same. I do not understand it. It is on two different joomla systems on localhost and also on my hosting and different version of VM and Joomla. :-\  :-\  :-\
#29
Virtuemart Development and bug reports / Re: Coupon code not working pr...
Last post by Kuubs - November 12, 2025, 09:37:58 AM
I made a small plugin that fixes this issue. I added this to my ajax cart plugin so thats why its called the way it is.

plugins/system/vmcartajax

vmcartajax.php
<?php
defined
('_JEXEC') or die;

use 
Joomla\CMS\Factory;
use 
Joomla\CMS\Plugin\CMSPlugin;

class 
PlgSystemVmCartAjax extends CMSPlugin
{

    public function 
__construct(&$subject$config = array())
    {
        
parent::__construct($subject$config);

        if (
version_compare(JVERSION'4.0.0''ge') && method_exists($this'registerLegacyListener')) {
            
$this->registerLegacyListener('plgVmOnUpdateCart');
        }
    }

    public function 
plgVmOnUpdateCart(&$cart, &$force, &$html)
    {
        
// Reindex cart products to ensure sequential keys starting from 0
        
if (isset($cart->products) && is_array($cart->products)) {
            
$cart->products array_values($cart->products);
        }
    }

    public function 
onAfterInitialise()
    {
       
    }

    


}

vmcartajax.xml
<?xml version="1.0" encoding="UTF-8"?>
<extension version="3.9" type="plugin" group="system" method="upgrade">
    <name>VirtueMart Ajax Cart / Reindexer plugin</name>
    <author>YUZI</author>
    <creationDate>2025-10-28</creationDate>
    <copyright>(C) 2025 yuzi. All rights reserved.</copyright>
    <license>GNU General Public License version 3 or later</license>
    <authorEmail>info@yuzi.nl</authorEmail>
    <authorUrl>www.yuzi.nl</authorUrl>
    <version>1.0.0</version>
    <description>Gets Ajax Cart and reindexes cart contents.</description>
   
    <files>
        <filename plugin="vmcartajax">vmcartajax.php</filename>
    </files>
   
    <config>
       
    </config>
</extension>


#30
Same problem : Coupon code not operate since upadate.
I just created a discount code in a category. When items are added to the cart and the coupon is added, the popup bar spins indefinitely. The Chrome console shows a 303 error (looping redirect). I disabled admintools just in case, but the problem persists.