Pedro Lima Posted March 17, 2015 Share Posted March 17, 2015 (edited) Hi guys, I am really, really desparate right now. I have AdWords campaigns running and a mass newsletter with discount I sent to gain new customers and since yesterday for some reason those two things stopped working: 1 - When new users try to register for a new account and click "Create Your Account" button, although it tells if email is already registered or not, but if not it does nothing... in console, I can see no errors and with debug mode on (which is still on right now) I keep not being able to see any errors! Neither in any log file nor in console... This is driving me crazy because I have already searched inside forum for solutions, tried some and NONE worked (code changes, reinstaling search, disable search at all, etc...) 2 - When someone tried to delete a product from shopping cart, it simply does NOTHING... and no errors once agani! Please, please I trully need your help because I want to solve this but I have no clue on how to do it. :S The ONLY change I made yesterday was adding this code: $('.awp_sct').prev().addClass('full'); Basically this adds a class to the previous element. I have already removed this little javascript and... nothing! Website is here: http://goo.gl/y3Id86 Thank you so much in advance. Best regards, Pedro Lima Edited May 26, 2015 by Pedro Lima (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 1) it's because your theme - your center column must have id="center_column" otherwise it will not work. at the moment your theme doesnt have it. Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 2. i see there error. it's because of notification about error: <br /> <b>Notice</b>: Undefined index: reduction_type in <b>/home/lenteseo/public_html/controllers/front/CartController.php</b> on line <b>381</b><br /> {"summary":{"delivery":{"id_customer":null,"id_manufacturer":null,"id_supplier":null,"id_warehouse":null,"id_country":null,"id_state":null,"country":null,"alias":null,"company":null,"lastname":null,"firstname":null,"address1":null,"address2":null,"postcode":null,"city":null,"other":null,"phone":null,"phone_mobile":null,"vat_number":null,"dni":null,"date_add":null,"date_upd":null,"deleted":0,"id":null,"id_shop_list":null,"force_id":false},"delivery_state":false,"invoice":{"id_customer":null,"id_manufacturer":null,"id_supplier":null,"id_warehouse":null,"id_country":null,"id_state":null,"country":null,"alias":null,"company":null,"lastname":null,"firstname":null,"address1":null,"address2":null,"postcode":null,"city":null,"other":null,"phone":null,"phone_mobile":null,"vat_number":null,"dni":null,"date_add":null,"date_upd":null,"deleted":0,"id":null,"id_shop_list":null,"force_id":false},"invoice_state":false,"formattedAddresses":{"delivery":{"ordered":["firstname lastname","company","vat_number","phone","phone_mobile","address1","address2","postcode city","Country:name","dni"],"formated":{"firstname":"","lastname":"","company":"","vat_number":"","phone":"","phone_mobile":"","address1":"","address2":"","postcode":"","city":"","Country:name":null,"dni":""},"object":{"deleted":0,"force_id":false[spam-filter],"invoice":{"ordered":["firstname lastname","company","vat_number","phone","phone_mobile","address1","address2","postcode city","Country:name","dni"],"formated":{"firstname":"","lastname":"","company":"","vat_number":"","phone":"","phone_mobile":"","address1":"","address2":"","postcode":"","city":"","Country:name":null,"dni":""},"object":{"deleted":0,"force_id":false[spam-filter]},"products":[{"id_product_attribute":"54475","id_product":"517","cart_quantity":"1","instructions":"<b>Olho:<\/b> ------------------<br \/><b>Di\u00e2metro:<\/b> ------------------<br \/><b>Curva Base:<\/b> ------------------<br \/><b>Pot\u00eancia Esf\u00e9rica *:<\/b> ------------------","instructions_valid":"ee6a88ef4a9b215d8eb8f4f53dd68db6","instructions_id":",165,163,162,167","id_shop":"1","name":"1 DAY ACUVUE MOIST Cx.10","is_virtual":"0","description_short":"<p>Lentes descart\u00e1veis de uso di\u00e1rio. Substitu\u00eddas todos os dias por um novo par. Fabricada com tecnologia LACREON, que proporciona um conforto de longa dura\u00e7\u00e3o.<\/p>","available_now":"","available_later":"","id_category_default":"2","id_supplier":"0","id_manufacturer":"0","on_sale":"1","ecotax":"0.000000","additional_shipping_cost":"0.00","available_for_order":"1","price":8.92,"active":"1","unity":"","unit_price_ratio":"0.000000","quantity_available":"0","width":"0.000000","height":"0.000000","depth":"0.000000","out_of_stock":"2","weight":0,"date_add":"2015-03-16 14:27:10","date_upd":"2015-03-17 00:12:24","quantity":1,"link_rewrite":"lentes-de-contacto-1-day-acuvue-moist-cx10","category":"lentes-de-contacto","unique_id":"00000005170000054475ee6a88ef4a0","id_address_delivery":"0","wholesale_price":"6.360000","advanced_stock_management":"0","supplier_reference":null,"customization_quantity":null,"id_customization":null,"price_attribute":"0.000000","ecotax_attr":"0.000000","reference":"","weight_attribute":"0.000000","ean13":"0","upc":"","pai_id_image":null,"pai_legend":null,"minimal_quantity":"1","stock_quantity":0,"price_wt":9.45,"total_wt":9.45,"total":8.92,"id_image":"517-1281","legend":"Lentes de Contacto 1 DAY ACUVUE MOIST Cx.10","reduction_applies":false,"quantity_discount_applies":false,"allow_oosp":true,"features":[],"attributes":"Details :","attributes_small":"","rate":6,"tax_name":"IVA PT 6%","quantity_without_customization":1,"price_without_quantity_discount":9.45}],"gift_products":[],"discounts":[],"is_virtual_cart":0,"total_discounts":0,"total_discounts_tax_exc":0,"total_wrapping":0,"total_wrapping_tax_exc":0,"total_shipping":0,"total_shipping_tax_exc":0,"total_products_wt":9.45,"total_products":8.92,"total_price":9.45,"total_tax":0.53,"total_price_without_tax":8.92,"is_multi_address_delivery":false,"free_ship":1,"carrier":{"id_reference":null,"name":null,"url":null,"delay":null,"active":true,"deleted":0,"shipping_handling":true,"range_behavior":null,"is_module":null,"is_free":false,"shipping_method":2,"shipping_external":0,"external_module_name":null,"need_range":0,"position":null,"max_width":null,"max_height":null,"max_depth":null,"max_weight":null,"grade":null,"id":null,"id_shop_list":null,"force_id":false[spam-filter],"customizedDatas":false,"HOOK_SHOPPING_CART":"\n\n<!-- MODULE Loyalty -->\n<p id=\"loyalty\">\n\t<i class=\"icon-flag\"><\/i>\n\t\t\tAdicione alguns produtos ao seu carrinho de compras para ganhar alguns pontos de fideliza\u00e7\u00e3o.\n\t<\/p>\n<!-- END : MODULE Loyalty -->","HOOK_SHOPPING_CART_EXTRA":"","products":[{"id":517,"link":"http:\/\/lenteseoculos.pt\/lentes-de-contacto\/517-lentes-de-contacto-1-day-acuvue-moist-cx10#\/awpdetails-","quantity":1,"image":"https:\/\/lenteseoculos.pt\/1281-home_default\/lentes-de-contacto-1-day-acuvue-moist-cx10.jpg","image_cart":"https:\/\/lenteseoculos.pt\/1281-cart_default\/lentes-de-contacto-1-day-acuvue-moist-cx10.jpg","priceByLine":"9,45 \u20ac","name":"1 DAY ACUVUE...","price":"9,45 \u20ac","price_float":8.92,"idCombination":54475,"idAddressDelivery":0,"is_gift":false,"hasAttributes":true,"attributes":"","hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"0,00 \u20ac","shippingCostFloat":0,"taxCost":"0,53 \u20ac","wrappingCost":"0,00 \u20ac","nbTotalProducts":1,"total":"9,45 \u20ac","productTotal":"9,45 \u20ac","freeShipping":"90,55 \u20ac","freeShippingFloat":90.55,"hasError":false} it's related to this part: <br /> <b>Notice</b>: Undefined index: reduction_type in <b>/home/lenteseo/public_html/controllers/front/CartController.php</b> on line <b>381</b><br /> turn off error reporting so this message will not appear and it will not affect your website. Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 17, 2015 Author Share Posted March 17, 2015 1) it's because your theme - your center column must have id="center_column" otherwise it will not work. at the moment your theme doesnt have it. First, let me thank you for your answer. I had previously found other thread here in forum mentioning that but I searched for center_column and columns inside my authentication.tpl and none appeared. :S Where should it go? Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 check header.tpl file there you can find (i hope so) <div> with class="center column" add there id="center_column" Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 17, 2015 Author Share Posted March 17, 2015 check header.tpl file there you can find (i hope so) <div> with class="center column" add there id="center_column" Thanks again. Unfortunately everything is still the very same... 1 - Added id and still nothing. Here's the code before, on that little excerpt: <div class="columns-container"> <div id="columns"> <div class="center_column main-container {if ($page_name=="password" || $page_name=="my-account" ||$page_name=="search" || $page_name=="sitemap" || $page_name=="contact" || $page_name=="category"|| $page_name=="new-products"|| $page_name=="best-sales"|| $page_name=="prices-drop" || $page_name=="supplier"|| $page_name=="manufacturer"|| $page_name=="stores" || $page_name=="module-tdpsblog-viewallpost" || $page_name=="module-tdpsblog-viewpostdetails") && ($themesdev.td_prosidebar=="enable" && $themesdev.td_prosidebarpos=="enable")} col2-left-layout {elseif ($page_name=="password" || $page_name=="my-account" ||$page_name=="search" || $page_name=="sitemap" || $page_name=="contact" || $page_name=="category"|| $page_name=="new-products"|| $page_name=="best-sales"|| $page_name=="prices-drop" || $page_name=="supplier"|| $page_name=="manufacturer"|| $page_name=="stores" || $page_name=="module-tdpsblog-viewallpost" || $page_name=="module-tdpsblog-viewpostdetails") && ($themesdev.td_prosidebar=="enable" && $themesdev.td_prosidebarpos=="disable")} col2-right-layout {elseif ($themesdev.td_homelayout=="left" && $page_name=="index") || ($page_name=="cms" && $themesdev.td_cmssidebar=="enable" && $themesdev.td_prosidebarpos=="enable")} col2-left-layout {elseif ($themesdev.td_homelayout=="right" && $page_name=="index") || ($page_name=="cms" && $themesdev.td_cmssidebar=="enable" && $themesdev.td_prosidebarpos=="disable")} col2-right-layout {elseif $themesdev.td_homelayout=="bothsidebar" && $page_name=="index"} col3-layout {elseif $page_name=="module-tdpsblog-default" || $page_name=="module-tdpsblog-details"} col2-left-layout {else} col1-layout {/if}"> And I only added id="center_column": <div class="columns-container"> <div id="columns"> <div id="center_column" class="center_column main-container {if ($page_name=="password" || $page_name=="my-account" ||$page_name=="search" || $page_name=="sitemap" || $page_name=="contact" || $page_name=="category"|| $page_name=="new-products"|| $page_name=="best-sales"|| $page_name=="prices-drop" || $page_name=="supplier"|| $page_name=="manufacturer"|| $page_name=="stores" || $page_name=="module-tdpsblog-viewallpost" || $page_name=="module-tdpsblog-viewpostdetails") && ($themesdev.td_prosidebar=="enable" && $themesdev.td_prosidebarpos=="enable")} col2-left-layout {elseif ($page_name=="password" || $page_name=="my-account" ||$page_name=="search" || $page_name=="sitemap" || $page_name=="contact" || $page_name=="category"|| $page_name=="new-products"|| $page_name=="best-sales"|| $page_name=="prices-drop" || $page_name=="supplier"|| $page_name=="manufacturer"|| $page_name=="stores" || $page_name=="module-tdpsblog-viewallpost" || $page_name=="module-tdpsblog-viewpostdetails") && ($themesdev.td_prosidebar=="enable" && $themesdev.td_prosidebarpos=="disable")} col2-right-layout {elseif ($themesdev.td_homelayout=="left" && $page_name=="index") || ($page_name=="cms" && $themesdev.td_cmssidebar=="enable" && $themesdev.td_prosidebarpos=="enable")} col2-left-layout {elseif ($themesdev.td_homelayout=="right" && $page_name=="index") || ($page_name=="cms" && $themesdev.td_cmssidebar=="enable" && $themesdev.td_prosidebarpos=="disable")} col2-right-layout {elseif $themesdev.td_homelayout=="bothsidebar" && $page_name=="index"} col3-layout {elseif $page_name=="module-tdpsblog-default" || $page_name=="module-tdpsblog-details"} col2-left-layout {else} col1-layout {/if}"> 2 - Disabled debug and still can't delete my product from my cart and neither other client at this very momento. Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 17, 2015 Author Share Posted March 17, 2015 (edited) Ok, I have already realised that, for some reason, it's not showing me the changes I have made inside file! :S Which is really, really weird because I have cleared smarty and all types of cache are disabled! So no cache is being stored as far as I could check inside template and prestashop cache folders... Why does this happens? EDIT:Dude, problem 1 is solved! Thanks to you. Hehe. Now the only problem left is the fact that sometimes users can't delete shopping carts (this is a "random" problem that happens only sometimes). Edited March 17, 2015 by Pedro Lima (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 can you reproduce the way to get the problem with removing items from cart? or it is just totally random case? Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 17, 2015 Author Share Posted March 17, 2015 can you reproduce the way to get the problem with removing items from cart? or it is just totally random case? Unfortunately it's random... I have tried to see if there is a relation with browser and it doesn't seems so as well. Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 i cant reproduce it :/ this problem is reported by your customers or it's only your problem ? Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 17, 2015 Author Share Posted March 17, 2015 (edited) i cant reproduce it :/ this problem is reported by your customers or it's only your problem ? Unfortunately it happens mostly to my customers. I'm actually the one that rarely get that problem. But one thing I have noticed and I was forgetting to let you know about that, is that this happens only with specific products, not with all products. As example, in Firefox, after selecting all options on the right side add this product to shopping cart and then try to delete it: http://lenteseoculos.pt/lentes-de-contacto/474-lentes-de-contacto-dailies-aqua-confort-toric-plus-cx90 Edited March 17, 2015 by Pedro Lima (see edit history) Link to comment Share on other sites More sharing options...
Pedro Lima Posted March 27, 2015 Author Share Posted March 27, 2015 Problem still happens with specific produts as mentioned above. Please, I erally need help because I have already lost customers because of this. They simply give up after trying (with no success) to delete some products from their shopping cart. Link to comment Share on other sites More sharing options...
Pedro Lima Posted May 26, 2015 Author Share Posted May 26, 2015 For the problem where some products I could not delete them from shopping cart, I found the solution!Since I have Attribute Wizard Pro installed, I read carefully the explanation when we are inside module and noticed a lot of "red numbers" (code lines of some files) so I found that weird... Then I looked at the original files that come with that module and at the files of my theme and noticed huge differentes. I made the necessary changes in my files and then... everything worked! So, if you use Attribute Wizard Pro, that's almost certainly the problem. Link to comment Share on other sites More sharing options...
Recommended Posts