{if $this->getAttribute('showTitle') && $this->getAttribute('frontendTitle')}
{/if} {if $this->getAttribute('content') != ""}
{$this->getAttribute('content')}
{/if} {* Image background class *} {assign var=imgBgClass value=''} {if $this->getAttribute('imgBg')} {assign var=imgBgClass value='product-image-background'} {/if}
{strip} {foreach $productsData as $entry} {assign var=Product value=$entry.Product} {assign var=hasImage value=0} {if $Product->getImage()} {assign var=hasImage value=1} {/if}
{if $hasImage} {image image=$Product->getImage() height="500" width="500"} {/if}
{if !empty($entry.Price)} {assign var=Price value=$entry.Price} {assign var=RetailPrice value=$entry.RetailPrice}
{if $RetailPrice}
{$RetailPrice->create()}
{/if}
{$Product->getPriceDisplay()->create()}
{/if} {if $this->getAttribute('showButtons')}
{template_event name="quiqqer::product-event::productCard::buttons::before" Product=$Product} {if QUI\ERP\Products\Utils\Products::isVariant($Product)} {locale group="quiqqer/order" var="control.basket.buttonVariantAdd.text"} {else} {if $this->getAttribute('buttonAction') == 'addToBasket' && !$Product->hasRequiredUserInputFields()} {assign var=disabled value=0} {if $Product->getMaximumQuantity() < 1} {assign var=disabled value=1} {/if} {locale group="quiqqer/product-bricks" var="button.product.addToCart"} {else} {locale group="quiqqer/product-bricks" var="button.product.viewProduct"} {/if} {/if} {template_event name="quiqqer::product-event::productCard::buttons::after" Product=$Product}
{/if}
{/foreach} {/strip}
{if $moreUrl}
{locale group="quiqqer/product-bricks" var="brick.control.productCards.frontend.moreUrl"}
{/if}