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

Just another Cross-Sell mod (support thread)

Views: 133,965

Results 441 to 460 of 704
6 Feb 2009, 2:04 AM
#441
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Just another Cross-Sell mod (support thread)

yellow1912:

I'm writing a new version of this module with some add features that I need to justify if it is worth it (in other words, will these features add benefit to you?)
Those are:
cross sell product to product (old),
product to category,
category to category,
category to product

I need to see if it is worth it or now, reason is:
To cross sell so many ways like that we will need more than 1 queries executed to pull out the products. I will consider caching but still it will use more resources that it is now. So let me know what you think. Is this worth it?

Just my $.02. I use product to product 99% of the time. Making that process easier would be more beneficial. Many times I over the reverse but not always so making that an option would be helful. Although, probably very difficult to implment.

Jim
Wheaton Website Services

6 Feb 2009, 2:49 AM
#442
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

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

yellow1912:

I'm writing a new version of this module with some add features that I need to justify if it is worth it (in other words, will these features add benefit to you?)
Those are:
cross sell product to product (old),
product to category,
category to category,
category to product

I need to see if it is worth it or now, reason is:
To cross sell so many ways like that we will need more than 1 queries executed to pull out the products. I will consider caching but still it will use more resources that it is now. So let me know what you think. Is this worth it?

What I would find the absolute most useful function is the ability to select a checkbox to add the cross sell items to the cart when the main item is added to the cart. I have seen other cart software do this and consider it an immense boon to usability and getting the customer the items, along with relevant attributes, they want quickly all in one go. An example of this can be found here:

http://www.mid-east.com/itemdesc.asp?ic=HPBY&eq=&Tp=

You will see the addons/accessories on the right with the checkbox to add to cart with the main item.

An even more ambitious endeavor would be to make each cross sell item ajaxified so a user could browse through another category on the same product page to select the item, complete with attributes, they want to add to the cart simultaneously. It would almost be like a frame or an iframe but using current standards compliant ajax techniques. That would be incredibly powerful!! And, it would be tremendously advanced compared to anything out there. Do you see what I mean or am I being to abstract? I can elaborate more if this is an interesting idea. I am working hard on learning coding in my spare time, but as of late I have very little spare time to devote to my studies so I am not advancing as quickly as I would like and thus am still not at the skill level to do this myself yet, but I am a very willing tester!:D


Zen Cart and it's community are the best!!

9 Feb 2009, 6:19 PM
#443
mkopecky avatar

mkopecky

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

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

I just installed the "just another cross sell" on my beta site. It works fantastically and is exactly what I was looking for.

