Vilas Posted July 4, 2013 Share Posted July 4, 2013 (edited) Hello Friends, I have installed prestashop 1.5.4.1. When we add product to cart then after moving cursor cart summary should be displayed. But in my case the cart is not visible at right hand side corner. If I check with firebug then it showing cart is there. But due to some settings issue its not appearing properly. You may also try by adding product to cart. Site url Will be great if anyone provide solution on it? Thanks Edited July 9, 2013 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
Vilas Posted July 4, 2013 Author Share Posted July 4, 2013 (edited) After replacing cart & user info block module issue resolved. But still not appearing properly. Will be great if anyone tell the solution. Thanks Edited July 4, 2013 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted July 4, 2013 Share Posted July 4, 2013 Hi, what isn't working properly? I can add product to cart, it takes a while, but there is no error I can see. Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 i checked your cart - it works now as you said what you mean by "not appearing properly" ? you're talking about thin white line? Link to comment Share on other sites More sharing options...
Vilas Posted July 4, 2013 Author Share Posted July 4, 2013 Hi Vekia / PSfever.com Yes its working fine now. I have replaced both the modules. i.e. cart block & user info block. But now add to cart option is not looking good. Will be great if you suggest what can I do to make it good looking? Also for the products which are not in stock there add to cart is not visible properly. Can anyone suggest solution on it? Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 what you exactly expect? now your "add to cart" buttons looks like: product out of stock: 1) you want to change appearance of these buttons? 2) you want to allow to "add to cart" product which are out of stock? Link to comment Share on other sites More sharing options...
Vilas Posted July 4, 2013 Author Share Posted July 4, 2013 I want to change appearance when product is out of stock. Also when it is in stock. Want to change appearance of both the functions so that it will look good. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 you want something like that: or maybe that: ? Link to comment Share on other sites More sharing options...
Vilas Posted July 4, 2013 Author Share Posted July 4, 2013 Yes. Same kind.. but little bit more impressive if possible. Otherwise suggested is also good... Only some good standard background color on that menu Sorry for troubling you. Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 but i don't know what you exactly expect, well if you want to change the button, you have to change its css styles: styles for your button is here: #shopwindow a.button, #shopwindow a.exclusive, #shopwindow span.exclusive { padding: 0px 0px 0px 0px; margin: 10px auto; text-align: center; } and input.button_mini, input.button_small, input.button, input.button_large, input.button_mini_disabled, input.button_small_disabled, input.button_disabled, input.button_large_disabled, input.exclusive_mini, input.exclusive_small, input.exclusive, input.exclusive_large, input.exclusive_mini_disabled, input.exclusive_small_disabled, input.exclusive_disabled, input.exclusive_large_disabled, a.button_mini, a.button_small, a.button, a.button_large, a.exclusive_mini, a.exclusive_small, a.exclusive, a.exclusive_large, span.button_mini, span.button_small, span.button, span.button_large, span.exclusive_mini, span.exclusive_small, span.exclusive, span.exclusive_large, span.exclusive_large_disabled { position: relative; display: inline-block; padding: 5px 7px; border: 1px solid #cc9900; -moz-border-radius: 3px !important; -webkit-border-radius: 3px !important; border-radius: 3px !important; font-weight: bold; color: #000; background: url(../img/bg_bt.gif) repeat-x 0 0 #f4b61b; cursor: pointer; } Link to comment Share on other sites More sharing options...
Vilas Posted July 4, 2013 Author Share Posted July 4, 2013 Hello Vekia, Thanks for your response. Suppose if I want to do as like below then what code should I paste in that highlighted fields? Also is that script is for products which are available? What is script when product is not in stock? As if you check currently its appearing in improper condition. Thanks Link to comment Share on other sites More sharing options...
Vilas Posted July 5, 2013 Author Share Posted July 5, 2013 Hello Vekia, Made some changes as suggested. Now add to cart is looking little bit good. But out of stock products add to cart is not appearing properly. What you suggest what will be best in those cases? Thanks Link to comment Share on other sites More sharing options...
PSfever.com Posted July 5, 2013 Share Posted July 5, 2013 How about hiding the add to cart button, when products out of stocks? You can set this in the Backoffice. Link to comment Share on other sites More sharing options...
vekia Posted July 5, 2013 Share Posted July 5, 2013 in this case you have to edit .exclusive class: #shopwindow span.exclusive { backgroud: none repeat scroll 0 0 darkorange; line-height: 28px; padding: 0px 0px 0px 0px; margin-left: 40px; margin-right: 30px; text-align: center; } Link to comment Share on other sites More sharing options...
Vilas Posted July 5, 2013 Author Share Posted July 5, 2013 Vekia, I didn't get you. Products which are in stock those add to cart looking fine now. Anyway to show different add to cart button for those products which are not in stock but visible at frontend . Thanks How about hiding the add to cart button, when products out of stocks? You can set this in the Backoffice. Where is this option located exactly in prestashop 1.5.4.1? Will try this one also Thanks Link to comment Share on other sites More sharing options...
PSfever.com Posted July 5, 2013 Share Posted July 5, 2013 Where is this option located exactly in prestashop 1.5.4.1? Will try this one also Thanks If I'm not mistaken, go to Preferences - Products .Scroll down, there should be an option of allowing adding to cart products that are out of stock. Disable this one and you're good to go. Link to comment Share on other sites More sharing options...
Vilas Posted July 5, 2013 Author Share Posted July 5, 2013 If I'm not mistaken, go to Preferences - Products .Scroll down, there should be an option of allowing adding to cart products that are out of stock. Disable this one and you're good to go. Hi Friend, That option is already set to NO "Allow ordering of out-of-stock products " Link to comment Share on other sites More sharing options...
PSfever.com Posted July 5, 2013 Share Posted July 5, 2013 Well, then I guess there is a problem in the .tpl file. Open the file of the module (I don't know the module, so I can't download it and modify it for you). Look for {l s ='Add to cart'} Now, you should see some conditions with $product->quantity with the normal {if} {else} statement. In the .tpl file, use {* THIS CODE WILL BE IGNORED *} those curly brackets to ignore the add to cart when quantity =< 0. Is it clear this way? If not, upload the .tpl file, I can modify it for you. You will need to allow force compile and disable cache for this code to take place! Link to comment Share on other sites More sharing options...
vekia Posted July 6, 2013 Share Posted July 6, 2013 the option in preferences doesnt hide the add to cart button, it only turn its functionality off for products which isn't in stock Link to comment Share on other sites More sharing options...
Vilas Posted July 6, 2013 Author Share Posted July 6, 2013 Dear Vekia, So is there is anyway to hide such products from that frontend? I wish to keep them active because sometime we have to enable once again if they comes in stock. I am sorry for troubling you. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2013 Share Posted July 7, 2013 if you want to hide out of stock products from your store, you can achieve this with mysql triggers: hide out of stock products this is the easiest way to achieve this (no core modifications - just simple trigger) Link to comment Share on other sites More sharing options...
Vilas Posted July 8, 2013 Author Share Posted July 8, 2013 Does it will hide all out of stock products? Because if someone enter product name in Google & he came to site then what he will see? 404 or something else? Please clarify. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2013 Share Posted July 8, 2013 yes, it will "disable" the visibility of products in your front end. In BO each product will have "disabled" status. When you change the stock, then it will be automatically updated to the "active". Link to comment Share on other sites More sharing options...
Vilas Posted July 9, 2013 Author Share Posted July 9, 2013 Ok Great. Thanks a lot for kind support. Link to comment Share on other sites More sharing options...
Recommended Posts