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

prices from custom field

Started by mihailtufan, August 16, 2016, 07:31:45 AM

Previous topic - Next topic

mihailtufan

Hello,

I`m new on that forum, so sorry if I have not posted in the correct category.

I really searched on the Internet these days but i found nothing.

My problem is this:
- this is the link: http://dev.promovaresiteuri.ro/index.php/en/m-collections/agata-detail
- joomla version: 3.6.2 , virtuemart version: 3.0.16
- in the link above is a demo, the base price for the product is 99 lei (for a meter of material). When i add in the custom field value 1 it shows 198 lei (the base price + the price for 1 meter). Can i do something that on the final price, after i add the value in custom field, the price to be displayed without de base price?
So if i add 1 on custom field to be 99 lei, if i add 2 to be 198 lei...and so on
It is possible?

Thanks a lot

Jörgen

Set the base price to 0.00001 ?

regards

Jörgen  Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

mihailtufan

Thanks for the fast reply. The problem is that the client want to see the default price for 1 meter, if i will set the base price 0.00001 the price in store will be 0,00 lei.

It is someone who knows it is possible to change how the price is calculated? To put at base price, value 0?

Thanks



mihailtufan

Hello,

Ok i managed to resolve the problem, i found a solution. If someone has the same problem i modified in numberinput.php
$calcPrice = $value * $custom_price ;
with
$calcPrice = $value * $custom_price - $custom_price ;

Now i have one more question, it is possible if the client enters , or . the function do the same thing?

Now for 2.5 for example it is ok, if it is 2,5 is not working.

Thanks a lot