Forums / General Questions / copy Quantity Discounts to some products or catalog,it will as copy attributes

copy Quantity Discounts to some products or catalog,it will as copy attributes

Locked

Views: 1,818

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Aug 2009, 7:22 AM
#1
gueston avatar

gueston

Zen Follower

Join Date:
Apr 2009
Posts:
118
Plugin Contributions:
0

copy Quantity Discounts to some products or catalog,it will as copy attributes

as the tittle,have any one can help me'?

because we have a lot of same price and same Quantity Discounts for products,as a lot of t-shirts,jeans,etc.

so we need some function as below.please help us.

copy Quantity Discounts to some products or catalog,it will as copy attributes to one or some products,one or some catalog.
Thanks

http://www.gueston.com Gueston wholesale plaza--wholesale cheap brand apparel

9 Aug 2009, 2:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: copy Quantity Discounts to some products or catalog,it will as copy attributes

There isn't anything built into Zen Cart for copying the Quantity Discounts setup on one Product to another existing Product or Category of Products ...

There is a function to make this copy from one product to another that might help on this:

////
//copy discounts from product to another
function zen_copy_discounts_to_product($copy_from, $copy_to) {

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!

9 Aug 2009, 3:21 PM
#3
gueston avatar

gueston

Zen Follower

Join Date:
Apr 2009
Posts:
118
Plugin Contributions:
0

Re: copy Quantity Discounts to some products or catalog,it will as copy attributes

Ajeh:

There is a function to make this copy from one product to another that might help on this:

Hi,thanks your reply,but how to use it,can you place a example,i'm newbie,and is it only copy qty price?and if it can copy p to p,then i think you can wirte a function to copy p to catalog,is it right? lol

http://www.gueston.com Gueston wholesale plaza--wholesale cheap brand apparel

9 Aug 2009, 8:04 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: copy Quantity Discounts to some products or catalog,it will as copy attributes

Pick products_id to copy Discount Quantities from ...

Pick categories_id to get Products to copy Discount Quantities to ...

Get all products_id from the categories_id to be used to copy Discount Quantities ...

Loop through products_id of categories_id to copy to and:

1 remove existing discount quantities that might exist for products_id

2 build new discount quantities with zen_copy_discounts_to_product

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!