Flmbx Posted May 10, 2014 Share Posted May 10, 2014 Weird problem... I thought my new shop was working fine but this morning I encountered an issue. A guest who created a basket and starts the Order Process (checkout) runs into a blank page at Step2. A registered Client doing the same can order as normal. Why does my shop has this error for non registered visitors?? this is 1.5 and it is supposed to work. In Step2 the guest should be able to register himself and complete the ordering process usefull info: I disabled Guest account to checkout. I have another shop in 1.4 and there everything is working fine with same checkout policy Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2014 Share Posted May 10, 2014 blank page = errors turn on error reporting then instead of simple blank page you will see also detailed log information about what and where doesnt work well Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 which I did and I see exactly the same text appearing on the top of the screen with "guest" and "registered customer" where PS goes true for the latter but not for the guest. Remark: I'm not a debugging/error handler expert... I get this: Is this an error message?? Strict Standards: Declaration of Cart::updateQty() should be compatible with CartCore::updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up', $id_address_delivery = 0, Shop $shop = NULL, $auto_add_cart_rule = true) in/home/<myusr>/public_html/override/classes/Cart.php on line 155 Underneath there are some warnings Link to comment Share on other sites More sharing options...
webdev0008 Posted May 10, 2014 Share Posted May 10, 2014 Hi Michael This error is because of a override cart class. Please make sure that "updateQty" function of the cart class in override/classes/Cart.php folder have same parameters as of "updateQty" function in classes/Cart.php. Thanks Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2014 Share Posted May 10, 2014 your shop use overrides: override/classes/Cart.php it just means that you use some non default core code in your shop for what purposes you use this override? Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 thanks guys! I am a noob on this override stuff... what does it mean? can I turn it off or isn't it a good idea? Can a theme bring override? Is it something to enable/disbale in backoffice? or in files via ftp? Link to comment Share on other sites More sharing options...
webdev0008 Posted May 10, 2014 Share Posted May 10, 2014 (edited) Hi can you attach your override/classes/Cart.php file here and tell the exact PS version of your website. Edited May 10, 2014 by webdev0008 (see edit history) Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 it is 1.5.6.2 done Cart.php Link to comment Share on other sites More sharing options...
webdev0008 Posted May 10, 2014 Share Posted May 10, 2014 (edited) use this (replace your override/classes/Cart.php to this file) Cart.php Edited May 10, 2014 by webdev0008 (see edit history) Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 could you tell me what you have changed... because errors tell me I also have to apply a change in product.php 1 Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 Strict Standards: Declaration of Product::updateProductAttribute() should be compatible with ProductCore::updateProductAttribute($id_product_attribute, $wholesale_price, $price, $weight, $unit, $ecotax, $id_images, $reference, $id_supplier, $ean13, $default, $location, $upc, $minimal_quantity, $available_date) in/home/<mydir>/public_html/override/classes/Product.php on line 451 Link to comment Share on other sites More sharing options...
webdev0008 Posted May 10, 2014 Share Posted May 10, 2014 Hi i have changed the public function updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up') to public function updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up',$id_address_delivery = 0, Shop $shop = null, $auto_add_cart_rule = true) add some more parameters as of "updateQty" function in classes/Cart.php seems your override have the PS 1.4 version files. for what purposes you use this override? Link to comment Share on other sites More sharing options...
Flmbx Posted May 10, 2014 Author Share Posted May 10, 2014 don't know what I use overrride for. What does it mean?? what is override and for what purposes is it used in general? Link to comment Share on other sites More sharing options...
Flmbx Posted May 11, 2014 Author Share Posted May 11, 2014 it's solved in the meantime... thanks for the help! 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