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

Recent posts

#2
I have a very strange and weird bug. The stock gets automatically reverted back to it's old value. My client tells me it isn't that they do it by themselves, it gets done by the system. Any idea how this happens?

I checked all the plugins and components I have and none of them have anything to do with the stock. I'm very confused why this happens.

Is it maybe possible to log every admin action in Virtuemart so when the stock gets changed it is logged somewhere? By which user and when?

EDIT: Found it. I will add the logging in this topic when i'm done

#3
Product pricing / for those who wants to remove ...
Last post by rdcustom - Today at 12:23:58 PM
did a trick today, I post here for future reference in case of updates:

currencydisplay.php

on line 301

add:

$res = preg_replace('/\,00/', '', $res);
$res = rtrim($res, ",");

this will show prices without useless ",00"

125,00 will result in "125"
#4
Product pricing / Re: If there's an override, cu...
Last post by rdcustom - Today at 11:46:22 AM
I found myself the bug:

in calculationh.php - line 416

need to remove:

"if($variant){
            $this->productPrices['discountedPriceWithoutTax'] += $variant;
         }

"
#5
Hi,
Any idea how to fix this?
#6
General Questions / Issues with Coupon Functionali...
Last post by k2mdedia - Yesterday at 21:59:09 PM

I'm experiencing two issues with the coupon functionality in Virtuemart 4.2.4 on Joomla 4:

- When I set a coupon to be used only with a specific product, apply it to the cart, and then remove the item, the cart does not automatically reload. After manually refreshing the page, the product does get removed, but the coupon remains applied.

- Even though the coupon is configured to be valid only for specific products, it incorrectly reappears and gets applied to any new products added to the cart after the original product is removed.
#7
Product pricing / If there's an override, custom...
Last post by rdcustom - Yesterday at 13:52:16 PM
Since last updates I have a strange issue.

Let's assume I have a 100€ product with a 20€ option:

when the option is added the price is calculated correctly: 120€

BUT

when the product has a price override (ex. 90€)
the option is added twice (40€ instead of 20€)

instead of 110€ total I have 130€

this happens only when there's a price override

How to solve this issue?
#8
Your layoutname for the product is Nessunasovrascrittura. We set 16 chars there, many years ago. I set it now to 48 varchars.
Do NOT modify the Db yourself. Next update it is reverted, because it is a field controlled by vm. You can add your own columns and they should be touched, but do not change existing ones.

But you can fix it just entering the same number as me in the svn for your live installation and use the table updater in the tools.

The file to change is in /administrator/components/com_virtuemart/install/install.sql. Change line 840 to `layout` varchar(48).

But do you really want to use the layout override here? The common way is to leave it blank. But a version before was something broken, there was no blank. So the fix is, that we have a gain the blank version.

and you could not store this layout before, because it has clearly more than 16 chars.
#9
Hazel we send always the canonical url and if the current url is differnt but valid, we add the other url.
But any url added in the header should not reflect the fantasy categories.

mysite.com/canonCat/myproduct-detail =>

<link href="http://mysite.com/canonCat/myproduct-detail" rel="canonical">

if you used mysite.com/validCat/myproduct-detail or if the product is available in other languages, you get an extra line in the header like

<link href="/validCat/myproduct-detail" rel="alternate" hreflang="de-DE">

So your whole text does not fit here, because your almost last sentence says it

QuoteUsing the canonical meta tag: The canonical meta tag can be added to the HTML code of pages to point Google to the preferred version of the page.

So if you enter mysite.com/fantasyCat/myproduct-detail

your header will show <link href="http://mysite.com/canonCat/myproduct-detail" rel="canonical">
#10
Because you should not choose the vat in the product edit. So you are using the old 90s system. VM2 and higher works with categories. So a simple job has one vat rule and thats it, no more config needed.

https://docs.virtuemart.net/manual/general-concepts/tax-and-calculation-rules-overview