## News:

Support the VirtueMart project and become a member

## Recent posts

#1
##### General Questions / Re: price calculation adds 1 c...
Last post by iWim - Yesterday at 11:04:41 AM
In the attachment you'l find a screenshot of what mblokdijk means...
Top (incorrect baseprice), bottom (expected baseprice)

The issue is that baseprice is rounded to 2 decimals instead of 5.

With 21% vat:
Currently: 28,93 * 0,21 = 6,0753 ~~> 28,93 + 6,0753 = 35,0053 = 35,01
Should be: 28,92562 * 0,21 = 6,07438 ~~> 28,92562 + 6,07438 = 35,00

I see the same on a shop I manage since VM1 (top).
The problem is I don't see it on a "messy" clean install (bottom).
#2
##### Virtuemart Development and bug reports / Re: [bug][VM4] VMAdmin templat...
Last post by Wedal - Yesterday at 09:31:20 AM
The bug is still here.

#3
##### General Questions / Re: price calculation adds 1 c...
Last post by hazael - August 09, 2024, 10:53:56 AM
why are you one cent short? it's simple

product price in the admin panel before rounding:
0,333 + 0,333 + 0,333 = 0,999 ~ 1,00 EUR

product price in the frontapage after rounding 0,333 ~ 0,33 EUR
0,33 + 0,33 + 0,33  = 0,99 ~ 0,99 EUR

Therefore, try to add full prices to avoid these discrepancies
or...
display products without rounding in Euro cents
or...
wait another decade until Milbo solves this problem on his own

PS.
Do these 5 or 6 decimal places have any justification at all? I have never seen anyone in any store use such precision.
Currency rates are generally quoted with a maximum accuracy of 4 decimal places
#4
##### General Questions / Re: price calculation adds 1 c...
Last post by mblokdijk - August 08, 2024, 15:27:58 PM
how to fix this issue??
#5
##### General Questions / Re: Custom Fields list
Last post by hazael - August 08, 2024, 11:21:43 AM
There are many factors. They may be unpublished, have the wrong permissions, or have been set to the wrong place to display and are not visible where they should be.
#6
##### General Questions / Re: All of Sudden Getting Lots...
Last post by hazael - August 08, 2024, 10:46:59 AM
It is worth completely abandoning Google products such as reCaptcha or Analytics. These scripts significantly slow down page generation and additionally require consent to confirm cookies from companies outside the European Union

I don't use any reCaptcha script and I don't have any spam. Robots do not create accounts themselves - someone simply has the address to your form in their database and thus registers new accounts remotely.
You can register a new user directly in the cart, which will be activated only after selecting the products. If you don't want to do this, you can make the registration public under a custom-generated SEO link, which can be changed from time to time.

You can also find the IP addresses from which spam is sent in the server logs. Check the time of account registration and in the logs with the same time you will certainly find an IP that you can block. Alternatively, create a hidden field in the form to collect IP addresses, which you can easily block ;-)

They spam this forum in the same way using an application that has access to this place. The spammer has thousands of addresses collected for such forums and forms. All you need to do is change the links and the spam will disappear, because no one really wants to update it all on a regular basis - it's too much work
#7
##### Installation, Migration & Upgrade / Re: vmError: Tried to load con...
Last post by Slavomir - August 08, 2024, 10:38:13 AM
Hello

What can I do with this? Probably some old code. The store has been continuously upgraded over the years from version 1 to the current version of VM. I have a lot of customers and orders in the store. I rather don't want to install a new copy of the solution. Is it possible to remove the old remnants of the VM?

Best
Slavomir
#8
##### Virtuemart Development and bug reports / How to integrate Joomla Update...
Last post by NorrNext - August 08, 2024, 08:35:36 AM
Hello,
Using Joomla Update System to provide one-click updating of the extension is a nice way.
We have some products at VM marketplace and can we get details how to patch the extension to meet VM marketplace requirements for Joomla Updater?
#9
##### Virtuemart Development and bug reports / Re: Disabling custom fields ha...
Last post by Kuubs - August 08, 2024, 08:13:15 AM
Quote from: Milbo on August 07, 2024, 13:40:44 PMYou cannot solve it that way. You need to use the stored customfield ids and values which are in the order_items table in the column "product_attribute".
So we can say, if it is stored there, load it regardless the disabled state. New order items wont have the ids, because it is disabled.

The problem is is that when you disable a custom field, it gets deleted from the product_customfields table. Because the product_attribute saves the custom_id it cannot get the value, because it's deleted.

Quote from: Milbo on August 07, 2024, 15:42:48 PMBtw, I think the real solution is to clone the product and sell the cloned product, with the changed customfields

Isn't this a bit cumbersome? I still think having the option to actually disable the field (like you can with child products) is the best way to do this. The only thing is is that it should never remove it from the database, only when it's actually removed in the backed with the X icon. In essence the functionality is there, only it should also work on main products without any children, and not only on child products.

--

There are 2 problems right now:

- You cannot temporarily disable a field, for example when a custom field is temporary sold out (well, you can but this involves setting the disabled parameter in the product_customfields AND you cannot save the product in the GUI of Virtuemart, because then it doesn't load the disabled field and then it will be removed from the product AND database

- Disabled fields are not being loaded in the backend with orders. This should be a fairly easy fix, as you described. But this post is mainly for the first problem i described above.
#10
##### Virtuemart Development and bug reports / Re: Disabling custom fields ha...
Last post by Milbo - August 07, 2024, 15:42:48 PM
Btw, I think the real solution is to clone the product and sell the cloned product, with the changed customfields