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

Just another Cross-Sell mod (support thread)

Views: 133,960

Results 661 to 680 of 704
9 Jun 2010, 11:23 PM
#661
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Just another Cross-Sell mod (support thread)

hamid84:

I uploaded all the files and after that i can't open admin page.

It's just blank white page.

What have i missed during installation? Do you i need to upload any sql patches as i did not do it.

I am having the very same problems as hamid84.

I have gone over it a few times and still getting a blank white admin. Ive been at this for hours. I have installed everything exaxtly as described in the txt files.

I am in need of some help pretty badly cause I have hundreds of products to add to the site and cant access admin to do it.

I have looked back at some of the posts for a solution, but all the ones posted dont seem to be working for me.

I will hang on for a reply before I go trying to remove all the files and all the stuff in the database. :( :(

If anyone can figure this out I will gladly give a years free hosting or something,

the site is legavenuedropship.com the admin folder is still as normal so you will be able to see what i mean if you try and go to admin. not even a log in box, nothing!

10 Jun 2010, 10:02 AM
#662
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

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

Way Hay!!!!!!!!! I got back into admin :) :)

I removed all entries from the databas in phpmyadmin, that didnt work. So moved on to removing all the files one by one, checking the admin after removing each file.

The last file on my list to remove was dynamic_input_field.js in admin/includes/templates/js/

Once i deleted that file admin was working again.

Not sure if that will help anyone else, but thought it was worth posting in case it does. :)

11 Jun 2010, 5:27 AM
#663
luvstoxstitch avatar

luvstoxstitch

New Zenner

Join Date:
Jun 2010
Location:
Ohio
Posts:
36
Plugin Contributions:
0

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

I wanted to add the "Just another Cross-Sell mod" to my site. I added this addon first

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=76

Step 5 on the install instructions say:
5. Now edit your product-info template file (includes/templates/templates_default/templates/tpl_product_info_display.php) and insert the following code
at the point where you wish the Cross-Sell box to appear. Usually best at the end of the file:

<?php require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php'); ?>

I've tried adding this is several places in the tpl_product_info_display.php but where ever I add it when I refresh my page the cross products don't show up and it takes the sideboxes on the right side away. Here's the end of my tpl_product_info_display.php sheet. What am I doing wrong/where should I be putting this? Thanks so much

?>

<!--eof Tell a Friend button --> <!--bof Reviews button and count--> <?php if ($flag_show_product_info_reviews == 1) { // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button if ($reviews->fields['count'] > 0 ) { ?> <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div> <br class="clearBoth" /> <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p> <?php } else { ?> <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div> <br class="clearBoth" /> <?php } } ?> <!--eof Reviews button and count --> <!--bof Product date added/available--> <?php if ($products_date_available > date('Y-m-d H:i:s')) { if ($flag_show_product_info_date_available == 1) { ?> <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p> <?php } } else { if ($flag_show_product_info_date_added == 1) { ?> <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p> <?php } // $flag_show_product_info_date_added } ?> <!--eof Product date added/available --> <!--bof Product URL --> <?php if (zen_not_null($products_url)) { if ($flag_show_product_info_url == 1) { ?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php } // $flag_show_product_info_url } ?> <!--eof Product URL --> <!--bof also purchased products module--> <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> <!--eof also purchased products module--> <!--bof Form close--> </form> <!--bof Form close--> </div>
12 Jun 2010, 4:56 AM
#664
luvstoxstitch avatar

luvstoxstitch

New Zenner

Join Date:
Jun 2010
Location:
Ohio
Posts:
36
Plugin Contributions:
0

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

I've added the cross sell info to the tpl_product_info_display.php in the followin place but it still doesn't show up. Any idea?

<!--eof Product date added/available --> <!-- BOF: Cross-Sell information --> <?php // THIS CODE WOULD BE ADDED INTO YOUR TPL_PRODUCT_INFO_DISPLAY.PHP WHEREVER YOU WANT TO DISPLAY THE CROSS_SELL BOX: require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php'); ?> <!-- EOF: Cross-Sell information --> <!--bof Product URL --> <?php if (zen_not_null($products_url)) { if ($flag_show_product_info_url == 1) { ?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php } // $flag_show_product_info_url } ?> <!--eof Product URL --> <!--bof also purchased products module--> <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> <!--eof also purchased products module--> <!--bof Form close--> </form> <!--bof Form close--> </div>
1 Jul 2010, 10:05 AM
#665
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

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

Same issue advanced goes blank in admin for 1.3.9d , I think its the file in the functions

25 Jul 2010, 4:49 AM
#666
carilivia avatar

carilivia

New Zenner

Join Date:
Dec 2006
Posts:
32
Plugin Contributions:
0

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

Has anyone figured out the blank admin problem? It's the admin/includes/functions/extra_functions/x_sell_advanced.php file. When I load it the whole admin turns blank and I get the following error from the cache: PHP Fatal error: Class 'yclass' not found in website/Admin/includes/functions/extra_functions/xsell_advanced.php on line 18

Using Zen version 1.3.9d

Thanks for your help!
=0)

25 Jul 2010, 1:48 PM
#667
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)

You need the Module Manager to support this version of Cross Sell ...

26 Jul 2010, 4:49 PM
#668
carilivia avatar

carilivia

New Zenner

Join Date:
Dec 2006
Posts:
32
Plugin Contributions:
0

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

I have the Module Manager installed and it's working great =) Is there something to do with that, that is causing the problem?

Thanks for your help! =0)

26 Jul 2010, 7:51 PM
#669
danilyn22 avatar

danilyn22

Zen Follower

