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

Out of stock Product change to sold out label
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-01-2019, 01:06 AM
 
_patricia _patricia is offline
 

Member
  
Join Date: Mar 2019
Posts: 14
 

Default Out of stock Product change to sold out label

Hi,

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!!
__________________
Multi-vendor 5.3.6.0
Reply With Quote
  #2  
Old 08-01-2019, 06:15 AM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 225
 

Default 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.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote

The following user thanks Ed B. for this useful post:
_patricia (08-01-2019)
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:59 PM.

   

 
X-Cart forums © 2001-2018