Jump to content

Edit History

ApoA

ApoA

hello, 
really? heres what i did, i edited cart-detailed-product-line.tpl,

  <!--  product left body: description -->
  <div class="product-line-grid-body col-md-4 col-xs-8">
    <div class="product-line-info">
      <a class="label" href="{$product.url}" data-id_customization="{$product.id_customization|intval}">{$product.name}</a>
    </div>

    {* I ADDED JUST THIS ONE *}
    <label>{$product.stock_quantity - $product.quantity}</label>
    {* I ADDED JUST THIS ONE *}

below that "product-line-info" class, that's what i added, just a label, and it works fine with me, you noticed the "299" from the picture?, that is the label with the amount of stock left, it changes everytime i add quantity for this product. it's just to show you how to get the stocks left for a product, if you get it right you can use that to anywhere you like in that tpl depending on your site. i hope my explanation is clear 😁

image.png.97cc6bd563938dd73759c37ecfda8208.png

ApoA

ApoA

hello, 
really? heres what i did, i edited cart-detailed-product-line.tpl,

  <!--  product left body: description -->
  <div class="product-line-grid-body col-md-4 col-xs-8">
    <div class="product-line-info">
      <a class="label" href="{$product.url}" data-id_customization="{$product.id_customization|intval}">{$product.name}</a>
    </div>

    {* I ADDED JUST THIS ONE *}
    <label>{$product.stock_quantity - $product.quantity}</label>
    {* I ADDED JUST THIS ONE *}

below that "product-line-info" class, that's what i added, just a label, and it works fine with me, you noticed the "299" from the picture?, that is the label with the amount of stock left, it changes everytime i add quantity for this product. i hope my explanation is clear 😁

image.png.97cc6bd563938dd73759c37ecfda8208.png

×
×
  • Create New...