Zen Cart Logo
Forums / All Other Contributions/Addons / Just another Cross-Sell mod (support thread)

Just another Cross-Sell mod (support thread)

Views: 133,966

Results 261 to 280 of 704
12 Sep 2008, 9:58 PM
#261
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Just another Cross-Sell mod (support thread)

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Sep 2008, 10:02 PM
#262
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

After installing module_manager_rev15, I install this mode right after that cross_sell__just_another_cross_sell_mod_rev185.

- Nothing is impossible. Some things are just less likely than others. -

16 Sep 2008, 9:55 PM
#263
k4satin avatar

k4satin

New Zenner

Join Date:
Mar 2006
Location:
Sacramento, CA
Posts:
93
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Dantes:

I found the solution:

in your zen-cart root directory:

substitute the file:
"<zen-cart-root>/admin/includes/init_includes/init_yclass.php"

with the version from:
<zen-cart-root>/includes/init_includes/
<DONE>

(i.e. copy "init_yclass.php"
from "<zen-cart-root>/includes/init_includes/"
to "<zen-cart-root>/admin/includes/init_includes/")

I just installed module_manager because I want to use the cross sell mod and am getting a similar error. I tried to use this solution, but I don't even have a file called init_yclass.php. I could not find the shared_classes separately that the readme said to install, but one of the updates said it was now included in the mod (the entire site http://svn.rubikintegration.com seems to be gone). I had assumed the latest download from the zen-cart add-ons section would have the most recent version, but maybe I need to go to that Google link... My version says Alpha 3.3. Apparently, I am still missing files. I'll try the Google link, but any other suggestions would be appreciated. Also, if the add-ons section is not up-to-date, is there anything that can be done about it? Is the support site really gone, or just down temporarily?

17 Sep 2008, 6:08 PM
#264
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

The one on google is newest.

Still have a problem? You can pm me for help (free, so dont worry)

You can also pm me your ftp and admin temporary login info so I can set that module up for you.

Regards

k4satin:

I just installed module_manager because I want to use the cross sell mod and am getting a similar error. I tried to use this solution, but I don't even have a file called init_yclass.php. I could not find the shared_classes separately that the readme said to install, but one of the updates said it was now included in the mod (the entire site http://svn.rubikintegration.com seems to be gone). I had assumed the latest download from the zen-cart add-ons section would have the most recent version, but maybe I need to go to that Google link... My version says Alpha 3.3. Apparently, I am still missing files. I'll try the Google link, but any other suggestions would be appreciated. Also, if the add-ons section is not up-to-date, is there anything that can be done about it? Is the support site really gone, or just down temporarily?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

17 Sep 2008, 10:44 PM
#265
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

miles:

I just install this Cross Sell mod but I have some problem with the product_info.php file.

I insert this line in that file

define('TEXT_XSELL_PRODUCTS', 'Related Products');

