Jump to content
Sign in to follow this  
imlifu

no price changed with "Switch Between Inc and Ex Tax"

Recommended Posts

I installed "Switch Between Inc and Ex Tax_v1_RC2" contribution, once I click on button switch shown inc and ex tax button, there are no price changed, what I did wrong, any helps will be greatly appreciated

Share this post


Link to post
Share on other sites

Yes it works eventually after i setup new tax zone for my country. but the button of switch doesn't showup, I loaded the button pic file to includes/language/english as instructed. how to do to let the picture of button comes out?

Share this post


Link to post
Share on other sites
the button of switch doesn't showup, only shows a red cross inside, no button picture

hi add this to catalog/includes/boxes/ shopping_cart.php

 


// ==== START CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT" ===================================
$info_box_contents = array();
if ($vat_disp == '1') {
$info_box_contents[] = array('align' => 'center', 'text' => SWITCHING_VAT_DISPLAYED . '<br><b>' . SWITCHING_VAT_INC . '</b>');
} else {
$info_box_contents[] = array('align' => 'center', 'text' => SWITCHING_VAT_DISPLAYED . '<br><b>' . SWITCHING_VAT_EX . '</b>');
}

if ($vat_disp == '1') {
$info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency', 'vat_disp')) . 'vat_disp=0') . '">' . tep_image_button('button_inc_ex_vat.gif', SWITCHING_VAT_CHANGE_TO_EX) . '</a>');
} else {
$info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency', 'vat_disp')) . 'vat_disp=1') . '">' . tep_image_button('button_inc_ex_vat.gif', SWITCHING_VAT_CHANGE_TO_INC) . '</a>');
}

new infoBox($info_box_contents);
// ==== FINISH CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT" ===================================


 

and Upload the attached 'button_inc_ex_vat.gif' to your relevant language file(s):

"catalog/includes/language/ENGLISH/images/buttons"

"catalog/includes/language/GERMAN/images/buttons"

"catalog/includes/language/ESPANOL/images/buttons"

 

 

fo me all working fine

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×