Jump to content

[1.7] How to modify cart details


mr.b1ngo
 Share

Recommended Posts

Hi!

 

I'm trying to modify prices shown in cart detailed. Now it looks like this:

 

Total price incl. tax (shippment excl.)

Shippment with tax

 

----------------------

 

Total price without tax (shippment incl.)

Total tax (shippment incl.)

 

Now, what I'm trying to do:

 

Total price without tax (without shippment - only products)

Shippment without tax (I know where to change it: cart.php:3155 'total_price_with_tax' changing to 'total_price_without_tax')

 

---------------------------------------------------

 

Total with tax (with shippment)

Total tax (with shippment)

 

 

I'm making changes in cart-detailed-totals.tpl but I can't make it works. Mostly nothing hanges after modyfing variables.

 

The only change I can make is swithing places of the prices.

 

 

By the way: why I cannot add any variables from cart.php? for example trying to show $total_products_wt and it shows 0.

    <div class="cart-summary-line">
      <small class="label">{"Suma brutto"}</small>
      <small class="value">{$total_products_wt}</small>
    </div>

My cart-detailed-totals.tpl

{block name='cart_detailed_totals'}

<div class="cart-detailed-totals">
<span class=h3 style="font-weight: bold; display: inline-block; margin-top: 0px;">{"Podsumowanie"}</span>
  
  <div class="card-block">


 {foreach from=$cart.subtotals item="subtotal"}
      {if $subtotal.value && $subtotal.type !== 'tax'}
        <div class="cart-summary-line" id="cart-subtotal-{$subtotal.type}">
          <span class="label{if 'products' === $subtotal.type} js-subtotal{/if}">
          
            
           
            {if 'products' == $subtotal.type}
              Cena za {$cart.summary_string} brutto
            {else}
              {$subtotal.label} brutto
            {/if}
          </span>
          <span class="value">{$subtotal.value}</span>
  
       {if $subtotal.type === 'shipping'}
              <div><small class="value">{hook h='displayCheckoutSubtotalDetails' subtotal=$subtotal}</small></div>
          {/if}
         
         


        </div>
      {/if}
    {/foreach}




 <hr>

  <div class="card-block" style="margin-top: 20px">
    <div class="cart-summary-line cart-total">
      
           
      <span class="label">{"Razem netto"}</span>
      <span class="value">{$cart.totals.total.value}</span>
    </div>

    <div class="cart-summary-line">
      <small class="label">{"VAT 23%"}</small>
      <small class="value">{$cart.subtotals.tax.value}</small>
    </div>
    
    <div class="cart-summary-line">
      <small class="label">{"Suma brutto"}</small>
      <small class="value">{$total_discounts_tax_exc}</small>
    </div>
    
  </div>
  <hr>
       



 

