Jump to content

Désactiver la déduction automatique du stock lorsqu'un article est ajouté au panier


Recommended Posts

Merci. Mais dans mon fichier product-add-to-cart.tpl, je n'ai pas du tout la même structure que ce qui est proposé dans ce post...

{strip}
    <div class="product-add-to-cart">
        {if !$configuration.is_catalog}
        {block name='product_quantity'}
        <div class="product-quantity">
            <span class="control-label">{l s='Quantity : ' d='Shop.Theme.Catalog'}</span>
            <div class="qty">
                <input type="text" name="qty" id="quantity_wanted" value="{$product.quantity_wanted}" class="input-group" min="{$product.minimal_quantity}" aria-label="{l s='Quantity' d='Shop.Theme.Actions'}">
            </div>
        </div>
        
        <div class='tvwishlist-compare-wrapper-page add tv-product-page-add-to-cart-wrapper'>
            <div class="tvcart-btn-model">
                <button class="tvall-inner-btn add-to-cart {if !$product.add_to_cart_url} disabled {/if}" data-button-action="add-to-cart" type="submit" {if !$product.add_to_cart_url} disabled {/if}> {if !$product.add_to_cart_url} <i class='material-icons block'>&#xe14b;</i>
                    <span>{l s='Contact us' d='Shop.Theme.Actions'}</span>
                    {else}
                    <i class="material-icons shopping-cart">&#xE547;</i>
                    <span>{l s='Add to cart' d='Shop.Theme.Actions'}</span>
                    {/if}
                </button>
                {* {if $page.page_name == 'product'}
                <button type="button" class="tvall-inner-btn tvclick-model" data-toggle="modal" data-target="#exampleModalCenter">
                    <i class="tvcustom-btn"></i>
                    <span>Buy in one click</span>
                </button>
                {/if} *}
            </div>
            <div class="tvproduct-wishlist-compare">
                {hook h='displayWishlistProductPage' product=$product}
                {hook h='displayProductCompareProductPage' product=$product}
            </div>
            <div class="tvproduct-stock-social">
              
                {block name='product_additional_info'}
                {include file='catalog/_partials/product-additional-info.tpl'}
                {/block}
            </div>
        </div>
        {/block}
        {/if}
    </div>
{/strip}

 

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...