Biz Connection FREE TRIAL + $75 GOOGLE ADWORD - FREE VOUCHER for YOU!

Currency and FrendlyURL and product info – ZenCart

Currency selector from ZenCart is perfect as long as you are not using any pretty/frendly URL adon.

It may work but sometimes it may not baecause currency selector use GET method.

To avoid further headache the beset is to capture the currency via POST variable

Two files has to be change a bit

init_currencies.php

add at the begining :

#16 $curPageURL=$_SERVER['REQUEST_URI'];

replace all GET with POST

change the very last line

#44 if (isset($_POST['currency']) || isset($_GET['language'])) zen_redirect($curPageURL);

tpl_currencies.php

change third line

#13 $content .= zen_draw_form(‘currencies_form’, zen_href_link(basename(ereg_replace(‘.php’,”, $_SERVER['REQUEST_URI'])), ”, $request_type, false), ‘post’);

Just ask and you will get the modified version of this addon.

Related articles

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment