X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Out of Stock Items (https://forum.x-cart.com/showthread.php?t=73305)

superdave144 12-19-2015 05:42 AM

Out of Stock Items
 
I think it would be more clear to the customer if out of stock items displayed "Out of Stock" in red on the product picture along with graying it out. This could be a toggle setting right below the out of stock options in the admin area.

qualiteam 12-21-2015 06:27 AM

Re: Out of Stock Items
 
Hello David,

At the moment there is no such feature in X-Cart 5, but it can be implemented as a custom module.

As a quick hack you can add the following rules at Backend -> Look & Feel -> Custom CSS tab:
Code:

.product.out-of-stock .product-photo > a:before {
  content: 'Sold out';
  color: red;
  font-size: 20px;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1em;
  margin-top: -0.5em;
  text-align: center;
}


Not the best solution, but may work while you are creating a more solid custom module.

superdave144 12-21-2015 07:40 AM

Re: Out of Stock Items
 
Thanks for the response. I added the custom CSS but I don't see the wording appearing on out of stock items.

qualiteam 12-23-2015 03:13 AM

Re: Out of Stock Items
 
Hello David,

Perhaps you use a different theme, so the CSS selector should be tweaked.
What is your store URL?

superdave144 12-23-2015 04:02 AM

Re: Out of Stock Items
 
Www.justretrogames.com

qualiteam 12-23-2015 04:31 AM

Re: Out of Stock Items
 
1 Attachment(s)
I believe you use Digital color scheme.

I have tried the above custom CSS rule on my local installation with Digital theme, and it works there (see the attached screenshot).

Did you tick the "Use custom css" checkbox on the "Custom CSS" tab?

superdave144 12-23-2015 05:25 AM

Re: Out of Stock Items
 
It's working now. smh lol Thank you for your help!

kirkbauer 12-23-2015 10:23 PM

Re: Out of Stock Items
 
I'm using the Product Stickers module to add red tape on the out-of-stock items.

superdave144 12-31-2015 06:05 AM

Re: Out of Stock Items
 
Can I see how it looks Kirk? Do you have a URL?

kirkbauer 12-31-2015 06:19 AM

Re: Out of Stock Items
 
Sure, here you go:

http://www.tdtavern.com/healing


All times are GMT -8. The time now is 05:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.