X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing the default number in stock from 1000 (https://forum.x-cart.com/showthread.php?t=44565)

Acquamarina 01-03-2009 09:23 AM

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!

balinor 01-03-2009 09:26 AM

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

Acquamarina 01-03-2009 09:39 AM

Re: Changing the default number in stock from 1000
 
Thanks, Balinor! Worked like a charm!

Happy New Year!

Vera

Acquamarina 01-04-2009 10:07 AM

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


All times are GMT -8. The time now is 11:06 AM.

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