Aw: Proplem With REfresh To Update Cart (0 Leser)
Beliebt: 0
|
|
|
THEMA: Aw: Proplem With REfresh To Update Cart
|
|
|
|
Proplem With REfresh To Update Cart 2 Monats ago
|
Karma: 0  
|
|
document.updateCart.submit();
here i have ap roplem in java _script_ code in the cart.tpl.php
when i change munber of product in my shoping cart and update i have eroor java _script_
can you help me please ?
|
|
|
|
|
|
|
Kein öffentlicher Schreibzugriff erlaubt, bitte erst registrieren! |
|
|
|
Aw: Proplem With REfresh To Update Cart 1 Monat, 3 Woches ago
|
Karma: 0  
|
|
I don't know what kind of error you have, but maybe this is helpful for you (but this was not a _java_script__ error): With the last updates I entcountered, that update of number of products was not working anymore inside the cart. Reason was, that the numbers of products where read back with an array "quantity" inside the jshopping.php file (function showCart) and this array was casted with intval(...). This caused not to be able to read back the new number of products. I removed the cast and update is working fine now. Maybe this is the reason for your failure.
Regards...
|
|
|
|
|
|
|
|
|
|
Kein öffentlicher Schreibzugriff erlaubt, bitte erst registrieren! |
Molzen (Benutzer)
Fresh Boarder
Beiträge: 2
|
|
Aw: Proplem With REfresh To Update Cart 7 Stundes, 47 Minutes ago
|
Karma: 0  
|
|
Könnten Sie für einen nicht PHP-Kenner erklären, was ein "cast" ist und wie man den entfernt?
Vielen Dank,
H. Molzen
|
|
|
|
|
|
|
Kein öffentlicher Schreibzugriff erlaubt, bitte erst registrieren! |
|
|
|
Aw: Proplem With REfresh To Update Cart 4 Stundes, 40 Minutes ago
|
Karma: 0  
|
|
Hallo Herr Molzen,
cast steht für eine Typumwandlung. Sie können z.B. einen String (Zeichenkette) haben, welche nur Zahlen enthält und diese mit Hilfe eines Cast in eine Zahlenvariable mit welcher Sie rechnen können umwandeln. Dies wurde in der beschriebenen Funktion falsch angewendet, wodurch ein Cast-Fehler entstanden ist. Um dies zu beseitigen, müssen Sie in der beschriebenen Funktion das Array "quantity" aufsuchen und den Cast-Auftruf "intval" plus die dazugehörigen Klammern "()" entfernen ("intval(...)").
|
|
|
|
|
|
|
|
|
|
Kein öffentlicher Schreibzugriff erlaubt, bitte erst registrieren! |
|
|
|
|
|
|