boraboras Posted March 2, 2009 Share Posted March 2, 2009 wow! it solved! you've saved my life with your extension and help. many&many thanks sam! Quote Link to comment Share on other sites More sharing options...
ianric Posted March 2, 2009 Share Posted March 2, 2009 Hi I have installed the contrib and have a question about the results per page option that maybe someone else has come across and fixed. Its defaulted to 20 per page, you change to another value, say 40, and the dropdown list value goes back to 20. I can't find a way to go back to 20 results per page. Maybe the value should stay at 40 per page and then you can select 20 from the dropdown and go back to 20 per page Many thanks Ian Quote Link to comment Share on other sites More sharing options...
spooks Posted March 2, 2009 Author Share Posted March 2, 2009 As detailed in the instructions: values based on multiples of the 'Search Results' value in admin Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Lady Lionheart Posted March 3, 2009 Share Posted March 3, 2009 (edited) I also can't get the product descriptions to appear, I checked the code and I included everything but it just doesn't appear. I do see the option in admin though. Also the category description that I installed doesn't work but does show up in admin. I included echo '<hr>' . $listing_sql . '<hr>'; in the last line in product_listing.php and then I get this: http://www.cosplaydreams.nl/catalog/index....=0&cPath=21 help plz? :) Edited March 3, 2009 by Lady Lionheart Quote Link to comment Share on other sites More sharing options...
spooks Posted March 4, 2009 Author Share Posted March 4, 2009 Your sql is correct, when you edit your product do you see the short desc you've entered ? category description is nothing to do with this, thats all done by that contrib, make sure you followed that install exactly.... Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Lady Lionheart Posted March 4, 2009 Share Posted March 4, 2009 (edited) Hm well it seems to work now, the short description at least, I followed the instructions once again, thanks. I'll go and check the category description addon again. But how can I edit the product_info.php to look like this? : http://www.reddotcommerce.nl/catalog/haruh...all-scroll.html it now looks like this: http://www.cosplaydreams.nl/catalog/produc...?products_id=30 and can you resize the pictures to display the right height/widt dimensions and not the standard 100x100 px or so? Edited March 4, 2009 by Lady Lionheart Quote Link to comment Share on other sites More sharing options...
spooks Posted March 4, 2009 Author Share Posted March 4, 2009 If you like that!! set columns as you require change listing settings too edit the css please read through the included text file. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Lady Lionheart Posted March 4, 2009 Share Posted March 4, 2009 Well actually I just want to edit the products_info.php to center the image and place it under the text, but I can't seem to be able to do this, do you have a suggestion? And is it possible to put the listing in a table or something in order to make the title, description and buy now buttons line up nicely? And thanks again so much for helping me! Quote Link to comment Share on other sites More sharing options...
spooks Posted March 4, 2009 Author Share Posted March 4, 2009 Oh, sorry I thought you were still talking of product listing, product display is another issue. Its easy done though find: <td class="main" > <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> replace with <td class="main" align="center"> <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="center"> Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Lady Lionheart Posted March 4, 2009 Share Posted March 4, 2009 (edited) Yes but then I get this: http://www.cosplaydreams.nl/catalog/produc...?products_id=30 The text is now under the picture, it needs to be above it. And just one more thing about the listing: The New Products for... section looks a lot better than my normal product listing, how can I make it that they look the same? Thanks! Edited March 4, 2009 by Lady Lionheart Quote Link to comment Share on other sites More sharing options...
spooks Posted March 4, 2009 Author Share Posted March 4, 2009 You adjust the style of the displays with the css. You line things up by adjusting settings in admin, as I said please read through the included text file. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
boraboras Posted March 6, 2009 Share Posted March 6, 2009 Hi Sam, I need your help again. I want to use thumbnails on the product list without using any auto thumbnailer. I plan to generate thumbnails manually and want put to them to the /thumbnails directory. On the product list I want to use /thumbnails folder instead of default /images folder. My question is: How can I change default image location to /thumbnails folder? Many thanks. Bora Quote Link to comment Share on other sites More sharing options...
spooks Posted March 6, 2009 Author Share Posted March 6, 2009 Easy, just open the product_listing.php module search the file for DIR_WS_IMAGES & replace all instances with 'thumbnails/' Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2009 Share Posted March 14, 2009 Hi Spooks, I'm still having trouble with this. Could you please show me where & how in the product_listing.php i should change the code to show the manufacturer listing Jesper "How do I add the "manufacturer image" to my listings - just like they have here on this very nice site: www.hemvaruhuset.se/ Also the stars with "save 25%" is very nice Hope someone can help me a little. Have a nice weekend :-) Best regards, Jesper Just alter the code that displays the manufacturer name to one that displays the manufacturer image. Just alter the code that displays the manufacturer name to one that displays the manufacturer image. Quote Link to comment Share on other sites More sharing options...
spooks Posted March 15, 2009 Author Share Posted March 15, 2009 look for case 'PRODUCT_LIST_MANUFACTURER': $lc_align = 'center'; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; and edit that Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 15, 2009 Share Posted March 15, 2009 Hi Spooks, I'm not very good at PHP. I'm doing my best, but I realy can't figure out, what to change in the code. I know it's something about manuracturers_image, but that's it. Hope you will help me Jesper look for case 'PRODUCT_LIST_MANUFACTURER': $lc_align = 'center'; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; and edit that Quote Link to comment Share on other sites More sharing options...
spooks Posted March 15, 2009 Author Share Posted March 15, 2009 Say whay you've tried & I'll give tips Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2009 Share Posted March 19, 2009 Hi, Thank you Spooks for helping and being patient ;-) As I said. I'm no big php programmer, but I'm learning. I have tried a lot, but I think the following is my best proposal: case 'PRODUCT_LIST_MANUFACTURER': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(FILENAME_ DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . tep_image(DIR_WS_IMAGES . $listing['manufacturers_image'], $listing['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; break; Quote Link to comment Share on other sites More sharing options...
spooks Posted March 19, 2009 Author Share Posted March 19, 2009 Thats fine, but you need to add to the sql so the data is there, in index.php you added $select_column_list .= 'p.products_image, '; before, modify that to $select_column_list .= 'p.products_image, m.manufacturers_image, '; Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2009 Share Posted March 19, 2009 I'm still getting an error in the listing - see BabyGear.dk I have changed the following code in product_listing.php: FROM: case 'PRODUCT_LIST_MANUFACTURER': $lc_align = 'center'; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; TO: case 'PRODUCT_LIST_MANUFACTURER': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(FILENAME_ DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . tep_image(DIR_WS_IMAGES . $listing['manufacturers_image'], $listing['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; break; And in index.php FROM: $select_column_list .= 'p.products_image, '; TO: $select_column_list .= 'p.products_image, m.manufacturers_image, '; Quote Link to comment Share on other sites More sharing options...
spooks Posted March 19, 2009 Author Share Posted March 19, 2009 You must have changed something else to break things put back contrib product_listing & start again. Turn seo off till site is ready, only adds to confusion. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
JonathanR Posted March 20, 2009 Share Posted March 20, 2009 Hi, I understood your issue, its time thats mine. I`ve had a moment so do this. In index.php add before // show the products of a specified manufacturer this: $select_column_list .= 'p.products_quantity, '; in product_listing.php add before if (!strstr(PRODUCT_THUMBNAIL_VIEW, 'block')) { this: if (!$listing['products_quantity']) $button = '<br><span class="buy_now"> </span>'. $link . tep_image_button('button_details_small.gif', IMAGE_BUTTON_DETAILS) . '</a> <br><br>'; then before: $show_price = '<br><font size="'.PRODUCT_PRICE_SIZE.'">' . ($products['products_price'] > 0 ? $price : TEXT_POA) . '<br></font>'; add: if (!$products['products_quantity']) $button = '<br><span class="buy_now"> </span>'. $link . tep_image_button('button_details_small.gif', IMAGE_BUTTON_DETAILS, 'class="thm_buy_now"') . '</a> <br>'; That should do it. B) Hi Spooks, Just wondering. Having applied your code above to remove the BUY NOW button (worked perfectly!) when stock is ZERO, how much more difficult would it be to put a SOLD OUT button there in place of the BUY NOW button - rather than removing it? I tried applying an add-on to replace the BUY NOW button with a NOTIFY ME button, but couldn't get it to work because the original install files affected had changed so much. It would be useful to be able to trigger an email once stock is in. Thanks, Jonathan Quote Link to comment Share on other sites More sharing options...
spooks Posted March 20, 2009 Author Share Posted March 20, 2009 This code is replacing the buy now with a details button on 0 stock, just replace 'button_details_small.gif' with a 'button_sold_out.gif' in the code &make the button Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
JonathanR Posted March 20, 2009 Share Posted March 20, 2009 This code is replacing the buy now with a details button on 0 stock, just replace 'button_details_small.gif' with a 'button_sold_out.gif' in the code &make the button You are a star! Thanks. Quote Link to comment Share on other sites More sharing options...
Inferos Posted March 25, 2009 Share Posted March 25, 2009 Hi, Spooks! I've installed your contribution and it works flawlessly! Thank you so much for sharing this with the rest of us! Is there any possibility to have implemented into the specials.php also? Thanks in advance! E. 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.