Edited by mr.b1ngo (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

post-383927-0-13781100-1499998616_thumb.jpg

 

Same type of issue in 1.7. Totals and subtotals are incorrectly displayed. Is there a way to change the coding so that we can get it to calculate what we need it to correctly. What file do we need to change? Can I put the tax above the total line or add another line below the total line? Help please. Thank you. 

Edited by The Fuzzy Pineapple (see edit history)

Share this post


Link to post
Share on other sites

  • 3 months later...
  • 2 weeks later...

I don't know if this will help anyone in this post, but we did a patch job and for the most part fixed totals not showing taxes included. It's been frustrating because clients paying by cheque have been submitting the total without taxes and other clients paying by credit card are questioning why the charged amount is more than the total shown (Total should mean TOTAL OWING including shipping, taxes, and any other charges owing)

 

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.

 

Cheers, Kelly

  • Thanks 2

Share this post


Link to post
Share on other sites

  • 2 months later...
On 11/17/2017 at 8:13 PM, kellyriverstone said:

I don't know if this will help anyone in this post, but we did a patch job and for the most part fixed totals not showing taxes included. It's been frustrating because clients paying by cheque have been submitting the total without taxes and other clients paying by credit card are questioning why the charged amount is more than the total shown (Total should mean TOTAL OWING including shipping, taxes, and any other charges owing)

 

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.

 

Cheers, Kelly

Thank you So Much Kelly

This is really works but i see i minor issue could you pls help me pls see screenshot and you can see ((tax + shipping incl.) price is 948 but cannot show last digits 948.00$ so pls see and let me know

Untitled-1.jpg

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hey sabaqahmad

Regarding the issue about How to modify cart details - totals in cart. I'm not that great of a programmer and haven't found a work around for displaying the .00$ when the total ends up being an even amount.

I'm following an open ticket showing that the issue is supposed to be addressed in upcoming versions. Please see:

 

 
PrestaShop 1.7 / BOOM-2330
Cart subtotals issues as setting prices VAT excl. per all clients groups
Change By: Vincent Beudez
Fix Version/s: 1.7.3.x
Fix Version/s: 1.7.1.1

 

I was hoping that this latest release of 1.7.3 will have a fix - but I haven't had time to look through the changelog yet and am a little nervous about upgrading my version until I hear some feedback from others. If the Prestashop team hasn't fixed the issue in this last upgrade, I'll try my hacker hand at prettying up the code a bit more and finding a fix for the .00 not showing up.

 

Cheers,

Kelly

Share this post


Link to post
Share on other sites

  • 4 months later...

SOLVED
the error is in the order-confirmation-table.tpl
where it says: {$ cart.totals.total.amount + $ cart.subtotals.tax.amount}
you have to put: {$ totals.total.amount + $ subtotals.tax.amount}
and it would be correct.

Thanks and regards

Share this post


Link to post
Share on other sites

  • 4 months later...
On 2/16/2018 at 11:36 AM, sabaqahmad said:

Thank you So Much Kelly

This is really works but i see i minor issue could you pls help me pls see screenshot and you can see ((tax + shipping incl.) price is 948 but cannot show last digits 948.00$ so pls see and let me know

Untitled-1.jpg

solved:

<div class="card-block cart-summary-totals">
 {block name='cart_summary_tax'}
    <div class="cart-summary-line">
      <span class="label sub">{$cart.subtotals.tax.label}</span>
      <span class="value sub">{$cart.subtotals.tax.value}</span>
    </div>
  {/block}
  {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><br>
       <span class="label">Total (IVA INCLUIDO)</span>
      <span class="value">{$currency.sign}{$cart.totals.total.value + $cart.subtotals.tax.value}</span>
    </div>
  {/block}

Share this post


Link to post
Share on other sites

  • 3 weeks later...

I can't solve this problem. Andres can you explain better how you did that?

I still have the problem of not showing the .00 in the cart neither in the order confirmation. If I use the code posted by Andres the price in the confirmation and the cart goes to 0.

Please I need the final solution. I am really limited in code, sorry!

Thanks!

Share this post


Link to post
Share on other sites

  • 1 month later...

Just wanted to say a huge thanks to @kellyriverstone for providing a very valuable solution to this problem.

I have spent a lot of time on trying to find a solution, and according to the still unresolved topic on the Github forge, I must not be the only one.

I still have a small issue with the absence of a coma and zeros displayed at the end of the price <span>.

My coding capabilities are very limited, do you have any idea on how I could fix this?

 

 

Capture d’écran 2019-02-18 à 17.47.54.png

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Hi, although this might seem to solve the problem, it does not completely, there´s still a bug.

If you have different customer groups, one for example (retail group1) showing prices with tax included, and another group (wholesale group2) showing prices without tax, the totals on the cart shown will be wrong, I think this is still a bug in Prestashop 1.7

Anyone knows how to display cart subtotal correctly, with and without taxes, then show taxes, and then the total  (subtotal without taxes + tax) ?

is there any $cart.subtotals.amount  ?

Example :

Product1:  for retail customers (group1) price is $99 including taxes, it should show on the cart as  $99.00   with $13.65 (tax included in the price 16%)

Product1: for wholesalers (group2) price is let´s say $50 without tax, it should show on the cart as $50.00 + $8.00 (tax 16%) , total in cart $ 58.00

 

if you modify the cart-summary-totals.tpl with the {$cart.totals.total.amount+$cart.subtotals.tax.amount} the total amount for customer group1 will be wrong, as the result will be $ 99.00 + $13.65 = 112.65

any ideas ?

Share this post


Link to post
Share on other sites

  • 1 month later...
On 2/18/2019 at 5:50 PM, Kalisto Studio said:

Just wanted to say a huge thanks to @kellyriverstone for providing a very valuable solution to this problem.

I have spent a lot of time on trying to find a solution, and according to the still unresolved topic on the Github forge, I must not be the only one.

I still have a small issue with the absence of a coma and zeros displayed at the end of the price <span>.

My coding capabilities are very limited, do you have any idea on how I could fix this?

 

 

Capture d’écran 2019-02-18 à 17.47.54.png

In my case works in cart-summary-totals.tpl this : {$cart.totals.total.amount+$cart.subtotals.tax.amount|string_format:"%.2f"} see here https://www.smarty.net/docsv2/en/language.modifier.string.format.tpl

  • Thanks 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Thank you for sharing it.
I have another concern, about the item price total is displayed in TTC (with tax) in the cart, how to change for HT (without tax)

Prestashop 1.7.1.2

Panier-en.thumb.jpg.fca35049173b7875458ec6f1d5b2e218.jpg

Share this post


Link to post
Share on other sites

  • 5 months later...

Hello,
My version of Prestashop 1.7.5.1 is making the changes described in
/ Themes / warehouse / templates / checkout / _partials /
No change is visible. Clearing cache doesn't help. I did it from the administration panel and from the ftp level.

Share this post


Link to post
Share on other sites

3 hours ago, rmx333 said:

Hello,
My version of Prestashop 1.7.5.1 is making the changes described in
/ Themes / warehouse / templates / checkout / _partials /
No change is visible. Clearing cache doesn't help. I did it from the administration panel and from the ftp level.

If no change is visible, it sounds like it's still a caching problem. After you clear cache, did you try to "Force Compilation" under Advanced Parameters / Performance - Smarty settings? I usually have to select Smarty Cache "OFF", select "Force Compilation" and then "Save" in order to see changes when you make a change to any _partials templates. If you still don't see any changes, try turning off ALL of your caches on that page, save changes and then clear cache again. I've had issues with caches not getting cleared before with Prestashop. Most important, you have to FORCE compilation in order for that cart template to update. Just selecting "recompile after changes" has never worked for me.

Also,  when you're testing changes, I typically open the front side of the shop in a private or incognito window when I'm doing testing or designing and need to see the changes. I don't know about any other browser, but Google Chrome is notorious for not clearing caches completely. Opening the shop in a private window often helps prevent caching issues on the browser side when small changes are being made. 

Hope this helps. - Kelly

Edited by kellyriverstone (see edit history)

Share this post


Link to post
Share on other sites

1 hour ago, divamvak said:

I have also Wharehouse . I did from Plek in cart-summary-totals.tpl and works fine. I did the chage also in  order-confirmation-table.tpl but nothing visible. Isn't  itstrange? Is different if i work with ftp?

 

On 10/23/2019 at 8:53 AM, rmx333 said:

I do everything according to the instructions but still see no changes.

prestashop_scrin.png

It doesn't matter if you make the file changes from C-Panel, Plesk, or FTP. The changes just need to be done on the current theme installed that is live (if you have more than 1 theme - it has to be done on the theme currently being used). If the changes don't show up on the checkout, there are only two possibilities:

1. You have a different checkout page installed that isn't using the current theme checkout or your shop is possibly pulling templates from the original default Classic theme. or

2. You have a caching issue. The checkout page template MUST be recompiled after the changes are made to the partials (cart-summary-totals.tpl and order-confirmation-table.tpl). After recompiling, you must be sure to flush all caches from your shop AND your web browser. No changes showing means the front end is still grabbing old information from somewhere.

It is impossible to make changes and not see them UNLESS, those files are not being read and used.

Share this post


Link to post
Share on other sites

  • 1 month later...

rmx333, are you referring to PS 1.7.6.2? 

 

I have been plagued with this issue as well and I'm running PS 1.7.6.1. The issue only seems to show in the front office. The total doesn't have the tax included .... although the line is there to display the tax... it just doesn't add it to the total. I create alot of invoices in the back office and send a payment link.... so I never noticed the problem.... even my theme developer is stummped as to how to fix it... ANGAR Themes AT18   .... All backoffice orders are just fine...no problems with the cart or taxes.

 

My concern is if I upgrade to 1.7.6.2, I'll loose my cutomization on my current version....

 

Scott

9dYrKT.jpg

 

 

Share this post


Link to post
Share on other sites

20 minutes ago, GJ Tonewood LLC said:

rmx333, are you referring to PS 1.7.6.2? 

 

I have been plagued with this issue as well and I'm running PS 1.7.6.1. The issue only seems to show in the front office. The total doesn't have the tax included .... although the line is there to display the tax... it just doesn't add it to the total. I create alot of invoices in the back office and send a payment link.... so I never noticed the problem.... even my theme developer is stummped as to how to fix it... ANGAR Themes AT18   .... All backoffice orders are just fine...no problems with the cart or taxes.

 

My concern is if I upgrade to 1.7.6.2, I'll loose my cutomization on my current version....

 

Scott

9dYrKT.jpg

 

 

Scott, This is what I posted a couple years back. This patch job  worked for me and a lot of others. Just remember that you're modifying template files so in order to see your changes, the templates need to be recompiled in the back office. I suggest using Incognito or private pages to test so you don't end up seeing caching of unmodified templates in your webbrowser. This patch should have worked for rmx333. If you make modifications like this and don't see any changes - I guarantee the templates either aren't getting recompiled or cache isn't flushed either in the back office or webbrowser or both. Good luck! - K

 

Posted November 17, 2017

I don't know if this will help anyone in this post, but we did a patch job and for the most part fixed totals not showing taxes included. It's been frustrating because clients paying by cheque have been submitting the total without taxes and other clients paying by credit card are questioning why the charged amount is more than the total shown (Total should mean TOTAL OWING including shipping, taxes, and any other charges owing)

 

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.

 

Cheers, Kelly

Share this post


Link to post
Share on other sites

Kelly,

 

Yeah, In my theme, this is what is shown:

cart_summary_total-

<div class="card-block cart-summary-totals">

{block name='cart_summary_total'}

<div class="cart-summary-line cart-total">

<span class="label">{$cart.totals.total.label} <span class="price_tax_label">{$cart.labels.tax_short}</span></span>

<span class="value">{$cart.totals.total.value}</span>

</div>

{/block}

{block name='cart_summary_tax'}

<div class="cart-summary-line">

<span class="label sub">{$cart.subtotals.tax.label}</span>

<span class="value sub">{$cart.subtotals.tax.value}</span>

</div>

{/block}

</div>

 

order-confirmation-table-

<td><span class="text-uppercase">{$totals.total.label}</span> <span class="price_tax_label">{$labels.tax_short}</span></td>

<td>{$totals.total.value}</td>

 

I will make the changes as you  described and hopefully it fixes it. I never noticed the issue before because I usually don't order from myself!!! LOl...

 

Thanks,

Scott

 

 

Edited by GJ Tonewood LLC (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

  • 3 months later...
On 11/17/2017 at 4:13 PM, kellyriverstone said:

I don't know if this will help anyone in this post, but we did a patch job and for the most part fixed totals not showing taxes included. It's been frustrating because clients paying by cheque have been submitting the total without taxes and other clients paying by credit card are questioning why the charged amount is more than the total shown (Total should mean TOTAL OWING including shipping, taxes, and any other charges owing)

 

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.

 

Cheers, Kelly

hello unfortunately this did not work for me, I have prestashop 1.7.3.
In my store I have groups of clients, in all of them I show them the price without VAT.
And what I want is to show the price without VAT, the amount of VAT and the final price with VAT, I have followed your instructions, but I have not managed to get it out.
Attached catches, € 12 is for transport, the final amount should be 46.03,
I want to show this in the cart, at the checkout and in the order of confirmation.
Any ideas, anyone?
thanks in advance.

Screenshot_1.png

Screenshot_2.png

Share this post


Link to post
Share on other sites

  • 4 weeks later...
  • 2 months later...

Hello , i'm interested to this thread because only today i recongize that when some customer add a product on cart

he will get the following (as screen Shoot)

In others word:

1 Line total product

2 Line shipment cost

3 Line Vat Tx

4 Line Total (vat excluded)

But i need total even with V.a.t

Anyone can kindly give me the code to insert in one of the file in  partial if possible ? really appreciate

I use prestashop 1.7.5.2

Thanks in advance

Maurizio

 

screenvat.png

Share this post


Link to post
Share on other sites

i added a screen shot site is www.bearingsvip.com name of article is 32005 (the only article activated)

If you see the cart i can't get total amount included tax

Template is not classic , but megashop template

Really appreciate if you can help me.

Thanks

Screenshot_2020-06-26 NACHI(1).png

Share this post


Link to post
Share on other sites

Hi thanks again

below you can find modal.tpl text

{**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <[email protected]>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
<div id="blockcart-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title h6 text-sm-center" id="myModalLabel"><i class="material-icons rtl-no-flip">&#xE876;</i>{l s='Product successfully added to your shopping cart' d='Shop.Theme.Checkout'}</h4>
      </div>
      <div class="modal-body">
        <div class="row">
          <div class="col-md-6 divide-right">
            <div class="row">
              <div class="col-md-5">
                <img class="product-image" src="{$product.cover.medium.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" itemprop="image">
              </div>
              <div class="col-md-7">
                <h6 class="h6 product-name">{$product.name}</h6>
                {hook h='displayProductPriceBlock' product=$product type="unit_price"}
                {foreach from=$product.attributes item="property_value" key="property"}
                  <span><strong>{$property}</strong>: {$property_value}</span><br>
                {/foreach}
                <p><strong>{l s='Quantity:' d='Shop.Theme.Checkout'}</strong>&nbsp;{$product.cart_quantity}</p>
                <p>{$product.price}</p>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="cart-content">
              {if $cart.products_count > 1}
                <p class="cart-products-count">{l s='There are %products_count% items in your cart.' sprintf=['%products_count%' => $cart.products_count] d='Shop.Theme.Checkout'}</p>
              {else}
                <p class="cart-products-count">{l s='There is %product_count% item in your cart.' sprintf=['%product_count%' =>$cart.products_count] d='Shop.Theme.Checkout'}</p>
              {/if}
              <p><strong>{l s='Total products:' d='Shop.Theme.Checkout'}</strong>&nbsp;{$cart.subtotals.products.value}</p>
              <p><strong>{l s='Total shipping:' d='Shop.Theme.Checkout'}</strong>&nbsp;{$cart.subtotals.shipping.value} {hook h='displayCheckoutSubtotalDetails' subtotal=$cart.subtotals.shipping}</p>
              {if $cart.subtotals.tax}
                  <p><strong>{$cart.subtotals.tax.label}</strong>&nbsp;{$cart.subtotals.tax.value}</p>
              {/if}
              <p><strong>{l s='Total:' d='Shop.Theme.Checkout'}</strong>&nbsp;{$cart.totals.total.value} {$cart.labels.tax_short}</p>
              <div class="cart-content-btn">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">{l s='Continue shopping' d='Shop.Theme.Actions'}</button>
                <a href="{$cart_url}" class="btn btn-primary">{l s='Proceed to checkout' d='Shop.Theme.Actions'}</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

Share this post


Link to post
Share on other sites

Dear Tengler , i have now word to thank you it's incredible it work as attach screen

i think that at this point i can re-upload even the for the next step order confirmation ecc. modified

Screenshot_2020-06-26 NACHI(3).png

Share this post


Link to post
Share on other sites

Yes i found files already edited

cart-detailed-totals.tpl 2.58 kB · 46 downloads

cart-summary-totals.tpl 1.78 kB · 39 downloads

order-confirmation-table.tpl 5.15 kB · 37 downloads

Tengler i would add You as friend but i do not know how i use prestashop from only 1 year and i'm mad of this e-commerce :)

and even i would really thank you for Your Great tips , even because let me say that no one know your suggested tips on madal.tpl

Share this post


Link to post
Share on other sites

Wow this moudle is really searched because prestashop amount value included v.a.t is never correct

Example if you buy a product 23,12 the total amount v.a.t will be wrong

while if you buy something like 22,50 / 22,99 seems to be Ok

Share this post


Link to post
Share on other sites

Dear Tengler i would like to ask you an information about modal.tpl it's not so Important but just a curiosity

As you know everything is Ok.

But  if i put the item on cart as you know eveything is ok

but if for some reason i do not proceed with checkout the item will be on cart and if i push again on cart i will get again the same result like this

In other word price without labe tax included despite the modify on modal.tpl it's so incredible

 

Thanks

Screenshot_2020-06-26 BearingsVIP com The Right Place for Elite Bearings.png

Share this post


Link to post
Share on other sites

23 ore fa, Maurice dice:

Dear Tengler i would like to ask you an information about modal.tpl it's not so Important but just a curiosity

As you know everything is Ok.

But  if i put the item on cart as you know eveything is ok

but if for some reason i do not proceed with checkout the item will be on cart and if i push again on cart i will get again the same result like this

In other word price without labe tax included despite the modify on modal.tpl it's so incredible

 

Thanks

Screenshot_2020-06-26 BearingsVIP com The Right Place for Elite Bearings.png

Dear Tengler i would share with your what i succesful did.

i edited ps_shoppingcart.tpl and i insert the Line with subtotal included V.a.t.

Now everything seems to be Ok i will test again and let you know.

I did a look to your modules and You have something interesting for some of my customers , so if you have additional modules please let me know

i have a customer that would buy some special module for cart

Share this post


Link to post
Share on other sites

  • 9 months later...
On 11/5/2017 at 9:39 PM, kellyriverstone said:

Same issue. Real problem for being in Canada and having to show separate tax lines and Total to be paid (including shipping and taxes). Running 1.7 as well and can not find the variable value to display total with tax and shipping included. Frustrating!

hi kellyriverstone, apologies for bringing this up again, did you ever figure out how to create separate tax lines for each tax in Canada ? HST/GST/PST etc..?

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More