Jump to content

[SOLVED]How to remove 'Total (tax exc) and Total Tax' from checkout?


Recommended Posts

Hi all,

 

Just getting to grips with Prestashop and though I'm impressed by some aspects of it, I've come to realise after weeks of research that it is plagued by bugs and niggling problems, throughout its releases, so I've come here for help!

 

Basically put, I don't like how at CHECKOUT, the customer is given a breakdown of their order in this manner:

 

Total products:£15.00

 

Total shipping:£15.00

 

Total (tax excl.):£30.00

 

Total tax:£0.00

 

Total:£30.00

 

This is, of course, with TAX having been DISABLED. I just don't like the way it appears at checkout. I feel it overcomplicates and adds too much info. Surely it would be simpler to just have the customer see:

 

Total products: £15

 

Total Shipping: £15

 

TOTAL: £30

 

WITHOUT total (tax exc) and Total Tax.

 

I'd also like it to be the same for when Tax is ENABLED, Instead of having the tax lines, to just incorporate the tax in the Price of the product.

 

Is this possible, and if so, how???

 

Thanks very much for any help.

Link to comment
Share on other sites

Hi Paul,

 

Thanks for the reply.

 

According to that topic, I have to delete this entire section?

 

<tr class="cart_total_price">

<td colspan="5">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>

 

 

 

 

The problem I have, is that I don't have that exact, word-for-word string.

 

Its similar, but not identical. Where exactly, may I ask, would I find that specific code?

 

Thanks very much.

 

 

EDIT: My shopping-cart.tpl has this bit of code which most closely resembles it:

 

{if $priceDisplay}

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total products (tax excl.):'}{else}{l s='Total products:'}{/if}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>

</tr>

{else}

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total products (tax incl.):'}{else}{l s='Total products:'}{/if}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>

</tr>

 

DO I remove that?

Edited by nickelus (see edit history)
Link to comment
Share on other sites

Hi Nickelus,

If I see this piece of code, It looks like there's an option to turn the tax incl labels OFF inside Prestashop.

 

Try this. Go to Localization->Countries and edit (one of the) countries that you ship to/customers can come from.

At the end of the page there's an option Display Tax label. Turn this OFF and see if the tax labels disappear on your checkout page (using this country of course).

 

Let us know if this works,

pascal

  • Like 2
Link to comment
Share on other sites

Hi Pascal,

 

Thanks very much for the help. I switched it to NO, so that it doesn't display the tax label for UK customers.

 

I then went and added an item to the cart, proceeded to checkout, and the 'Total (Tax exc)' and 'Total Tax' are still there.

 

Any other suggestions?

 

-Nick

Link to comment
Share on other sites

Good morning

 

This is using ps 1.5.1.4 default theme

 

I have gone to shopping_cart.tpl around line 169 and commented out:

 

</tr>

<!-- {if $use_taxes && $show_taxes}

<tr class="cart_total_price">

<td colspan="5">{l s='Total (tax excl.)'}</td>

<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>

</tr> -->

 

It works for me, see attached

 

Paul

post-321361-0-87362700-1374953231_thumb.png

  • Like 1
Link to comment
Share on other sites

Hi Paul,

 

I don't have that. My full shopping_cart is:

 

 

{capture name=path}{l s='Your shopping cart'}{/capture}

{include file="$tpl_dir./breadcrumb.tpl"}

<h1 id="cart_title">{l s='Shopping cart summary'}</h1>

{if isset($account_created)}

<p class="success">

{l s='Your account has been created.'}

</p>

{/if}

{assign var='current_step' value='summary'}

{include file="$tpl_dir./order-steps.tpl"}

{include file="$tpl_dir./errors.tpl"}

 

{if isset($empty)}

<p class="warning">{l s='Your shopping cart is empty.'}</p>

{elseif $PS_CATALOG_MODE}

<p class="warning">{l s='This store has not accepted your new order.'}</p>

{else}

<script type="text/javascript">

// <![CDATA[

var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';

var currencyRate = '{$currencyRate|floatval}';

var currencyFormat = '{$currencyFormat|intval}';

var currencyBlank = '{$currencyBlank|intval}';

var txtProduct = "{l s='product'}";

var txtProducts = "{l s='products'}";

var deliveryAddress = {$cart->id_address_delivery|intval};

// ]]>

</script>

<p style="display:none" id="emptyCartWarning" class="warning">{l s='Your shopping cart is empty.'}</p>

{*{if isset($lastProductAdded) AND $lastProductAdded}

<div class="cart_last_product">

<div class="cart_last_product_header">

<div class="left">{l s='Last product added'}</div>

</div>

<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')}" alt="{$lastProductAdded.name|escape:'htmlall':'UTF-8'}"/></a>

<div class="cart_last_product_content">

<h5><a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$lastProductAdded.name|escape:'htmlall':'UTF-8'}</a></h5>

{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$lastProductAdded.attributes|escape:'htmlall':'UTF-8'}</a>{/if}

</div>

<br class="clear" />

</div>

 

 

{/if}*}

<p class="p-cart">{l s='Your shopping cart contains:'} <span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span></p>

<div id="order-detail-content" >

<ul class="list-order-step">

 

{foreach $products as $product} <li>

{assign var='productId' value=$product.id_product}

{assign var='productAttributeId' value=$product.id_product_attribute}

{assign var='quantityDisplayed' value=0}

{assign var='odd' value=$product@iteration%2}

{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)}

{* Display the product line *}

{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}

{* Then the customized datas ones*}

{if isset($customizedDatas.$productId.$productAttributeId)}</li>

{foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization}

<li id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval} {if $odd}odd{else}even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">

 

<div >

{foreach $customization.datas as $type => $custom_data}

{if $type == $CUSTOMIZE_FILE}

<div class="customizationUploaded">

<ul class="customizationUploaded">

{foreach $custom_data as $picture}

<li><img src="{$pic_dir}{$picture.value}_home" alt="" class="customizationUploaded" /></li>

{/foreach}

</ul>

</div>

{elseif $type == $CUSTOMIZE_TEXTFIELD}

<ul class="typedText">

{foreach $custom_data as $textField}

<li>

{if $textField.name}

{$textField.name}

{else}

{l s='Text #'}{$textField@index+1}

{/if}

{l s=':'} {$textField.value}

</li>

{/foreach}

 

</ul>

{/if}

 

{/foreach}

</div>

<div class="cart_quantity" >

{if isset($cannotModify) AND $cannotModify == 1}

<span style="float:left;">{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>

{else}

<div id="cart_quantity_button">

<a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&token={$token_cart}")}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.png" alt="{l s='Add'}" /></a>

{if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1}

<a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&op=down&token={$token_cart}")}" title="{l s='Subtract'}">

<img src="{$img_dir}icon/quantity_down.png" alt="{l s='Subtract'}" />

</a>

{else}

<a class="cart_quantity_down" style="opacity: 0.3;" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" href="#" title="{l s='Subtract'}">

<img src="{$img_dir}icon/quantity_down.png" alt="{l s='Subtract'}" />

</a>

{/if}

</div>

{if isset($cannotModify) AND $cannotModify == 1}

{else}

<a rel="nofollow" class="cart_quantity_delete" id="{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "delete&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization}&id_address_delivery={$product.id_address_delivery}&token={$token_cart}")}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" title="{l s='Delete this customization'}" class="icon" /></a>

{/if}

<input type="hidden" value="{$customization.quantity}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_hidden"/>

<input size="2" type="text" value="{$customization.quantity}" class="cart_quantity_input" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"/>

{/if}

</div>

 

</li>

{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}

{/foreach}

{* If it exists also some uncustomized products *}

{if $product.quantity-$quantityDisplayed > 0}{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}{/if}

{/if}

{/foreach}

{assign var='last_was_odd' value=$product@iteration%2}

{foreach $gift_products as $product}

<li class="td-gift">

{assign var='productId' value=$product.id_product}

{assign var='productAttributeId' value=$product.id_product_attribute}

{assign var='quantityDisplayed' value=0}

{assign var='odd' value=($product@iteration+$last_was_odd)%2}

{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}

{assign var='cannotModify' value=1}

{* Display the gift product line *}

{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}

</li>

{/foreach}

</ul>

<div class="clear"></div>

<table id="cart_summary" class="std">

 

<tfoot>

{if $use_taxes}

{if $priceDisplay}

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total products (tax excl.):'}{else}{l s='Total products:'}{/if}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>

