Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Salesmaker not show under Specials?

Salesmaker not show under Specials?

Views: 52,017

Results 21 to 40 of 50
25 Oct 2010, 9:53 PM
#22
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Salesmaker not show under Specials?

I think the same logic could be applied to the sideboxes and centerboxes, but I only needed the listing. So, others can feel free to modify this code and share it with others.

20 Nov 2010, 12:10 AM
#23
lina0962 avatar

lina0962

Zen Follower

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

Re: Salesmaker not show under Specials?

numinix:

It was actually quite easy:

http://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/

I followed your instruction to change the code, but I found there was a problem.

In salesmaker, I put deduction of 15% only on products between $5.99 to $12.99, in the category "1st - 5th grade". But in the special listing page, everything under the category ""1st - 5th grade" were there, including those items priced below $5.99. Therefore, in the listing page of "specials", customers actually see lots of items "not on sale". the website is: http://www.best4future.com/specials?page=1

Could you please help me fix this problem? Thank you!!

20 Nov 2010, 1:37 AM
#24
ajeh avatar

ajeh

Oba-san

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

Re: Salesmaker not show under Specials?

What is the Master Categories ID (master_categories_id) for the Product:
Chinese Tale: Kitty Goes Fishing

I see a 30% sale on that one but not the 15% sale you are describing ...

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!

20 Nov 2010, 4:40 AM
#25
lina0962 avatar

lina0962

Zen Follower

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

Re: Salesmaker not show under Specials?

Ajeh:

What is the Master Categories ID (master_categories_id) for the Product:
Chinese Tale: Kitty Goes Fishing

I see a 30% sale on that one but not the 15% sale you are describing ...

Both the 15% off products and 30% off proudcts are in the category "1st - 5th grade", whose Maser_categories_id is 2.

