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

Changing the default number in stock from 1000

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-03-2009, 09:23 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Changing the default number in stock from 1000

Hi,

I looked everywhere, searched the forums, etc.. could not find this:

I am looking to speed the adding of products to the site and one easy step for me is to change the default number in stock on the "Add Product" page from 1,000 to 1, since 99% of what I sell is unique, it would save me a step.

Thanks for the help!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #2  
Old 01-03-2009, 09:26 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Changing the default number in stock from 1000

skin1/main/product_details.tpl - around line 228:

<input type="text" name="avail" size="18" value="{if $product.productid eq ""}{$product.avail|default:1000}{else}{$product.av ail}{/if}" />

Change the 1000 to 1
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-03-2009, 09:39 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Changing the default number in stock from 1000

Thanks, Balinor! Worked like a charm!

Happy New Year!

Vera
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #4  
Old 01-04-2009, 10:07 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Changing the default number in stock from 1000

Sorry to bug again! I have 5 Extra Fields, 4 of which are for feeds. Again, 98% of the time, I have to input the same information. Any way to pre-set those and change on the add item page if necessary?

I am doing my best to streamline the product adding on the cart, as with one of a kind stuff it's a constant adding. Not complaining, though, just want to make it faster!

Thanks again,

Vera

PS: I looked at the file and wonder if it is in dialog.tpl? Just don;t want to go changing tpl files without knowing for sure. Thanks! VB
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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:18 AM.

   

 
X-Cart forums © 2001-2020