News:

Support the VirtueMart project and become a member

Main Menu

Is there any chance to have 2 prices on product details?

Started by restodo, April 08, 2014, 05:02:09 AM

Previous topic - Next topic

restodo

Hi,

I'm on Virtuemart 2.6.0 and I want to know If there is any chance to have 2 prices on product details.
For example one price Cash On Delivery (with 5% discount) and other price List.

In VM 1.1.9 I've managed to do this modifying some files.

Here is an example of my VM 1.1.9 site.

http://restodo.com.ar/Camaras-GoPro/Camara-GoPro-Hero3-Black-Edition.html

In this example "Contado" is Cash On Delivey and "Tarjeta de Crédito" is Price List.
The only price I enter into VM Configuration is Price List, Cash On Delivery is calculated automaticaly.





StefanSTS

#1
You could probably do that with the override price.

Or you could add another line in the php file, that replicates the normal price and add some fixed shipping cost to the price.

Possible in many ways, I guess.

Stefan

PS. Try the fullinstaller of VM 2.6 with Joomla 2.5.19 on a local server and try an override, fastest way to find out.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

restodo

Quote from: StefanSTS on April 08, 2014, 11:06:26 AM
You could probably do that with the override price.

Or you could add another line in the php file, that replicates the normal price and add some fixed shipping cost to the price.

Possible in many ways, I guess.

Stefan

PS. Try the fullinstaller of VM 2.6 with Joomla 2.5.19 on a local server and try an override, fastest way to find out.

Thanks for your answer but If I use override, when a customer buy this product will be added with discount.

I want to have a product with List price on it and shows a discounted price (cash on delivery payment) and List price but when I add to basket depending on Payment method, the discount that applies.

For example:

tablet asus t100: list price USD 400, cash on delivery price USD 380 (5% discount)

If I add this product to basket, it shows USD 400 and when I'm checking out if I select Cash On Delivery Payment it will make me 5% discount.

StefanSTS

That's what I meant with the second solution, just repeat the same line in the php source, that is writing the normal price.
For your new line, you don't print (salesprice), you print (salesprice * 0,95) and it will be just for display, nothing will be calculated with that value.

If the customer puts it into the cart, you have the normal price, and for shipping option COD you deduct the 5% with a shipping rule.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

in vm3, you can display all prices.

in vm2 you can do this with the quantity plugin.

in vm2 you can also adjust your shipment plugin, to show additional prices. There is a trigger for that.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

restodo

Quote from: Milbo on April 08, 2014, 20:17:33 PM
in vm3, you can display all prices.

in vm2 you can do this with the quantity plugin.

in vm2 you can also adjust your shipment plugin, to show additional prices. There is a trigger for that.

Thanks for your answer but with this plugin I can config special discounts to Price list. The problem doing this is when I buy a product, in the basket you see Discounted price and I want to see Price List.

Discounted price only at Product Details page.

And the shipping option isn't useful at all because the Discounted price won't be seen at Product Details page.

I think the only way is to edit the original price php file.

restodo

Quote from: StefanSTS on April 08, 2014, 11:06:26 AM
You could probably do that with the override price.

Or you could add another line in the php file, that replicates the normal price and add some fixed shipping cost to the price.

Possible in many ways, I guess.

Stefan

PS. Try the fullinstaller of VM 2.6 with Joomla 2.5.19 on a local server and try an override, fastest way to find out.

Thanks for your idea, I've solved this problem editing default_showprices.php of my template.


Greetings from Argentina.