Zen Cart Logo
Forums / General Questions / Is there a reason that also_purchased is dead?

Is there a reason that also_purchased is dead?

Locked

Views: 1,489

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
20 Sep 2006, 5:16 PM
#1
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

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:```
//require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));


Thanks!

 - Steven
20 Sep 2006, 5:30 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Is there a reason that also_purchased is dead?

Its location and referrences were moved ...

20 Sep 2006, 5:49 PM
#3
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

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
20 Sep 2006, 6:00 PM
#4
ajeh avatar

ajeh

Oba-san

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

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

20 Sep 2006, 6:11 PM
#5
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Is there a reason that also_purchased is dead?

Ajeh:

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

Well, I did :smartass: That's how I learned that it was being commented out (as described above).

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: ```
$zc_show_also_purchased = true;


 - Steven
20 Sep 2006, 6:22 PM
#6
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

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
20 Sep 2006, 6:31 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Is there a reason that also_purchased is dead?

Thanks for the update ... glad you have your settings straightened out now ... :smile: