title: How to get and use custom values in the Prestashop shopping cart
body: <p>I am new to Prestashop and not quite familiar with the structure of it, but i did manage to setup a custom product field called <code>quantity_step</code> using a tutorial, which is going to be used by the quantity input to determine the step size.</p>
  
  <p>In the product page template <code>product-add-to-cart.tpl</code> there is absolutely no problem getting the value of my custom field <code>{$product.quantity_step}</code></p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;input
    type="text"
    name="qty"
    id="quantity_wanted"
    value="{$product.quantity_wanted}"
    class="input-group"
    step="{$product.quantity_step}" 
    min="{$product.minimal_quantity}"
    aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
  /&gt;
  </code></pre>
  
  <p>On the other hand, i can't seem to get it to work in the cart template <code>cart-detailed-product-line.tpl</code>: </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input
    class="js-cart-line-product-quantity"
    data-down-url="{$product.down_quantity_url}"
    data-up-url="{$product.up_quantity_url}"
    data-update-url="{$product.update_quantity_url}"
    data-product-id="{$product.id_product}"
    type="text"
    value="{$product.quantity}"
    name="product-quantity-spin"
    step="{$product.quantity_step}"
    min="{$product.minimal_quantity}"
  /&gt;
  </code></pre>
  
  <p>My custom field returns <code>null</code>, while the built in field <code>{$product.minimal_quantity}</code> is working of course. </p>
  
  <p>I have a strong feeling i need to change some file somewhere to add my custom value to the <code>{$product}</code>-object, i just can't find that file, as i don't know what to look for :(</p>
  
  <p>If it helps, i am using the <code>classic</code> theme.</p>
  
  <p>Thank you!</p>