VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Tamakom on September 03, 2012, 20:01:40 PM

Title: [ SOLVED ] Price per Unit (KG)
Post by: Tamakom on September 03, 2012, 20:01:40 PM
Friends of Virtuemart 2.0.10
Good afternoon

Why is this way to show the Price per Unit in the browswer?. Is added (KG):. -

Even searched for "Language Manager: Edit Override" and no results. The (KG) seems to be added from elsewhere administrator.

This is shown well in the browswer, when displaying the product price.

Price per Unit (KG):
Sales price: $194.00
Sales price without tax: $194.00

Thank advance
Title: Re: Price per Unit (KG)
Post by: jjk on September 03, 2012, 23:00:41 PM
Looks to me like you changed the following key/string in the file ...\language\en-GB\en-GB.com_virtuemart.ini (approximately line 70) from
COM_VIRTUEMART_CART_PRICE="Price: "
to
COM_VIRTUEMART_CART_PRICE="Price per Unit (KG):"
or made an override for this line.

Also check if you have enabled "Standarized price" in VM2 'Configuration' - 'Pricing' tab.
Title: Re: Price per Unit (KG)
Post by: Tamakom on September 03, 2012, 23:20:13 PM
Quote from: jjk on September 03, 2012, 23:00:41 PM
Looks to me like you changed the following key/string in the file ...\language\en-GB\en-GB.com_virtuemart.ini (approximately line 70) from
COM_VIRTUEMART_CART_PRICE="Price: "
to
COM_VIRTUEMART_CART_PRICE="Price per Unit (KG):"
or made an override for this line.

Also check if you have enabled "Standarized price" in VM2 'Configuration' - 'Pricing' tab.
jjk
Thank you for your help.
I guess you did not understand my question.
I want to remove the (KG) that appears in the first line of the price

Price per Unit (KG):
Price per Unit:

Regards
Title: Re: Price per Unit (KG)
Post by: jjk on September 04, 2012, 09:01:12 AM
If you didn't change the line in the frontend language file I mentioned above yourself - you could have exchanged "Price" with "Price per Unit (KG)" in line 70 and you also didn't customize the file \components\com_virtuemart\views\productdetails\tmpl\default_showprices.php, then maybe in your price configuration it is generated by line 317 in the frontend language file en-GB.com_virtuemart.ini, which reads:
Line 317: COM_VIRTUEMART_PRODUCT_UNITPRICE="Price / %s: "
In this case the %s would generate the kg (However, it would show kg instead of (kg), so I'm pretty shure you changed something yourself)

BTW - you can also change the (default) kg to pounds in the VM2 configuration when using price per unit.
Title: Re: Price per Unit (KG)
Post by: Tamakom on September 15, 2012, 13:32:49 PM
Quote from: jjk on September 04, 2012, 09:01:12 AM
If you didn't change the line in the frontend language file I mentioned above yourself - you could have exchanged "Price" with "Price per Unit (KG)" in line 70 and you also didn't customize the file \components\com_virtuemart\views\productdetails\tmpl\default_showprices.php, then maybe in your price configuration it is generated by line 317 in the frontend language file en-GB.com_virtuemart.ini, which reads:
Line 317: COM_VIRTUEMART_PRODUCT_UNITPRICE="Price / %s: "
In this case the %s would generate the kg (However, it would show kg instead of (kg), so I'm pretty shure you changed something yourself)

BTW - you can also change the (default) kg to pounds in the VM2 configuration when using price per unit.

jjk
Good morning
SOLVED...!

Thank you

[attachment cleanup by admin]
Title: Re: Price per Unit (KG)
Post by: dardar on October 08, 2012, 02:20:27 AM
thanks tamakom for the image of the solution...my mind shuts down when developers start talking lines in code...ugh...picture makes all the difference.  I've applied and it works like one would expect.  thanks again~
Title: Re: Price per Unit (KG)
Post by: lindapowers on December 24, 2012, 16:20:05 PM
Hello

Im using version 2.0.16 and joomla 2.58, I can't find where to set the parameter to show prices per kg.
Title: Re: Price per Unit (KG)
Post by: Flasher on January 18, 2013, 03:07:19 AM
I'm running VM 2.0.18a and i don't see that option that you have on the screenshot Tamakom
Title: Re: Price per Unit (KG)
Post by: PT Lyon on April 08, 2013, 05:27:21 AM
Same here!

They changed it!

How can we display price per unit?
Title: Re: Price per Unit (KG)
Post by: tommyworld on April 10, 2013, 08:14:00 AM
Same here, I am using 2.0.20b and they don't have such option under price configuration.  How can we change it?
Title: Re: Price per Unit (KG)
Post by: lindapowers on April 10, 2013, 13:26:55 PM
The problem here is that price per kg can't include the shipping costs as that is calculated at checkout per destiny so I don't really see how the system could show that correctly.

If you base price is 10 € and your shipping costs 20 € that makes 30 €, but price per unit will be calculated from 10 which makes no sense.
Title: Re: Price per Unit (KG)
Post by: Tamakom on April 10, 2013, 15:38:25 PM
Lindapower
Anéxale un módulo de envío

http://extensions.virtuemart.net/shipments
Title: Re: Price per Unit (KG)
Post by: lindapowers on April 11, 2013, 01:41:12 AM
????

Sorry don't understand what you mean. We already have a shipping plugin but price won't be calculated together with those shipping costs.
-------------
Disculpa no entiendo lo que me quieres decir. El precio por kg no se calcula sobre el precio base + porte si no sobre el precio base del producto.

Regards
Title: Re: Price per Unit (KG)
Post by: lindapowers on April 11, 2013, 01:50:49 AM
Max just told us how to show this.

Just go to product dimensions tab for each of your products. Work with the 3 fields to understand the logic and pls tell me how the calculations work there ;D

(http://s21.postimg.org/j9fru013b/priceperkgvm.gif)

(http://s21.postimg.org/9u4huj8g7/priceperkgvm2.gif)
Title: Re: Price per Unit (KG)
Post by: Tamakom on April 11, 2013, 14:15:29 PM
Lindapower
Ciertamente no se suma el peso neto + embalaje para un total de peso bruto. Veo que toma el embalaje. y si tu pones 25 en embalaje te reporta ese peso como total?... supongo que sí.
Hacer el código de suma, lamentablemente no lo sé hacer, pero mientras, utiliza el embalaje como peso total. Digo... o no?
Title: Re: Price per Unit (KG)
Post by: tommyworld on April 11, 2013, 17:09:45 PM
Anyone figured out how not to show the unit "kg" in the price yet?  Please respond in English if possible, thank you.
Title: Re: Price per Unit (KG)
Post by: lindapowers on April 11, 2013, 20:14:45 PM
Hola Tamakom, eso pensaba yo pero puedes hacer pruebas cambiando el embalaje a 1.5 o 3 y verás como hace algún tipo de cálculo que aún no comprendo exactamente y devuelve resultados distintos.
Si cambias valores en el embalaje y unidades lo puedes ver tu mismo.
---------------------
Hi if you change the values for "embalaje" (sorry don't know the field name in english) to lets say 1.5 or 3 and the unit fields the result is actuallly a calculation which I don't understand exactly.

The imagine I uploaded seems to show incorrectly that the number displayed is the one from that field but that is not correct, theres a calculation somewhere with those 3 fields which im still trying to understand.

When I have time I will test this carefully, but if someone knows how it works exactly please share it with us.

Regards
Title: Re: Price per Unit (KG)
Post by: Tamakom on April 11, 2013, 20:48:36 PM
Lindapower
Veo una constante de 5.20 Euros por cada 10 kilos.
A mi me resultó así:
1 = 5.20
2 = 10.40
3 = 15,60.....etc....etc

No veo cálculos con resultados locos

_______________________________________________________________________
I see a constant of 5.20 Euros per 10 kilos.
To me the result was as follows:
1 = 5.20
2 = 10.40
3 = 15.60 ..... etc etc ....

I do not see crazy results calculations
Title: Re: Price per Unit (KG)
Post by: Tamakom on April 12, 2013, 00:01:18 AM
tommyworld:

What's your version of virtuemart?
In previous versions it was easy to remove the "KG"

Virtuemart => Configuration => Pricing => "Price configuration" => "Show the price label for Packaging", off, Blank, empty.

Virtuemart version 2.0.20b, no "Show the price label for Packaging"

Regards
Title: Re: Price per Unit (KG)
Post by: tommyworld on April 13, 2013, 05:13:05 AM
Tamakom:

I have the latest version 2.0.20b and I don't see that option check-box available.  Is it true that I can rerun the database to get rid of it?  Suggestions from anyone in removing the annoying "kg" from the price unit?

Please help!!

Thank you.
Title: Re: Price per Unit (KG)
Post by: aryans14 on May 09, 2013, 11:28:34 AM
Same problem with me. From where the hell this KG is coming from.