Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 shopUpdateCartPrices error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

manilow
VP-CART New User

France
134 Posts

Posted - July 11 2012 :  11:38:49  Show Profile  Visit manilow's Homepage  Reply with Quote
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

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - July 20 2012 :  05:13:33  Show Profile  Reply with Quote
erik, looks like u are genious wow.. thanks for the share, i will look at some of it.

Diego.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00