Jump to content

Getting the URL of the original uncompressed category image


Recommended Posts

I'm trying to output the originally uploaded image in Smarty, i.e. not compressed, not resized, exactly the one that I uploaded for the category cover.

But I can't find a clean way to do that. This piece of code

{$link->getCatImageLink($category->link_rewrite, $category->id_image)|substr:0:-4}{$category.id}.jpg

works but it's too ugly.

So there are two options and I'm soliciting advice on those:

1. Some kind of variable that contains

https://mystore.com/img/c/CATEGORYID.jpg

2. If such a variable doesn't exist, a way to generate URL like so in Smarty

FullCategoryImageURL/CategoryID.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...