Guest Posted April 3, 2004 Share Posted April 3, 2004 I have uploaded some fresh files that include the stock code I posted here earlier. Added the option for out of stock items to be checked out rather than the out of stock message - this requires the correct admin->stock settings. Only product_info.php and master_listing.php have changed from the previous release. Matti Quote Link to comment Share on other sites More sharing options...
talon177 Posted April 4, 2004 Share Posted April 4, 2004 Has anyone gotten Wish List to work with Master Products, so when you click on add to wish list it'll add the slave product for the quantity you choose? What i noticed was that if you click on add to wish list it'll add the master product, but if you set your price to 0 and then you're on the wish list page and click move to cart it'll move the master price with 0 and not the slaves for the quantities you choose with their prices. Thanks. Quote Link to comment Share on other sites More sharing options...
fpc Posted April 4, 2004 Share Posted April 4, 2004 Is there any way for all the slaves and the master to show up when viewing one of the slave products... right now if you go to a slave it shows nothing, but I would like all the products master/slave associated to that one to appear at the bottom of the product page regardless if you are on the slave or master.. basically i want a cross association of all in the group.. I hope there is a way to do this! Thanks! great mod Quote Link to comment Share on other sites More sharing options...
talon177 Posted April 4, 2004 Share Posted April 4, 2004 There is please reread this thread as theres a fix to this posted by johnson. Quote Link to comment Share on other sites More sharing options...
fpc Posted April 4, 2004 Share Posted April 4, 2004 well, i read up to about page 15 but i mean its a bit difficult to read 44 pages of posts.. Quote Link to comment Share on other sites More sharing options...
fpc Posted April 5, 2004 Share Posted April 5, 2004 I searched all of johnsons posts in this thread and was unable to find any type of fix for cross referencing slaves to masters when visiting either product.. please post a link if you have found otherwise.. thanks Quote Link to comment Share on other sites More sharing options...
bettysue Posted April 5, 2004 Share Posted April 5, 2004 First things first.... I may be a raw newbie with osCommerce and php, however this contribution has vastly expanded the use and capabilities of the product. I have read, searched and tried other contributions which have crashed and burned leading to re-install after re-install. I had 1 problem only when I installed v1.15 on 4/3. It was a "BSU" - aka blonde screwed up. I forgot to upload the files in Includes :huh: Secondly, I will appreciate information from anyone as they have time, I am not expecting the author to sit by his keyboard waiting for rookie questions all day ;) Thirdly - Here goes.... 1. I have read all the threads and the replies to replacing the drop down boxes with quantity boxes as referenced in this post and two posts down from it by iiinetworks. a. The 2 posts confuse me as to what I am actually supposed to add/change. Is it only what's in the second post or part of the first and all of the second? b. I really prefer the look, as opposed to both the dropdown and manual qty boxes, that Tim Doyle posted a capture of and iveo posted a similar capture here. Did I somehow miss the post in my 3 complete reads of this thread, or is it a different mod, a feature of Master Products I missed, or is it a secret :ph34r: ? c. I know the "This product was added to our catalog on blah blah blah, is part of osCommerce, what I don't know is if any of the Master code is written in whatever it is that has this feature in it. I ask as I really want to remove it if possible. So before I ask in the regular support section (have searched and searched), I wanted to ask here if it is removed will it affect Master Products? Again, thank you in advance to anyone who strolls through that may be able to help me. Betty OT: I used to know a Maddy (forgot his last name - brain cramp) who was an opal miner in Australia. He used to come to a wholesale gem show in Orlando back when I was doing goldsmithing and gemsetting. He also used to be on ACN shopping channel once in a while. He was so cute and a wonderfully playful dirty old man :wub: (not in a bad dirty old man way) . /END OT Quote Link to comment Share on other sites More sharing options...
bettysue Posted April 5, 2004 Share Posted April 5, 2004 I am also dazed and confused about the post that Johnson made on 11/30/03 Which involves the code that can be added to keep the slaves from showing up as new products. In catalog/includes/new_products.php change the db queries to: I don't have a new_products.php in my includes directory. Am I missing a file, or is it the one in includes/modules, or in another directory? Also, I did the changes as listed in this post from 2/14/04 by Talon177, yet my slaves are still showing up as new products and on the products listing page. Again, I am reading all the posts and trying not to bother y'all that much, at least until I try all I understand and the fat lady (looking in mirror) sings. thank you, Betty Quote Link to comment Share on other sites More sharing options...
talon177 Posted April 5, 2004 Share Posted April 5, 2004 Just wondering, does anyone know what happens when you double up slave products? Will it show double the results in the searches? For example if you want slaves 2 be in 2 different masters? Although i know you'll have double the quantity of inventory. Thanks. Quote Link to comment Share on other sites More sharing options...
talon177 Posted April 5, 2004 Share Posted April 5, 2004 I am also dazed and confused about the post that Johnson made on 11/30/03 Which involves the code that can be added to keep the slaves from showing up as new products. In catalog/includes/new_products.php change the db queries to: I don't have a new_products.php in my includes directory. Am I missing a file, or is it the one in includes/modules, or in another directory? Also, I did the changes as listed in this post from 2/14/04 by Talon177, yet my slaves are still showing up as new products and on the products listing page. Again, I am reading all the posts and trying not to bother y'all that much, at least until I try all I understand and the fat lady (looking in mirror) sings. thank you, Betty Did you set the slave items to hidden? Quote Link to comment Share on other sites More sharing options...
bettysue Posted April 6, 2004 Share Posted April 6, 2004 Did you set the slave items to hidden? No. I thought that would make the slaves not show up at all, even in the product categories. I will try that this afternoon. Thank You Talon! (btw is that Talon as in Moyas child and Erins father on Farscape?) Betty Quote Link to comment Share on other sites More sharing options...
faris2 Posted April 6, 2004 Share Posted April 6, 2004 Matti, I'm posting this here rather than mailing you directly because I'm sure you are fed up with people asking you the same question all the time and having to reply to each one :-) So... any news on a release date for version 2? You see we desparately want to use Master Products, but the way things are now it would involve 100s of duplicated Slave products because each of our masters would use the same set of slaves. Our site is currently unpopulated in terms of products, and I need to make the decision: populate normally, or install MP v1 and populate with lost of Master Products (almost all our products would be masters (apart from the slaves of course) 1) If we populate our site with Master Products v1 installed (creating master products as we go along), will there be an upgrade path to MP v2 or are we likely to have to re-populate our site? 2) Are slaves going to linkable to multiple masters in v2? 3) Is there likely to be any way to convert a normal product into a master in v2? Finally, thanks for a wonderful and very useful mod. Faris. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2004 Share Posted April 7, 2004 Matti, I'm posting this here rather than mailing you directly because I'm sure you are fed up with people asking you the same question all the time and having to reply to each one :-) So... any news on a release date for version 2? I have already stated that I hope to work on this over Easter. I am not fed up in the slightest :) You see we desparately want to use Master Products, but the way things are now it would involve 100s of duplicated Slave products because each of our masters would use the same set of slaves. Our site is currently unpopulated in terms of products, and I need to make the decision: populate normally, or install MP v1 and populate with lost of Master Products (almost all our products would be masters (apart from the slaves of course) Sorry, but I do not share your desperation :blink: Contributing to osCommerce is something I like to do, but life has other necessities - these must come first, otherwise I do not eat, sleep etc. My work has been unexpectedly busy this year - clients take priority in this respect. 1) If we populate our site with Master Products v1 installed (creating master products as we go along), will there be an upgrade path to MP v2 or are we likely to have to re-populate our site? I cannot say with certainty - certainly multiple slaves (copied) will go. If Slaves are linked to multiple Masters then there must be changes here also. Whether you will need to make changes in respect to your Masters remains to be seen. 2) Are slaves going to linkable to multiple masters in v2? Yes 3) Is there likely to be any way to convert a normal product into a master in v2? You already can with the latest update :D Matti Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2004 Share Posted April 7, 2004 (edited) First things first.... I may be a raw newbie with osCommerce and php, however this contribution has vastly expanded the use and capabilities of the product.? I have read, searched and tried other contributions which have crashed and burned leading to re-install after re-install. I had 1 problem only when I installed v1.15 on 4/3.? It was a "BSU" - aka blonde screwed up.? I forgot to upload the files in Includes? :huh: Great stuff! - I musta done something right :P Secondly, I will appreciate information from anyone as they have time, I am not expecting the author to sit by his keyboard waiting for rookie questions all day? ;) Only part of the day :D Thirdly - Here goes.... 1.? I have read all the threads and the replies to replacing the drop down boxes with quantity boxes as referenced in this post and two posts down from it by iiinetworks. a.? The 2 posts confuse me as to what I am actually supposed to add/change.? Is it only what's in the second post or part of the first and all of the second? That is not up to date with the current release - the second post would replace the drop menu in the Slave listing - I shall be including this option for both Slave listing and product info in the next release. b.? I really prefer the look, as opposed to both the dropdown and manual qty boxes, that Tim Doyle posted a capture of and iveo posted a similar capture here. Did I somehow miss the post in my 3 complete reads of this thread, or is it a different mod, a feature of Master Products I missed, or is it a secret? :ph34r:? ? I believe this is how the menus display in Windows XP :P c.? I know the "This product was added to our catalog on blah blah blah, is part of osCommerce, what I don't know is if any of the Master code is written in whatever it is that has this feature in it. I ask as I really want to remove it if possible.? So before I ask in the regular support section (have searched and searched), I wanted to ask here if it is removed will it affect Master Products? You can safely remove it. Again, thank you in advance to anyone who strolls through that may be able to help me. Betty OT:? I used to know a Maddy (forgot his last name - brain cramp) who was an opal miner in Australia.? He used to come to a wholesale gem show in Orlando back when I was doing goldsmithing and gemsetting.? He also used to be on ACN shopping channel once in a while.? He was so cute and a wonderfully playful dirty old man? :wub: (not in a bad dirty old man way) . /END OT This would be Matti Tikka (Matti the Finn) of Tikka Opals - a fellow Finn and personal friend I have known since boyhood. Matti traded a lot of my opal in the USA and Europe. Rarely seen without his trademark tartan cap Matti is a short but powerfully built man who still competes in veteran weightlifting events. Like many outback characters it is difficult to determine whether he has found notoriety rather than fame :P His antics on ACN are well known. I fondly recall a time when he, 'Pedro' (the proprietor of The Glengarry Hilton - an outback sly grog shop on the Glengarry mining field) and a shifty fellow known as 'Peter the Finn' (Peter is my middle name and often used by friends) sat down for a gentleman's 'session' that lasted some 12 hours and resulted in the demise of a little less than half a dozen large bottles of scotch :D Matti Edited April 7, 2004 by Johnson Quote Link to comment Share on other sites More sharing options...
jzee123 Posted April 8, 2004 Share Posted April 8, 2004 master slave contrib is the best! does anyone have any idea how to give each slave item several fixed shipping prices. When someone selects to buy a slave i want them to select between overnight, 2 day, and ground shipping. I have a fixed price for each of these options depending on the slave. Does anyone know how to do this? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 (edited) Master Product: I'm having problems with product_info.php, when I click "add to cart" it said my cart was empty. Why is my cart empty? Note: running Master Products - 1.1.5 Edited April 10, 2004 by funkyfermin Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 Master Product: I'm having problems with product_info.php, when I click "add to cart" it said my cart was empty. Why is my cart empty? Note: running Master Products - 1.1.5 How about a link to your installation? :blink: Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 here is the link to my site Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 It looks like you have not made the required changes in catalog/includes/application_top.php Matti Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 I just copyed again all the files that were in 1.1.5 and I still have the problem, so I'm not sure if I still need to edit the catalog/includes/application_top.php file somewhere. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 post your catalog/includes/application_top.php (only need the shopping cart actions) Matti Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2004 Share Posted April 10, 2004 I hope I got everything // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)\]\[(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : ''; } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; } $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; //Master Products // customer adds multiple products from the master_listing page case 'add_slave' : while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) { if (substr($key,0,11) == "Qty_ProdId_") { $prodId = substr($key,11); $qty = $val; if ($qty <= 0 ) continue; $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($qty), $HTTP_POST_VARS['id']); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; //Master Products EOF // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; case 'notify' : if (tep_session_is_registered('customer_id')) { if (isset($HTTP_GET_VARS['products_id'])) { $notify = $HTTP_GET_VARS['products_id']; } elseif (isset($HTTP_GET_VARS['notify'])) { $notify = $HTTP_GET_VARS['notify']; } elseif (isset($HTTP_POST_VARS['notify'])) { $notify = $HTTP_POST_VARS['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['products_id'])) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; } } Quote Link to comment Share on other sites More sharing options...
talon177 Posted April 11, 2004 Share Posted April 11, 2004 Is it possible to make it so that you can't add master products to the cart? even when i set product stock check to true and set the master product as 0 stock level, people can still click the add to cart and it'll add the master product instead of giving an error message. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2004 Share Posted April 11, 2004 Is it possible to make it so that you can't add master products to the cart? even when i set product stock check to true and set the master product as 0 stock level, people can still click the add to cart and it'll add the master product instead of giving an error message. Thanks If you are running version 1.1.5 then it would display an "out of stock" message and will not add to the cart. Matti Quote Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2004 Share Posted April 11, 2004 I don't think it is application_top.php that is the problem I think it is the product_info.php. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.