> 
> All of the sudden the product page goes blank. What seems to be the problem? It reappears if I remove the product_info.php file. By the way I did installed the module manager mod. I don't know if it has to do with tabbed products pro mod. 
> 
> Can someone help me on this? Thank you. :(


<https://www.zen-cart.com/tutorials/index.php?article=82>

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

17 Sep 2008, 10:56 PM
#266
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

I got an error something like this,**

Parse error**: syntax error, unexpected T_STRING in includes/languages/english/zenmod/product_info.php on line **1

**What should I do about it?

- Nothing is impossible. Some things are just less likely than others. -

18 Sep 2008, 1:24 AM
#267
ajeh avatar

ajeh

Oba-san

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

Re: Just another Cross-Sell mod (support thread)

Open that file in a text editor such as UltraEdit, NoteTab or NotePad and look to see what is on line 1 ...

The language files should start with the opening php bracket <?php ...

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!

18 Sep 2008, 2:26 AM
#268
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

OK so here is the product_info.php file,

<?php

/**

 * @package languageDefines

 * @copyright Copyright 2003-2007 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: product_info.php 6371 2007-05-25 19:55:59Z ajeh $

 */



define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.');

define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');

define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');

define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');

define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...');

define('TEXT_PRODUCT_OPTIONS', 'Please Choose: ');

define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');

define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');

define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');

define('TEXT_PRODUCT_MODEL', 'Model: ');







// previous next product

define('PREV_NEXT_PRODUCT', 'Product ');

define('PREV_NEXT_FROM', ' from ');

define('IMAGE_BUTTON_PREVIOUS','Previous Item');

define('IMAGE_BUTTON_NEXT','Next Item');

define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List');



// missing products

//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');



define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');

define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');

define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');

define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');

define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');

define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');



define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');

define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');

define('TEXT_XSELL_PRODUCTS', 'Related Products');

?>
```As you see I have added the 'cross sell' code at the end. But I don't see any error in line 1. Before I added that cod everythings fine. But when I add that line, then the problems appear. Can someone look into this?

- Nothing is impossible. Some things are just less likely than others. -

18 Sep 2008, 2:46 AM
#269
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

I also have this error,

Notice: Undefined variable: xsell_data in /includes/templates/mytemplate/templates/tpl_modules_xsell_products.php on line 19

Which is something like this,

// calculate whether any cross-sell products are configured for the current product, and display if relevant
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_XSELL_PRODUCTS));

if (zen_not_null($xsell_data)) {
  $info_box_contents = array();
  $list_box_contents = $xsell_data;
  $title = '';
?>

- Nothing is impossible. Some things are just less likely than others. -

18 Sep 2008, 2:51 AM
#270
ajeh avatar

ajeh

Oba-san

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

Re: Just another Cross-Sell mod (support thread)

Change the IF to:

if (isset($xsell_data) && zen_not_null($xsell_data)) { 
  $info_box_contents = array();
  $list_box_contents = $xsell_data;
  $title = '';
?> 

That should handle when the $xsell_data is not defined ... however, the question now is, why isn't it defined ... :unsure:

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!

18 Sep 2008, 3:04 AM
#271
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Does it have anything to do with tabbed products pro mod?

I still can't figure out why if I added the product_info.php file into this directory /includes/languages/english/mytemplate and the product page goes blank.

I have read all the step-by-step instructions on how to install the mod.

- Nothing is impossible. Some things are just less likely than others. -

18 Sep 2008, 4:35 AM
#272
ajeh avatar

ajeh

Oba-san

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

Re: Just another Cross-Sell mod (support thread)

I think you have space(s) or blank line(s) before the opening php tag <?php at the top of the file ...

Edit the file in a text editor like NotePad and make sure that you do not and make sure you do not have any space after the closing tag at the bottom ?> either ...

And check if this is working after cleaning up the file ...

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!

18 Sep 2008, 4:51 AM
#273
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Thank you Ajeh for trying to help me but I'm 100% sure there is no space above the opening <?php **and after the closing** ?>

I removed the product_info.php file and then copy the default file from the **includes/languages/english **directory to the /includes/languages/english/mytemplate directory. The product page still fine.

At the time I insert this line,

define('TEXT_XSELL_PRODUCTS', 'Related Products');
```then the product page turns blank once again.

- Nothing is impossible. Some things are just less likely than others. -

18 Sep 2008, 5:15 AM
#274
ajeh avatar

ajeh

Oba-san

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

Re: Just another Cross-Sell mod (support thread)

When you make that change, save the file ... close it ... re-open it and check for the space(s) and blank line(s) ...

NOTE: be sure you are not using your Control Panel to edit this file on the server ...

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!

18 Sep 2008, 8:33 PM
#275
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Sorry, getting very tired. Wanted to upgrade to this cross-sell.

Found module manager. Read the readme and now I am looking for
shared class files (https://svn.rubikintegration.com/zencart_mods/shared_classes/)

Where is the google link that was talked about to get the shared classes? Is this even something I need to install first?

Live and learn... the Zen way.

18 Sep 2008, 9:38 PM
#276
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

http://code.google.com/p/zencart-module-manager/downloads/list

Use this, all classes needed are inside.

Regards

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

18 Sep 2008, 11:47 PM
#277
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Oh, wow. I guess the one in the download section is way outdated. Good news means you have been working hard on this.:clap:
Bad news..the one in the download section is outdated.... and the readme is pointing to the wrong site.

Cross sell readme in the download section would need updating too. Is the cross sell in download otherwise up to date or should/ need I download from some google link too?

Anyway, thank you very much.

Live and learn... the Zen way.

18 Sep 2008, 11:50 PM
#278
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Trying to get around updating it. I was trying to wait till I have time for a new updated version of xsell, but I guess I should do it sooner

Regards

mydanilo:

Oh, wow. I guess the one in the download section is way outdated. Good news means you have been working hard on this.:clap:
Bad news..the one in the download section is outdated.... and the readme is pointing to the wrong site.

Cross sell readme in the download section would need updating too. Is the cross sell in download otherwise up to date or should/ need I download from some google link too?

Anyway, thank you very much.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

19 Sep 2008, 12:25 PM
#279
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

I guess we all get:
Fatal error: Call to undefined method yclass::init_template() in /zentest/admin/module_manager.php on line 14

If we follow instructions and install Module Manager first and then
the Cross-Sell mod after.

Yellow: Could this be fixed in the modules in download? Or at least edit the intro text to clearly state this problem? Costs everybody some nerves, shock and time to search for the solution. Never great to have errors on your screen when you try a new mod. :ohmy:

One more time the solution is:

substitute the file(from the cross sell):
"<zen-cart-root>/admin/includes/init_includes/init_yclass.php"

with the version from (moduls manager):
<zen-cart-root>/includes/init_includes/

Works great now. Thank you for another great mod.

Live and learn... the Zen way.

19 Sep 2008, 12:43 PM
#280
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Just another Cross-Sell mod (support thread)

Now I am testing how the new cross sell works.

I noticed I am missing Admin - Configuration - Cross Sell

so I searched for *.sql files in the cross sell directories. And I found 0.sql, 1.sql, 2.sql

I thought these would be called automatically by Module Manager?

Guess not. I put them in the SQL Query Executor. Now I have the new Admin options. Back to testing...

Live and learn... the Zen way.