a***@sogeti.se
2006-11-29 08:13:33 UTC
I'm on WCS 5.6 and I'm currently having a problem. The site is set up to restrict prices based on the membergroup (market) that the shopper is a member of. This has been working fine, until recently when a new marketgroup was added. This marketgroup did not get the right prices (they got prices from another market).
The method used to retreive prices is getCalculatedContractPrice(). It seems as if this method always tries to get the lowest price from all applicable price lists. And that it has been pure coincidence that not all markets have got wrong prices (most markets have prices that, when compared using the CURCONVERT table, are lower than some "default" price list that the new market gets its prices from).
Is there someway to restrict pricing so that one market only gets its prices from one pricelist, the one attached to it? Is there a concept of a default pricelist for a store? Because it seems as if those markets that get wrong prices always get them from the same pricelist, i.e. the prices are compared to this pricelist (perhaps a store default price list?). I've noticed that I can get the correct prices for the market either by changing the CURCONVERT table or changing the precedence of the pricelist for the new market. But I don't think that's the right way to go (clearly, changing the CURCONVERT is not).
When I turn on tracing on WC_ORDER & WC_CONTRACT I can see that prices are compared in order to get the lowest price from several pricelists, which is what I don't want. I want the prices to be taken from one pricelist attached to the market in question...
Thanks in advance!
The method used to retreive prices is getCalculatedContractPrice(). It seems as if this method always tries to get the lowest price from all applicable price lists. And that it has been pure coincidence that not all markets have got wrong prices (most markets have prices that, when compared using the CURCONVERT table, are lower than some "default" price list that the new market gets its prices from).
Is there someway to restrict pricing so that one market only gets its prices from one pricelist, the one attached to it? Is there a concept of a default pricelist for a store? Because it seems as if those markets that get wrong prices always get them from the same pricelist, i.e. the prices are compared to this pricelist (perhaps a store default price list?). I've noticed that I can get the correct prices for the market either by changing the CURCONVERT table or changing the precedence of the pricelist for the new market. But I don't think that's the right way to go (clearly, changing the CURCONVERT is not).
When I turn on tracing on WC_ORDER & WC_CONTRACT I can see that prices are compared in order to get the lowest price from several pricelists, which is what I don't want. I want the prices to be taken from one pricelist attached to the market in question...
Thanks in advance!