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.
|
|
|
|
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 and update with Edited by user Friday, June 24, 2022 1:07:44 PM(UTC)
| Reason: Not specified
|
1 user thanked nadeem for this useful post.
|
|
|
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.
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close