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

Move the number of items in stock before the 'Add to cart' button and before to the stock label #51

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions templates/catalog/_partials/product-add-to-cart.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@
{else}
<i class="material-icons product-unavailable">&#xE14B;</i>
{/if}
{if $product.show_quantities}
<span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity}</span>
{/if}
{$product.availability_message}
{else}
{if $product.show_quantities}
<span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity}</span> <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label>
{/if}
{/if}
</span>
{/block}
Expand Down