VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: giriga on May 14, 2020, 12:13:03 PM

Title: different prices for a product
Post by: giriga on May 14, 2020, 12:13:03 PM
hi, can you set different prices for a product on a multilingual site?
I make an example:
01 Betty chair :
€ 99.00 Italian language
€ 85.00 French language
€ 102.00 English language
€ 110.00 German language
Title: Re: different prices for a product
Post by: pinochico on May 14, 2020, 16:25:38 PM
yes

1. Setup more then one currency in VM config - administrator/index.php?option=com_virtuemart&view=user&task=editshop
2. Create prices for every currency - index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id=XXXX
Title: Re: different prices for a product
Post by: giriga on May 14, 2020, 17:33:16 PM
hi, thanks for the reply.
I created the new currency, I find myself in difficulty in the next step
Title: Re: different prices for a product
Post by: pinochico on May 14, 2020, 17:43:27 PM
You create new currency? Euro-1?

Why?
Title: Re: different prices for a product
Post by: Studio 42 on May 14, 2020, 17:55:57 PM
You have to create a tool ( a plugin perhaps) for this because you cannot setup  currency per language i think
Title: Re: different prices for a product
Post by: giriga on May 14, 2020, 18:08:35 PM
I'm sorry, I don't understand, don't I have to create a new currency?
Title: Re: different prices for a product
Post by: pinochico on May 14, 2020, 19:02:59 PM
Patrick:

QuoteYou have to create a tool ( a plugin perhaps) for this because you cannot setup  currency per language i think

I think yes
- use OPC Rupostel and setup
- use plugin from EasySoftware/Minion - change curency by language

giriga:

Quotedon't I have to create a new currency?

Use existing, after install VM - all curency is defined, You have to add currency to shop config only
Title: Re: different prices for a product
Post by: jenkinhill on May 15, 2020, 11:29:44 AM
You can use the hidden config, pricesbyCurrency  -  http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
Title: Re: different prices for a product
Post by: giriga on May 15, 2020, 13:59:20 PM
Hi, what exactly do you need to do thanks  :-[
Title: Re: different prices for a product
Post by: pinochico on May 15, 2020, 22:34:14 PM
Kelvyn:

Thanks :)
Title: Re: different prices for a product
Post by: Studio 42 on May 15, 2020, 22:40:10 PM
add a line in administrator/components/com_virtuemart/virtuemart.cfg
pricesbyCurrency=1
After this, go to virtuemart>configuration and save it.
Title: Re: different prices for a product
Post by: giriga on May 16, 2020, 11:46:19 AM
Hi, thanks for the reply.
I have a problem how to save in configuration where should I go?
Title: Re: different prices for a product
Post by: jenkinhill on May 16, 2020, 12:17:10 PM
After editing  administrator/components/com_virtuemart/virtuemart.cfg  go to the page in your image - VM Configuration and hit the green "Save" button at the top....
Title: Re: different prices for a product
Post by: giriga on May 16, 2020, 12:40:29 PM
I have thanks, and what should I do next?
Title: Re: different prices for a product
Post by: jenkinhill on May 16, 2020, 13:18:22 PM
See here for setting price per currency:
http://forum.virtuemart.net/index.php?topic=144685.msg512630#msg512630
Title: Re: different prices for a product
Post by: giriga on May 16, 2020, 15:26:27 PM
I would need the price to change after selecting the language on the front end, but without changing currency.
Title: Re: different prices for a product
Post by: GJC Web Design on May 16, 2020, 18:15:09 PM
impossible as the prices are stored against the pid, shoppergroup or currency

look in the table #__virtuemart_product_prices

might be possible with fake multiple euro currencies  .. then change to that euro1 or euro2 etc  etc by language

But I find the whole concept of switching stuff by language daft...

I live in Belgium but speak 3 languages  .. so every time I change the language on your site the chair price changes?
Won't be buying there then...
why not just have a granular shipping scheme by COUNTRY ?  What has language got to do with countries now days?
Title: Re: different prices for a product
Post by: giriga on May 16, 2020, 18:36:43 PM
you are right, however our producers want this, look at this site (I attach images)
Title: Re: different prices for a product
Post by: giriga on May 16, 2020, 19:34:20 PM
How do I assign a currency to each language?
Title: Re: different prices for a product
Post by: pinochico on May 16, 2020, 19:46:03 PM
I answered for you before, do you read my post? :)
Title: Re: different prices for a product
Post by: GJC Web Design on May 16, 2020, 23:07:29 PM
Quoteyou are right, however our producers want this

It isn't a developers job to just blindly follow the clients instructions...  if the clients are reasonable they will take advice from other experienced parties..

Language doesn't equal country - and you risk annoying a lot of customers by doing so.

Are German speaking Austrians, Swiss, Luxembourger and Belgians meant to pay German prices?
Title: Re: different prices for a product
Post by: pinochico on May 16, 2020, 23:34:49 PM
If you install languages on the eshop:
de-AT
de-CH
de-LI
de-LU

and use the plugin to change the currency according to the language (https://www.minijoomla.org/extensions/virtuemart-extensions/language-currency-for-virtuemart), when changing the language the currency will also change automatically.
But as the GJC wrote, it's not the right way to go. (I doubt you will now create 6 new language versions of the eshop just because of the functionality you came up with).
Title: Re: different prices for a product
Post by: diri on May 17, 2020, 09:53:37 AM
Quote from: giriga on May 14, 2020, 12:13:03 PM
01 Betty chair :
€ 99.00 Italian language
€ 85.00 French language
€ 102.00 English language
€ 110.00 German language

Speak with your customer, explain a scenario to him:
Visitor of shop chooses French language but delivery address is in Austria / Germany / ... .

He is billed with € 85.00 instead of € 110.00 in case your customer wants price being enforced according frontend language.

Don't believe people are stupid and ... Google can be a beast. ;)

In case your customer sells products with something being different per language (i.e. a book in Italien language or French language or ...) this could be child products or variants.

If your customer sells downloadable products he is in trouble nevertheless at first moment because of VAT. He should use an additional service to be save.

cu, diri