</tr>

{else}

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total products (tax incl.):'}{else}{l s='Total products:'}{/if}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>

</tr>

{/if}

{else}

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{l s='Total products:'}</td>

<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>

</tr>

{/if}

<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>

<td class="tdfirst" colspan="5">

{if $use_taxes && $display_tax_label}

{l s='Total vouchers (tax excl.):'}

{else}

{l s='Total vouchers:'}

{/if}

</td>

<td colspan="2" class="price-discount price" id="total_discount">

{if $use_taxes && !$priceDisplay}

{assign var='total_discounts_negative' value=$total_discounts * -1}

{else}

{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}

{/if}

{displayPrice price=$total_discounts_negative}

</td>

</tr>

<tr class="cart_total_voucher" {if $total_wrapping == 0}style="display: none;"{/if}>

<td class="tdfirst" colspan="5">

{if $use_taxes}

{if $display_tax_label}{l s='Total gift-wrapping (tax incl.):'}{else}{l s='Total gift-wrapping:'}{/if}

{else}

{l s='Total gift-wrapping:'}

{/if}

</td>

<td class="tdfirst" colspan="2" class="price-discount price" id="total_wrapping">

{if $use_taxes}

{if $priceDisplay}

{displayPrice price=$total_wrapping_tax_exc}

{else}

{displayPrice price=$total_wrapping}

{/if}

{else}

{displayPrice price=$total_wrapping_tax_exc}

{/if}

</td>

</tr>

{if $total_shipping_tax_exc <= 0 && !isset($virtualCart)}

<tr class="cart_total_delivery">

<td class="tdfirst" colspan="5">{l s='Shipping:'}</td>

<td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td>

</tr>

{else}

{if $use_taxes}

{if $priceDisplay}

<tr class="cart_total_delivery" {if $total_shipping_tax_exc <= 0} style="display:none;"{/if}>

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total shipping (tax excl.):'}{else}{l s='Total shipping:'}{/if}</td>

<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>

</tr>

{else}

<tr class="cart_total_delivery"{if $total_shipping <= 0} style="display:none;"{/if}>

<td class="tdfirst" colspan="5">{if $display_tax_label}{l s='Total shipping (tax incl.):'}{else}{l s='Total shipping:'}{/if}</td>

<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>

</tr>

{/if}

{else}

<tr class="cart_total_delivery"{if $total_shipping_tax_exc <= 0} style="display:none;"{/if}>

<td class="tdfirst" colspan="5">{l s='Total shipping:'}</td>

<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>

</tr>

{/if}

{/if}

 

<tr class="cart_total_price">

<td class="tdfirst" colspan="5">{l s='Total (tax excl.):'}</td>

<td class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>

</tr>

<tr class="cart_total_tax">

<td class="tdfirst" colspan="5">{l s='Total tax:'}</td>

<td class="price" id="total_tax">{displayPrice price=$total_tax}</td>

</tr>

<tr class="cart_total_price">

 

{if $use_taxes}

 

<td class="tdfirst" colspan="5">{l s='Total:'}</td>

<td class="price" id="total_price"><span class="price"> {displayPrice price=$total_price}</span></td>

 

{else}

 

<td class="tdfirst" colspan="5">{l s='Total:'}</td>

<td class="price" id="total_price"><span class="price"> {displayPrice price=$total_price_without_tax}</span></td>

 

{/if}

</tr>

</tfoot>

</table>

 

{if sizeof($discounts)}

<tbody>

{foreach $discounts as $discount}

<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">

<td class="cart_discount_name" colspan="3"><span style="">{$discount.name}</span></td>

<td class="cart_discount_price"><span class="price-discount">

{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}

</span></td>

<td class="cart_discount_delete">1</td>

<td class="cart_discount_price">

<span style=" margin-right:10px;" class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>

</td>

<td class="price_discount_del">

{if strlen($discount.code)}<a href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}" class="price_discount_delete button" title="{l s='Delete'}">{l s='Delete'}</a>{/if}

</td>

</tr>

{/foreach}

</tbody>

{/if}

 

</div>

<div id="cart_voucher" class="table_block">

{if $voucherAllowed}

{if isset($errors_discount) && $errors_discount}

<ul class="error">

