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. :)
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?ma...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>
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>
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
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)
Re: Just another Cross-Sell mod (support thread)
You need the Module Manager to support this version of Cross Sell ...
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)
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?
Re: Just another Cross-Sell mod (support thread)
I just found this mod for cross sell... http://www.zen-cart.com/index.php?ma...oducts_id=1677
you have to UN install the module manager, but on the bright side I just uploaded this and it works PERFECTLY with 1.3.9d!
=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?