Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Display Total Order Without Tax Index Page Backend Rate Topic   - - - - -

  • gator54
  • Junior Member
  • Members
  • Join Date: 11-Aug 06
  • 11 posts

Posted 13 June 2017 - 11:25 AM #1

Hello everyone
In my admin page, I would like to add:
The amount of sales without taxes with discounts!
Example: selling price of a product 100 dollars
$ 20 discount
Tax: 20 dollars
shipping: 10 dollars
Total: 110 dollars
I want just: total amount order with discount with shipping but no tax 90 dollars
in my file design/backend/template/view/index/index.tpl
From line 169 I do not know what function to add
What is an idea ??
thank you very much

Attached Files

  • Attached File  ex.jpg   126.66KB   1 downloads

  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2842 posts

Posted 15 June 2017 - 06:39 PM #2



First variant, you can create any module and add the template 



Then add this code into the file

{********************** Old Price *****************}
{capture name="old_price_`$obj_id`"}
   {if $show_price_values && $show_old_price}
       <span class="cm-reload-{$obj_prefix}{$obj_id}" id="old_price_update_{$obj_prefix}{$obj_id}">
           {hook name="products:old_price"}
           {if $product.discount}
               <span class="ty-list-price ty-nowrap" id="line_old_price_{$obj_prefix}{$obj_id}">{if $details_page}{__("old_price")}: {/if}<span class="ty-strike">{include file="common/price.tpl" value=$product.original_price|default:$product.base_price span_id="old_price_`$obj_prefix``$obj_id`" class="ty-list-price ty-nowrap"}</span></span>
           {elseif $product.list_discount}
               <span class="ty-list-price ty-nowrap" id="line_list_price_{$obj_prefix}{$obj_id}">{if $details_page}<span class="list-price-label">{__("list_price")}:</span> {/if}<span class="ty-strike">{include file="common/price.tpl" value=$product.list_price span_id="list_price_`$obj_prefix``$obj_id`" class="ty-list-price ty-nowrap"}</span></span>
{if $no_capture}
   {assign var="capture_name" value="old_price_`$obj_id`"}
   {$smarty.capture.$capture_name nofilter}
{********************** Price *********************}
{capture name="price_`$obj_id`"}
   <span class="cm-reload-{$obj_prefix}{$obj_id} ty-price-update" id="price_update_{$obj_prefix}{$obj_id}">
       <input type="hidden" name="appearance[show_price_values]" value="{$show_price_values}" />
       <input type="hidden" name="appearance[show_price]" value="{$show_price}" />
       {if $show_price_values}
           {if $show_price}
           {hook name="products:prices_block"}
               {if $product.price|floatval || $product.zero_price_action == "P" || ($hide_add_to_cart_button == "Y" && $product.zero_price_action == "A")}

You can edit the code above according to your needs.


Another variant is to edit the blocks in the file design\themes\responsive\templates\common\product_data.tpl


The third variant is to hire a developer to help you. It won't cost a lot.


Best regards, Alt-team.

ADD-ONS  Web development service  | CS-Cart dedicated developers


 Email - manager@alt-team.com | Skype - Altteam    

  • sahibpkrbw
  • Advanced Member
  • Members
  • Join Date: 16-Aug 12
  • 83 posts

Posted 13 July 2017 - 03:27 PM #3

Hi Guys
i have also like a VAT Problem,  i want that if choose to tick the taxes box in Catalog > Products it would display in Product detail page with Taxes, and Display prices with taxes on cart/checkout pages.
"Price inkl Taxes"
and if i don,t tick the taxes box in Catalog > Products it would display in Product detail page Excluded Taxes, and total Price will calculate on cart/checkout pages with taxes.
"Price Excl Taxes"
Kindly reply if anyone can help about this matter
Many Thanks