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

Displaying Quantity in Stock

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-14-2020, 06:09 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Displaying Quantity in Stock

I want to be able to display the current stock level of each product.

I don't seem to be able to find a setting for this.

I also want to display some custom text (per product) which indicates the lead time for shipping out of stock items.

Have I missed it?
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #2  
Old 06-14-2020, 07:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,018
 

Default Re: Displaying Quantity in Stock

Quote:
Originally Posted by johngwms
I want to be able to display the current stock level of each product.


This is stock. If it is not showing then it has been suppressed in your theme. See the demo store - https://demostore.x-cart.com/perfect-snacks


Quote:
Originally Posted by johngwms
I also want to display some custom text (per product) which indicates the lead time for shipping out of stock items.


You can use https://market.x-cart.com/addons/backorder-preorder.html
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
johngwms (06-14-2020)
  #3  
Old 06-14-2020, 07:41 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Re: Displaying Quantity in Stock

Thanks Steve. It seems I did not have the settings correct.

On my previous store (XC4) I also displayed a line of custom text where I indicated the lead time for out of stock all the time, not just when the items became out of stock. Customers found this useful when they wanted to order more items that I currently have in stock.

Is that possible with the current functionality of the module?
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #4  
Old 06-14-2020, 07:56 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,018
 

Default Re: Displaying Quantity in Stock

I believe the backorder module will only show the message if product is out of stock and set to be available for backorder. But you can modify this behavior.
However if you only want to show a message and not actually allow for backorder out of stock products it's probably best to just have a custom module to add message to each product and show it on the page. Just as informational field nothing else.
You can add this a an attribute and will show if not empty but will show under spects tab not where the quantity is.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 07-09-2020, 06:22 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 66
 

Default Re: Displaying Quantity in Stock

Expanding on Steve's reply, use this to add a property field for each product https://devs.x-cart.com/basics/adding_new_property_to_a_product/

Then you can add the lead time for the product to display it in the front end for the customer.
__________________
Version 5.3.6.6
Reply With Quote
  #6  
Old 07-09-2020, 11:20 PM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Re: Displaying Quantity in Stock

Thanks Siddharth.

I will need to study this guide carefully. At the moment, it is almost unreadable because there is no clear explanation of what is needed and going on.
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #7  
Old 07-10-2020, 05:59 AM
 
Ed B. Ed B. is offline
 

eXpert
  
Join Date: Apr 2016
Posts: 397
 

Default Re: Displaying Quantity in Stock

Quote:
Originally Posted by johngwms
Thanks Siddharth.

I will need to study this guide carefully. At the moment, it is almost unreadable because there is no clear explanation of what is needed and going on.


Don't worry too much about the theory for writing the module, you can just grab it and install. You will certainly have to modify my_message.twig, but check it out on your dev-store to see what it does, then you will know what you will have to change.
__________________
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:
johngwms (07-10-2020)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (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 07:20 PM.

   

 
X-Cart forums © 2001-2020