Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


imlifu

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

Link to comment
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?

Link to comment
Share on other sites

  • 1 year later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...