peter.marius Posted March 17, 2010 Share Posted March 17, 2010 So,I log in in my account, browse the products, add to cart.Then view cart, and it shows as in the attachment. But I added only one item to my cart, and that one is not even there. I guess this is a major problem. Any ideea how to fix this?Thanks! Link to comment Share on other sites More sharing options...
kouzen Posted March 18, 2010 Share Posted March 18, 2010 Hi! It seems we have the same problem, my shopping cart was not displaying the right items too, but one thing i discovered was the items listing was the items was the items that have REDUCTION AMOUNT in the back office, i don't know if these are same problems as yours, Link to comment Share on other sites More sharing options...
peter.marius Posted March 18, 2010 Author Share Posted March 18, 2010 Hei, Thanks you.But, this doesent work? I removed the On Sale check and no good Link to comment Share on other sites More sharing options...
kouzen Posted March 19, 2010 Share Posted March 19, 2010 Hi i have fixed my problem , with regards to the On sale check, it wasnt the On sale check it was the reduction amount, if the reduction amount have quantity it shows on the summary cart,,, anyways try this i have fixed it my self thou im not sure if this will work to you im using the 1.2.5 version the one the called the STABLE VERSIONlook for a file name "order.php" at about line 434 insert a new line add this 'myCart' => $cart->getProducts(true), and at your themes folder look for a file name "shopping-cart.tpl" at line 138 replace {foreach from=$products item=product name=productLoop} with this {foreach from=$myCart item=product name=productLoop}, well that's what i did after looking at the code for 3 hours hope this helps! www.besqonline.com Link to comment Share on other sites More sharing options...
peter.marius Posted March 19, 2010 Author Share Posted March 19, 2010 look for a file name "order.php" at about line 434 insert a new line add this 'myCart' => $cart->getProducts(true), could you be more specific here please? Before line 434 or after line 434 to add the new line? Or the new line will be 434?Thanks Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 look for a file name "order.php" at about line 434 you will see this$smarty->assign(array( 'token_cart' => $token, 'productNumber' => $cart->nbProducts(), 'voucherAllowed' => Configuration::get('PS_VOUCHERS'), 'HOOK_SHOPPING_CART' => Module::hookExec('shoppingCart', $summary), 'HOOK_SHOPPING_CART_EXTRA' => Module::hookExec('shoppingCartExtra', $summary), 'shippingCost' => $cart->getOrderTotal(true, 5), 'shippingCostTaxExc' => $cart->getOrderTotal(false, 5), 'customizedDatas' => $customizedDatas, 'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_, 'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_, 'lastProductAdded' => $cart->getLastProduct() ));insert this line of code 'myCart' => $cart->getProducts(true),that will make you code look like this, the red one is the inserted one $smarty->assign(array('myCart' => $cart->getProducts(true), 'token_cart' => $token, 'productNumber' => $cart->nbProducts(), 'voucherAllowed' => Configuration::get('PS_VOUCHERS'), 'HOOK_SHOPPING_CART' => Module::hookExec('shoppingCart', $summary), 'HOOK_SHOPPING_CART_EXTRA' => Module::hookExec('shoppingCartExtra', $summary), 'shippingCost' => $cart->getOrderTotal(true, 5), 'shippingCostTaxExc' => $cart->getOrderTotal(false, 5), 'customizedDatas' => $customizedDatas, 'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_, 'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_, 'lastProductAdded' => $cart->getLastProduct() )); Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 basically i have an array variable named myCart, after reading the code it seems that the summary cart was not getting the cartlist right, its getting the $products i don't know where that is declared thou, looking at the blockcart module code seems similar to the needs of the summary cart, so that's where i got this code from its running fine to me right now, i don't know if this is the right procedure to fix thou,,,www.besqonline.com Link to comment Share on other sites More sharing options...
peter.marius Posted March 20, 2010 Author Share Posted March 20, 2010 Thank you, I changed the code according to your instructions, both codes, in order.php and in shopping-cart.tpl from themes directory, and now the initial issue is gone, and appeared a new one. Now, the cart doesn't show the products in it. It looks like in the picture below. Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 yours can be different from mine, anyways can you zip the 2 files the order.php and the shopping-cart.tpl? if its blank it means there's is no such variable, ill try to look at your code. Link to comment Share on other sites More sharing options...
peter.marius Posted March 20, 2010 Author Share Posted March 20, 2010 Sure I can!Thanks man! order.zip Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 ok i saw the possible problem try this paste this new order.php order_fix.zip Link to comment Share on other sites More sharing options...
peter.marius Posted March 20, 2010 Author Share Posted March 20, 2010 wowthat was fastand good work - it works now. thank you so much!!!LE: is there any chance to make this work with Express Checkout from Ioncannon? Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 hahaha sory but can you lighten me up what is the Express Checkout from Ioncannon, is that the PayPal Express Checkout? I think it is possible for a module to be made if that's what you are referring to Link to comment Share on other sites More sharing options...
peter.marius Posted March 20, 2010 Author Share Posted March 20, 2010 here is the module:http://www.prestashop.com/forums/viewthread/25436/modules___development/modification_ioncannons_express_checkout_v1_dot_0 Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 ok i saw the module, but i don't get what are you asking for? is it not working already in PS 1.2 as the post says? it did say its freeware,, im sory for my ignorance Link to comment Share on other sites More sharing options...
kouzen Posted March 20, 2010 Share Posted March 20, 2010 ok are you asking if we can implement this "view summary cart" on the express checkout module? well i think yes it can, ok ill download the module and test it, ill try to modify it so we can see the summary of the items choose, is this what you want ? Link to comment Share on other sites More sharing options...
peter.marius Posted March 20, 2010 Author Share Posted March 20, 2010 Well, if I use the express checkout option I will get the same screen as in my first post. Link to comment Share on other sites More sharing options...
captin_bob Posted March 23, 2010 Share Posted March 23, 2010 I have recently installed this mod (as described in previous posts?), and it works really well but with one small issue, i guess its something i have done? but any ideas would really help.When you add items to the cart and select the express check out, the items do not appear in the basket, they appear in the BO, the prices is correct and paypal will process the order, but these items appear to be missing, i have add a pic, it better explains what i mean.I have also noticed this appears to be the case any time the cart summary is brought upThanks in advance of your help!Ps i am using the latest and the previous versions of fire fox and i have tried it in safari too with no joy!http://www.theromancestore.co.ukIvan Link to comment Share on other sites More sharing options...
kouzen Posted March 24, 2010 Share Posted March 24, 2010 hi captin bob, i haven't installed the express check out module yet it has lots of mods for me i guess im lazy on updating pasting this, as peter.marius said it was not working on our current version, but can you attach your order.php and the shopping-cart.tpl. I might be able to fix yours first in my free time and ill try to fix the express install as soon as i can ...www.besqonline.com Link to comment Share on other sites More sharing options...
captin_bob Posted March 24, 2010 Share Posted March 24, 2010 Hi KouzenIt would be fantastic if you are able to do anything with it, so the cart summery works, thanks for taking the time to look.Thanks in advanceIvan order.zip Link to comment Share on other sites More sharing options...
silencespr Posted March 24, 2010 Share Posted March 24, 2010 Hey guys i am facing the same problem, my shopping cart says 2 items but the total price is 0 even at check out it states free item and price is 0. I don't want to reinstall my shop since i will lose 2 weeks of work on it.Thank you. Link to comment Share on other sites More sharing options...
captin_bob Posted March 24, 2010 Share Posted March 24, 2010 Hi silencesprDid you to install the express check out by Ioncannon? have you looked through the postings linked to that, i had a good look and could not find a fix for my problem, which appears to be the same as yours! Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 24, 2010 Share Posted March 24, 2010 captin_bob - your problem looks exactly like one I had. It was related to some of the blocks that I had added. I had to remove the newsletter and wishlist block from my front office pages (I still had them installed).Are you using either of those? A suggestion might be to start removing the blocks you've added and see if that fixes your issue. Link to comment Share on other sites More sharing options...
captin_bob Posted March 24, 2010 Share Posted March 24, 2010 Ello ciscowrig, thats an intersting idea, i have some of those mods installed, i did think that the Express check out worked when i first installed it, i did install and rearrangement of some mods, so i will try that and report back lolMany thanks for your imput! Link to comment Share on other sites More sharing options...
captin_bob Posted March 24, 2010 Share Posted March 24, 2010 Update folks, i unstaled my wish list mod and guess what? it now seems to work! nice one ciscowrig, have a virtual pint on me thanks! your a leggend! Link to comment Share on other sites More sharing options...
silencespr Posted March 24, 2010 Share Posted March 24, 2010 eh i reinstalled wish list i still have the same issue my cart comes back with 10 products costing $0 ....when i add to cart it comes back saying 0 products.... Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 24, 2010 Share Posted March 24, 2010 Silencespr - I don't know that this will solve your issue. The key identifier of this wishlist issue is seen in captin_bob's image. The red circle, no products showing up in the cart, but a total. I think there may be two separate issues. However - reinstalling doesn't fix the issue I've described. You can have the module installed, but you can not have it as a block on the page like the cart or categories. It can't be there at all. There must be conflicting code when both the wishlist and the cart are called together on the same page. Link to comment Share on other sites More sharing options...
silencespr Posted March 24, 2010 Share Posted March 24, 2010 i have uninstalled the wish list and the cart, i still get 0 price....bob atleast warn us you have dildos on your site i am at work=D here test mine outhttp://lawnmowerpal.comnothing comes up 3 products but 0 dollars. Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 24, 2010 Share Posted March 24, 2010 Yeah - I'm going to say then it really is a completely separate issue from the one captin_bob and I had.Almost more coding maybe? How much customizing have you done? Are you still using the prestashop theme or have you chosen another one? I believe that page is the shopping-cart.tpl within the theme you're using. Maybe the code that generates those numbers has been edited or the theme you swtiched to does not have it in there correctly. Has it always been like that or did it just start?If you complete the order does it process correctly? Link to comment Share on other sites More sharing options...
silencespr Posted March 24, 2010 Share Posted March 24, 2010 Yeah - I'm going to say then it really is a completely separate issue from the one captin_bob and I had.Almost more coding maybe? How much customizing have you done? Are you still using the prestashop theme or have you chosen another one? I believe that page is the shopping-cart.tpl within the theme you're using. Maybe the code that generates those numbers has been edited or the theme you swtiched to does not have it in there correctly. Has it always been like that or did it just start?If you complete the order does it process correctly? it worked with new theme and then at the admin panel i clicked erase all products and i guess after that this whole cluster fuck has started, im gonna try to run default theme.... see if that helps. Link to comment Share on other sites More sharing options...
silencespr Posted March 24, 2010 Share Posted March 24, 2010 ok this is bull s hit i replaced all of my theme files etc, still same problem...... Link to comment Share on other sites More sharing options...
kouzen Posted March 25, 2010 Share Posted March 25, 2010 Hi! captin bob try this fix, backup your php and tpl just incase it gone worst , guys just to clear things out this fix was originally not for "Express Checkout from Ioncannon", I haven't installed the module yet so I can't fix this yet, but as captin bob gave me his order.php and the tpl it was used in the Express Checkout module(am i right bob? ) , so if this works this might work for all of us too. but keep in mind we all have different themes (tpl).PS: sorry bob for the late reply i got tanggled here, order_captin bob fix.zip Link to comment Share on other sites More sharing options...
kouzen Posted March 25, 2010 Share Posted March 25, 2010 this fix will not be needing any reinstall nor remove any modules Link to comment Share on other sites More sharing options...
captin_bob Posted March 25, 2010 Share Posted March 25, 2010 Hi kouzen, thanks for the fix i will try it and see if it will allow me to run the wish list together etc Sorry Silencespr, i will remember the warning for next time "Caution, My site has an adult theme!"Thanks for all your help guys! Link to comment Share on other sites More sharing options...
kouzen Posted March 25, 2010 Share Posted March 25, 2010 ok! let me know if it works im going to try the Express Cart also as soon as i can Link to comment Share on other sites More sharing options...
exadra37 Posted March 25, 2010 Share Posted March 25, 2010 I have the same problem form the first topic and i solved him using the block wishlist from version 1.2.4.0 .The problem is that the version 1.2.5.0 from block wishlist add all products from the wishlist to the cart with value 0€ .Did any off you have the problem with the pictures displaying a big ? when you view a wishlist? Link to comment Share on other sites More sharing options...
captin_bob Posted March 25, 2010 Share Posted March 25, 2010 When i had my wish list installed it seemed to work ok, all images worked as they should?? Link to comment Share on other sites More sharing options...
exadra37 Posted March 25, 2010 Share Posted March 25, 2010 I have the same problem form the first topic and i solved him using the block wishlist from version 1.2.4.0 .The problem is that the version 1.2.5.0 from block wishlist add all products from the wishlist to the cart with value 0€ .Did any off you have the problem with the pictures displaying a big ? when you view a wishlist? I have to correct this... the conflict is not solved and i have detected that just happen when i have block cart and block wishlist in left column.I just have reported in bug track. Link to comment Share on other sites More sharing options...
kouzen Posted March 26, 2010 Share Posted March 26, 2010 I did not use the block wishlist but id experience this problem too,, i think the problem is those blocks maybe using same $products variable... Link to comment Share on other sites More sharing options...
bay_kolio Posted August 24, 2010 Share Posted August 24, 2010 basically i have an array variable named myCart, after reading the code it seems that the summary cart was not getting the cartlist right, its getting the $products i don't know where that is declared thou, looking at the blockcart module code seems similar to the needs of the summary cart, so that's where i got this code from its running fine to me right now, i don't know if this is the right procedure to fix thou,,,www.besqonline.com Thank you kouzen this solve mine problem too. It was totally same. Good work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now