manilow
VP-CART New User
France
134 Posts |
Posted - July 11 2012 : 11:38:49
|
When using the "quantity" type product feature, an error message appears in the shopupdatecartprices.asp file.
The getfprice subroutine uses the "arrCart" array previously declared in the main UpdateCartPrices routine. Being declared localy, its values are not available within the getfprice subroutine. I corrected this issue in the following way:
Change in shopupdatecartprices.asp and shopaddtocart.asp :
From (approx. line 105 and line 508 respectively) :
getfprice(arrCart(cProductFeatures,i))
to:
getfprice(arrCart(cProductFeatures,i),arrCart,i)
Then modify the corresponding function in shopupdatecartprices.asp :
From:
function getfprice (feaid)
to:
function getfprice (feaid,arrCart,i)
This problem being solved, I observed in the same time that the product feature prices in the cart description are not updated when prices have been modified. The calculated total price, however, is correct.
Thanks in advance for any opinion.
Erik www.AquaThermia.com |
Edited by - manilow on July 11 2012 11:44:39 |
|