Join Date:
Dec 2008
Location:
California
Posts:
102
Plugin Contributions:
0

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

I am having the same issue. as noted, as soon as I remove the advanced_xsell_catalog_dhtml.php file from Admin I get admin back. I have the Module Manager loaded as well. I am using the very latest ZC (1.3.9) .

Any ideas yet?

28 Jul 2010, 6:27 PM
#671
danilyn22 avatar

danilyn22

Zen Follower

Join Date:
Dec 2008
Location:
California
Posts:
102
Plugin Contributions:
0

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

Thanks for the suggestion. I tried to install the new recommended mod and I do not get the Admin->Configuration->Multi Cross Sell showing up in my admin panel.

I have checked and double checked that all files are there and where they are suppose to be. All the YOUR_TEMPLATE has been renamed correctly. I can find no file out of place.

Any thoughts of why the Admin->Configuration->Multi Cross Sell is not showing up?

28 Jul 2010, 11:35 PM
#672
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

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

danilyn22:

Thanks for the suggestion. I tried to install the new recommended mod and I do not get the Admin->Configuration->Multi Cross Sell showing up in my admin panel.

I have checked and double checked that all files are there and where they are suppose to be. All the YOUR_TEMPLATE has been renamed correctly. I can find no file out of place.

Any thoughts of why the Admin->Configuration->Multi Cross Sell is not showing up?

Thats because of a typo in the install information for that mod!!!
Its actually in Admin->Catalog->Multi Cross Sell

The support thread for that mod is here:
http://www.zen-cart.com/forum/showthread.php?t=158571

29 Jul 2010, 2:35 PM
#673
danilyn22 avatar

danilyn22

Zen Follower

Join Date:
Dec 2008
Location:
California
Posts:
102
Plugin Contributions:
0

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

Wow... thank you. I think I looked for the module everywhere but there!! This forum is awesome!

21 Aug 2010, 6:50 PM
#674
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

dropbop:

Way Hay!!!!!!!!! I got back into admin :) :)

I removed all entries from the databas in phpmyadmin, that didnt work. So moved on to removing all the files one by one, checking the admin after removing each file.

The last file on my list to remove was dynamic_input_field.js in admin/includes/templates/js/

Once i deleted that file admin was working again.

Not sure if that will help anyone else, but thought it was worth posting in case it does. :)

I'm having the same problem with the white admin.

so for now I removed all the admins files and the login came back.

So you suggest loading all the files apart from dynamic_input_field.js ?

if so does anyone know what affect not having this file would be? I assume from the title of it, its something to do with the fields dymamically appearing when you choose cross sell one way etc..

so if its not there will it affect the functionality?

maybe only load this js on the cross sell page as a solution???

22 Aug 2010, 10:27 AM
#675
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

xzistance:

So, I figured this out. Looking around I found post #452, which shows actual code for the init_yclass.php file. I took the functions from the yclass and put them at the bottom of my /admin/includes/classes/xsell_advanced.php file, like so:

/***** START ADDING Y-CLASS METHODS NEVER INCLUDED IN INSTALLATION *****/
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;
      }
}
/***** END ADDING Y-CLASS METHODS NEVER INCLUDED IN INSTALLATION *****/
> 
> Everything seems to work fine now in the admin area.
> Hope this helps.

I'm extremely confused..
there is no 
/admin/includes/classes/xsell_advanced.php ???
22 Aug 2010, 10:38 AM
#676
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

OK maybe its different for me..

I have found that if I delete just this file:

admin/includes/functions/extra_functions/xsell_advanced.php

the admin login comes back, so there is obviously an issue with this file with the newer zen-cart.

i'm using 1.3.9e

anyone know a fix????

Phil

23 Aug 2010, 2:09 PM
#677
beyre avatar

beyre

Zen Follower

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

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

I, too, am receiving the white admin pages and it is the admin/includes/functions/extra_functions/xsell_advanced.php file that is doing it.

I added that block of code at the end of the file (before the final ?>) concerning YCLASS as mentioned earlier, but it doesn't seem to recognize it (or that is not the fix).

I have no clue the purpose of the Modules Manager that I installed as it does nothing when I click on "install new modules". All it recognizes is the Modules Manager module itself. :unsure:

This is a small website, using Zencart version 1.3.8a.

23 Aug 2010, 6:11 PM
#678
tiltem avatar

tiltem

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

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

Had issues installing this as well, but have it working now. Here is what yo do:

get module manager rev16 from here(do not use the newest version, it does not seem to work with this mod): http://code.google.com/p/zencart-module-manager/downloads/list
Install this,and then go to admin > tool >module manager
may have some error depending if already installed xsell, so long as you can get there just move forward.

Then place files from newest version of the cross sell mod, after making changes as stated in installation.txt

run the 0,1,2.sql srcipts from admin>tools>install sql patches.

Then should be ready to go.

23 Aug 2010, 6:15 PM
#679
tiltem avatar

tiltem

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

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

I need to use the 1 way feature, and am not sure how to do so. When I try to use it is says please enter main products id, but i do not have a field to enter it as described in the how to doc. Please advice. Thanks!!

26 Aug 2010, 5:56 PM
#680
yellow1912 avatar

yellow1912

Totally Zenned

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

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

For those who have problems with the latest version of Zencart, this is an update that should work with the latest version of zen and module manager.

http://public.rubikintegration.com/cross_sell_advanced.zip

If you are upgrading, please go into youradmin/includes/functions/extra_functions/ and delete the file xsell_advanced.php since we dont use it anymore

I'm in the process of reworking this module to include other features such as relativity "weight" and auto cross sell