Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36
  1. #31
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Exclude category from also purchased?

    There are several aspects to the Also Purchased ...

    That code blocks the Also Purchased from showing on the product _info when in the products of those categories ...

    To block Products from those categories from showing on other categories in the Also Purchased but still let the Also Purchased to show, you need to customize the code in:
    /includes/classes/db/mysql/define_queries.php

    and change the code to include the code in RED:
    Code:
    DEFINE('SQL_ALSO_PURCHASED', "select p.products_id, p.products_image
                         from " . TABLE_ORDERS_PRODUCTS . " opa, " . TABLE_ORDERS_PRODUCTS . " opb, "
                                . TABLE_ORDERS . " o, " . TABLE_PRODUCTS . " p
                         where opa.products_id = '%s'
                         and opa.orders_id = opb.orders_id
                         and opb.products_id != '%s'
                         and opb.products_id = p.products_id
                         and opb.orders_id = o.orders_id
                         and p.products_status = 1
    and master_categories_id NOT IN (71, 72, 75, 76)
                         group by p.products_id
                         order by o.date_purchased desc
                         limit " . MAX_DISPLAY_ALSO_PURCHASED);
    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!

  2. #32
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Exclude category from also purchased?

    Just wanted to give big thanks to you Linda. The code worked flawlessly, thank you so much for your persistence in helping me and understanding my needs. It's exactly what I was looking for.

    This is the reason I love Zen Cart so much, this forum is unbelievably helpful and gives me everything I'm looking in an e-commerce platform. Thanks again.

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

    Default Re: Exclude category from also purchased?

    You are most welcome ... glad that this is now working for you as you needed ... remember the Zen Cart Team when you are rich and famous ...
    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!

  4. #34
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Exclude category from also purchased?

    Thanks for answering this post also. I've just used your answer to instantly do the same thing. Cheers.

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

    Default Re: Exclude category from also purchased?

    Thank you for the update that you were also able to use this solution ...
    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!

  6. #36
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Exclude category from also purchased?

    Hi Gautama,

    I tried messaging you but your inbox is full. Sorry for the bandwidth, but I had no other way to reach you:)

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. How to remove price information from "also purchased" box?
    By wilsonshen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 May 2011, 06:45 AM
  2. Horizontal Product Display (also purchased, featured products, category images)
    By jayhos in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 1 Feb 2011, 11:29 AM
  3. Remove price from also purchased display
    By ggbarnum in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Oct 2010, 01:30 AM
  4. Disable Specific Product from Customers who bought/selected also purchased...
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Dec 2009, 07:18 PM
  5. remove product name from also purchased
    By etoile03 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jul 2006, 05:39 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