Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Posts
    118
    Plugin Contributions
    0

    Default 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
    Last edited by gueston; 7 Aug 2009 at 08:28 AM.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  3. #3
    Join Date
    Apr 2009
    Posts
    118
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post

    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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

 

 

Similar Threads

  1. v139h how can i copy my products attributes to all catalog?
    By xyhailing in forum Customization from the Admin
    Replies: 0
    Last Post: 31 May 2012, 05:23 PM
  2. copy quantity discounts
    By niccol in forum Setting Up Categories, Products, Attributes
    Replies: 25
    Last Post: 20 Mar 2012, 12:34 AM
  3. Can I copy Quantity Discounts across products?
    By dharrison in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 6 May 2011, 04:34 PM
  4. Copy quantity discounts to other products ?
    By achitophel in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 6 Jul 2009, 11:03 AM
  5. Copy quantity discounts froma a product to a category
    By 7inter in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 30 Aug 2007, 06:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR