Lockedwhy does Quantity will update from the refresh button (browser)

Author
VigTech
CandyPress Customers
  • Total Posts : 48
  • Reward points : 4
  • Joined:
  • Status: offline

why does Quantity will update from the refresh button (browser)

1: Product is added onto cart.asp with [1] Quantity 
 
2: I've decided to click update Quantity [2] instance of 1.
 
3:The cart.asp page is loading and now it's showing as [2] Quantity
 
4: I'm still on same page as cart.asp, now i want to click refresh button from the browser  - The Quantity become [3] again i click refresh from browser - the Quantity become [4] ...
 
 
my thought - this shouldn't happened but how can i prevent this - I'm currently using CP v 6.5.02
 
 
 
#1

1 Reply Related Threads

    VigTech
    CandyPress Customers
    • Total Posts : 48
    • Reward points : 4
    • Joined:
    • Status: offline
    Re: why does Quantity will update from the refresh button (browser) (permalink)
    i just found out that AddItem()
     
    did not clear the following:
     
    action=additem
    idProduct=45
    curPage=1
    sortField=sku
    idCategory=1
    certprice=
    quantity=1
    add=Buy
     
    Ive found a temporary solution to the above issue - basically this code will allow you to add item first before it will clear out all the hidden forms string. 
     
    Cart.ASP 
     
    Look for between AddItem()  to End Sub
     
    just add this line just above End Sub
     
    response.redirect urlNonSSL&"cart.asp"
     
     
    For CP - You should've test the codes before release the zip file, if you going to update the code - make sure you add credit to my name as VigTech :)
     
     
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.2