Developer forum

Forum » Development » TemplateTags Ecom:Product issues

TemplateTags Ecom:Product issues

Maarten Schreuder
Reply

Hello,

I'm currently building a solution for one of our customers. Im running into the following issue:

When displaying prices for a product (or any for that matter) I am seeing different results in the price that are present in the template tags. What I've found out so far is that the difference occurs when I'm logged into the DW backend.

 

Heres an example:

Both examples below are from the same product.

When printing @product.TemplateTags() whilst being logged in to the webshop as (any) user:

Ecom:Product.ActualPrice

System.String

€ 96.20

Ecom:Product.ActualPriceWithoutVAT

System.String

€ 96.20

Ecom:Product.ActualPriceWithoutVATWithTaxes

System.String

€ 96.20

Ecom:Product.ActualPriceWithVAT

System.String

€ 96.20

Ecom:Product.ActualPriceWithVATWithTaxes

System.String

€ 96.20

Ecom:Product.Price

System.String

€ 96.20

 

Whilst being logged into the webshop as (any) user AND being logged into the DW backend as administrator.

Ecom:Product.ActualPrice

System.String

€ 57.72

Ecom:Product.ActualPriceWithoutVAT

System.String

€ 57.72

Ecom:Product.ActualPriceWithoutVATWithTaxes

System.String

€ 57.72

Ecom:Product.ActualPriceWithVAT

System.String

€ 57.72

Ecom:Product.ActualPriceWithVATWithTaxes

System.String

€ 57.72

Ecom:Product.Price

System.String

€ 57.72

I've done some testing and found out that all users that log in to the webshop see the wrong prices (i.e. € 96.20). Any user that logs into the DW backend using the administrator account and his/her own login credentials for the webshop see the proper prices (i.e. € 57.72).

The prices are stored in the product -> prices section (see attachment)

I've tried this on core 8.8.1.16 and 8.9.0.2 and both produce the same result.

 

Thanks

Maarten.

 

 

prices.png

Replies

 
Nicolai Pedersen
Reply

Hi Maarten

You price matrix contains the prices for specific users. If you login to the frontend and the user is not member of that group/is that user, the user will fall back to default price found on the details tab of the product - probably € 96.20. Just checked the code and I am pretty sure it uses the frontend user to find the right price. We need a URL to the solution in order to check out your configuration. You are welcome to post it here or use the case system.

BR Nicolai

 
Maarten Schreuder
Reply

Hello Nicolai,

The url is parts.henkelman.com.

 

Maarten

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Maarten

There is a problem when trying to access the UserGroups in backend. Problem with user group P.W. MARKUS SPJ

Could you please open a support case regarding this.

Also please specify with what user you are testing prices

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 
Maarten Schreuder
Reply

Hello Kristian,

I've created a case and provided you with some more information. The user group problem should be solved. The prices problem remains.

Thank you!

Maarten

 

You must be logged in to post in the forum