• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 07.12.17, 00:17
  • Opened by: mirko
  • Closed by: Marek
  • Closed on: 15.12.17, 12:21
  • Reason: Closed
  • Comment: Glad to help!

Ticket #11226 - Product summary add field

hello staff,
what’s the file that manage the cart summary?

i would like to add this

TOTAL ( NO TAX )
TAX
TOTAL ( WITH TAX )

Comments

mirko 07 Dec 2017, 00:32

also this part of the order confirmed,

can i edit the order of element, it’s a prestashop option or customization of theme?

Marek 07 Dec 2017, 11:20

1. Shopping cart file is /themes/alysum/modules/ps_shoppingcart/ps_shoppingcart.tpl
2. the sile is /themes/alysum/templates/checkout/_partials/order-confirmation-table.tpl

mirko 07 Dec 2017, 11:57

sorry man maybe the screenshot it’s not clear:

i search > order confirmation > http://zoecosmetics.it/conferma-ordine?id_cart=43&id_module=159&id_order=15&key=b1c21cf4ebf9242b76e5b26fce5ce96f

Marek 07 Dec 2017, 12:05

you can edit order confirmation page here /themes/alysum/templates/checkout/_partials/order-confirmation-table.tpl

mirko 07 Dec 2017, 13:05

ok, it’s right
do you have a simple ready code to add a price without tax?

I have this:
<td>{$subtotal.label}</td>
<td>{$subtotal.value}</td>

i would like: price without tax

Marek 08 Dec 2017, 13:44

try {$subtotal|print_r} and see what’s data is available there

mirko 08 Dec 2017, 13:53

ok work fine

This in screenshot, where i find in template?^

Marek 09 Dec 2017, 13:02

themes/alysum/templates/checkout/_partials/cart-summary.tpl

mirko 09 Dec 2017, 14:40

i find this code in
themes/alysum/templates/checkout/_partials/cart-summary-total.tpl

in this block i would like to add a price without tax

<div class="cart-summary-line cart-total">
      <span class="label">{$cart.totals.total.label} {$cart.labels.tax_short}</span>
      <span class="value">{$cart.totals.total.value}</span>
</div>

if i add {$subtotal|print_r} i see the array code

mirko 09 Dec 2017, 14:48

i try to add same code in order-page box right

<div class="cart-summary-line"> 
      <small class="label">{$cart.totals.total.label} (Iva esclusa) {$value_tax_excl}</small>
      <h6 class="value">{$cart.totals.total.amount-$cart.subtotals.tax.amount}€ </h6>
</div>

i see one decimal after comma

Marek 10 Dec 2017, 11:41

I don’t know how to change one decimal to two