News:

Looking for documentation? Take a look on our wiki

Main Menu

Recent posts

#41
Virtuemart Development and bug reports / Re: VM4.6.0 pagination error
Last post by Milbo - October 30, 2025, 11:25:50 AM
That works for me here https://whiteandblack.hu/eljegyzesi-gyuru

Maybe you do some more stuff. For example sorting, or so?
#42
General Questions / Re: Virtuemart 4 Cart prices (...
Last post by Milbo - October 30, 2025, 11:22:27 AM
-1 means to use the rounding options of the currency itself. For example Lire are usually not displayed with decimals.
#43
General Questions / Re: Display lowest price based...
Last post by Milbo - October 30, 2025, 11:19:48 AM
Maybe I misunderstand the problem, but there is a simple setting for it. In the vmconfig tab prices, there is "Order of multiple prices". So you can decide if the product should show mainly the lowest, or highest price. No resort code in the template needed.

But in anyway thank you for the idea vmfyelloq19. And great that you managed it modernmagic.
#44
Virtuemart Development and bug reports / Re: Can't edit payment method ...
Last post by Milbo - October 30, 2025, 10:54:02 AM
okey, ehrm, what was the error in the virtuemart_vendors table?
#45
Virtuemart Development and bug reports / Re: Invalid Token, in view=pro...
Last post by Milbo - October 30, 2025, 10:53:35 AM
Just found this topic. It is very unusual, that you add 23 graphics at one time. Did you use the multi image uploader?
#46
I'm using the joomla plugin of older versions.
#47
Okay, I finally found the error in the virtuemart_vendors table. It works fine again.
#48
Yes, Max — you're right. The whole problem comes from having the site in two language versions.
Now it works fine — that was my fix.

Sort by price:
public function setCanonicalLink($tpl, $document, $categoryId)
{
    $format = !empty($tpl) ? $tpl : vRequest::getCmd('format', 'html');

    if ($format === 'html') {

        // Remove existing canonical
        foreach ($document->_links as $k => $array) {
            if ($array['relation'] === 'canonical') {
                unset($document->_links[$k]);
                break;
            }
        }

        // Build canonical link
        $link = 'index.php?option=com_virtuemart&view=category&Itemid=' . $this->Itemid;

        if ($categoryId !== -1) {
            $link .= '&virtuemart_category_id=' . $categoryId;
        }

        // Generate final canonical URL
        $canonicalUrl = JRoute::_($link, true, -1);
        $uri = JUri::getInstance($canonicalUrl);
        $uri->setScheme('https');
        $canonicalUrl = $uri->toString(['scheme', 'host', 'port', 'path', 'query']);

        $document->addHeadLink($canonicalUrl, 'canonical', 'rel');
    }
}

<link href="/shop/category" rel="canonical">
<link href="/shop/category/manufacturer/by-price" rel="alternate" hreflang="pl">
<link href="/en/shop/category/manufacturer/by-price" rel="alternate" hreflang="en">
<link href="/shop/category" rel="canonical">
<link href="/shop/category/by-price" rel="alternate" hreflang="pl">
<link href="/en/shop/category/by-price" rel="alternate" hreflang="en">
I changed the order of parameters in the router for the manufacturer — previously it was placed before the category name, which caused issues with the logical URL structure.
#49
Virtuemart Development and bug reports / Re: [FIX] Use VirtueMart CSS +...
Last post by iWim - October 29, 2025, 12:42:35 PM
I create custom templates and write specific CSS for these templates.
When VirtueMart loads its own CSS I have to undo/override these styles to fit my design.

I.e. vm-bs5-common.css sets specific colors and sizes for fonts, margins etc.
Also I see some !importants...

I prefer not to deal with that.

Previously I used the Legacy layout. Now I would like to use the BS5 layout, as it's closer in line with current Joomla, but not load VirtueMart's Bootstrap CSS.

Currently disabling VirtueMart CSS only works for Legacy layout. Not for any Bootstrap layout.
For BS layouts the option Use VirtueMart CSS is ignored.
My suggestion allows this option to work for Bootstrap CSS too.

You know VirtueMart better than me. You may have a better solution.
#50
Virtuemart Development and bug reports / VM4.6.0 pagination error
Last post by yahalom - October 29, 2025, 11:44:50 AM
I have a problem after updating to 4.6.0. Jommla is 5.4.0. If I enter a product category, it shows the first number of products fine, but if I navigate to the next page of products, I cannot go back to the first page. Any other page than the first page can load fine, but I just can't get back to the first one. My site is: https://whiteandblack.hu

If there is any fix for this,  would highly appreciate it. Thank you.