How to Set a Default Quantity in Adding New Product?
so that i have less column to key in, and can add new products faster.
Pls help
How to Set a Default Quantity in Adding New Product?
so that i have less column to key in, and can add new products faster.
Pls help
Hi,
The only way to do it is by editing the following file:
/YOUR_ADMIN/includes/modules/product/collect_info.php
Look for the following line:
Replace the line with the followingCode:<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity', ($pInfo->products_quantity?$pInfo->products_quantity:5)); ?></td>
I have set the default quantity to 5, you can change the number to a different one.Code:<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity', ($pInfo->products_quantity?$pInfo->products_quantity:5)); ?></td>
both look the same and... I hope this is the same for the OP's ZC version since it was not mentioned.
Should be around line 275 in 1.5.# but was changed in 2011 so may not work on earlier versions.
If there are a lot of products involved, why not investigate Easy Populate? Just pick one that suits your needs. http://www.zen-cart.com/search.php?searchid=1821417
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Hi,
Sorry this is the proper code, now the 2 lines are not the same.
Open the following file:
/YOUR_ADMIN/includes/modules/product/collect_info.php
Look for the following line:
Replace the line with the followingCode:<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td>
I have set the default quantity to 5, you can change the number to a different one.Code:<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity', ($pInfo->products_quantity?$pInfo->products_quantity:5)); ?></td>
It works. Thank you very much
responsivezc : if i want to set a default weight ?
is this still the same file to edit ?
i need this default weight, so that the order doesn't go to free delivery
Yes, same file.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.