If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Specials and SaleMaker / Is it possible to create a sale on all products by a manufacturer at 1.51?

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

Started by dulux on 28 Jul 2013, 8:32 AM · Views: 5,099

Results 1 to 12 of 12
28 Jul 2013, 8:32 AM
#1
dulux avatar

dulux

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Post #1 by dulux

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

My sale maker gives me an all product sale option and category sale option, but not by manufacturer... how can I do this?

28 Jul 2013, 2:39 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

SaleMaker is based on the master_categories_id of the Product ...

If you were able to make a Category for something like:
Manufacturer

then subcategories for each of your Manufacturers you could make those categories the master_categories_id after Linking your Products to those Manufacturers Categories and setting them as the Master Category for each of your Products ...

Now setup your SaleMaker sales based on the Manufacturers Categories you want on Sale ...

You might try this on a test work site for your shop and see how this works and if it has the desired affect ...

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 Sep 2013, 11:50 PM
#3
dulux avatar

dulux

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Post #3 by dulux

thanks a lot

20 Nov 2013, 6:56 PM
#4
dulux avatar

dulux

New Zenner

Join Date:
Mar 2013
Posts:
4
Plugin Contributions:
0

Post #4 by dulux

[QUOTE=Ajeh;1212063
then subcategories for each of your Manufacturers you could make those categories the master_categories_id after Linking your Products to those Manufacturers Categories and setting them as the Master Category for each of your Products ...

.[/QUOTE]

Hi again, do you know how to make a quick update (or module) for several products from one manufacturer to add the new master manufacturer category?????

one by one is so slowlyyyyyyyy!!!!!!

21 Nov 2013, 12:05 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #5 by mc12345678

dulux:

Hi again, do you know how to make a quick update (or module) for several products from one manufacturer to add the new master manufacturer category?????

one by one is so slowlyyyyyyyy!!!!!!

I don't know the exact statement(s) that would be required; however, sql would be a way to make that type of update quickly. Otherwise, a version of ez populate may be able to help if that version supports sale maker for sale.

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

21 Nov 2013, 12:07 AM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

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!

21 Nov 2013, 12:25 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #7 by mc12345678

Ajeh:

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

21 Nov 2013, 12:40 AM
#8
ajeh avatar

ajeh

Oba-san

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

Post #8 by ajeh

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:

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!

21 Nov 2013, 1:24 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #9 by mc12345678

Ajeh:

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:

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

21 Nov 2013, 1:26 AM
#10
ajeh avatar

ajeh

Oba-san

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

Post #10 by ajeh

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! :cool:

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!

26 Nov 2013, 3:12 AM
#11
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Post #11 by fakedecoy

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.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

28 Nov 2013, 8:11 PM
#12
ajeh avatar

ajeh

Oba-san

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

Post #12 by ajeh

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

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!