Forums / Basic Configuration / Can I set a default product price for creating new products in Admin?

Can I set a default product price for creating new products in Admin?

Started by mrcastle on 30 Jul 2014, 4:24 PM · Views: 834

Results 1 to 3 of 3
30 Jul 2014, 4:24 PM
#1
mrcastle avatar

mrcastle

Zen Follower

Join Date:
Feb 2010
Posts:
205
Plugin Contributions:
0

Can I set a default product price for creating new products in Admin?

Just setting up a new site and am curious if it's possible to have a default price when entering new products. I plan to add a couple hundred items with the same price... I know I can use easypopulate to accomplish this but I am fairly certain it will take less time going thru the Admin panel to do this. Thank you.

30 Jul 2014, 5:19 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Can I set a default product price for creating new products in Admin?

You'll have to edit PHP code to do that:

/your_renamed_admin_folder/includes/modules/product/collect_info.php
lines 12-20 are the following; put your price where I've added 55.55 below:```
$parameters = array('products_name' => '',
'products_description' => '',
'products_url' => '',
'products_id' => '',
'products_quantity' => '',
'products_model' => '',
'products_image' => '',
'products_price' => '[B]55.55[/B]',
'products_virtual' => DEFAULT_PRODUCT_PRODUCTS_VIRTUAL,

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Jul 2014, 12:31 AM
#3
mrcastle avatar

mrcastle

Zen Follower

Join Date:
Feb 2010
Posts:
205
Plugin Contributions:
0

Re: Can I set a default product price for creating new products in Admin?

Fantastic! Works great. Thanks again.