212121 Posted November 30, 2008 Share Posted November 30, 2008 Thanks- worked perfectly and was simple...wish it was always that easy. Quote Link to comment Share on other sites More sharing options...
Dr Dre Posted December 1, 2008 Share Posted December 1, 2008 hi guys.. i am in the admin for this.. And i want to change the height of the thumbnail images... but i am only seeing something to change the width.. "Product Listing Image width".. where can i adjust the height ? Quote Link to comment Share on other sites More sharing options...
Dr Dre Posted December 1, 2008 Share Posted December 1, 2008 Question.. I have set the size" Product Image Width in listing" to 150... and yet some of the thumbnails in the list coming up above 150 in width.. y is that ? Quote Link to comment Share on other sites More sharing options...
Dr Dre Posted December 1, 2008 Share Posted December 1, 2008 Here is what i am talking about.. Quote Link to comment Share on other sites More sharing options...
spooks Posted December 1, 2008 Author Share Posted December 1, 2008 Hi Gaver, If you look at the button url its ...index.php?action=buy_now&products_id=36 the buy_now tells application top to add the identified product (&products_id=36) to the cart, so something is causing a redirect to product_info, you need to study your application top to find the cause. 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...
spooks Posted December 1, 2008 Author Share Posted December 1, 2008 hi guys.. i am in the admin for this.. And i want to change the height of the thumbnail images... but i am only seeing something to change the width.. "Product Listing Image width".. where can i adjust the height ? Its not done, read the instructions for details. 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...
spooks Posted December 1, 2008 Author Share Posted December 1, 2008 Standard html behavior, its a table, you set minimum width, if content is larger it will grow. 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...
spooks Posted December 1, 2008 Author Share Posted December 1, 2008 Hello Brock - I made the very changes you are referring to ... Here's how I did it... 1) Back up the existing product_list.php file so you have a copy to go back to incase this doesn't work out how you expect. 2) Find the following code near line 109 and comment it out. if ($top_nav && ($listing_split->number_of_rows > 0)) echo $drop; 3) Then find the following line of code near line 562 and comment it out. if ($base_nav && !$empty_list) echo $drop; After I made the changes above - I decided I wanted to set the max number of items being displayed - which of course I had just disabled by hiding the drop down list... You can set the max number by finding the following line of code near line 18: $max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS); and changing it to: $max_results = 9; /*(tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS); */ Note: change the iteger value (I used 9) to the value you want displayed. You can see a sample "work in progress" for my product_list.php display here. Hope that helps... Nice fix, one point though $max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS); thats says if no drop down selection use the default MAX_DISPLAY_SEARCH_RESULTS which is set in admin, avoids hard coding values. 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...
gaverp Posted December 2, 2008 Share Posted December 2, 2008 Hi Gaver, If you look at the button url its ...index.php?action=buy_now&products_id=36 the buy_now tells application top to add the identified product (&products_id=36) to the cart, so something is causing a redirect to product_info, you need to study your application top to find the cause. I'll do that, I was hoping it was per design - since Shirts have options like color and size - adding it to the cart without first selecting one of the options would create a problem at order fullfilment time - whereas hats do not have a size or color option - so adding them directly to the cart and taking the user to the checkout page is desireable. I'm wondering what it will hurt to leave it as is - since the problem appears to be working to my advantage - for now. Regarding maxresults - you're right - that's a much better way to handle that! Thanks again - I'm trying now to integrate the Additional Images Contribution... thank goodness for WinDiff ! ... and thanks again for your contribution and assistance. Quote Gaver diplomacy is the art of saying "nice doggie" - while you look for a rock. Link to comment Share on other sites More sharing options...
Dr Dre Posted December 2, 2008 Share Posted December 2, 2008 spooks.. i have read your instructions... also ... i have my dimensions in the 'Images" in admin set to 150x150 .. so i am lost at y i have some huge images coming up making stretch the html tables.. on another note... if by setting the "product listing image width" to 150.. shouldnt that over force the images to be at that width and nothing bigger ?? Also is it possible to hard code the heights into the code ??? Quote Link to comment Share on other sites More sharing options...
Hunnenkoenig Posted December 2, 2008 Share Posted December 2, 2008 Hello Brock - I made the very changes you are referring to ... Here's how I did it... 1) Back up the existing product_list.php file so you have a copy to go back to incase this doesn't work out how you expect. 2) Find the following code near line 109 and comment it out. ....................... You can see a sample "work in progress" for my product_list.php display here. Hope that helps... You are my hero!!!! I was messing around the whole day to find a solution, but I couldn't. You saved me getting crazy :D :thumbsup: Quote Link to comment Share on other sites More sharing options...
spooks Posted December 2, 2008 Author Share Posted December 2, 2008 if you have set "product listing image width" then that will limit the width, if not check your source for generated setting to see error (set wrong, browser issue etc) Also is it possible to hard code the heights into the code ??? Delt with in this thread already, why do want to distort?? 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...
danielcompton Posted December 2, 2008 Share Posted December 2, 2008 (edited) Hi Sam firstly fantastic contrib, works really well and with great results. Few things I would like to be able to do and wondered if you can advise, plus 2 problems I am having with it. First the problems I have 1). when I click new products I get this Parse error: syntax error, unexpected ';', expecting ',' or ')' in /home/sites/lancelotsolutions.co.uk/public_html/hiphopmusic/products_new.php on line 14 I have tried copying over again the file from your download just to make sure I didnt change anything and I still get that. any ideas? 2). I tried adding the image background part into the stylesheet and copied over the image, but I just dont see the image at all. I assume this should show behind my product image? I have this in the style sheet .infoBoxProducts { text-align: center; border: solid 1px #999999; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: normal; background-image: url(images/my-pic.gif); background-attachment: scroll; background-x-position: 0%; background-y-position: 0%; background-repeat: repeat-x; background-color: transparent; color: #333333; margin-bottom:-8px; } Nice to have features and now the nice to have 2 features. Mine is a music store and I dont display the prices as it is done on a membership. So wondered if I could replace the prices with rating stars? 1). I would like to display the review stars/rating under each product rather than the price on the thumbnail grid. I have made an image to show you an example of what I mean below 2). and also it would be great to sot by ratings on the same page. So where we can sort by name, manufactuer etc As it is a music store, people will want to see what the best rated would be. as I will have hundreds of different music some people just want to check out the top rated. Really be great if you could point me in the right direct on this. It is only a test/work in progress site so happy to play around with the code. thanks in advance, and again Great contrib. Edited December 2, 2008 by danielcompton Quote Link to comment Share on other sites More sharing options...
danielcompton Posted December 2, 2008 Share Posted December 2, 2008 Hi Sam firstly fantastic contrib, works really well and with great results. Few things I would like to be able to do and wondered if you can advise, plus 2 problems I am having with it. First the problems I have 1). when I click new products I get this Parse error: syntax error, unexpected ';', expecting ',' or ')' in /home/sites/lancelotsolutions.co.uk/public_html/hiphopmusic/products_new.php on line 14 I have tried copying over again the file from your download just to make sure I didnt change anything and I still get that. any ideas? 2). I tried adding the image background part into the stylesheet and copied over the image, but I just dont see the image at all. I assume this should show behind my product image? I have this in the style sheet .infoBoxProducts { text-align: center; border: solid 1px #999999; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: normal; background-image: url(images/my-pic.gif); background-attachment: scroll; background-x-position: 0%; background-y-position: 0%; background-repeat: repeat-x; background-color: transparent; color: #333333; margin-bottom:-8px; } Nice to have features and now the nice to have 2 features. Mine is a music store and I dont display the prices as it is done on a membership. So wondered if I could replace the prices with rating stars? 1). I would like to display the review stars/rating under each product rather than the price on the thumbnail grid. I have made an image to show you an example of what I mean below 2). and also it would be great to sot by ratings on the same page. So where we can sort by name, manufactuer etc As it is a music store, people will want to see what the best rated would be. as I will have hundreds of different music some people just want to check out the top rated. Really be great if you could point me in the right direct on this. It is only a test/work in progress site so happy to play around with the code. thanks in advance, and again Great contrib. I fixed the products_new problem buy changing line 14 & 15 in products_new.php by just adding a ) before the ; unset($HTTP_GET_VARS['manufacturers_id']); unset($_GET['manufacturers_id']); still would like some help with the rest if possible. thanks Quote Link to comment Share on other sites More sharing options...
danielcompton Posted December 2, 2008 Share Posted December 2, 2008 I also had to add the following into includes/languages/english/index.php define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); As in products_news.php when clicking the drop down box I had TABLE_HEADING list rather than the names prob a step I missed, but couldnt see it. Quote Link to comment Share on other sites More sharing options...
spooks Posted December 3, 2008 Author Share Posted December 3, 2008 I also had to add the following into includes/languages/english/index.php define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); As in products_news.php when clicking the drop down box I had TABLE_HEADING list rather than the names prob a step I missed, but couldnt see it. Yes you're right, instructions missed for includes/languages/english/products_new.php I'm surprised that has'nt come up before! 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...
spooks Posted December 3, 2008 Author Share Posted December 3, 2008 It'l need mods to index.php to add to the sql query plus add the new ratings heading, then modify the modules so the new heading & data are output. For the most part just copy whats done b4. I'm afraid I don't have time right now to do it myself. 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...
danielcompton Posted December 3, 2008 Share Posted December 3, 2008 It'l need mods to index.php to add to the sql query plus add the new ratings heading, then modify the modules so the new heading & data are output. For the most part just copy whats done b4. I'm afraid I don't have time right now to do it myself. Ok thanks, I think that a little above what I can do. But I will take a look. Any ideas why the image backgrounds do not show up for me. I pasted my stylesheet in, does that look correct to you? Quote Link to comment Share on other sites More sharing options...
spooks Posted December 3, 2008 Author Share Posted December 3, 2008 that looks fine as long as your pic is called my-pic.gif & is in images use firefox tools for css tests you can try putting the full url in, in case yuo have a path problem 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...
danielcompton Posted December 3, 2008 Share Posted December 3, 2008 Does anyone know if it is possible to make the thumbnail grid boxes to have rounded corners at all? Quote Link to comment Share on other sites More sharing options...
danielcompton Posted December 3, 2008 Share Posted December 3, 2008 that looks fine as long as your pic is called my-pic.gif & is in images use firefox tools for css tests you can try putting the full url in, in case yuo have a path problem Ok thanks, full path didnt work. but looking at firefox and there are a few errors so I will try a clean stylesheet maybe and start again thanks Quote Link to comment Share on other sites More sharing options...
gaverp Posted December 4, 2008 Share Posted December 4, 2008 Nice fix, one point though $max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS); thats says if no drop down selection use the default MAX_DISPLAY_SEARCH_RESULTS which is set in admin, avoids hard coding values. Sam, I restored MAX_DISPLAY_RESULTS as suggested, where in admin can I set the value to 9? It appears to be defauting to 5. Quote Gaver diplomacy is the art of saying "nice doggie" - while you look for a rock. Link to comment Share on other sites More sharing options...
spooks Posted December 4, 2008 Author Share Posted December 4, 2008 Sam, I restored MAX_DISPLAY_RESULTS as suggested, where in admin can I set the value to 9? It appears to be defauting to 5. As detailed under 'settings' The number of products shown per page is set by 'Search Results' in 'Maximum Values'. 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...
studioimagen Posted December 4, 2008 Share Posted December 4, 2008 Hello, i was following some of your postings and I really like the "Product Thumbnail Listing" you have as a contribution for "Product List Enhanments" I was wondering if there is a contribution just for the way the products list on a page, i would love to see the product thumbnail list for this page: http://traciegrant.com/catalog/index.php?cPath=21 Any ideas? I dont have manufacturer, i just want to list in 4 colums with the Details and Buy it now link, just as you have it. is there more to it than just editing the index.php page? the least about of modifying would be best - thank you a MILLION i put in a sort order contribution to get them in order., Quote Sincerely, Link to comment Share on other sites More sharing options...
spooks Posted December 4, 2008 Author Share Posted December 4, 2008 This can do 4 colums with the Details and Buy it now link with this, you don't need manufacturer, this is a contribution for the way the products list on a page.!!!!! :rolleyes: :rolleyes: :rolleyes: 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...
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.