Jump to content

Edit History

ps8modules

ps8modules

image.png.9dbf15d190b510f8fbd61e2fc1302366.png

image.thumb.png.62b5d31893fcddb2e8510338645dedef.png

image.thumb.png.ac448fe8bcbe21aee4ec4fcf4509c8b8.png

 

Et partout où l'élément id="quantity_wanted" se trouve, vous devez le modifier comme suit.

./themes/classic/templates/catalog/_partials/product-add-to-cart.tpl

Ajouté :
step="{$product.minimal_quantity}"
et
data-step="{$product.minimal_quantity}"

<input
            type="number"
            name="qty"
            id="quantity_wanted"
            inputmode="numeric"
            pattern="[0-9]*"
            {if $product.minimal_quantity > 1 || $product.quantity_wanted}
              value="{$product.quantity_wanted}"
              min="{$product.minimal_quantity}"
              step="{$product.minimal_quantity}"
              data-step="{$product.minimal_quantity}"
            {else}
              value="1"
              min="1"
            {/if}
            class="input-group"
            aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
          >

 

Bien entendu, d’autres modèles TPL doivent également être modifiés.

/themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

De plus, il serait bien d'avoir du javascript pour afficher le prix réel à payer.

ps8modules

ps8modules

image.png.9dbf15d190b510f8fbd61e2fc1302366.png

image.thumb.png.62b5d31893fcddb2e8510338645dedef.png

image.thumb.png.ac448fe8bcbe21aee4ec4fcf4509c8b8.png

 

Et partout où l'élément id="quantity_wanted" se trouve, vous devez le modifier comme suit.

./themes/classic/templates/catalog/_partials/product-add-to-cart.tpl

Ajouté :
step="{$product.minimal_quantity}"
et
data-step="{$product.minimal_quantity}"

<input
            type="number"
            name="qty"
            id="quantity_wanted"
            inputmode="numeric"
            pattern="[0-9]*"
            {if $product.minimal_quantity > 1 || $product.quantity_wanted}
              value="{$product.quantity_wanted}"
              min="{$product.minimal_quantity}"
              step="{$product.minimal_quantity}"
              data-step="{$product.minimal_quantity}"
            {else}
              value="1"
              min="1"
            {/if}
            class="input-group"
            aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
          >

 

Bien entendu, d’autres modèles TPL doivent également être modifiés.

/themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

 

ps8modules

ps8modules

image.png.9dbf15d190b510f8fbd61e2fc1302366.png

image.thumb.png.62b5d31893fcddb2e8510338645dedef.png

image.thumb.png.ac448fe8bcbe21aee4ec4fcf4509c8b8.png

 

Et partout où l'élément id="quantity_wanted" se trouve, vous devez le modifier comme suit.

./themes/classic/templates/catalog/_partials/product-add-to-cart.tpl

Ajouté :
step="{$product.minimal_quantity}"
et
data-step="{$product.minimal_quantity}"

<input
  type="number"
  name="qty"
  id="quantity_wanted"
  inputmode="numeric"
  pattern="[0-9]*"
  {if $product.quantity_wanted}
    value="{$product.quantity_wanted}"
    min="{$product.minimal_quantity}"
    step="{$product.minimal_quantity}"
    data-step="{$product.minimal_quantity}"
  {else}
    value="1"
    min="1"
  {/if}
  class="input-group"
  aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
>

 

Bien entendu, d’autres modèles TPL doivent également être modifiés.

/themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

 

ps8modules

ps8modules

image.png.9dbf15d190b510f8fbd61e2fc1302366.png

image.thumb.png.62b5d31893fcddb2e8510338645dedef.png

image.thumb.png.ac448fe8bcbe21aee4ec4fcf4509c8b8.png

 

Et partout où l'élément id="quantity_wanted" se trouve, vous devez le modifier comme suit.

Ajouté :
step="{$product.minimal_quantity}"
et
data-step="{$product.minimal_quantity}"

<input
  type="number"
  name="qty"
  id="quantity_wanted"
  inputmode="numeric"
  pattern="[0-9]*"
  {if $product.quantity_wanted}
    value="{$product.quantity_wanted}"
    min="{$product.minimal_quantity}"
    step="{$product.minimal_quantity}"
    data-step="{$product.minimal_quantity}"
  {else}
    value="1"
    min="1"
  {/if}
  class="input-group"
  aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
>

 

×
×
  • Create New...