Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Is there a reason that also_purchased is dead?

    Working on a mod, I came across commented out code referencing the /includes/modules/also_purchased_products.php file. The page referencing it (/includes/modules/pages/product_info/main_template_vars.php) has it commented out so it won't be used.

    I uncommented it and it seems to work fine, so I'm wondering if there's a reason its not used. Does it break code somewhere?

    Line 184:
    Code:
    //require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));
    Thanks!

    - Steven

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

    Default Re: Is there a reason that also_purchased is dead?

    Its location and referrences were moved ...
    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!

  3. #3
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: Is there a reason that also_purchased is dead?

    That's what I originally thought, but then I couldn't find any other reference to it. Do you happen to know where it was moved?

    I'm writing a contrib that effects all sideboxes and index modules that display products and I'm trying to be as complete as possible, so I'd like to include this one.

    Thanks.

    - Steven

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

    Default Re: Is there a reason that also_purchased is dead?

    Do a search in the Developer's Tool Kit for:
    FILENAME_ALSO_PURCHASED_PRODUCTS

    And also for:
    modules_also_purchased_products

    Should help you find 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!

  5. #5
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: Is there a reason that also_purchased is dead?

    Quote Originally Posted by Ajeh
    Do a search in the Developer's Tool Kit for:
    FILENAME_ALSO_PURCHASED_PRODUCTS
    Well, I did That's how I learned that it was being commented out (as described above).
    Quote Originally Posted by Ajeh
    And also for:
    modules_also_purchased_products

    Should help you find this ...
    Thanks! That led me to it.

    Ok, so now my question becomes... is there a reason this is off by default, and has no aparant way of turning it on through admin? Again... is it problematic code or something? It no longer affects my contrib (that's solved now) so now its just curiosity from a general perspective.

    To turn this module on, it seems one has to open tpl_modules_also_purchased_products.php and change line 13 to read:
    Code:
    $zc_show_also_purchased = true;
    - Steven

  6. #6
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: Is there a reason that also_purchased is dead?

    Ohh... nevermind. I see now how it is set.

    It IS in admin, under Configuration --> Product Info, very last line entitled "Also Purchased Products Columns per Row" (set 0 to turn off).

    Just an unusual amount of extraneous code left behind in this case... through me off.

    - Steven

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

    Default Re: Is there a reason that also_purchased is dead?

    Thanks for the update ... glad you have your settings straightened out now ...
    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. v151 FMF: Is there a reason that the configuration setting is not made available?
    By lat9 in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 25 Jun 2021, 08:20 AM
  2. v154 Is there a reason I can't override currencies sidebox?
    By s_mack in forum General Questions
    Replies: 9
    Last Post: 29 Jul 2015, 10:10 PM
  3. Replies: 3
    Last Post: 29 Sep 2009, 02:22 AM
  4. Is there any reason multiple images wouldn't show up?
    By bugyoutoo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2008, 12:02 AM
  5. Is there a reason why shipping weight shows as 0 in shopping cart?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Dec 2007, 06:44 PM

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