Re: Just another Cross-Sell mod (support thread)
I am getting ready to install cross sell. Which one?
This one (I think) is in this forum.
Cross Sell - Just Another Cross Sell Mod
Last Updated by: yellow1912 Apr 24 2009 v1.3.8 rev 186
Do I also install with above one?
Cross Sell Advanced
Last Updated by: Absolute May 26 2007 v1.3.7 1.0
What is this one?
Cross Sell
Last Updated by: matteoraggi.com Jan 06 2008 v1.3.7
Any advice on which one to load?
Thanks,
Kim
Re: Just another Cross-Sell mod (support thread)
You don't need the last one at all.
Re: Just another Cross-Sell mod (support thread)
Quote:
Originally Posted by
KismetDesign
You don't need the last one at all.
Thank you:clap:
Does it matter which one I load first out of the first two?
Kim
Re: Just another Cross-Sell mod (support thread)
Quote:
Originally Posted by
kburner
Thank you:clap:
Does it matter which one I load first out of the first two?
Kim
Ok started reading directions and said to load "module manager" first.
Is this Correct? Load in this order.
Module manager
Cross sell - just another cross sell mod
cross sell advanced
Thanks, Kim
Re: Just another Cross-Sell mod (support thread)
just wanted to say thank you to Yellow for all the work he does towards ZC
i have installed this add-on.. works 1st time!
Cheers
Re: Just another Cross-Sell mod (support thread)
In Tabbed Products Pro I have created several tab clones to hold my several Cross Tab clones. Each tab functions properly just like the original cross sell tab of TPP. And now I am trying to create a "combo" tab that holds the data of two or more other tabs. I got that far but now realize I need to ensure that the "combo" tab is not omnipresent as is the case now.
What is it about Zen Cart, and in this case the Cross Sell mod, that lets Tabbed Product Pro to not display a contentless tab? Or what is it that is in TPP that hides empty tabs (which I can certainly ask in TPP if/when appropriate))?
This probably will be more involved than the copy'n'pasting I've done thus far (and obviously changing pertinent reference points and whatnot) in Cross Sell cloning and in includes\modules\tabbed_products_pro.php. Seeing as I am combining cross sell clones, I'll probably need to write or mimic an OR statement or two somewhere in one of Cross Sell's files or in tabbed_products_pro.php.
IF Cross Sell is empty AND Cross Sell 2 is empty AND Cross Sell 3 is empty, too, THEN do not show the Combo Tab OTHERWISE display the tab.
One click add to cart in cross sell area
Hi All,
I have been asked to implement a one-click add to cart functionality, which I have done, so I thought I'd share!
This is for version 1.3.1
Juts replace the loop at the bottom of template_directory/xsell_products.php page with this (you will need to change template directory info):
while (!$xsell_query->EOF) {
// add add_to_cart button
$add_to_cart_text = '<form name="cart_quantity" action="index.php?main_page=product_info&products_id=' . (int)$xsell_query->fields['products_id'] . '&action=add_product" method="post" enctype="multipart/form-data">
<input type="hidden" name="cart_quantity" value="1" /><input type="hidden" name="products_id" value="' . (int)$xsell_query->fields['products_id'] . '" />';
$add_to_cart_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
$display_add_to_cart_button = zen_get_buy_now_button($xsell_query->fields['products_id'], $add_to_cart_button);
$add_to_cart_text .= $display_add_to_cart_button . '</form>';
// add view details button
//button_goto_prod_details.gif
$details_button = zen_image(DIR_WS_TEMPLATES . 'freetemplate2/buttons/english/' . BUTTON_IMAGE_GOTO_PROD_DETAILS, 'Show Product Details');
$xsell_query->fields['products_name'] = zen_get_products_name($xsell_query->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsCrossSell centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => zen_image(DIR_WS_IMAGES . $xsell_query->fields['products_image'], $xsell_query->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br /><a href="' . zen_href_link(zen_get_info_page($xsell_query->fields['products_id']), 'products_id=' . (int)$xsell_query->fields['products_id']) . '">' . $details_button . '</a>' . $add_to_cart_text . '<br />' . $xsell_query->fields['products_name'] . (XSELL_DISPLAY_PRICE=='true'? '<br />'.zen_get_products_display_price($xsell_query->fields['products_id']):'') );
$col ++;
if ($col > (SHOW_PRODUCT_INFO_COLUMNS_XSELL_PRODUCTS -1)) {
$col = 0;
$row ++;
}
$xsell_query->MoveNext();
}
I had to add minor styling to the buttons for them to line up, so:
$details_button = zen_image(DIR_WS_TEMPLATES . 'freetemplate2/buttons/english/' . BUTTON_IMAGE_GOTO_PROD_DETAILS, 'Show Product Details', 100, 20, "style=\"padding: 6px;\"");
and
$add_to_cart_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT, "style=\"padding: 5px;\"");
lines were changed accordingly.
Hope this helps someone.
Cheers
Dave T
Re: Just another Cross-Sell mod (support thread)
Hi, the following message appears just below the shopping cart (on the "View Cart" page). How do I fix this problem? Please help. Thanks.
----------
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1)' at line 1
in:
[(select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '9962' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '12603' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '6081' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '5082' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '3304' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '12600' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '10290' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '5668' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit -1)]
##############################___
Re: Just another Cross-Sell mod (support thread)
Hi All,
I installed "Just another Cross-Sell" mod, uploaded all the files and manually ran the sql files since module manager would not find it.
The mod shows under the right places in the admin section and it tells me when I cross sell a product
Quote:
"Product 14 has been added as a Cross-Sell to Product 42"
...
but when I go to the online store it does not display any cross sells.
1) I did upload all files
2)I did modify the files as stated in the readme file.
3) I have module manager installed.
Am I missing any thing?
Any help would be greatly appreciated. :smile:
Thanks,
Dario
Re: Just another Cross-Sell mod (support thread)
Quote:
Originally Posted by
jarcher
how did you add the jquery version to the upsells/crosssells? - that is nice...
thanks
john
Go to this link to get the jquery version. Hasn't been updated to the lastest cross sell however you probably can do a few file merger checks and see what to move over. Perhaps @yellow1912 will think about adding it into his normal module schedule
http://www.zen-cart.com/forum/showpo...&postcount=516