e107inc / vstore

Simple shopping cart system for e107 v2.x Bootstrap CMS
GNU General Public License v3.0
17 stars 12 forks source link

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

Open Jimmi08 opened 5 years ago

Jimmi08 commented 5 years ago

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