Jump to content

Edit History

ced13

ced13

J'ai trouvé les gars  ouvrez product-add-to-cart.tpl, modifiez, puis vider le cache (moi je suis sur 1.7.8.7)

/* identifiez ligne 50 */
        <div class="add">
          <button
            class="btn btn-primary add-to-cart"
            data-button-action="add-to-cart"
            type="submit"
            {if !$product.add_to_cart_url}
              disabled
            {/if}
          >
            <i class="material-icons shopping-cart">&#xE547;</i>
            {l s='Add to cart' d='Shop.Theme.Actions'}
          </button>
        </div>

/*et remplacer par */

<div class="add">
          <button
            class="btn btn-primary add-to-cart"
            data-button-action="add-to-cart"
            type="submit"
            {if !$product.add_to_cart_url}
              disabled
    onclick="window.location.href = '{$product.add_to_cart_url}'"
  {/if}
          
          >
            <i class="material-icons shopping-cart">&#xE547;</i>
            {l s='Add to cart' d='Shop.Theme.Actions'}
          </button>
        </div>
ced13

ced13

J'ai trouvé les gars  ouvrez product-add-to-cart.tpl, modifiez, puis vider le cache

/* identifiez ligne 50 */
        <div class="add">
          <button
            class="btn btn-primary add-to-cart"
            data-button-action="add-to-cart"
            type="submit"
            {if !$product.add_to_cart_url}
              disabled
            {/if}
          >
            <i class="material-icons shopping-cart">&#xE547;</i>
            {l s='Add to cart' d='Shop.Theme.Actions'}
          </button>
        </div>

/*et remplacer par */

<div class="add">
          <button
            class="btn btn-primary add-to-cart"
            data-button-action="add-to-cart"
            type="submit"
            {if !$product.add_to_cart_url}
              disabled
    onclick="window.location.href = '{$product.add_to_cart_url}'"
  {/if}
          
          >
            <i class="material-icons shopping-cart">&#xE547;</i>
            {l s='Add to cart' d='Shop.Theme.Actions'}
          </button>
        </div>
×
×
  • Create New...