Jump to content

< SOLVED > Cart Block Issue :(


Recommended Posts

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 by Vilas (see edit history)
Link to comment
Share on other sites

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

what you exactly expect? now your "add to cart" buttons looks like:

tRrTtJG.png

 

product out of stock:

kaKaFVe.png

 

 

 

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

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

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?

 

wWztjF5.png

 

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

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

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

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

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

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

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

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

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

×
×
  • Create New...