Skip to content

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

Description

@Jimmi08

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Triage Status

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions