Jump to content

[SOLVED]Change Product RSS Image Size PS 1.5.2


Recommended Posts

I figured out how to change the image size of your products in PS 1.5.2 This version comes with the Feeder module which creates an automatice feed for your products. The images in the rss feed are by default, 45x45 px. This is a little small. If you would liek to change your image sizes then here is how.

 

Please see the screen shot which shows you the available sizes which are already included in your system. In the admin backend under Preferences -> Images is the list of sizes. Please note the first entry which is "small_default"

 

Now open up /modules/feeder/rss.php and go to the line which is the following:

 

echo "<![CDATA[<img src='"._PS_BASE_URL_._THEME_PROD_DIR_.$imageObj->getExistingImgPath()."-small_default.jpg' title='".str_replace('&', '', $product['name'])."' alt='thumb' />";

 

THere are two properties which can be chaged here. First notice in that line the -small_default.jpg That is the part that controls the size. you can change it to any of the sizes which are available in the default list. I changed mine to -large_default.jpg

 

Now for good SEO, notice in the sale line at the end the alt='thumb' /> The "thumb" is the default text which the search spiders see for every single pic. Change it to something short like maybe your site title. This is optional of course.

 

Please keep in mind that you are rewriting the default php file here. If you do an update later, this may be overwritten and lost. Be sure to do your backups. Until PS provides a backend to make these changes yourself, this is the only way. You could of course spend >$50 on other modules that will do the same, but why? It is built in.

 

Got questions, feel free to ask.

 

post-432164-0-25715600-1353268338_thumb.png

 

rss.php

Link to comment
Share on other sites

×
×
  • Create New...