Results 1 to 10 of 12

Hybrid View

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

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    Are you saying you are trying to get a single SQL that will build a Category with all the Products for one manufacturer?
    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!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    Quote Originally Posted by Ajeh View Post
    Are you saying you are trying to get a single SQL that will build a Category with all the Products for one manufacturer?
    Ajeh, I am not sure if the question is to me or to the OP; however, I would think that a solution that would end up working would be sufficient. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    If you want to make a Category with ALL the Products that have a manufacturers_id of XX as Linked Products ...

    1 Make a new Category and note the categories_id ... let's say it is 66

    2 Get the manufacturers_id ... let's say it is 3

    3 Backup your database in case you blow it ...

    4 Run in phpMyAdmin the command:
    Code:
    insert into products_to_categories (products_id, categories_id) select products_id, 66 from products where manufacturers_id = 3 and products_id not in (select products_id from products_to_categories where categories_id = 66);
    Now ALL Products with manufacturers_id 3 are Linked Products in categories_id 66

    Now, let's say you want categories_id 66 to be the master_categories_id for all these products ...

    Go to the Category categories_id 66 so that you can see the C for Copy on the Products and click it ... now click on Multiple Categories Linked Manager ...

    Down at the bottom of the page you will see:
    Reset ALL Products in the selected Category to use the selected Category as the new Master Categories ID ...
    Example: Resetting Category 22 would set ALL Products in Category 22 to use Category 22 as the Master Category ID Reset the Master Categories ID for All Products in Category:
    Enter the categories_id of 66 and all Products will be changed to have categories_id 66 as their master_categories_id ...
    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!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    Quote Originally Posted by Ajeh View Post
    If you want to make a Category with ALL the Products that have a manufacturers_id of XX as Linked Products ...

    1 Make a new Category and note the categories_id ... let's say it is 66

    2 Get the manufacturers_id ... let's say it is 3

    3 Backup your database in case you blow it ...

    4 Run in phpMyAdmin the command:
    Code:
    insert into products_to_categories (products_id, categories_id) select products_id, 66 from products where manufacturers_id = 3 and products_id not in (select products_id from products_to_categories where categories_id = 66);
    Now ALL Products with manufacturers_id 3 are Linked Products in categories_id 66

    Now, let's say you want categories_id 66 to be the master_categories_id for all these products ...

    Go to the Category categories_id 66 so that you can see the C for Copy on the Products and click it ... now click on Multiple Categories Linked Manager ...

    Down at the bottom of the page you will see:


    Enter the categories_id of 66 and all Products will be changed to have categories_id 66 as their master_categories_id ...
    And all I can say is, AND THAT'S WHY YOU AND THOSE AT ZC ROCK!!! Obviously know the inner workings/relationships of how the core of ZC works. I'm simply impressed, even if this isn't something I needed personally/professionally.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    Just had to fool with the way to build this bad boy ... then tested it out and voila! The magic occurred ... I thought it was pretty cool too!
    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!

  6. #6
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    It sounds like that solution would work, but wouldn't it affect the breadcrumbs display for category browsing? When a visitor views that product, unless the cPath parameter is in the url, he would find himself browsing the Sale category instead of the category that makes sense. Technically it would still work, but that seems like a nasty tradeoff.

    I want a 1-week sale for all products by one manufacturer, amounting to about 200 products. It seems that the most efficient way to do this without messing up my breadcrumb display is to create an SQL statement adding records to zen_specials.

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

    Default Re: Is it possible to create a sale on all products by a manufacturer at 1.51?

    You could try this attachment ...

    It allows for the Adding/Removing by Category (master_categories_id) or Manufacturer (manufacturers_id) and see how that works for you ...

    Be sure to backup your database before attempting to use this ...
    Attached Files Attached Files
    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!

 

 

Similar Threads

  1. v150 How to create a sale/special on products priced by attributes
    By sbaker6612 in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 21 Nov 2015, 07:59 AM
  2. v151 create a link that shows all products from specific manufacturer
    By noyloza in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Apr 2014, 08:24 AM
  3. Possible to Create Shipping Discounts on Specific Products?
    By dcENS in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Nov 2009, 03:21 AM
  4. Delete All Products By Manufacturer
    By milobloom in forum General Questions
    Replies: 4
    Last Post: 16 Jan 2008, 01:28 AM

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