Exchange Rate Mod – Compatible with Shoppica 2?

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeExchange Rate Mod – Compatible with Shoppica 2?

This topic has been marked as not a support question.

Hi TB,

Favour if I may…

I’d like to include http://dynamicconverter.com currency converter on my website.

They don’t have instructions for Opencart. I’ve created an account but I’m not sure where to put the code below. I’m guessing in the product.tpl file in catalog/view/theme/shoppica2/template/product but i’m not sure where??

function dc_ld() { var dc_dlay = document.createElement(“script”); dc_dlay.setAttribute(‘type’, ‘text/javascript’); dc_dlay.setAttribute(‘language’, ‘javascript’); dc_dlay.setAttribute(‘id’, ‘dcdlay’); dc_dlay.setAttribute(“src”, “http”+(window.location.protocol.indexOf(“https:”)==0?”s://converter”:”://converter2″)+”.dynamicconverter.com/accounts/11/11408″+”.”+”js”); document.getElementsByTagName(“head”)[0].appendChild(dc_dlay); } setTimeout(‘dc_ld()’,10); Convert multiple currencies

Can you weave your magic on this one?

Thanks
Kev

March 13, 2013 at 9:07 pm #20299

Hi TB,

I contacted the company Dynamic convertor and they say they have installed for OCart saying to put code into:

“You will need to paste the installation string into the catalog/view/theme/default/template/common/footer.tpl file and upload that file back to your site.”

I tried that as well as uploading to:

catalog/view/theme/shoppica2/template/common/footer.tpl

No change to website??

Any ideas most welcome.

Thanks, Kevin

March 14, 2013 at 12:24 pm #20325

Hi,

Why don’t you just use the default OpenCart currency converter?

March 15, 2013 at 1:49 pm #20403

Hi TB,

Very good question, I should have mentioned this, but sorry it’s a saga!

My payment gateway, WorldPay, for some reason weren’t happy with the build in converter! They say all my payments are made in GBP £ so the converter is misleading. I suggested I could put on some text to say this at check out & they agreed but I had the problem below…

If say AUD $ are selected, when payment is attempted my Worldpay rejects the payment because it is expecting GBP £. I contacted WorldPay they gave some general instructions, I posted on OpenCart forum over 2 weeks ago and no-one has been able to help / answered

This is my question: http://forum.opencart.com/viewtopic.php?f=20&t=96594

This would be my ideal solution.

As I thought the above was a dead end I found http://dynamicconverter.com website – it looked great and the problem about what currency payment seemed to be sorted as GBP £ would always be displayed. But again I can’t get this working. The Dynamic team stated this in the last email, see below. I’ve tried putting in the suggested code (see end of email), but I just get a link to their website!

Aaaggh. If you can shed any light point me in the right direction / better solution that would be ace.

——–

Dynamic’s email to me regarding installation:

Your current footer will have something like this, however it may be in template code too. Since it may be in template code do a
search for trustwave (your seal script) and copy the wrapping around the script and use that to wrap the Dynamic Converter script code too.
but just paste the DC code just before the end of footer comment (or at the end of the file if the comment is missing).

Also consult the open cart manual on adding tracking/javascript code to the footer.


<!– – –

&lt
;/span>








<!–© Copyright 2012. Powered by Open Cart.Shoppica theme made by ThemeBurn.com–>

–>

My dynamic code for OC. To put somewhere but it doesn’t seem to work!

function dc_ld() { var dc_dlay = document.createElement(“script”); dc_dlay.setAttribute(‘type’, ‘text/javascript’); dc_dlay.setAttribute(‘language’, ‘javascript’); dc_dlay.setAttribute(‘id’, ‘dcdlay’); dc_dlay.setAttribute(“src”, “http”+(window.location.protocol.indexOf(“https:”)==0?”s://converter”:”://converter2″)+”.dynamicconverter.com/accounts/11/11408″+”.”+”js”); document.getElementsByTagName(“head”)[0].appendChild(dc_dlay); } setTimeout(‘dc_ld()’,10); Dual currencies display

March 16, 2013 at 1:52 pm #20451
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.