I think I found it but I get
Warning: Division by zero in mypath/cart_upsell.php on line 120
I think I found it but I get
Warning: Division by zero in mypath/cart_upsell.php on line 120
teebo,
I think you mean to hide the Also Purchased box? To do so I believe you can just go in the Zencart admin to Configuration > Product Info and change the Also Purchased Products per row to 0. I can't recall if there might also be another switch for that.
Does this have to do with this mod, get it when I add 13 products to cart
Got this error when I tried to add 13 products
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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '31' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '99' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '86' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '94' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '9' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '100' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '12' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '11' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '91' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '90' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '81' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '8' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '13' 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)]
I got the exact same problem too.
Any one has any idea why?
I got the cross sell and Upsell /Cross Sell Cart mod installed
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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '31' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '99' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '86' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '94' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '9' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '100' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '12' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '11' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '91' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '90' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '81' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '8' 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 widgetproducts_xsell xp, widgetproducts p, widgetproducts_description pd where xp.products_id = '13' 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)][/QUOTE]
Does anyone have a copy of the xsell sidebox? I tried looking for a copy of it in the download section, but it no longer exists there.
Currently, the Cross Sell and Cross Sell Advanced works only 1 way: meaing it only cross product A to B, C, D, But not via versa.
I wish that when a customer click on Prduct B, it will be crossed with other related products like
A, C, and D.
Any one has any idea how to make the 2 way cross sell works?
help is appreciated.
pensive612 asked this question 2 years ago, however the code has changed.
I have cross-sell installed and working, however, if I add more than 3 products it goes to another row. is there something I can do to adjust the columns per row for cross-sell?
I need it to show 4 rows.
I've tried adjusting the following in modules/xsell_products.php:
However it still shows 3. Any ideas would be really appreciated! Thanks in advancePHP Code:if (!defined('SHOW_PRODUCT_INFO_COLUMNS_XSELL_PRODUCTS')) define('SHOW_PRODUCT_INFO_COLUMNS_XSELL_PRODUCTS',4);
Just found the solution:
Admin -> Configuration -> Product Info
At the bottom set the option "Cross-Sell Products Columns per Row" to 4 (or whatever you wish.
Hi,
I use Zen Cart 1.3.8a. Is it compatible with Cross Sell 1.3.0.it (uploaded Jan 06 2008)?
Thanks.