{foreach $errors_discount as $k=>$error}

<li>{$error|escape:'htmlall':'UTF-8'}</li>

{/foreach}

</ul>

{/if}

<form action="{if $opc}{$link->getPageLink('order-opc.php', true)}{else}{$link->getPageLink('order.php', true)}{/if}" method="post" id="voucher">

<fieldset >

<h2><label for="discount_name">{l s='Vouchers'}</label></h2>

<p>

<input type="text" class="discount_name" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />

</p>

<p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="{l s='OK'}" class="button" /></p>

{if $displayVouchers}

<div class="clearblock"></div>

<h4 class="title_offers">{l s='Take advantage of our offers:'}</h4>

<div id="display_cart_vouchers">

{foreach $displayVouchers as $voucher}

<span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br />

{/foreach}

</div>

{/if}

</fieldset>

</form>

{/if}

</div>

{if $show_option_allow_separate_package}

<p id="seperated_packag">

<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} />

<label for="allow_seperated_package">{l s='Send the available products first'}</label>

</p>

{/if}

{if !$opc}

{if Configuration::get('PS_ALLOW_MULTISHIPPING')}

<p id="seperated_packag">

<input type="checkbox" {if $multi_shipping}checked="checked"{/if} id="enable-multishipping" />

<label for="enable-multishipping">{l s='I want to specify a delivery address for each individual product.'}</label>

</p>

{/if}

{/if}

 

<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>

 

