if ($product_categories['total'] == '0') {
tep_remove_product($product_id);
/* Optional Related Products (ORP) */
tep_db_query("delete from " . TABLE_PRODUCTS_RELATED_PRODUCTS . " where pop_products_id_master = '" . (int)$product_id . "'");
tep_db_query("delete from " . TABLE_PRODUCTS_RELATED_PRODUCTS . " where pop_products_id_slave = '" . (int)$product_id . "'");
//ORP: end
}
Optional Related Products, Version 4.0
#401
Posted 13 September 2011, 20:21
#402
Posted 15 October 2011, 19:40
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/savingsh/public_html/admin/includes/classes/object_info.php on line 17
Warning: Variable passed to each() is not an array or object in /home/savingsh/public_html/admin/includes/classes/object_info.php on line 18
Here is what it says in object_info.php:
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2003 osCommerce
Released under the GNU General Public License
*/
class objectInfo {
// class constructor
function objectInfo($object_array) {
reset($object_array);
while (list($key, $value) = each($object_array)) {
$this->$key = tep_db_prepare_input($value);
}
}
}
?>
Any ideas?
#403
Posted 19 October 2011, 21:52
#404
Posted 20 October 2011, 09:28
vashichino7, on 19 October 2011, 21:52, said:
#405
Posted 20 October 2011, 09:38
I have a large shop and it would seem easier to locate in excel and match the items. Or better yet match the products to all products in a certain category. I know that option was available in the other cross sell contributions for version 2.2. This is a great contribution and that's my idea for making it greater. If I was good at php I would attempt that feat myself.
Thanks for your time.
#406
Posted 13 January 2012, 20:53
I have added Optional related Products on my XAMPP server to a website I plan to upgrade. SO far so good. But I get to Catalog > related products and on the SQL database.
And Whether I press the New Install SQL for Version 4 or the Upgrade SQL to Version 4, I get the following error:
Quote
CREATE TABLE IF NOT EXISTS `products_related_products` ( `pop_id` int(11) NOT NULL auto_increment, `pop_products_id_master` int(11) NOT NULL default '0', `pop_products_id_slave` int(11) NOT NULL default '0', `pop_order_id` smallint(6) NOT NULL default '0', PRIMARY KEY (`pop_id`) ) TYPE=MyISAM;
[TEP STOP]
I tried creating the table in SQL, doing it from scratch using the existing one I have.
Please could someone shed some light?? [img]http://forums.oscommerce.com//public/style_emoticons/default/unsure.png[/img]
#407
Posted 14 January 2012, 12:30
#408
Posted 16 January 2012, 10:35
Please help whats happening??
#409
Posted 26 January 2012, 11:33
I take it support has dried up on this once great contribution? Thats is a shame.
#410
Posted 01 February 2012, 16:02
I've installed the contribution, but I cannot get it running. Everything in configuration is visible, no problem, but when I click catalogue>related products, I see this error:
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 'RELATED_PRODUCTS_MAX_ROW_LISTS_OPTIONS' at line 8
SELECT pa.* FROM products_related_products pa LEFT JOIN products_description pd ON pa.pop_products_id_master = pd.products_id AND pd.language_id = '4' WHERE pd.products_id = '31' ORDER BY pd.products_name, pa.pop_order_id, pa.pop_id LIMIT 0, RELATED_PRODUCTS_MAX_ROW_LISTS_OPTIONS
On the live website likewise:
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 'RELATED_PRODUCTS_MAX_DISP' at line 14
SELECT pop_products_id_slave, products_name, products_model, products_price, products_quantity, products_tax_class_id, products_image FROM products_related_products, products_description pa, products pb WHERE pop_products_id_slave = pa.products_id AND pa.products_id = pb.products_id AND language_id = '4' AND pop_products_id_master = '31' AND products_status='1' ORDER BY rand() limit RELATED_PRODUCTS_MAX_DISP
In this thread, someone else had this problem, but didn't share the answer when fixed. Can anyone help me out? I have installed the osc 2.2 version.
Thank you!
Michiel
#411
Posted 07 February 2012, 15:57
Sorry for my bad English.
I added the contribution "Related products" tailored to Cso 2.3.1
I have the admin configuration menu (Related products).
I have the category menu BOX_CATALOG_CATEGORIES_RELATED-PRODUCTS that installs configuration menu (Related products).
And now what do I do? I see nothing in the various menus (products, product attributes, etc.) for create relationships between products.
Can someone enlighten me please.
#412
Posted 08 February 2012, 10:40
But i have an new button entitled him "IMAGE_RELATED_PRODUCTS" and when i clic he going to the screen Utility installation / uninstall SQL tables (HEADING_TITLE_ORP), whereas previously I installed the SQL.
Strange !
#413
Posted 22 February 2012, 21:53
I can see its $products_id_master &$products_id_slave but cannot see where product_id is assigned to these ?
#414
Posted 02 March 2012, 10:41
I have gone through the changes and uploads with a fine tooth comb. Please could anyone help me please??
Also on the admin section, the page links do not work the url (eg page 15) appear but not the actual content of page 15.
Please can anyone advise? TIA
#415
Posted 30 March 2012, 15:11
Thanks in advance
#416
Posted 23 April 2012, 10:02
nanuk982, on 23 February 2010, 19:45, said:
Great contribution, works fine but I have just one problem, hoping someone could help me to get it through.
I can't get appear the right price on products which have a special or discount price.
Same problem here
I just testing Xsell too... I found that this contrib (Related Products) is more flexible but...but... what about prices?
Xsell Displays Correctly...
Do u have a solution?
#417
Posted 23 April 2012, 10:38
Xsell still kept an old Special product in cache.
Now Price is displaying correctly
Need to test more tought














