spooks Posted February 11, 2010 Author Share Posted February 11, 2010 (edited) Thanks for the millionth time, but once again, this seems to be above my head. Is it possible for you to give me an idea of what to do to make this work? Sue I`m sorry, it must be me but I don't know how to make that simpler!! You could try CSS Tuition http://www.w3.org/Style/CSS/learning Regarding filenames you could make this change, then all filenames will be valid, but uploaded filenames may vary from the original, it would avoid issue with client errors though. open admin/includes/classes/upload.php find (120): $this->filename = $filename; replace with: $this->filename = strtolower(preg_replace(array('/[^\w.-]/i','/(_)\1+/'),'_',$filename)); Edited February 11, 2010 by spooks 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...
designbysue Posted February 11, 2010 Share Posted February 11, 2010 I`m sorry, it must be me but I don't know how to make that simpler!! Thanks for the file name code - I will give that a try. Regarding the quote below, I have tried to change the numbers, 8 an 0.9 but it had no effect on the results. My question is what needs to be changed in the coding - if the numbers, what is the range of the possible numbers. in page-header-inc.htc adjust margin-left:-<?php echo (int)(IMAGE_TTIP_WIDTH/8) ?>px;for firefox and margin-left:-<?php echo (int)(IMAGE_TTIP_WIDTH*0.9) ?>px;for IE Quote Link to comment Share on other sites More sharing options...
spooks Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks for the file name code - I will give that a try. Regarding the quote below, I have tried to change the numbers, 8 an 0.9 but it had no effect on the results. My question is what needs to be changed in the coding - if the numbers, what is the range of the possible numbers. Did you ensure you uploaded after change? Try bigger changes, the result is rounded to whole numbers, so small changes may have no effect. 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...
designbysue Posted February 11, 2010 Share Posted February 11, 2010 yes - did upload - will try larger numbers - thanks Quote Link to comment Share on other sites More sharing options...
designbysue Posted February 11, 2010 Share Posted February 11, 2010 Regarding filenames you could make this change, then all filenames will be valid, but uploaded filenames may vary from the original, it would avoid issue with client errors though. open admin/includes/classes/upload.php find (120): $this->filename = $filename; replace with: $this->filename = strtolower(preg_replace(array('/[^\w.-]/i','/(_)\1+/'),'_',$filename)); Thanks for this tidbit! I tested it and it appears it adds the an underscore where the was a space in the image name - great and simple addition!!! Sue Quote Link to comment Share on other sites More sharing options...
fan4chevy Posted February 12, 2010 Share Posted February 12, 2010 I saw that Marker did a previous post mentioning 'Free Shipping Image'. Is there a free shipping icon with this contrib? If not please lead me to where I can set this up if anyone knows. Thanks, Charles Quote Link to comment Share on other sites More sharing options...
jennyb Posted February 12, 2010 Share Posted February 12, 2010 Hya, thanks for this great contribution! just having trouble with no-image.jpg - can't get it to show up when there's no image defined for a product. have scoured the forums and can't find an answer. am i missing something? please point me in the right direction! thnx, -jennyb Quote Link to comment Share on other sites More sharing options...
spooks Posted February 12, 2010 Author Share Posted February 12, 2010 just having trouble with no-image.jpg - can't get it to show up when there's no image defined for a product. have scoured the forums and can't find an answer. am i missing something? please point me in the right direction! no-image.jpg should go in your images folder, as defined in DIR_WS_IMAGES in configure.php If you just get red X try right clicking -> properties, see what the file path is. The other possibility is corrupt file, if you ftp the file in the wrong transfer mode you will corrupt the file, ensure you set your ftp transfer mode to automatic. 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...
jennyb Posted February 12, 2010 Share Posted February 12, 2010 no-image.jpg should go in your images folder, as defined in DIR_WS_IMAGES in configure.php If you just get red X try right clicking -> properties, see what the file path is. The other possibility is corrupt file, if you ftp the file in the wrong transfer mode you will corrupt the file, ensure you set your ftp transfer mode to automatic. thanks for the quick reply. i'm working locally for now, so no ftp issues, and my file path is fine because all other images show up no prob. when i use firebug to test the page, it shows the image as <img src="images/"> . so, no image is being input. i've tried with and without Image Required. i suppose i can just go into my file and replace all NULL images with no-image.jpg, but i thought the point was not having to. am i missing something in configuration? have i misinterpreted this function? thanks again! -jennyb Quote Link to comment Share on other sites More sharing options...
spooks Posted February 12, 2010 Author Share Posted February 12, 2010 thanks for the quick reply. i'm working locally for now, so no ftp issues, and my file path is fine because all other images show up no prob. when i use firebug to test the page, it shows the image as <img src="images/"> . so, no image is being input. i've tried with and without Image Required. i suppose i can just go into my file and replace all NULL images with no-image.jpg, but i thought the point was not having to. am i missing something in configuration? have i misinterpreted this function? thanks again! -jennyb are you saying u have a blank image where-ever you have no product image!! The function checks if the file refered to in the dbase exists, if it does, display it, otherwise the no-image.jpg the line resonsible is: $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); But if you have the product image set to some text, ie NULL what the upload function will do is create a empty file called NULL in images & as that file exists.... (you could fill with 'no-image.jpg' instead) 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...
jennyb Posted February 12, 2010 Share Posted February 12, 2010 are you saying u have a blank image where-ever you have no product image!! The function checks if the file refered to in the dbase exists, if it does, display it, otherwise the no-image.jpg the line resonsible is: $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); But if you have the product image set to some text, ie NULL what the upload function will do is create a empty file called NULL in images & as that file exists.... (you could fill with 'no-image.jpg' instead) exactly, i got a non image. indeed the DB default in NULL when there is no image defined...so you're saying that's what's jamming me up? i did go ahead and replace all instances of NULL with no-image.jpg...now i'm having trouble with Easy Populate that either wants to recognize the images or the descriptions but not both. but that's another problem for another forum another time. thanks for your help and your contrib. -jennyb Quote Link to comment Share on other sites More sharing options...
jennyb Posted February 12, 2010 Share Posted February 12, 2010 just emptied db of all product image instances of NULL and redefined field as Not Null, that didn't work either. i double checked the line of code, looks good. $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); Quote Link to comment Share on other sites More sharing options...
spooks Posted February 12, 2010 Author Share Posted February 12, 2010 just emptied db of all product image instances of NULL and redefined field as Not Null, that didn't work either. i double checked the line of code, looks good. $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); but the text not null will have the same effect! look in your images folder with ftp, delete anything with a size of 0 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...
jennyb Posted February 12, 2010 Share Posted February 12, 2010 but the text not null will have the same effect! look in your images folder with ftp, delete anything with a size of 0 i don't follow. emptying the db table products_image and changing the cell structure to Not Null (NULL > Not Null) means the Null is no longer the default (Default > ), and the cell's empty rather than containing the text "NULL". so i had no text, no image, and still no-image.jpg wasn't showing up. although i don't get the logic i did check my images folder and there are no images with a size of 0. i ended up just filling in "no-image.jpg" in products_image which works just as well, but would have been cool to not have to. again, i'm developing the site locally so i have no ftp issues. thnx, -jennyb Quote Link to comment Share on other sites More sharing options...
spooks Posted February 12, 2010 Author Share Posted February 12, 2010 Then it sounds like the php on your pc is not behaving normally, that does happen sometimes, I seen too many cases when people strugled, but as soon as they uploaded to a 'real' server their issues vanished. This issue is especially true of the CAPTCHA type add-ons. Also windows is a poor choice of server, as you will see when you move to a linux server. 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...
pini_pink Posted February 14, 2010 Share Posted February 14, 2010 Hello Sam, I have installed this contribution, but I have a question about it. I have several products which have product options but the product options don't show on the product listing page no matter what I put in on the admin configuration. Is there a possibility to be able to show and immediately add the product options in the product listing? Also I would like to add the product quantity box to the product info page so customers can change the quantity there as well. I hope you can help me with this. Regards, Evelien Quote Link to comment Share on other sites More sharing options...
spooks Posted February 14, 2010 Author Share Posted February 14, 2010 (edited) I have installed this contribution, but I have a question about it. I have several products which have product options but the product options don't show on the product listing page no matter what I put in on the admin configuration. Is there a possibility to be able to show and immediately add the product options in the product listing? Did u read the doc? Display Product Options Display product options within the product listing. Display will be adjacent to buy now button. did u enable buy now too? Also I would like to add the product quantity box to the product info page so customers can change the quantity there as well. Add quantity box to product info page Edited February 14, 2010 by spooks 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...
pini_pink Posted February 14, 2010 Share Posted February 14, 2010 Did u read the doc? Display Product Options Display product options within the product listing. Display will be adjacent to buy now button. did u enable buy now too? Add quantity box to product info page Hi Sam, Yes I have read the doc. I have enabled the buy now button and put diplay product options on true so I don't know why the attributes are not showing in the product listing page. For the addon yes I have seen that one but I would like to have the same quantity box as on the product listing page. Best regards, Evelien Quote Link to comment Share on other sites More sharing options...
spooks Posted February 14, 2010 Author Share Posted February 14, 2010 Did you check all the requirements, post all your listing settings. 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...
pini_pink Posted February 14, 2010 Share Posted February 14, 2010 Product Listing Titel Waarde Aktie Display Product Options 6 Display Product Image 1 Display Product Manufaturer Name 0 Display Product Model 0 Display Product Name 2 Display Product Name/Price above all other fields true Display Product Price 3 Display Product Truncated Description 1 Product Truncated Description Length 120 Display Product Quantity 4 Display Product Weight 0 Display Buy Now column 5 Enable Multi Add to Cart false Display Category/Manufacturer Filter (0=disable; 1=enable) 0 Display Product Options true Display a Quantity Input Box / Drop Down true Display Products Extra Fields false Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 2 Product Listing Style list in blocks Product Listing Style Last Column Size 4 Product Listing Short Description true Product Listing Manufacturers Description false Product Listing Image Height. Product Listing Image Width 140 Product Listing Box Width 200 Product Listing Box Height 180 Product Listing Image Vertical Space 100 Product Listing Name Vertical Space 25 Product Listing Per Row 1 Product Listing Buy Now / Details Button buy now Product Listing Headings false Product Listing Style Switch false Product Listing Image zoom on hover false Product Listing Image hover zoom width 200 Quote Link to comment Share on other sites More sharing options...
spooks Posted February 14, 2010 Author Share Posted February 14, 2010 Your setting look ok do the products have stock, show a price (above zero), have attributes & are not disabled? 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...
pini_pink Posted February 14, 2010 Share Posted February 14, 2010 Your setting look ok do the products have stock, show a price (above zero), have attributes & are not disabled? Yes the products all have stock and a price and attributes attached to them (on the product info page the product attributes do show up but just not on the product listing page) Quote Link to comment Share on other sites More sharing options...
spooks Posted February 14, 2010 Author Share Posted February 14, 2010 Yes the products all have stock and a price and attributes attached to them (on the product info page the product attributes do show up but just not on the product listing page) perhaps you have a error in your index.php, do you see the values for stock & price in the listing? a link would help. 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...
pini_pink Posted February 14, 2010 Share Posted February 14, 2010 This is the link: cinderellawedding Quote Link to comment Share on other sites More sharing options...
spooks Posted February 14, 2010 Author Share Posted February 14, 2010 This is the link: cinderellawedding I see u have no quantity box either!! What version osC is the store? Are you missing the setting Product Quantities In Shopping Cart in admin->max values, or is it set to zero? if so this change would circumvent that in product_listing.php find : $pstock = min(tep_get_products_stock($products_id),MAX_QTY_IN_CART); $qbox = ($pstock && $p_price != 0); replace with: $max_qty = is_numeric(MAX_QTY_IN_CART) ? MAX_QTY_IN_CART : 10; $pstock = min(tep_get_products_stock($products_id),$max_qty); $qbox = ($pstock && $p_price != 0); 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.
Note: Your post will require moderator approval before it will be visible.