Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - possibility to return only product image path #158

Open
Jimmi08 opened this issue Jul 13, 2019 · 0 comments
Open

Feature Request - possibility to return only product image path #158

Jimmi08 opened this issue Jul 13, 2019 · 0 comments

Comments

@Jimmi08
Copy link

Jimmi08 commented Jul 13, 2019

Now you can get only product img tag or image as link (a href)

I was able to do this this way:

if(!empty($parm['link']))
{       $link = $this->tp->thumbUrl($path, $parm);
        if($parm['link'] === "src") { return $link; }

It's needed in store templates like this:

                                <a data-image="{ITEM_PIC: w=570&h=570&crop=1&item=0&link=src}" data-zoom-image="{ITEM_PIC: w=1200&h=1125&crop=1&item=0&link=src}">
                                    <img src="{ITEM_PIC: w=90&h=90&crop=1&item=0&link=src}" alt="{ITEM_NAME}-1">
                                </a>

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants