Jump to content
inspectaclueso

Cart summary - Undesired "Total" calculation

Recommended Posts

Hi people,

I am running 1.6.1.18

Theme is default-bootstrap

Customer group is set to display prices EXCLUDING Tax as we are B2B company.

Taxes are set to Enable Tax = Yes and Display Tax in Shopping Cart = Yes

Example of order summary page...

 

To me this does not make sense as the Total should be IMO the sum of $499 + $74.85 e.g. $573.85

What is interesting is that on the order payment page the calculation is how I would like the order summary page to display...

Perhaps this is possible by editing a .tpl file?  Can you please advise how I can make the order summary page calculate the Total price the same way as the order payment page does.

 

Thanks

 

taxes.jpg

groups.jpg

payment_good.jpg

cart.jpg

Share this post


Link to post
Share on other sites

Since I joined this forum in June 2017 I've asked four questions.  Never had an answer/reply to any of them :(

So today I answer my own question.

I was able to achieve the desired cart summary total by commenting out the tax exclusive arguments in shopping-cart.tpl

 

<tr class="cart_total_price">
                    <td colspan="{$col_span_subtotal}" class="total_price_container text-right">
                        <span>{l s='Total'}</span>
                        <div class="hookDisplayProductPriceBlock-price" id="HOOK_DISPLAY_PRODUCT_PRICE_BLOCK">
                            {hook h="displayCartTotalPriceLabel"}
                        </div>
                    </td>
                    
                    {*
                    
                    {if $use_taxes}
                        {if $priceDisplay}
                            <td colspan="2" class="price" id="total_price_container">
                                <span id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</span>
                            </td>
                        {else}
                    *}
                            <td colspan="2" class="price" id="total_price_container">
                                <span id="total_price">{displayPrice price=$total_price}</span>
                            </td>
                        
                    {*    
                        {/if}
                    {else}
                        <td colspan="2" class="price" id="total_price_container">
                            <span id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</span>
                        </td>
                    {/if}
                    
                    *}    
                    
                </tr>

  • Thanks 1

Share this post


Link to post
Share on other sites
On 5/20/2018 at 10:35 PM, inspectaclueso said:

Since I joined this forum in June 2017 I've asked four questions.  Never had an answer/reply to any of them :(

So today I answer my own question.

I was able to achieve the desired cart summary total by commenting out the tax exclusive arguments in shopping-cart.tpl

 

<tr class="cart_total_price">
                    <td colspan="{$col_span_subtotal}" class="total_price_container text-right">
                        <span>{l s='Total'}</span>
                        <div class="hookDisplayProductPriceBlock-price" id="HOOK_DISPLAY_PRODUCT_PRICE_BLOCK">
                            {hook h="displayCartTotalPriceLabel"}
                        </div>
                    </td>
                    
                    {*
                    
                    {if $use_taxes}
                        {if $priceDisplay}
                            <td colspan="2" class="price" id="total_price_container">
                                <span id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</span>
                            </td>
                        {else}
                    *}
                            <td colspan="2" class="price" id="total_price_container">
                                <span id="total_price">{displayPrice price=$total_price}</span>
                            </td>
                        
                    {*    
                        {/if}
                    {else}
                        <td colspan="2" class="price" id="total_price_container">
                            <span id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</span>
                        </td>
                    {/if}
                    
                    *}    
                    
                </tr>

Thank you very much. I've spent so much time on this until I found your solution.

Share this post


Link to post
Share on other sites
8 hours ago, constantina said:

Thank you very much. I've spent so much time on this until I found your solution.

Awesome, I am glad it helped you.  Thanks for the feedback.

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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