logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperqb  
#1 Posted : Friday, June 24, 2022 9:04:54 AM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
The MSRP does not get updated when selecting options in the ProductPrice action of the ProductsController.

Test Case:

Product with list Price of $7.99 and MSRP of $9.49.

Options: Red, Green, Blue, and Kit of All 3

Only the "Kit of All 3" has modifiers for Price ($15.98) and MSRP ($18.98).

The price display for "Kit of All 3" is correct at $23.97 ($7.99+$15.98), but the MSRP stays at $9.49 instead of $28.47 ($9.49+$18.98). Aside from being incorrect, it is very noticeable to customers because the price is higher than MSRP.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Friday, June 24, 2022 1:06:46 PM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 110

Thanks: 19 times
Was thanked: 18 time(s) in 18 post(s)
I have confirmed the bug and registered it to be fixed in a future release.

The MSRP is calculated correctly but the display isn't correct. In the ProductPrice control, the MSRP needs to be used from the product calculator instead of the product MSRP. To fix this, you can make this update in ProductPrice action inside the Website/Controllers/ProductController.cs file.

Locate the following line of code:

Code:
string AmountSaved = string.Empty;


and update with

Code:
string AmountSaved = string.Empty;
decimal calculatedMSRP = 0;



Similarly, locate the following line of code

Code:
else
{
    price = string.Format(parameters.PriceFormat, priceWithVAT.LSCurrencyFormat("ulc"));
}


and replace with

Code:
else
{
    price = string.Format(parameters.PriceFormat, priceWithVAT.LSCurrencyFormat("ulc"));
}

calculatedMSRP = pcalc.MSRP;



Finally, locate the following line of code

Code:
MSRP = product.MSRP


and update with

Code:

MSRP = calculatedMSRP 

Edited by user Friday, June 24, 2022 1:07:44 PM(UTC)  | Reason: Not specified

thanks 1 user thanked nadeem for this useful post.
sweeperqb on 6/24/2022(UTC)
sweeperqb  
#3 Posted : Friday, June 24, 2022 3:34:20 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Thank you for the quick response. Confirmed that this fixed the issue.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.