Developer forum

Forum » Development » A challenge with prices

A challenge with prices

Martin Nielsen
Reply

Hi DW,

I'm building a shop with this setup:

4 Currencies: DKK, SEK, EUR, GBP

3 Languages: DK, SE, COM - More added later

Around 300 products with size as variant.

 

I'd like to use the standard Prices module, to render my prices, but i'm seeing a strange issue that i cannot seem to solve:

I've added prices to all my variants like this:

And when i go to the frontend and render my variants, they have the correct price.

My problem now is that the main product has the wrong price, it still reads it's price from the Prices field and not the Price matrix.

 

If i add a price for the main product like this:

None of my variant prices are used.

I've tried having a Primary variant set on the product, but this makes no difference to the logic.

 

What am i missing?

 

// Martin


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

I think we would have to look into it. I'll have the service desk contact you and get hold of a URL so we can have a look. But I think it is intended behavior - except, when setting one of the variant as default, that should also be the price.

Why do you set the price for each variant? It seems like size 34 and 36 cost the same?

BR Nicolai

 
Martin Nielsen
Reply

Hi Nicolai,

Seeing as Color might be introduces later, and that a green t-shirt might be cheaper than an orange one, it seemed like the right thing to do. - And also i wanted to get some hands-on with the new Price matrix.

I'm getting the intended behaviour if i add a price that affects all variants, but then i wont have the ability to override prices for a specific variant.

I'v tried playing with the Priority field, which is in the database, but it doesn't seem to do anything yet :-)

Atm i only have the prices setup on my local machine, but i'll implement it on an solution and create a case.

// Martin

 
Nicolai Høeg Pedersen
Reply

Hi Martin

The price with most settings matched should win over other prices.

So if you set a prices for "All variants" and that is used i.e. in the product list, going to a product and choosing a variant that has antoher price, should change the price. If not, there is something wrong.

BR Nicolai

 
Kristian Kirkholt
Reply

Hi Martin

We do not have a clear picture what goes on here. We did try to setup two different testsites on version 8.4 and 8.3.1.14 but the result was different from your test above. Could you make a support-case about this and state the URL to the Website.

Kind Regards

Dynamicweb Support
Kristian Kirkholt

 
Martin Nielsen
Reply

Hi Nikolai and Kristian,

When setting a test scanario for the case, i found out that my prices are correct int he cart, so i think that the logic Nikolai described is true.

The most specific price in the matrix is use for the product.

// Martin

 

 

You must be logged in to post in the forum