VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: TechnoMage on May 16, 2012, 22:54:45 PM

Title: Calculations bug // lack of functionality?
Post by: TechnoMage on May 16, 2012, 22:54:45 PM
Hi,

I have assigned 2 main shopper groups ('wholesaler' and 'buyer'). The following basic problem occurs when I am trying to set for intance a 'profit margin' calculation for the 'buyer' shopper group exclusively.

The following options are available as part of the calculations create/edit page:


Am I doing something wrong or is it rather resulting from the lack of VM 2 functionality?

Regards,
TM

(VM 2.0.6///Joomle 1.5.25)
Title: Re: Calculations bug // lack of functionality?
Post by: John2400 on May 16, 2012, 23:07:42 PM
Hi TechnoMage0,

I see that you are trying to use the price settings as your main area of division.

* I suppose that most would use the - variation of prices, by cloning a product and then setting a different price for each shopper group or they would be using the parent child set up as this would also allow you to track stock as well.
* others are using the tax area and giving groups different tax margains or overall discounts in tax area.
*others are using the groups in shipping and postage.
* others are using a coupon discount for wholesalers and giving them a code to type in when they buy.
* there is a new area in regards to varying prices in the new 2.0.7 - if you would like to play in there.
* on one single product - trying to set different prices ? 

just wondering if you could try the others and see how they go-
Title: Re: Calculations bug // lack of functionality?
Post by: Milbo on May 16, 2012, 23:22:06 PM
I would add anonymous and buyers to the margin and thats it.
Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 12:25:27 PM
Quote from: John2400 on May 16, 2012, 23:07:42 PM
Hi TechnoMage0,

I see that you are trying to use the price settings as your main area of division.

* I suppose that most would use the - variation of prices, by cloning a product and then setting a different price for each shopper group or they would be using the parent child set up as this would also allow you to track stock as well.
* others are using the tax area and giving groups different tax margains or overall discounts in tax area.
*others are using the groups in shipping and postage.
* others are using a coupon discount for wholesalers and giving them a code to type in when they buy.
* there is a new area in regards to varying prices in the new 2.0.7 - if you would like to play in there.
* on one single product - trying to set different prices ? 

just wondering if you could try the others and see how they go-

Hi,

thanks for the tips.

* I suppose that most would use the - variation of prices, by cloning a product and then setting a different price for each shopper group or they would be using the parent child set up as this would also allow you to track stock as well.


* others are using the tax area and giving groups different tax margains or overall discounts in tax area.


* others are using the groups in shipping and postage.


* there is a new area in regards to varying prices in the new 2.0.7 - if you would like to play in there.


* on one single product - trying to set different prices ? 

Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 12:27:19 PM
Quote from: Milbo on May 16, 2012, 23:22:06 PM
I would add anonymous and buyers to the margin and thats it.

How do you do that? I don't see any anonymus shoppergroup. If I create one that is only valid for users who are logged in but not for the ones who are visinting the shop for the first time.
Title: Re: Calculations bug // lack of functionality?
Post by: Milbo on June 11, 2012, 13:28:51 PM
Imho since version 2.0.4 there exists an anoymous shoppergroup. If not, use the table updater, or go in the mysql and change the columsn default to 2 for your anonymous group.
Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 14:09:26 PM
Quote from: Milbo on June 11, 2012, 13:28:51 PM
Imho since version 2.0.4 there exists an anoymous shoppergroup. If not, use the table updater, or go in the mysql and change the columsn default to 2 for your anonymous group.

I have that assigned to the 'non-registered' shoppergroup but the problem is that even if both shoppergroups is assigned ('buyer' and 'non-registered') to a calculation, the system only applies that given rule for the 'buyer' shoppergroup. If I am not logged in the price is 285 which is 225 * 1.27. If I am logged in as a 'buyer' the price is 225 * 1.417320 * 1.27 = 405. Where the second rule is the Tax and the first one is a Marge. This means the first rule is not applied in case of the anonymus group.

A rule is only applied for the anonymus group if I give the country without any shoppergroups. If I give both of them or I only give the shoppergroups in those cases I get the above said results.

I hope you understand what I mean :)

Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 17:30:14 PM
Anyway my workaround solution does not even work in case of single product discounts since only one discount type per product is possible. In case if I choose multiple discount types after saving or applying only one is beeing attached to the given product :(
Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 17:55:28 PM
I found the solution the problem was that the id of my anonymus group was 41 not 1. I guess during migration this anonymus group was not created.

Could you tell me how can I create non-global discount types? So I want to assign 20% discounts to certain products. Is that only possible by the override prices?
Title: Re: Calculations bug // lack of functionality?
Post by: TechnoMage on June 11, 2012, 23:07:10 PM
Ok I have solved everything thank you for your help :)