X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Modifying the design and features (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Out of stock Product change to sold out label (https://forum.x-cart.com/showthread.php?t=77075)

_patricia 08-01-2019 01:06 AM

Out of stock Product change to sold out label

I am looking for workaround solution, change the label of a product that is out of stock make it a Sold Out (something that a customer can see the product is Sold Out). My thought here is using the change label text but does anyone knows an alternate solution for this?

Also, I want to display the product is sold out and have a marked "SOLD OUT" on the vendor page.

Thank you so much!!

Ed B. 08-01-2019 06:15 AM

Re: Out of stock Product change to sold out label
I can think of two other ways, but changing the label text would be much either. Anyhow, here are other possibilities.

First of all, the message "Out of stock" is output by the template file customer/product/details/stock/body.twig. So use the theme tweaker to override this.

Second, the above template file is called by XLite/View/Product/Details/Customer/Stock.php. So you can write a module to override this and load a different template.

I don't have multivendor functionality in my store, so I can't help for the vendor page.

All times are GMT -8. The time now is 09:46 PM.

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