find
Code: Select all
<?php foreach ($totals as $total) { ?>
Code: Select all
<?php if ( $total['title'] == 'CA TAX:' ) continue; ?>
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
its not working, im using oc 2.0.3.1, journal theme.... any inputs welcomeviethemes wrote: ↑Thu Nov 19, 2015 9:57 pmTo do that, you can open file catalog\view\theme\{your_theme}\template\common\cart.tpl
findand add below code after thatCode: Select all
<?php foreach ($totals as $total) { ?>
Code: Select all
<?php if ( $total['title'] == 'CA TAX:' ) continue; ?>
find
Code: Select all
<?php foreach ($totals as $total) { ?>
Code: Select all
<?php if ( $total['title'] == 'CA TAX' ) continue; ?>
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
Tried your option but still no results. Please tell me if i placed your code in wrong place or I also need to replace or delete something?
file location: /public_html/catalog/view/theme/journal2/template/journal2/checkout/cart.tpl
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<?php if ( $total['title'] == 'CA TAX' ) continue; ?>
<tr>
<td colspan="4" class="text-right"><?php echo $total['title']; ?>:</td>
<td class="text-right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</tfoot>
I am sorry you have reason.
This is the file is for the cart, the one that you inicial was asking for:
public_html//catalog/view/theme/journal2/template/checkout/cart.tpl
For the checkout :
public_html/catalog/view/theme/journal2/template/journal2/checkout/cart.tpl
the code is the same for the 2 pages
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
Sorry to inform you but even if I updated both files with code, still checkout page and mini cart showing CA TAX with value.
public_html//catalog/view/theme/journal2/template/checkout/cart.tpl
public_html/catalog/view/theme/journal2/template/journal2/checkout/cart.tpl
Is it possible it is not working due to what may be given in
System > Localisation > Taxes > Tax Classes > Tax Class Title (I mentioned) CA TAX
System > Localisation > Taxes > Tax Rates > Tax Name (I mentioned) CA TAX
......... any other place also I need to mention same name, is that effecting results?
on the file :
public_html//catalog/view/theme/journal2/template/checkout/cart.tpl
put this code:
Code: Select all
<?php foreach ($totals as $total) { ?>
<?php var_dump($total['title']);?>
will display something like this:
string(9) "Sub-Total" string(6) "CA TAX" string(5) "Total"
Copy and paste your result and send it to me
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
on the file :
public_html//catalog/view/theme/journal2/template/checkout/cart.tpl
put this code:
Code: Select all
Code: Select all
<?php foreach ($totals as $total) { ?>
<?php var_dump($total['title']);?>
string(9) "Sub-Total" string(6) "CA TAX" string(5) "Total"
Copy and paste your result and send it to me
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
this is url: http://mydomainname.com/[b]index.php?ro ... ckout/cart[/b]
I even tried to add 3 colons ::: still single colon is coming, so is it cash or some other issue. if so then what settings I should change.
Code: Select all
<tr>
<td class="text-right right"><strong><?php echo $total['title']; ?>:::</strong></td>
<td class="text-right right"><?php echo $total['text']; ?></td>
</tr>
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
ok done, active the option on settings to receive email when you receive a PM
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
Users browsing this forum: No registered users and 76 guests