John Doswell Posted March 19, 2004 Share Posted March 19, 2004 Well... I thought it was working until I added a couple items to my cart. Instead of adding the slave products I choose to buy to my cart, it instead adds just the master. :( Any idea what's amiss with that? I can tell this does exactly what I want it to do, just doesn't handle things totally right. For the mean time, I'm reverting to my backup copy... though once we have this all debugged, I'm definately using this code you've suyggested! Thanks... Tim i think its something to do with the application_top.php there is fix for that someware in the first pages, i had that problem to :-/ Regards John Quote Link to comment Share on other sites More sharing options...
xtinexoop Posted March 19, 2004 Share Posted March 19, 2004 Thanks Charles. I thought I had read it somewhere (when I installed Master Products I did read the entire support string) so I have been holding off asking but I couldn't find it with my searches... obviously using the wrong keywords! I'll go try it now. Christine :wacko: Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 20, 2004 Share Posted March 20, 2004 Well... I thought it was working until I added a couple items to my cart. Instead of adding the slave products I choose to buy to my cart, it instead adds just the master. :( Any idea what's amiss with that? I can tell this does exactly what I want it to do, just doesn't handle things totally right. For the mean time, I'm reverting to my backup copy... though once we have this all debugged, I'm definately using this code you've suyggested! Thanks... Tim I also just tried this code and it seems to be working for me so far, what did u do exactly right before it adds the master instead of the slave? Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 20, 2004 Share Posted March 20, 2004 Has anyone gottan wishlist to work with master products, so you can add slave products individually to the wishlist and email them to your friend? Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 20, 2004 Share Posted March 20, 2004 Hey Johnson, This mod has been awesome, one thing I also noticed is that if you have slave items such as 2 Blue Tshirts 2 Red in your shopping cart box, and when u click on the item and it brings you back to the master product, is there a way to make it so the qty fill in box displays the quantities that show up in ur shopping cart box instead of 0? Thanks. Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 21, 2004 Share Posted March 21, 2004 Just a quick idea, anyone know of how you could make the product info page show for example Thumbnail | Master Product Item | 1.99 - 7.99 | More Info Thumbnail | Product | 3.99| Buy Now Thanks. Quote Link to comment Share on other sites More sharing options...
Fourbit Posted March 22, 2004 Share Posted March 22, 2004 (edited) Howdy, I'm a total newb to OSC. So, I am not even sure exactly how to phrase this. This contrib looks to be close to the answer I'm looking for. My app. is needing a pair of dropdowns as are produced by the attrib/options function BUT, I need individual id's/upc's for each combination. So, was figuring on making each item it's own product and Slaveing them to the Master description looks to be the way to go. (not sure how it's different from the cats/subcats part but that's a different question):). The main problem I guess is the dropdown selection of those same products but different pkg quant. and color. Hope this makes sense to someone. I've been at this all weekend and just can't find the right answere. I know I just probably can't see the forest for the trees! Thanks, Edited March 22, 2004 by Fourbit Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2004 Share Posted March 22, 2004 (not sure how it's different from the cats/subcats part but that's a different question):). But one that should be clarified - the main difference is that the Master itself is a product (it *can* be used as just a description, but if that is all that is needed then the Categories Description contribution would suffice). Much of the potential of this mod is still under development - there are useful hacks and applications referred in this thread. It sounds to me like QT-pro may be the solution you are looking for - I have not used this so cannot say with confidence how it performs :unsure: Matti Quote Link to comment Share on other sites More sharing options...
Fourbit Posted March 22, 2004 Share Posted March 22, 2004 Thanks for the reply Matti. That does help me to understand it. Sometimes it just takes someone to explain things a little differently. Looks like a lot of work went into this. And it added to the main program without any problems. I have started my catalog by using the attrib. But, I just cant' figure out how to apply individual upc/id's to that kind of setup. See, what we want is to have the different product types in a dropdown yet, they should have individual id's. So, looks like your way may be the better. But, then I need to do a drop down for the different 'slave' products. Thanks. Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 22, 2004 Share Posted March 22, 2004 Thanks for the reply Matti. That does help me to understand it. Sometimes it just takes someone to explain things a little differently. Looks like a lot of work went into this. And it added to the main program without any problems. I have started my catalog by using the attrib. But, I just cant' figure out how to apply individual upc/id's to that kind of setup. See, what we want is to have the different product types in a dropdown yet, they should have individual id's. So, looks like your way may be the better. But, then I need to do a drop down for the different 'slave' products. Thanks. That sounds like a good idea, especially when you have a master product, then 10 different similar slaves under it, but for each slave has 5 different colors for example, instead of displaying 50, it would be nice if you could have a drop down which has additional slaves in it, with their own product page. Another way you could do this is Make 10 Masters with the 5 slaves in each master which still comes out to 50, but then you would see the same master 10 time with different variations. Quote Link to comment Share on other sites More sharing options...
Fourbit Posted March 22, 2004 Share Posted March 22, 2004 Talon, You have the idea. But,.... What we want is to be able to select the slave products from the description page for the master. Instead of selecting the slave from the display listing that has all the slaves in it (would be a big page) , just have a dropdown list to select the product (slave) from and then its' done. Maybe someone could tell me where to look for the code that displays this page of "slaves" and then I'll just insert the code change. Thanks PS Looking at that, I am not sure it even makes any sense. :) Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 23, 2004 Share Posted March 23, 2004 Hey everyone, Not sure if this was mentioned, but is there a way to make the thumbnails of slave products image be able to popup also?, right now when i click on the thumbnail in the slave section of the master product it just refreshes the page. Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 23, 2004 Share Posted March 23, 2004 I also just noticed that if there's no image displayed in the slave file, it'll show a red x, anyone know of a way to make a statement saying if there's no images in the product slave listing for that particular item it'll remove that column? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2004 Share Posted March 23, 2004 I also just noticed that if there's no image displayed in the slave file, it'll show a red x, anyone know of a way to make a statement saying if there's no images in the product slave listing for that particular item it'll remove that column? Just a quick hack - it ignores the manufacturer.... in catalog/includes/modules/master_listing.php: case 'MASTER_LIST_IMAGE': if (tep_not_null($listing['products_image'])) { $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; Matti Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 23, 2004 Share Posted March 23, 2004 I also just noticed that if there's no image displayed in the slave file, it'll show a red x, anyone know of a way to make a statement saying if there's no images in the product slave listing for that particular item it'll remove that column? Just a quick hack - it ignores the manufacturer.... in catalog/includes/modules/master_listing.php: ? ? ? ? ?case 'MASTER_LIST_IMAGE': ? ? ? ? ?if (tep_not_null($listing['products_image'])) { ? ? ? ? ? ?$lc_align = 'center'; ? ? ? ? ? ?if (isset($HTTP_GET_VARS['manufacturers_id'])) { ? ? ? ? ? ? ?$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ? ? ? ? ? ?} else { ? ? ? ? ? ? ?$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; ? ? ? ? ? ?} ? ? ? ? ? ?} else { ? ? ? ? ? ? ?$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; ? ? ? ? ? ?} ? ? ? ? ? ? ?break; Matti Is this for the product_info.php page? For example I have a master product which has 5 slave products listed below, in this case I would like to show the slave thumbnails, and also have them clickable to be a popup rather than going to the slave page. Next example I have another master product with 10 slave products, in this case I have 0 slave thumbnails but now it shows up 10 x's in slave listing. Not sure if the code you mentioned above was what I was asking for, just checking before I add it. Thanks again Johnson! Matt Quote Link to comment Share on other sites More sharing options...
Guest Posted March 24, 2004 Share Posted March 24, 2004 (edited) Is this for the product_info.php page? Well, it displays on the product_info.php page :D No popup - copy how its done in product_info.php The code replaces in master_listing.php from 'case 'MASTER_LIST_IMAGE':' to 'break;' It displays pixel_trans.gif instead of the red x - really its just a spacer but still has the product link if needed(you can leave that out!) - this maintains the table format nicely. Matti Edited March 24, 2004 by Johnson Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 24, 2004 Share Posted March 24, 2004 Is this for the product_info.php page? Well, it displays on the product_info.php page :D No popup - copy how its done in product_info.php The code replaces in master_listing.php from 'case 'MASTER_LIST_IMAGE':' to 'break;' It displays pixel_trans.gif instead of the red x - really its just a spacer but still has the product link if needed(you can leave that out!) - this maintains the table format nicely. Matti Hey Johnson, thanks for the help, that works great, but if I removed <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> how would I get rid of the TITLE_HEADING space that's left for the image? Right now my SMALL_IMAGE_WIDTH and height is set to 100 x 100, so in the title heading i have a 100pixel blank space, but now if i remove the code above, i'll still be left with the title heading space, but now the model number moves over to the left being stuck in the image area. Thanks again! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 24, 2004 Share Posted March 24, 2004 In osCommerce, pixel_trans.gif is often used as a spacer - this is what I have done :blink: Matti Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 25, 2004 Share Posted March 25, 2004 Hey Johnson, thanks for the code, hopefully you can help me answer one more question =D Sorry for the hassle, but i've been trying all day to get this code to work together. Your Code slightly modified: case 'MASTER_LIST_IMAGE': if (tep_not_null($listing['products_image'])) { $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'planet_aquaria/camera.gif', $listing['products_name'], 14, 15) . '</a>'; } else { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'planet_aquaria/camera.gif', $listing['products_name'], 14, 15) . '</a>'; } } else { $lc_text = tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $listing['products_name'], 14, 15); } break; MaxiDVD's Ultimate Images Pack Code for product_info.php <?php if (tep_not_null($product_info['products_image'])) { ?> <?php // BoF MaxiDVD: Ultra Images Pack! ?> <?php if ($product_info['products_image_med']!='') { $new_image = $product_info['products_image_med']; $image_width = MEDIUM_IMAGE_WIDTH; $image_height = MEDIUM_IMAGE_HEIGHT; } else { $new_image = $product_info['products_image']; $image_width = SMALL_IMAGE_WIDTH; $image_height = SMALL_IMAGE_HEIGHT;}?> <script language="javascript"><!-- document.write('<?php echo '<div align="center"><a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a></div>'; ?>'); //--></script> <noscript> <?php echo '<div align="center"><a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '">' . tep_image(DIR_WS_IMAGES . $new_image . 'ℑ=0', addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a></div>'; ?> </noscript> <?php // EoF MaxiDVD: Ultra Images Pack! ?> <?php } ?> What i was trying to do with your code and his is to make the master listing page which displays slave items show a image icon for slave products with images, and instead of clicking on it to bring you to the slave product it would do a popup of the slaves bigger picture using maxi's images pack. Here's the code that I tried to do myself, but when the picture popsup it shows a red x, <script language="javascript"><!-- document.write('<?php echo '<div align="center"><a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . 'planet_aquaria/camera.gif', addslashes($product_info['products_name']), 14, 15, 'hspace="5" vspace="5"') . '</a></div>'; ?>'); //--></script> <noscript> <?php echo '<div align="center"><a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '">' . tep_image(DIR_WS_IMAGES . 'planet_aquaria/camera.gif' . 'ℑ=0', addslashes($product_info['products_name']), 14, 15, 'hspace="5" vspace="5"') . '</a></div>'; ?> </noscript> Thanks again, and sorry for the trouble, hopefully this will help others with the same situation in mind. Quote Link to comment Share on other sites More sharing options...
veral Posted March 25, 2004 Share Posted March 25, 2004 Hi all, I have a problem with clicking on 'Buy Now' on the products listing page. Here is my breakdown: 1) Clicking through Categories links brings up the listing correctly. If I click on a normal listing, 'Buy Now' adds one item to the cart. If I click on a master/slave listing, it takes me through to the product page. 2) Using the manufacturers dropdown search (index.php?manufacturers_id=somenumber) produces a listing fine, but if I hold my cursor over the Buy Now link, the product_id is blank, and there's no 'action=buy_now'. 3) The same as (2) happens if I use the search box. It appears as if the products_master_status / products_master variables aren't being recognised. ($listing['products_master'] etc.). Anyone know what I can do? I'm confused that the normal index.php link works, but not the index.php?manufacturers_id, nor the advanced_search_results.php listing ... Thanks. Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 25, 2004 Share Posted March 25, 2004 Hi all, I have a problem with clicking on 'Buy Now' on the products listing page. Here is my breakdown: 1) Clicking through Categories links brings up the listing correctly. If I click on a normal listing, 'Buy Now' adds one item to the cart. If I click on a master/slave listing, it takes me through to the product page. 2) Using the manufacturers dropdown search (index.php?manufacturers_id=somenumber) produces a listing fine, but if I hold my cursor over the Buy Now link, the product_id is blank, and there's no 'action=buy_now'. 3) The same as (2) happens if I use the search box. It appears as if the products_master_status / products_master variables aren't being recognised. ($listing['products_master'] etc.). Anyone know what I can do? I'm confused that the normal index.php link works, but not the index.php?manufacturers_id, nor the advanced_search_results.php listing ... Thanks. Hey veral #1 is correct, what you could do is have it say view info instead of buy now for products with masters, what i did was to get rid of the buy now section and have all products use a master, and you could change it to view info. #2 theres a response to this in 1 of these pages, just be sure to go through the pages again, as i did and johnson helped me with this issue and i believe theres a few post on this. #3 theres a post in the previous pages on all of these issues. Let us know how it goes, everything should be good as i've been testing this product 24/7 and haven't found any bugs so far that hasn't been covered except for 1 i'm hoping will work =D Slave thumbnail popup =D Matt Quote Link to comment Share on other sites More sharing options...
veral Posted March 25, 2004 Share Posted March 25, 2004 Thanks Talon, I'll go through the pages. I'd changed it to be 'View info' already, I couldn't figure out a quick workaround besides that. *goes to look* Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 25, 2004 Share Posted March 25, 2004 Cool, no problem. Quote Link to comment Share on other sites More sharing options...
tbrown Posted March 25, 2004 Share Posted March 25, 2004 I have a rather basic question....this contribution says to apply the 'master.sql' file...how do i do that? thanks, Tim Quote Link to comment Share on other sites More sharing options...
talon177 Posted March 25, 2004 Share Posted March 25, 2004 u could use phpmyadmin to load the master.sql 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.