Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Vancouver, Canada
- Posts:
- 1,572
- Plugin Contributions:
- 60
Post #21 by numinix
It was actually quite easy:
http://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/
Totally Zenned
It was actually quite easy:
http://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/
Totally Zenned
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.
Zen Follower
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!!
Oba-san
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 ...
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!
Zen Follower
Ajeh:
What is the Master Categories ID (master_categories_id) for the Product:
Chinese Tale: Kitty Goes FishingI 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.
Oba-san
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 ...
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!
Totally Zenned
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.
Zen Follower
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.
Oba-san
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 ...
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!
Totally Zenned
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.
Zen Follower
numinix:
It was actually quite easy:
http://www.numinix.com/blog/2010/10/23/how-to-show-salemaker-sales-on-the-specials-page/
Thank you - perfect solution :)
New Zenner
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!
New Zenner
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
New Zenner
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.
Administrator
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.
New Zenner
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!
New Zenner
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.
New Zenner
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
Totally Zenned
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
Zen Follower
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
Tell staff why this post should be reviewed.