{* Define the style if it doesn't exist in the PrestaShop version*}

{* Will be deleted for 1.5 version and more *}

{if !isset($addresses_style)}

{$addresses_style.company = 'address_company'}

{$addresses_style.vat_number = 'address_company'}

{$addresses_style.firstname = 'address_name'}

{$addresses_style.lastname = 'address_name'}

{$addresses_style.address1 = 'address_address1'}

{$addresses_style.address2 = 'address_address2'}

{$addresses_style.city = 'address_city'}

{$addresses_style.country = 'address_country'}

{$addresses_style.phone = 'address_phone'}

{$addresses_style.phone_mobile = 'address_phone_mobile'}

{$addresses_style.alias = 'address_title'}

{/if}

 

{if ((!empty($delivery_option) AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc}

<div class="order_delivery">

{if !isset($formattedAddresses)}

{if $delivery->id}

<ul id="delivery_address" class="address item bordercolor">

<li class="address_title">{l s='Delivery address'}</li>

{if $delivery->company}<li class="address_company">{$delivery->company|escape:'htmlall':'UTF-8'}</li>{/if}

<li class="address_name">{$delivery->firstname|escape:'htmlall':'UTF-8'} {$delivery->lastname|escape:'htmlall':'UTF-8'}</li>

<li class="address_address1">{$delivery->address1|escape:'htmlall':'UTF-8'}</li>

{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'htmlall':'UTF-8'}</li>{/if}

<li class="address_city">{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}</li>

<li class="address_country">{$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if}</li>

</ul>

{/if}

{if $invoice->id}

<ul id="invoice_address" class="address alternate_item bordercolor">

<li class="address_title">{l s='Invoice address'}</li>

{if $invoice->company}<li class="address_company">{$invoice->company|escape:'htmlall':'UTF-8'}</li>{/if}

<li class="address_name">{$invoice->firstname|escape:'htmlall':'UTF-8'} {$invoice->lastname|escape:'htmlall':'UTF-8'}</li>

<li class="address_address1">{$invoice->address1|escape:'htmlall':'UTF-8'}</li>

{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'htmlall':'UTF-8'}</li>{/if}

<li class="address_city">{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}</li>

<li class="address_country">{$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if}</li>

</ul>

{/if}

{else}

{foreach $formattedAddresses as $address}

<ul class="bordercolor address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if}">

<li class="address_title">{$address.object.alias}</li>

{foreach $address.ordered as $pattern}

{assign var=addressKey value=" "|explode:$pattern}

<li>

{foreach $addressKey as $key}

<span class="{if isset($addresses_style[$key])}{$addresses_style[$key]}{/if}">

{if isset($address.formated[$key])}

{$address.formated[$key]|escape:'htmlall':'UTF-8'}

{/if}

</span>

{/foreach}

</li>

{/foreach}

</ul>

{/foreach}

{/if}

<div class="clearblock"></div>

</div>

{/if}

<p class="cart_navigation">

{if !$opc}

<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" class="exclusive standard-checkout" title="{l s='Next'}">{l s='Next'} »</a>

{if Configuration::get('PS_ALLOW_MULTISHIPPING')}

<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}&multi-shipping=1" class="multishipping-button multishipping-checkout exclusive" title="{l s='Next'}">{l s='Next'} »</a>

{/if}

{/if}

<a href="{if (isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'order.php')) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}', {else}{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'|secureReferrer}{/if}" class="button_large" title="{l s='Continue shopping'}">« {l s='Continue shopping'}</a>

</p>

<div class="clearblock"></div>

<p class="cart_navigation_extra">

<span id="HOOK_SHOPPING_CART_EXTRA">{$HOOK_SHOPPING_CART_EXTRA}</span>

</p>

{/if}

 

 

Can you, or anyone else please direct me as to what I need to comment out?

 

Thanks.

Link to comment
Share on other sites

As i'm not too familiar with coding, could anyone look at the above post of mine, which has the entire code on there, and simply tell me what to cut out? There are so many references in that whole page of code which include the term ''total tax'', so I don't know what to cut out.

 

I apologize, but I am a complete noob to all this, so if anyone could help me out it would be greatly appreciated.

Edited by nickelus (see edit history)
Link to comment
Share on other sites

I would say take this part out: (All the blue+red part as shown below!)

 

<tr class="cart_total_price"> <td class="tdfirst" colspan="5">{l s='Total (tax excl.):'}</td> <td class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td> </tr> <tr class="cart_total_tax"> <td class="tdfirst" colspan="5">{l s='Total tax:'}</td> <td class="price" id="total_tax">{displayPrice price=$total_tax}</td> </tr>

 

I didn't try it out it myself, but this describes the lines with the total price excl. tax and the tax itself, so seems to be it.

To find these lines easily, search in your code file for:

Total (tax excl. (= The red part of the code mentioned above)

 

(you will find the red code as shown above inside the blue code)

Then find the total piece of (blue+red) code as mentioned and delete it or comment it out like this: {* (piece of code to delete) *}

 

{*

<tr class="cart_total_price"> <td class="tdfirst" colspan="5">{l s='Total (tax excl.):'}</td> <td class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td> </tr> <tr class="cart_total_tax"> <td class="tdfirst" colspan="5">{l s='Total tax:'}</td> <td class="price" id="total_tax">{displayPrice price=$total_tax}</td> </tr>

*}

 

Hope this does the job. If not, let me know what version of Prestashop you use, so I can have a look at it here.

pascal

  • Like 1
Link to comment
Share on other sites

(Actually, in 1.5.4.1 they used a conditional IF already around this piece of code where it won't be shown if tax is not used) So you can consider to upgrade as well and then turn off tax. This should do the trick as well :-)

  • Like 1
Link to comment
Share on other sites

Thank so much for your help Pascal, it worked!

 

May I just ask, If I DO choose to use tax, will the tax be included in the price, without having to show the additional ''tax'' info at checkout?

 

Also, I'm terrified that if I upgrade, I will lose all my changes, and modules will begin to exhibit problems. Do you think I should upgrade?

Link to comment
Share on other sites

Glad it Worked :-)

The code we cut out is only the visual part, (and only the subtotal and tax). No calculations are changed to make this happen. Any change of mind will not prohibit you from turning it on. The end result/grand total will then have the tax included :-)

 

Did you add many third party modules? Then upgrading COULD be a problem, when they use/borrow/modify native prestashop files/code. That said, I don't expect big changes in behaviour, mostly bug fixes.

 

If you do want to upgrade, (which can be a good thing), Best is to try it out on a copy of your shop (maybe install a local copy to work on, or a sub domain or so.)

Did you change a lot of code yourself?? Changes inside Prestashop just using Back office should not give problems when upgrading. These are normally stored in the database and will just continue to be there, also after the upgrade (if everything upgrades flawlessly :-] )

 

You can give it a try, but make sure you backup all files AND database, so that you can restore if any problem arise. (Is your shop up and running already??)

 

My 2 cents,

Pascal

Link to comment
Share on other sites

  • 4 years later...

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