beautyfiend Posted March 23, 2009 Share Posted March 23, 2009 Hi, Is there a way that when a customer looks at an item description for a product, a box appears at the bottom of the page showing all the products in that category? Like a related product box. Prehaps the 'New products' box on the index page could be copied and modified for this? Thanks. Link to comment Share on other sites More sharing options...
♥kymation Posted March 23, 2009 Share Posted March 23, 2009 Try the Similar Products box (link below.) Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 23, 2009 Author Share Posted March 23, 2009 Try the Similar Products box (link below.) Regards Jim Hi, thanks I am trying to install the box but I don't seem to have the following php files, /includes/column_right.php /includes/column_right.php do you have the original text so I can create the files? Thanks a lot. Link to comment Share on other sites More sharing options...
♥kymation Posted March 23, 2009 Share Posted March 23, 2009 /includes/column_right.php is part of stock osCommerce 2.x. If you are using 3.0, this contribution won't work, nor will most everything else out there. If you're using 2.x with a template, you'll need to find where your template generates the side columns. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 24, 2009 Author Share Posted March 24, 2009 /includes/column_right.php is part of stock osCommerce 2.x. If you are using 3.0, this contribution won't work, nor will most everything else out there. If you're using 2.x with a template, you'll need to find where your template generates the side columns. Regards Jim I am using 2.2 and I have followed the instructions in the 'read me' file but It's not working. 'Similar Products' is showing under configuration. Link to comment Share on other sites More sharing options...
♥kymation Posted March 24, 2009 Share Posted March 24, 2009 "2.2" doesn't tell me much. There are at least six versions of osCommerce that can be considered "2.2". So which version do you really have? In any case, all of those versions have <catalog>/includes/column_left.php and <catalog>/includes/column_right.php, so your store is not stock. Have you installed a template system? If your side columns are not in those files, where are they? Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 24, 2009 Author Share Posted March 24, 2009 "2.2" doesn't tell me much. There are at least six versions of osCommerce that can be considered "2.2". So which version do you really have? In any case, all of those versions have <catalog>/includes/column_left.php and <catalog>/includes/column_right.php, so your store is not stock. Have you installed a template system? If your side columns are not in those files, where are they? Regards Jim Sorry I have, "osCommerce 2.2 Milestone 2 Update 051112" if that helps? I haven't installed any templates. I had the left and right column in the oscommerce folder but they weren't showing under the file manager. I have uploaded them now but your add on is still not working. Link to comment Share on other sites More sharing options...
♥kymation Posted March 24, 2009 Share Posted March 24, 2009 There shouldn't be any conflict with your version of osCommerce, so we can check off that possibility. Do not use the file manager. Ever. That is the fastest way to mess up your store that I know of. Use FTP to download your files, work on them locally, then FTP them back to the server. If the column files were not on your server, then simply uploading them will do nothing. Obviously your code has been modified to exclude those files. Again, are you using a template? Have you made some other modification that removes the left and right columns? Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 25, 2009 Author Share Posted March 25, 2009 There shouldn't be any conflict with your version of osCommerce, so we can check off that possibility. Do not use the file manager. Ever. That is the fastest way to mess up your store that I know of. Use FTP to download your files, work on them locally, then FTP them back to the server. If the column files were not on your server, then simply uploading them will do nothing. Obviously your code has been modified to exclude those files. Again, are you using a template? Have you made some other modification that removes the left and right columns? Regards Jim I haven't downloaded any templates, I'm using what ever was in the oscommerce folder. My breadcrumb changes arn't working now either since installing the silmilar products. Maybe I should start over again? Upload oscommerce again overwriting the files. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 25, 2009 Author Share Posted March 25, 2009 Hi, I re-installed oscommerce and have everything working fine now. Thanks for the advice not to use the file manager! Is there any way to get the product box directly under the product description? Thanks for all your help. :) Link to comment Share on other sites More sharing options...
♥kymation Posted March 25, 2009 Share Posted March 25, 2009 You could move the box code from the column file to catalog/product_info.php, but it would still only show one product. There may be another addon that shows multiple products from the current category. Try searching the Contributions area. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 25, 2009 Author Share Posted March 25, 2009 You could move the box code from the column file to catalog/product_info.php, but it would still only show one product. There may be another addon that shows multiple products from the current category. Try searching the Contributions area. Regards Jim At the moment in my store I only have 4 items- concert 1 concert 2 maestro 1 masestro 2 When I click on them the similar products box is not coming up. Is there a way of linking the products to show up? Product ID? thanks Link to comment Share on other sites More sharing options...
♥kymation Posted March 25, 2009 Share Posted March 25, 2009 The code uses the cPath variable to determine the category. This variable is available on all versions of osCommerce that I have seen, from 2.2MS2 to RC2a. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 26, 2009 Author Share Posted March 26, 2009 The code uses the cPath variable to determine the category. This variable is available on all versions of osCommerce that I have seen, from 2.2MS2 to RC2a. Regards Jim How do I change the cPath's for products? :huh: Link to comment Share on other sites More sharing options...
♥kymation Posted March 26, 2009 Share Posted March 26, 2009 Change the product's category in your Admin by copying or moving it to a different category. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 26, 2009 Author Share Posted March 26, 2009 Change the product's category in your Admin by copying or moving it to a different category. Regards Jim I've worked out what was wrong, it was because the 'no. of similar products' was less than I had in the catagory.duh. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 26, 2009 Author Share Posted March 26, 2009 Is there anyway of making it show all the similar products in the same catagory without having to put a certain number in under config? Because if as it is a the the moment, if I have - 5 products in cat A and 10 products in cat B and I set it to show 9 similar products then cat A won't show any similar products. Link to comment Share on other sites More sharing options...
♥kymation Posted March 26, 2009 Share Posted March 26, 2009 You can. Find this line if ($product_count['total'] >= MAX_SIMILAR_PRODUCTS) { and change it to this if ($product_count['total'] >= 1) { That will show the box if there is at least one product to show. You can change the number if you want a different minimum number of products in the box. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
beautyfiend Posted March 27, 2009 Author Share Posted March 27, 2009 Excellent, thanks for all your help! :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.