Difference between revisions of "Change star rating images"
From AbleCommerce Wiki
(New page: You can find these images in the following directory '''Website\images\ratings'''. Replacing these images with new ones will change the rating images across the store. But if you want to ...) |
|||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
string ratingImage = page.ResolveUrl("~/images/ratings/rate_" + tempRating.ToString() + ".gif"); | string ratingImage = page.ResolveUrl("~/images/ratings/rate_" + tempRating.ToString() + ".gif"); | ||
+ | </pre> | ||
+ | </code> | ||
+ | Now just change .gif with your new extension for example for this case we will change it as bellow | ||
+ | |||
+ | <code> | ||
+ | <pre> | ||
+ | string ratingImage = page.ResolveUrl("~/images/ratings/rate_" + tempRating.ToString() + ".png"); | ||
</pre> | </pre> | ||
</code> | </code> |
Revision as of 07:24, 2 September 2008
You can find these images in the following directory Website\images\ratings. Replacing these images with new ones will change the rating images across the store.
But if you want to use some different format for the images for example if you want to use the png format for the new version of the images. For this first you have to create and put these newly created images into Website\images\ratings folder and then edit the App_Code/NavigationHelper.cs file's
public static string GetRatingImage(LSDecimal rating)
method and change the extension in following code
string ratingImage = page.ResolveUrl("~/images/ratings/rate_" + tempRating.ToString() + ".gif");
Now just change .gif with your new extension for example for this case we will change it as bellow
string ratingImage = page.ResolveUrl("~/images/ratings/rate_" + tempRating.ToString() + ".png");