News:

Looking for documentation? Take a look on our wiki

Main Menu

Recent posts

#51
Jumbo, that is first right, but at the end wrong. VM usually ensures the correct loading of scripts itself. But yes all is displayed within the FE template.

But the links should work correctly. Maybe a screenshot helps
#52
Quote from: sandomatyas on April 19, 2025, 08:03:40 AMI noticed that changing $cache = true to false in shopFunctionsF::loadOrderLanguages solves the issue.

Very great. Thank you. I directly added it. It makes perfectly sense. It was sooo hard to get that stuff running. Changing the language during runtime is not foreseen in the joomla code. So it makes sense that the cache does not consider the language and returns them wrong.

Thank you,... You solved a returning problem. Not a big deal, often even not noticed as real error. But from time to time,...3-6 months I noticed it, but just had another important job and had to ignore it.
#53
Very great Jumbo.

Yes, that is one way. Jumbo shows here, how you can load the config and change the vm config param for the productdetails layout. It works as long you do the changes BEFORE the view.html.php is called. So you can also use it in a normal vm plugin of the family vmextended, or vmuserfields, they are triggered directly after the loadConfig.

Btw the second param should be also false, because the language is not know yet. It works, because it uses the prior language, but it wont reflect a language switch.

But you can also change the layout if you have the view object. If you are in a layout, the view object is just "$this", for example $this->setLayout('notify')

But we use in the view.html.php of productdetails this function
VmTemplate::setVmTemplate($this, $this->category->category_template, 0, $this->category->category_product_layout, $layout);

so maybe the last line is your real answer, because it should also reflect the overrides bs- stuff and so on.
#54
General Questions / Re: Stay on Product Page After...
Last post by Milbo - May 16, 2025, 20:49:56 PM
Great work Jumbo!

Andrai, what about we add that to the core? I think it should redirect to the last category or just do nothing, if you are in the category browse view. We can just extend the existing option "Display modal popup upon 'Add to cart'"
#55
General Questions / Re: I can't uninstall VM and V...
Last post by Milbo - May 16, 2025, 20:44:20 PM
In general, if you uninstall Virtuemart, the tables willl be kept. The reason is, that we had users, which had the idea to "reinstall" virtuemart. Which means to uninstall and install again. But we, or I as developer always use the pure update to fix an error. Which means that we just use the installer and install it over the old installation.
So the normal joomla deinstallation removed all tables, which lead sometimes to heavy data losses. Therefore you should first use the uninstall option within VirtueMart, among Tools.

But your problem is different. We have the core and the aio, and a package which combines both. Maybe your installation just shows the old package.... so you just need to remove the old tables yourself and then you can also remove the entry of the package (in the extensions table)
#56
You can quickly switch to the standard Cassiopeia template to check its functionality and rule out any potential template-related issues.
#57
This means that the Image Processing GD module is not installed or enabled on your server. Contact your server administrator to enable it in the PHP config.
#58
Quote from: Kuubs on May 16, 2025, 08:32:40 AMIt's not really relevant where of when I want to change it, I just want to change it. Probably beforeRender or something

It is crucial because once the layout is initialised, you cannot change it, even in the onBeforeRender event. You can try it in the onAfterRoute event. But, ensure that you do not override the default layout in the menu item.

Example:
    public function onBeforeRoute()
    {
        // Register VirtueMart config to Joomla autoloader
        \JLoader::register('VmConfig', JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php');

        // If VirtueMart is not installed, return
        if (!class_exists('VmConfig')) {
            return;
        }

        // Load VirtueMart config
        \VmConfig::loadConfig(false, false, true, false);

        // Set the default product layout
        \VmConfig::set('productlayout', 'default');
    }
#59
Hi,
there's a plugin to do this : Product plugin in article
#60
Did you check your modules for Breadcrumb ?
And if so, check if there's any override for this module in your template, usually in the html folder.