Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / How to add the discount qty box to ALL products???

How to add the discount qty box to ALL products???

Locked

Started by peterbkk on 13 Jul 2006, 1:05 PM · Views: 4,297

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
13 Jul 2006, 1:05 PM
#1
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

How to add the discount qty box to ALL products???

How to add the discount qty box to ALL products??? Is there a way to it then manually??

13 Jul 2006, 1:10 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to add the discount qty box to ALL products???

The discount quanties are stored in the table:
products_discount_quantity

Then, in the products table you need to update the 2 fields for:
products_discount_type
products_discount_type_from

If you setup a Product with the proper Discount Quanties ... you will be able to see what these settings are ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jul 2006, 6:30 PM
#3
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

eehe...Thanks... But were??? In MySQL or...:wacko: i found a Tabell: zen_products_discount_quantity... but not products_discount_type or
products_discount_type_from...

I want to have same discount on all my products.

0-59pcs = 5%
60-119pcs = 7%
120-599pcs=10%
600-1199pcs=15%

Peter....

13 Jul 2006, 6:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to add the discount qty box to ALL products???

These are fields in the products table ...

In your case, the zen_products table ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jul 2006, 7:14 PM
#5
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

I think i have foud it but it was named different. But i have found allt the number and also exported it to excel.....

13 Jul 2006, 8:25 PM
#6
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

I have created the excel file but i got some kind of FAIL when importing the file...

14 Jul 2006, 12:28 PM
#7
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

Ajeh:

The discount quanties are stored in the table:
products_discount_quantity

Then, in the products table you need to update the 2 fields for:
products_discount_type
products_discount_type_from

If you setup a Product with the proper Discount Quanties ... you will be able to see what these settings are ...

Ok, i found them:

products_discount_type tinyint(1) NOT NULL default '0',
products_discount_type_from tinyint(1) NOT NULL default '0',

What to do with them????

And i also found a table with my values in it:
discount_id
products_id
discount_qty
discount_price

To add all data to thouse fields will take as long as to do it in ZC. Is there any fast way to do it???

//Peter

14 Jul 2006, 1:06 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to add the discount qty box to ALL products???

You could write a php file to collect all of the product_id and then build the products_discount_quantity with that for the values ...

Then update the two fields in the products table to the correct settings ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Jul 2006, 1:33 PM
#9
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

Ajeh:

You could write a php file to collect all of the product_id and then build the products_discount_quantity with that for the values ...

Then update the two fields in the products table to the correct settings ...

Pbh, pph, php.. i can hardly spell to it :no:

So there are no "easy" way to do it then :( ?

Peter:cry:

16 Jul 2006, 4:17 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to add the discount qty box to ALL products???

Just by writting a program for this ...

If you are unable to write one to do this for you ... you may contact me via PM for a customized job to do this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Jul 2006, 1:50 PM
#11
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: How to add the discount qty box to ALL products???

I was told by Langer that Easy Populate Advance would solve this and many other issues i have... He said it is only days left until he releases it.... but how many??? 3 or 33 :unsure: