Jump to content

solucionado error en la suma total en carrito ps 1.7.5.0


Recommended Posts

thank you so much to @kellyriverstone !!  

Under themes\classic\templates\checkout\_partials\cart-summary-totals.tpl near the bottom of the file, find the {block name='cart_summary_total'} and remark out the 2 lines shown and add the 2 lines as shown below the remarked lines:

  {block name='cart_summary_total'}
    <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> *}
      <span class="label">Total (tax + shipping incl.)</span>
      <span class="value">{$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount}</span> 

    </div>
  {/block}

You can also move this whole block down to be under the taxes display block so that the grand total to be paid is the last thing the customer sees rather than the tax line below the total.

 

Then in file order-confirmation-table.tpl, at the bottom of the file find the 2 lines and remarked them out as shown then add the 2 lines below:

 {**         <td><span class="text-uppercase">{$totals.total.label}</span> {$labels.tax_short}</td> *}
 {**         <td>{$totals.total.value}</td> *}
         <td><span>TOTAL (tax + shipping incl.)</span></td>
         <td>{$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount}</td>

 

Hope this can help others. If anyone can pretty the code on this patch job - it would be appreciated as it doesn't look like a major rush for the Prestashop Team to address. The Forge still doesn't have it assigned for fixing and it has been 9 months since it was noted and reported. Understandably, there are still a lot of major other issues to deal with overall.

 

Link to comment
Share on other sites

  • 1 year later...
10 hours ago, fernandovegag said:

Hola tengo un problema con esto.

Al principio lo hace bien pero al final del todo me sale el total 0 €, y después en la línea de abajo sale bien

 

image.thumb.png.67943e2141a1c59afdf9de9776195981.png

image.png

Hola ,

fijate en que en la vista en dónde te aparece 0 , tenga {$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount} que es la suma que te aparece el importe .

Saludos

Link to comment
Share on other sites

  • 3 weeks later...
En 21/4/2020 a las 10:26 PM, joane dijo:

Hola ,

fijate en que en la vista en dónde te aparece 0 , tenga {$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount} que es la suma que te aparece el importe .

Saludos

Gracias por la ayuda sabes porque en el precio me sale (.) en vez de coma (,) 

20200509_204027.thumb.jpg.80ca527dc0181bcc90e5e37e1f2b6dc7.jpg

Necesito solucionar eso. Un saludo.

Link to comment
Share on other sites

  • 2 months later...

Hola chicos!

Ufff, necesito ayuda con este tema.
Encontré este post en el foro y pensaba que había visto la luz, pero a la hora de realizar los cambios que comentáis más arriba, la cosa sigue igual...no me suma el IVA en el total del mini cart.

Mi versión de Prestashop es la 1.7.4.2, no sé si tendrá algo que ver.

Gracias de antemano!

Link to comment
Share on other sites

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...