Im trying to make the Discount Prices on the product page into a table... which I figured out.

So the first column I have the Discount Quantity.

Second Column I have the Discount Price.

In a 3rd column I would like to show what the price would be with my storewide discount.

So for Example lets say my store has 10% Storewide Discount when a coupon is used. I want to show what the price would be IF they used the discount coupon in a table like this:

24 - $2.00 - or $1.80 with 10% Discount use code: SAVE10

48 - $1.50 - or $1.35 with 10% Discount use code: SAVE10

96 - $1.00 - or $0.90 with 10% Discount use code: SAVE10

I got everything figured out except how to do the math.... showing the price with 10% off. I tried this:

Code: Select all

```
{% set Number = discount.price * 0.9 %}
or {{ Number }} with 10% Discount use code: SAVE10
```

I think its because the discount.price has the USD Symbol as part of the variable. I tested this by changing the discount.price to discount.quantity and then it worked just fine... it took my quantity of 24 and multiplied by .90 and it worked great. But does not work with the discount.price variable... and im guessing its because of the "$" symbol.

Any ideas?

This is exactly what I am trying to achieve:

Code: Select all

```
{% set Number = {{ discount.price }} * .90 %}
Qty {{ discount.Quantity }} - {{ discount.price }} - or {{ Number }} with 10% Discount - Use Code: SAVE10
```

Angelina