Forums / All Other Contributions/Addons / Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

Views: 1,005

Results 1 to 4 of 4
7 Apr 2016, 7:11 PM
#1
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

Hi
I found this old post

But probably there is some sort of config for this.
Let me explain: All it's ok !

The issue is on me, cause I'm using a import file to EP4 where I don't have this fields available... didn't put them there cause, for some reason I dream that there was a configure for this.
Like I don't have them, in the product main info I got this Min: 0 Units: 0 near the qty box.

Thanks

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

12 Apr 2016, 5:15 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

You'd need to set products_quantity_order_min and products_quantity_order_units to 1 in your Easy Populate file.

.
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.

12 Apr 2016, 6:08 PM
#3
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

Thanks !

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

14 Apr 2016, 8:31 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?

Another solution could have been to run a sql command in the admin->tools->install SQL patches window to update all of the product with that condition for each to be equal to 1.

ie:

UPDATE products set products_quantity_order_min = 1, products_quantity_order_units = 1 WHERE products_quantity_order_min = 0 AND products_quantity_order_units = 0;

This would update all product that have the value of 0 for both of the fields. It would not correct/update product that have only one or the other fields set to 0. That would require a different SQL query. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...