Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I have no "main_page.tpl.php" file


alex121121

Recommended Posts

I see the addon was submitted under Ver 2.2, not sure if that was a mistake, but Neither Bootstrap nor official osC has a file called main_page.tpl.php

Also note that the bootstrap version removes these kind of definitions:

<?php require(DIR_WS_INCLUDES . 'cur_update.php'); ?>

So you should use instead:

<?php require('includes/cur_update.php'); ?>

 

Link to comment
Share on other sites

You should add it on the page that you want to see it. eg homepage -> index.php

You're not going to get much support for these types of addons, because the index.php has changed for the CE versions.

Link to comment
Share on other sites

My guess would be that the author of this add-on had a third-party "template" installed on his system, and forgot that "main_page.tpl.php" isn't standard osC. If it looks like the rest of the add-on is usable (on something 4 years old, I'd check carefully), you would look at the structure of the calls in the add-on, and from that figure out where the call(s) and include(s) should be placed. Is this something to be run only from admin, or should every customer kick it off (could get expensive!)? If it's intended to be a regular update of rates, perhaps putting it in admin and running it daily with a cron job would work the best. That way, it wouldn't consume excess cycles (or hit someone's rate site so often as to upset them), but would be sure to update on a regular basis.

See if the underlying rate lookup system is still available, before you spend a lot of time working on this. FXR sites come and go.

Link to comment
Share on other sites

On 6/10/2019 at 4:16 PM, alex121121 said:

But it's a currency auto update addon, it updates currency changes without you having to click "update currency in admin".

This one might work better for you.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...