Adding tax in Realtor Press for packages
<p>I am trying add tax into a site that does not have it in the CMS but it is in the code on the page that calls the total. What I need to have done is amount of package plus 5% for the GST here. </p>

<p>Here is the entire code for the page, I believe it is in the globals tax and ['tax'] but I cannot get it to change for the life of me. Please help </p>

<p>Edit* </p>

<p>I believe the code that I need to figure out is in here and in the below call of that code. </p>

<pre><code>                $GLOBALS['orderData'] = strip_tags($OrderData);          
                $GLOBALS['orderItems'] = $NEW_POST_ID."x1";
                // DATA TO ADD TO THE PAYMENT CALL
                $GLOBALS['total']       = $_POST['price']['total'];
                $GLOBALS['subtotal']    = 0;
                $GLOBALS['shipping']    = 0;  
                $GLOBALS['tax']         = 0;

                $PPTPayment-&gt;InsertOrder("",$_POST['orderid'],0);

            }       
        } 
    }
    } // end step 3
</code></pre>

<p>I believe this is the area where the total is pulled in and displayed on the screen. I need to have the tax added with that total before going to the gateway.</p>

<pre><code>  &lt;!-- STEP 4 SECTION --&gt;
&lt;div id="step4box" style="display:none;"&gt;

&lt;?php if(isset($_POST['step3'])){ if(isset($_POST['price']['total']) &amp;&amp; $_POST['price']['total'] &gt; 0){ ?&gt;

&lt;div class="itembox"&gt;

    &lt;h2&gt;&lt;?php echo $PPT-&gt;_e(array('add','45')); ?&gt;&lt;/h2&gt;

    &lt;div class="itemboxinner greybg"&gt; 

    &lt;?php premiumpress_packages_step3_before(); /* HOOK */ ?&gt; 

    &lt;div class="full clearfix box"&gt; &lt;br /&gt;

    &lt;p style="font-size:16px;"&gt;&lt;?php echo $PPT-&gt;_e(array('add','46'));  ?&gt; &lt;?php echo premiumpress_price($_POST['price']['total'],$GLOBALS['premiumpress']['currency_symbol'],$GLOBALS['premiumpress']['currency_position'],1); ?&gt;&lt;/p&gt;

    &lt;?php premiumpress_packages_step3_inside_payment(); /* HOOK */  

    $i=1;
    if(is_array($gatway)){

        foreach($gatway as $Value){

            if(get_option($Value['function']) =="yes" ){ // GATEWAY IS ENABLED 

                if( $Value['function'] == "gateway_bank"){ // bank details form  ?&gt;                

                &lt;div class="gray_box"&gt;&lt;div class="gray_box_content"&gt; 

                    &lt;h3&gt;&lt;?php echo get_option($Value['function']."_name"); ?&gt;&lt;/h3&gt;

                    &lt;p&gt;&lt;?php echo nl2br(get_option("bank_info")); ?&gt;&lt;/p&gt;

                    &lt;div class="clearfix"&gt;&lt;/div&gt;

                &lt;/div&gt;&lt;/div&gt;   
</code></pre>
