Jump to content

single product price in discount list


Shad86

Recommended Posts

Hey guys,

 

I`m using Presta 1.7.1.2 (update in the next days) and I try to change the discount list a bit.

I´ve added a new cell for the single price of the product and added the price by {$product.price}.

My problem is, if the customer types in 50 at the quantity field, the single price is changing like on the top of the product. But the single price in the discount list has to stay. And chance to find out which code I could use to realize that?

 

My code now is:

<table class="table-product-discounts">
        <thead>
        <tr>
          <th>{l s='Quantity' d='Shop.Theme.Catalog'}</th>
          <th>{$configuration.quantity_discount.label}</th>
        </tr>
        </thead>
        <tbody>
		<tr>
	      <td>1</td>
          <td>{$product.price}</td>
	   </tr>
        {foreach from=$product.quantity_discounts item='quantity_discount' name='quantity_discounts'}
          <tr data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value}" data-discount-quantity="{$quantity_discount.quantity}">
            <td>{$quantity_discount.quantity}</td>
            <td>{$quantity_discount.discount}</td>
          </tr>
        {/foreach}
        </tbody>
      </table>

And here a small screenshot how it looks at the moment: post-724192-0-20848600-1507128351_thumb.jpg

 

Hopefully someone can help me a bit with this. Thank you very much.

Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...
  • 9 months 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...