I only set the 15% discount on the products which are above $5.99. But, in the special page (http://www.best4future.com/specials), you can see all of the products in the category "1st - 5th grade", no matter they are on sale (orginal price above $5.99) or not (original price are below $5.99).

the sideboxes and centerboxes of "specials" only show the discounted products set from admin-catalog-specials, since numinix didn't give us the code to display the discounted products set from admin-catalog-salesmaker.

20 Nov 2010, 4:13 PM
#26
ajeh avatar

ajeh

Oba-san

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

Re: Salesmaker not show under Specials?

What is the definition and categories for the 15% off SaleMaker?

What is the definition and categories for the 30% off SaleMaker?

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 2010, 2:12 AM
#27
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Salesmaker not show under Specials?

Additional checks would needed to be added to support limiting by price. But, it wouldn't be difficult to do this in the SQL query or even in PHP after.

21 Nov 2010, 2:50 PM
#28
lina0962 avatar

lina0962

Zen Follower

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

Re: Salesmaker not show under Specials?

Ajeh:

What is the definition and categories for the 15% off SaleMaker?

What is the definition and categories for the 30% off SaleMaker?

15% off is set via salesmaker on products between $5.99 to $12.99 in the category "1st - 5th grade", whose Maser_categories_id is 2.

30% off is set via specials on products in the category "1st - 5th grade", whose Maser_categories_id is 2.

21 Nov 2010, 3:50 PM
#29
ajeh avatar

ajeh

Oba-san

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

Re: Salesmaker not show under Specials?

Okay ... I see the limitations to the combination of Specials and SaleMaker on the Specials page that you are having ...

This is one of the limitations to an incomplete build of the SaleMaker based on the price filters ...

Perhaps numinix will have a simple fix to go along with his easy method of trying to combine the two to be displayed in the Specials ...

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!

30 Nov 2010, 12:54 AM
#30
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Salesmaker not show under Specials?

Ajeh:

Okay ... I see the limitations to the combination of Specials and SaleMaker on the Specials page that you are having ...

This is one of the limitations to an incomplete build of the SaleMaker based on the price filters ...

Perhaps numinix will have a simple fix to go along with his easy method of trying to combine the two to be displayed in the Specials ...
When I have a need for this, I'll update the blog.

4 Feb 2011, 10:54 AM
#32
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

Having a bit of a problem, implemented it as per the instructions, however, when i go to my specials page... it still doesn't list the sales?

Please help!

4 Feb 2011, 10:58 AM
#33
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

If you go to http://gbsa.tyrmida.co.za/shop/all-products

you'll see the first shoe top left (alma hi) is on special, and the shoe to the right of it (alma lo) is on sale.

If you go to the specials page http://gbsa.tyrmida.co.za/shop/specials

it only shows the alma hi.

Please help, this is rather urgent

8 Aug 2011, 2:08 PM
#34
delerius avatar

delerius

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

numinix:

It was actually quite easy:

http://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/

Thanks for the fix but what would I have to change to get the specials to show on the index page in the center? I have "Show Special Products on Main Page" set to "on" but with the fix the salemaker don't show.

8 Aug 2011, 8:17 PM
#35
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,718
Plugin Contributions:
56

Re: Salesmaker not show under Specials?

If you want to show the sales on the front page, use my "What's On Sale" contribution in the Free Software Add Ons at the top left of this page.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Aug 2011, 11:31 PM
#36
delerius avatar

delerius

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

swguy:

If you want to show the sales on the front page, use my "What's On Sale" contribution in the Free Software Add Ons at the top left of this page.

Thank you! The add-on works great!

27 Jan 2014, 11:29 PM
#37
tgom avatar

tgom

New Zenner

Join Date:
Jan 2014
Location:
Hell
Posts:
1
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

I went ahead and made a hack that lets you add multiple items to Specials at one time. Is anyone still interested in this? Don't want to waste my time putting this out there if no one needs it.

15 Apr 2014, 12:09 PM
#38
wirefram avatar

wirefram

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

Hi

Using version 1.3.9h I am getting an error with Numinix fix

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘*) as total FROM products p LEFT JOIN specials s ON (s’ at line 1
in:
[select count(distinct *) as total FROM products p LEFT JOIN specials s ON (s.products_id = p.products_id) LEFT JOIN products_description pd ON (pd.products_id = p.products_id) LEFT JOIN products_to_categories p2c ON (p2c.products_id = p.products_id) WHERE p.products_status = '1' AND ( (s.status = 1 AND p.products_id = s.products_id) OR (p2c.categories_id IN (235,201)) ) AND p.products_id = pd.products_id AND pd.language_id = 1 ]

On his blog there are others having same problem and no solution, does someone know how to solve this error?

Thanks

L.

**2nd market domain names for sale **
dot com only !
http://www.ventesites.com

15 Apr 2014, 5:22 PM
#39
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Salesmaker not show under Specials?

wirefram:

Hi

Using version 1.3.9h I am getting an error with Numinix fix

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘*) as total FROM products p LEFT JOIN specials s ON (s’ at line 1
in:
[select count(distinct *) as total FROM products p LEFT JOIN specials s ON (s.products_id = p.products_id) LEFT JOIN products_description pd ON (pd.products_id = p.products_id) LEFT JOIN products_to_categories p2c ON (p2c.products_id = p.products_id) WHERE p.products_status = '1' AND ( (s.status = 1 AND p.products_id = s.products_id) OR (p2c.categories_id IN (235,201)) ) AND p.products_id = pd.products_id AND pd.language_id = 1 ]

On his blog there are others having same problem and no solution, does someone know how to solve this error?

Thanks

L.

Please see my latest comment: https://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/comment-page-1/#comment-5001.

Have you made other customizations to the specials listing? This code does work with ZC 1.5.1. Try using the developer's toolkit to find where this text is used:

select count(distinct *) as total FROM
2 Dec 2014, 3:17 PM
#40
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

Re: Salesmaker not show under Specials?

In case this helps anyone:

for those of you like me that suddenly got the “WARNING: An Error occurred, please refresh the page and try again.” using Zen Cart 1.5.1 – I dug around and for some reason when a new salemaker is being created its addin in 2 commas st the start of the field – which the MySQL cannot work with

so in

Open includes/modules/pages/specials/main_template_vars.php and find:

I changed

$sale_categories_all = substr($sale_categories_all, 1); // remove preceeding comma

too

$sale_categories_all = substr($sale_categories_all, 2); // remove preceeding 2 comma’s

and error went away – now I don’t know why this is happening now – as it was working fine

but for those that just want a solution try it - I don't guarantee that it won't have an effect further down the line :)

Thanks
Sarah