osCmax v2.5 User Manual
Results 1 to 4 of 4

Dual Pricing, Show Prices with and Without Tax

This is a discussion on Dual Pricing, Show Prices with and Without Tax within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; To show prices including and excluding VAT/Tax (IN A SINGLE TAX REGION ONLY-WILL NOT WORK FOR MULTI TAX ZONES) edit ...

      
  1. #1
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Default Dual Pricing, Show Prices with and Without Tax

    To show prices including and excluding VAT/Tax
    (IN A SINGLE TAX REGION ONLY-WILL NOT WORK FOR MULTI TAX ZONES)

    edit templates/fallback/content/product_info.tpl.php as follows

    around line 67 find

    HTML Code:
     <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
    add directly below it

    HTML Code:
     </tr>
            <tr>        
            <td  colspan="2" class="subHeading" align="right" valign="top"><b><?php echo round(($products_price/1.21),2); ?> excluding VAT<b></td>
            </tr>
    Change € symbol as necessary

    and 1.21 to your tax rate

    you can view results at www.irishtools.com

  2. #2
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Default Re: Dual Pricing, Show Prices with and Without Tax

    better again, change to
    HTML Code:
    </tr>
            <tr>        
            <td  colspan="2" class="subHeading" align="right" valign="top"><b><?php echo round(($products_price/(100+tep_get_tax_rate($product_info['products_tax_class_id'])))*100,2); ?> excluding VAT<b></td>

  3. #3
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Default Re: Dual Pricing, Show Prices with and Without Tax

    Fixed a little bug,

    where price displayed as €1.8 instead of €1.80

    change to

    </tr> <tr> <td colspan="2" class="subHeading" align="right" valign="top"><b>€<?php echo number_format(round(($products_price/(100+tep_get_tax_rate($product_info['products_tax_class_id'])))*100,2),2); ?> excluding VAT<b></td>
    Last edited by khennessy; 02-06-2008 at 05:19 AM. Reason: Missing </tr> <tr>

  4. #4
    New Member
    Join Date
    May 2004
    Location
    Meath, Ireland
    Posts
    22
    Rep Power
    0


    Default Re: Dual Pricing, Show Prices with and Without Tax

    Need some help please,

    the above works UNLESS you have specials!

    how can I get it to display the non vat price on a non special item a then the non vat price on a special item,

    currently I can only get it to display both, and cannot get an "if / else" to work,

    my code currently resides like this until I find a solution

    <tr>
    <td colspan="2" class="subHeading" align="right" valign="top"><b>€<?php echo number_format(round(($products_price/(100+tep_get_tax_rate($product_info['products_tax_class_id'])))*100,2),2); ?> excluding VAT</b>

    <b><font color="#FF0000">€<?php echo number_format(round(($currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id']))/(100+tep_get_tax_rate($product_info['products_tax_class_id'])))*100,2),2); ?> excluding VAT</font></b>
    </td>
    </tr>

Similar Threads

  1. Prices do not show at all
    By exquisite in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 05-09-2007, 11:10 AM
  2. Show both Full Retail AND wholesale pricing to whole sale customers?
    By Wretched 6.0 in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 04-19-2007, 07:13 PM
  3. Dual database implementation
    By truedeals in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-23-2004, 09:25 AM
  4. How to show prices in bold?
    By Lord in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 10-10-2004, 11:38 AM
  5. Dual Log-in Pages
    By SleepingEye in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-07-2004, 06:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •