Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding an Autoresponder form on the index page


kkeefe

Recommended Posts

Posted

Does anyone know If or How I can add an autoresponder form on the index page (front page of catalog in the Welcome section). When I tried adding it, I got errors, fixed one, then got another. Thanks for your help. :)

Posted

If you're tring to put it in the language file define for TEXT_MAIN like this:

 

define('TEXT_MAIN', 'Blah blah blah<br>
<your java script>
<br>
More blah blah blah');

Try rewriting it like this:

 

define('TEXT_MAIN', <<<END
Blah blah blah<br>
<your java script>
<br>
More blah blah blah
END
);

In the second method you don't "escape" the apostrophes (\'), so it's much more user friendly.

 

If that's not it you'll have to post your code.

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
If you're tring to put it in the language file define for TEXT_MAIN like this:

 

define('TEXT_MAIN', 'Blah blah blah<br>
<your java script>
<br>
More blah blah blah');

Try rewriting it like this:

 

define('TEXT_MAIN', <<<END
Blah blah blah<br>
<your java script>
<br>
More blah blah blah
END
);

In the second method you don't "escape" the apostrophes (\'), so it's much more user friendly.

 

If that's not it you'll have to post your code.

:)

 

Thanks a BUNCH. I'll get back on here if it doesn't work, but it makes since. I tried the first way, got errors!

Your help is much appreciated. Have a great day.

Archived

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

×
×
  • Create New...