News:

Looking for documentation? Take a look on our wiki

Main Menu

How can i show the real price on Product variants

Started by schmaly, October 31, 2015, 12:28:23 PM

Previous topic - Next topic

schmaly

i am just working on setting up my first VM store - and have managed some of the first barriers, so I believe :)

I have created Product variants, but the prices are entered (no problem) but shown as a "+/-" ) which is definitely horrible. Is there a solution that i have the real price next to the product variants?

I have attached a pic of the current output: so if the Product costs € 4,90, i don't want the variant price to show "+0,00", but to have the price of "4,90 €" shown there. And as of the second variant - i want to show "3,25 €" insteat of the "-1,65 €"

I appreciate your inputs.


PRO


jenkinhill

#2
You can use Generic Child Variants for this. Have a look at the T-Shirt classic blue product on the demo site, http://demo.virtuemart.net/wear
Log into the demo backend to see how it is done. Although in this case the child variant prices are all the same you can change the prices on the Child Products tab of the parent product. You set the base prices there if they are different from the parent price. See how it affects the front end display.  Then look at the settings for Generic Child Variant on the Custom Fields tab, under Generic Child Variant "Show price" is selected.

This product is also included in the VM sample products if you installed those with your VM.

http://docs.virtuemart.net/manual/general-concepts/186-derived-products-product-pattern-child-products.html
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Piccolopoeta

Hi, I have been working hard on this, but can't get a solution.
In the page you linked, there's a strange behaviour, that's just the same as my website.

When I try to edit the product size (weight) the price doesn't change. Not only that, if I add it to the cart, the child variant will not be considered, will only have the father price.

http://www.toelettaroma.it/index.php/shop2/cani/alimentazione/cuccioli-fino-a-4-5-mesi


But when I go to the detail page, it works just fine
http://www.toelettaroma.it/index.php/shop2/cani/alimentazione/cuccioli-fino-a-4-5-mesi/primi-mesi-bufalo-detail


(Also, I wrote 1Kg, but it keeps showing 1.000 but I think I should post this elsewhere)

Piccolopoeta

Now there, I was able to solve this by updating some other components on my website...so on my side it was resolved!
If anyone needs help just ask, thanks

GJC Web Design

Please explain the problem and what u did to solve.. this helps any one else with similar problems
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Piccolopoeta

I updated both the joomla version, the virtuemart component, but wasn't enough, I restored a backup via akeeba and after that updated all my components. I also made some changes in my css for styling (in the browse category view)
In the end what made the trick was restoring the backup via akeeba and updating the components