I have two questions (both of which I searched the thread for answers and didn't find, hopefully these aren't redundant):

  1. I would like the cross sell box to appear on the shopping cart page as well as the product info page. Is this possible? (I tried copying the code from tpl_product_info over to the shopping cart...didn't work, but thought I would try.)
  2. There is an extra space on the cross sell box title "we also recommend :" I have searched in languages, templates, etc. to find this wording so I can fix it and have been unsuccessful. Any guidance to which file I should look in would be great.

Thanks for any help. I'm sure its something easy that I'm overlooking.

-mkopecky

9 Feb 2009, 6:41 PM
#444
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

For your second question, use the "Developers Tool Kit" under tools in the admin to search for the phrase 'we also recommend'. It will tell you what files it's in so you can correct it.

Jim
Wheaton Website Services

10 Feb 2009, 3:46 PM
#445
mkopecky avatar

mkopecky

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

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

Hi Jeking,
Thanks for the tip on the developers tool kit. That worked! Thanks again.

14 Feb 2009, 2:29 AM
#446
gitskitchen avatar

gitskitchen

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

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

I installed this mod on my testing site(1.38). It works greatly.

But I have one question , is there any way that I can let the cross sell items in the middle of the "I also recommend" box ?

I set Cross-Sell Products Columns per Row to 3 at Cross Sell of Configuration,it displays that one item per row at the left side .
http://www.giftskitchen.com/index.php?main_page=product_info&cPath=23&products_id=95
:(

25 Feb 2009, 8:50 PM
#447
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

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

This add-on has worked great on our site. We have an issue though. Some of the items in our store have the same product model #. (This is done for various internal reasons.)

How can this be tweaked to show the cross sell items on ALL of the products with the same model #. Right now, it only displays on the first product with that model # in the database.

Thank you for any help you can provide!

1 Mar 2009, 1:37 AM
#448
sailsport1 avatar

sailsport1

New Zenner

Join Date:
Oct 2008
Posts:
29
Plugin Contributions:
0

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

I can't seem to get the cross sell products to show on my product pages. I can get them listed in the admin but they don't show.
I ran the debug and got this:

[28-Feb-2009 20:24:47] PHP Warning: include(includes/modules/FILENAME_XSELL_PRODUCTS.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/zencart/includes/templates/apple_zen/templates/tpl_modules_xsell_products.php on line 17
[28-Feb-2009 20:24:47] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/modules/FILENAME_XSELL_PRODUCTS.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/zencart/includes/templates/apple_zen/templates/tpl_modules_xsell_products.php on line 17

What am I missing?

1 Mar 2009, 1:51 AM
#449
sailsport1 avatar

sailsport1

New Zenner

Join Date:
Oct 2008
Posts:
29
Plugin Contributions:
0

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

Never mind - I found it.
I was missing the xsell_definitions.php file in extra_datafiles

1 Mar 2009, 2:09 AM
#450
sailsport1 avatar

sailsport1

New Zenner

Join Date:
Oct 2008
Posts:
29
Plugin Contributions:
0

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

OK now I can't seem to cross-sell one way.
I get :"Please input main product's id" when the one way box is checked.

3 Mar 2009, 8:30 AM
#451
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

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

hi, i got an error in admin init_yclass.php , acturally i dont know how to modify or substitute this file
\admin\includes\init_includes\init_yclass.php

1, when i installed the module manage, i have already uploaded one file init_yclass.php to admin

<?php
require_once(DIR_FS_CATALOG.'includes/init_includes/init_yclass.php');
?>

2, now i want to install cross sell, it's also need to upload a file init_yclass.php to admin

<?php
	// y stands for yellow1912 :p. I simply add this to store all the functions frequently used in my mods
	
	// PHP4 always pass object by value (default) while PHP5 pass by reference
	if (version_compare(phpversion(), '5.0') < 0) {
	    eval('
	    function clone($object) {
	      return $object;
	    }
	    ');
	}
	
	class yclass{
		function db_result_to_string($glue, $db_result){
			$temp_array = array();
			if($this->is_obj($db_result,'queryFactoryResult')){
				// We need to clone, because we don't want to touch the real object
				while(!$db_result->EOF){
					$temp_array[] = $db_result->fields['products_'.XSELL_FORM_INPUT_TYPE];
					$db_result->MoveNext();
				}
				$db_result->Move(0);
				$db_result->MoveNext();
			}
			
			return implode($glue,$temp_array);
		}
		
		// This function does not work for all languages! BEWARE
		function array_to_upper(&$entries){
			foreach($entries as $entry){
				$entry = strtoupper($entry);
			}
		}
		
		// http://us3.php.net/manual/en/function.is-object.php#66370
		function is_obj( &$object, $check=null, $strict=true ){
			if (is_object($object)) {
		    	if ($check == null) {
		        	return true;
		      	} else {
		        	$object_name = get_class($object);
		        	return ($strict === true)?( $object_name == $check ):( strtolower($object_name) == strtolower($check) );
		      	}   
		  	} else {
		    	return false;
		  	}
		}
	}
?>

then i'm not sure what do i make this file correctly ?

3 Mar 2009, 7:18 PM
#452
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

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

after i followed this :

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 can install cross sell from admin module manager, but i get the error :

5 statements processed.
Upgraded database to patch level 0
12 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.
Upgraded database to patch level 1

then it seems i could use the module cross sell, but then i get the same issue sailsport1 had

sailsport1:

OK now I can't seem to cross-sell one way.
I get :"Please input main product's id" when the one way box is checked.

any solutions ?

3 Mar 2009, 8:08 PM
#453
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

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

one way box problem resolved after loading the js file.

still not sure if the following question matters, since it seems the module goes well now

5 statements processed.
Upgraded database to patch level 0
12 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
ERROR: Cannot insert configuration_key "" because it already exists
Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.
Upgraded database to patch level 1

any ideas ?

5 Mar 2009, 5:02 AM
#454
redheadskater avatar

redheadskater

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

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

mateogp:

.......
I get this error now:
Fatal error: Call to undefined method: yclass->init_template() in C:\websites\vhosts\blacktiestore.com\httpdocs\admin\module_manager.php on line 14

I found a way to fix this but I'm not sure if it was a wise thing to do.

I had my original copy of init_yclass (I wisely backed up before replacing!) which had only the following code on it:

<?php
	require_once(DIR_FS_CATALOG.'includes/init_includes/init_yclass.php');
?>

I uploaded that original one and the error went away.

I was able to proceed with setting up the xsell items and everything appears to be working just fine.

Lisa
:bigups:

10 Mar 2009, 8:47 AM
#455
dy3baliw avatar

dy3baliw

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

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

Zen Cart 1.3.8
Just Another Cross Sell downloaded from Google; latest version

Hi. I have read some questions from this thread that are similar to mine but they don't seem to be answered.

  1. Upon installing module_manager, there was an init.y something file that I uploaded. Upon installing the JASC module, it had the same file name needing to be installed in the same folder so I overwrote it...Was that the right thing to do?

  2. I do believe I followed the instructions to a tee but I seem to continuously get errors.

**I get HTTP 404 Not found page whenever I go to admin/catalog/cross sell.

**When I try to edit cross sell items from "List All Cross Sells" table, I get the message " No Product was Found with the XSELL_FORM_INPUT_TYPE:" on top of the admin page.

My website: https://www.thesimplestdesign.com

Please help me. I tried to solve it myself for 4 days now but I am such an amateur, I'm stuck. :no:

Thanks

12 Mar 2009, 12:13 AM
#456
dy3baliw avatar

dy3baliw

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

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

Hi, everyone. It's me again. Just wondering if I was unclear in my dilemma listed above or my issues are too hard.

Any one have had these issues and have some ideas?

I would appreciate any feedback.

Thanks in advance.

16 Mar 2009, 1:15 AM
#457
shaqadamus avatar

shaqadamus

New Zenner

Join Date:
Feb 2009
Posts:
8
Plugin Contributions:
0

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

Have installed the cross sell mod but after configuring it, when I go to view the product with cross sell items, it takes long time to load the page and shows the xsell items all in one column and many times (loop?). Because its showing the items so many times, the page is slow to load. Any file to check?

16 Mar 2009, 8:43 AM
#458
webfooted avatar

webfooted

New Zenner

Join Date:
Jul 2005
Posts:
22
Plugin Contributions:
0

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

Hi, I'm having the one way cross sell error too: "Please input main product's id". I've been searching the thread and this seems to come up every now and then but I can't for the life of me spot the solution - sorry if I'm being dense. myworld20091 says "one way box problem resolved after loading the js file" but what's the js file??

Can anyone help?
Cheers, Emily

18 Mar 2009, 12:21 PM
#459
shaqadamus avatar

shaqadamus

New Zenner

Join Date:
Feb 2009
Posts:
8
Plugin Contributions:
0

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

anyone??????

24 Mar 2009, 9:41 PM
#460
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

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

yellow1912:

I'm writing a new version of this module with some add features that I need to justify if it is worth it (in other words, will these features add benefit to you?)
Those are:
cross sell product to product (old),
product to category,
category to category,
category to product

I need to see if it is worth it or now, reason is:
To cross sell so many ways like that we will need more than 1 queries executed to pull out the products. I will consider caching but still it will use more resources that it is now. So let me know what you think. Is this worth it?I would like to see this as a tab on the Admin/Catalog/Category/Products page.

I know there are no tabs there now, but if a guy was to wish, I would like to see all product particulars on tabs on one screen. So that when you click on a product "Product_A" on tabs across the top of the page there would be the product info (price, desc, etc) on one tab, attributes on another, cross sell, IH2, featured, salemaker, reviews, meta_tags price_manager. Get my drift? So we don't have to go to 8 different pages to edit all points of one product.
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys