VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

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

manilow
VP-ASP New User

France
106 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-ASP Expert

Argentina
723 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