VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Freddo on July 26, 2013, 13:58:48 PM

Title: Set Shopper Group based on selected language
Post by: Freddo on July 26, 2013, 13:58:48 PM
I'm trying to make a plugin to set the default shopper group based on the language selection. Please if someone can help me.
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 26, 2013, 14:17:52 PM
Did you try to check custom VM extensions in 3rd party VM forum section? Those ones that assign groups in VM.
Title: Re: Set Shopper Group based on selected language
Post by: Freddo on July 26, 2013, 15:52:57 PM
yes... i cant find anything thats based on language.
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 26, 2013, 16:12:30 PM
what did you found which were based on group management?
Title: Re: Set Shopper Group based on selected language
Post by: Freddo on July 26, 2013, 16:18:52 PM
Two plugins in the virtuemart 3d party are doing change to the shopper group. the one is in the checkout (the vat for european) and the other is based on previous orders.
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 26, 2013, 16:25:59 PM
Interesting, could you post here links to both of them.
Title: Re: Set Shopper Group based on selected language
Post by: Freddo on July 26, 2013, 17:22:25 PM
http://extensions.virtuemart.net/promotions/shopper-group-changer-detail
http://extensions.virtuemart.net/vm-orders/eu-vat-checker-detail
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 26, 2013, 18:14:17 PM
I saw also BIT Change Shopper Group for Virtuemart and VirtueMart Language-Currency Switcher.
Having both it's possible to make what you want. It's the most fast way I think.

But it's still possible to dig commands in VM backend that could change shopper group and to research behavior of Language Switcher Joomla module and maybe VM Currency Switcher module.

What do you want? Shopper changes language and ... ?

Maybe it's possible to create just one custom user field in customer registration form.
Ofc this field will show only one language dependent value in the user profile.

What's next?
What do you want to do with the customer marked as Englishman (for example)?
Title: Re: Set Shopper Group based on selected language
Post by: Freddo on July 29, 2013, 13:38:21 PM
I dig the most files in administrator even in frontend. The thing I'm trying to do is:
1) I have set for the product 2 prices in admin (product->product pricing) the first has for ex. Shopper Group: "Inside Country" and is 20 Euro and the second "Outside Country" with 40 Euro.
2) In frontend I want to show prices for "Inside Country" shopper group if language is for ex. Greek or prices for "Outside Country" if language is for ex. English.
all those without making the customer to register or login. The purpose to do this is because our products have different prices over different countries because they have different expenses.

thank you for your help.
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 29, 2013, 14:29:28 PM
What would happened if Englishman knows Greek language and vice verse?

It's not possible to use different shipment fees for Inside-Outside?
Title: Re: Set Shopper Group based on selected language
Post by: Freddo on July 29, 2013, 15:31:48 PM
I dont want different shipment fees. I calculate them inside the price... and i will have a selection in front page that will say for greece click here and for outside click here...
Title: Re: Set Shopper Group based on selected language
Post by: Maxim Pishnyak on July 29, 2013, 16:54:32 PM
You could contact authors of mentioned by me custom extensions or you could post your ad on Virtuemart Jobs. I'm not sure what offer could be cheaper for you.
Quote from: Maxim Pishnyak on July 26, 2013, 18:14:17 PM
I saw also BIT Change Shopper Group for Virtuemart and VirtueMart Language-Currency Switcher.
Having both it's possible to make what you want. It's the most fast way I think.

But it's still possible to dig commands in VM backend that could change shopper group and to research behavior of Language Switcher Joomla module and maybe VM Currency Switcher module.
There are plenty threads about developing custom plugins for VM. So it's still doable for experienced programmer to make extension with such functionality.