Last active
March 1, 2022 08:07
-
-
Save maxout/8b37e296bbbd1d293d0c61cebf1d33db to your computer and use it in GitHub Desktop.
shopware 5 Add2Cart within listing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if !$sArticle.sConfigurator && !$sArticle.variants && !$sArticle.sVariantArticle} | |
| <a href="{url controller=checkout action=addArticle sAdd=$sArticle.ordernumber sQuantity=1}" | |
| data-add-article="true" | |
| data-showModal="false" | |
| data-addArticleUrl="{url controller=checkout action=ajaxAddArticleCart sAdd=$sArticle.ordernumber sQuantity=1}" | |
| data-text="{s name="ListingBoxLinkCart"}In den Warenkorb{/s}" | |
| title="{s name="ListingBoxLinkCart"}In den Warenkorb{/s}" | |
| class="product--action action--add tooltip"> | |
| <i class="fa fa-cart-plus"></i> | |
| </a> | |
| {/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment