Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Dimming out of stock items

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-09-2014, 06:25 PM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Dimming out of stock items

By trial and error I somehow stumbled onto a view that will dim items (but still show them) that are out of stock. But as I had to do a re-install, that option didn't appear anymore and I'm not sure what I had clicked to turn that option on as it is something that I definitely like about the new XC!

Please let me know so we can enable that option again, definitely a better perk to some of the issues I've come across with this new version.
Reply With Quote
  #2  
Old 06-10-2014, 09:14 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Dimming out of stock items

Have just tried this on my local 5.1.2 installation and out-of-stock items are grayed out without switching any options. Have you customized your website styles?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 06-10-2014, 09:32 AM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Dimming out of stock items

I didn't see it in the 5.1.2 out of the box install but I did see it in 5.1.3 so I had upgraded our cart to that as of last night to use that option.

It was working for a bit, but now does not seem to work at current. Is there an option that utilizes that feature that I had accidentally turned on to over ride it?
Reply With Quote
  #4  
Old 06-10-2014, 09:41 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Dimming out of stock items

What browser do you use?

If it is Firefox or Chrome, try the built-in "Inspect this element" feature on an out-of-stock product: navigate to the "<div class="product product-xx out-of-stock..." tag and make sure that it has "ui-state-disabled" in the "class" attribute. This CSS class is the one that makes out-of-stock products dimmed.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 06-10-2014, 09:49 AM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Dimming out of stock items

This is what the code shows for the out of stock item in the category view:

<div title="Added to cart" class="added-to-cart"><i class="fa fa-check-square"></i></div>
<div class="clear"></div>
</div>
</li>
<li class="product-cell box-product item odd">
<div class="product productid-11 out-of-stock not-available need-choose-options">
<div class="drag-n-drop-handle">
<span class="drag-message">Drag and drop me to the cart</span>
<span class="out-message">Product is out of stock</span>
<span class="choose-product-option">Choose the product options first</span>
</div>

do I insert a line into the custom CSS box for the ui-state-disabled?

It also dimmed in the "recently viewed" box as well when it was working, so I didn't know if there was something I needed to add there too.
Reply With Quote
  #6  
Old 06-11-2014, 04:48 PM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Dimming out of stock items

I found what triggers it!

Under "cart & checkout"

"Force customer to choose product options before adding a product to cart"

needs to be unchecked.
Reply With Quote

The following user thanks info@shadowgraphicsinc.co for this useful post:
qualiteam (06-12-2014)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:11 PM.

   

 
X-Cart forums © 2001-2020