Looking for old forum posts and information? View the old forum archive here ยป
Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...

AspDotNetStorefront
DotFeed

GetCustomerLevelPrice function not working as expected...

We are trying to implement the User Level Price in our website.

I created one user level (level 1) and set it up to myself (superuser) so I can test.

Then I picked one product from our inventory which price is 159.99, went into its variant, click 'Define Extended Prices' and set and set the price for the new level as 171.00.

Finally I used the following function in my code that supposedly should return me the differentiated price:

<xsl:value-of select="aspdnsf:GetCustomerLevelPrice(VariantID, Price, Points)" disable-output-escaping="yes"/>

OK, after to refresh the result page for the search of the respective product it is returning me this:

Regular Price: $160.00
Price: $159.99

Problems:

1) It is not returning me the Extended Price set by user level, but what I think is the RetailPrice instead.

2) I would like that it returned me only ONE price and not two.

3) I don't want the wording "Regular price" or whatever, I just want the price itself and that's all.

What am I doing wrong?

asked Oct 13, 2016 in MultiStore by Yan Kleber (960 points)

1 Answer

0 votes

Hello Yan, the cart should be returning the Extended Pricing as part of the call:

<xsl:value-of select="aspdnsf:GetVariantPrice(VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID)" disable-output-escaping="yes" />

Notice it's on the input there...

You could write conditional logic testing the ExtendedPrice and then output pricing accordingly though!

 
Thank you,
Jan
 
Compunix, LLC (Phoenix, AZ)
AspDotNetStorefront Development Partner and Reseller since 2005
------------------------------------------------------------------------------------------------------
 AspDotNetStorefront add-ons and plugins : http://www.ecommercecartmods.com
  * Searching Filtering, Single Signons, Reviews Ratings, Reports, Integrations
 Complete Automotive Solution : http://www.autopartsshoppingcart.com
  * Auto + Aftermarket Parts solution
 Unlimited Custom Development : http://www.compunix.us/t-unlimited-custom-development.aspx
  * Unlimited with Quick turn-arounds!
------------------------------------------------------------------------------------------------------

 

answered Oct 14, 2016 by jsimacek (6,525 points)
...