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

Default Product Values
 
Closed Thread
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-16-2015, 09:21 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Default Product Values

How do you change the default product values? I would like the default product quantity to be 1.
__________________
David
X-Cart Business 5.3.2.2
  #2  
Old 10-16-2015, 11:08 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Default Product Values

Quote:
Originally Posted by superdave144
How do you change the default product values? I would like the default product quantity to be 1.
Hello.
Please specify your X-Cart version.
It would be useful to add it into your signature.
Thanks.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
  #3  
Old 10-16-2015, 11:15 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Default Product Values

5126 I think
__________________
David
X-Cart Business 5.3.2.2
  #4  
Old 10-18-2015, 05:30 PM
 
BrianY BrianY is offline
 

Advanced Member
  
Join Date: Nov 2011
Location: Georgia, USA
Posts: 74
 

Default Re: Default Product Values

Dave,

Are you talking about the default quantity on the product page when a customer adds the item to the cart? If so, I believe the default is 1.

To change this number go to the Admin area of your X-Cart and navigate to the details page for an individual product. On this page select the "Inventory tracking" tab. Here you can change the Minimum purchase quantity.
__________________
Brian
X-Cart 4.7.3
  #5  
Old 10-19-2015, 01:52 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Default Product Values

When you are adding a new product to the product catalog. The product has default values like quantity 1000
__________________
David
X-Cart Business 5.3.2.2
  #6  
Old 10-19-2015, 03:23 AM
 
BrianY BrianY is offline
 

Advanced Member
  
Join Date: Nov 2011
Location: Georgia, USA
Posts: 74
 

Default Re: Default Product Values

Quote:
Originally Posted by superdave144
When you are adding a new product to the product catalog. The product has default values like quantity 1000

To change the default would require a custom module in XC5. When creating the new product you have a lot of the standard options on the "Add product" page in admin, including the "Quantity in stock" field. I guess you want to streamline the adding products and deal with as few of these fields as possible.

Another option after adding all of the products for a category is to look at the products as a list by clicking into the category. There you can change the "In stock" value for multiple products with one Save action.

Additionally, if importing products you can set this value to whatever you want in your import file. Even if adding the products by hand and wanting a quick way to bulk edit, you could export, edit the .csv, and re-import with the new values.

Hope some of this helps.
__________________
Brian
X-Cart 4.7.3
  #7  
Old 10-19-2015, 05:26 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Default Product Values

Ok Thank you Brian. Maybe having a button on the bottom of the product page "Set as product defaults" might be a nice feature to add to x-cart.
__________________
David
X-Cart Business 5.3.2.2
  #8  
Old 10-19-2015, 11:11 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Default Product Values

Quote:
Originally Posted by superdave144
5126 I think
Thanks.
To change the default quantity you should change the value of the AMOUNT_DEFAULT_INV_TRACK constant in the /classes/XLite/Model/Inventory.php file (line 49)
By default it is
Code:
const AMOUNT_DEFAULT_INV_TRACK = 1000;
Just change it to
Code:
const AMOUNT_DEFAULT_INV_TRACK = 1;
and re-deploy the store.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
  #9  
Old 10-19-2015, 11:27 AM
 
BrianY BrianY is offline
 

Advanced Member
  
Join Date: Nov 2011
Location: Georgia, USA
Posts: 74
 

Default Re: Default Product Values

Quote:
Originally Posted by razortw
Thanks.
To change the default quantity you should change the value of the AMOUNT_DEFAULT_INV_TRACK constant in the /classes/XLite/Model/Inventory.php file (line 49)
By default it is
Code:
const AMOUNT_DEFAULT_INV_TRACK = 1000;
Just change it to
Code:
const AMOUNT_DEFAULT_INV_TRACK = 1;
and re-deploy the store.

Igor,

If he upgrades XC5 will these changes remain?
__________________
Brian
X-Cart 4.7.3
  #10  
Old 10-19-2015, 11:29 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Default Product Values

Yes! Thank you! I'll try tonight and get back to you.
__________________
David
X-Cart Business 5.3.2.2
Closed Thread
   X-Cart forums > X-Cart 5 > General 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 02:39 PM.

   

 
X-Cart forums © 2001-2020