Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two issues


propertop

Recommended Posts

Posted

Having spent a while looking at these issues I've conceded defeat. I'm certainly no expert though so I'm hoping someone out there can help.

 

Firstly regarding postage, we have a table rate with 3 or 4 levels related to the price of the item. That's fine for UK delivery but overseas orders are coming in more volume than we expected and we're losing money on postage. Is there a contribution that can be integrated to run alongside the table rate we're using without being overly complicated?

 

Secondly, we've a problem with the way out contact page functions. The page itself loads fine but we're not able to receive message from it because of some kind of security issue (possibly?)

 

If you go to http://www.casualsclobber.co.uk/contact_us.php and enter some dummy info, then click continue it takes you to a 'zeus' web server page which tells us we're not allowed to see 'this page'.

 

Again, maybe be quite simple but bear in mind I'm still a novice and anything I know is based on what little experience (and probably intelligence/patience) I have.

 

Anyone able to help?

Posted
Secondly, we've a problem with the way out contact page functions. The page itself loads fine but we're not able to receive message from it because of some kind of security issue (possibly?)

 

If you go to http://www.casualsclobber.co.uk/contact_us.php and enter some dummy info, then click continue it takes you to a 'zeus' web server page which tells us we're not allowed to see 'this page'.

 

the page looks as though it's a warning page from you host - something the 404 file not found error page. it looks to me like your host has blocked the mail functions and when they're used, they display this page instead. are you able to send emails via the admin tools? contact your host and ask them about it.

Posted

You could copy duplicate the file table.php in /includes/modules/shipping and /includes/languages/modules/shipping and cll the int_table.php.

 

Edit them both an change all occurrences of table to int_table.

 

You need to retain the capitalisation.

 

Then in the modules admin area install the new shipping methd and make the int_table apply in a rest of the world zone and table rate to apply in the uk shipping zone.

 

I did this to get City Link next day pre 9, 10, 12 next day delivery method to be available.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
the page looks as though it's a warning page from you host - something the 404 file not found error page. it looks to me like your host has blocked the mail functions and when they're used, they display this page instead. are you able to send emails via the admin tools? contact your host and ask them about it.

 

I spoke to the hosts today but they were insisted it wasn't down to them.

 

One thing I thought it might be is some kind of defence mechanism if spammers have used the contact form a lot? Is that feasible?

Posted
You could copy duplicate the file table.php in /includes/modules/shipping and /includes/languages/modules/shipping and cll the int_table.php.

 

Edit them both an change all occurrences of table to int_table.

 

You need to retain the capitalisation.

 

Then in the modules admin area install the new shipping methd and make the int_table apply in a rest of the world zone and table rate to apply in the uk shipping zone.

 

I did this to get City Link next day pre 9, 10, 12 next day delivery method to be available.

 

Thanks. Unfortunately that sounds beyond my limited capabilities at the moment. :blush:

Posted
I spoke to the hosts today but they were insisted it wasn't down to them.

 

One thing I thought it might be is some kind of defence mechanism if spammers have used the contact form a lot? Is that feasible?

 

i would agree that it's something to stop spammers. but now the challenge is to see if it's going to stop you. let's just see if it's something that they are doing. put the following script into a file named something like catalog/testemail.php

<?php

$lf = "\n";

$to = '[email protected]';
$from = '[email protected]';
$subj = 'test email';

$message = 'this is a test';

$headers = 'Date: ' . date('r', strtotime('now')) . $lf .
'From: "' . $from . '" <' . $from . '>' . $lf .
'To: "' . $to . '" <' . $to . '>' . $lf;

$res = mail($to, $subj, $message, $headers);

echo "results=$res<br/>";

?>

 

then use your browser to go to yourdomain/catalog/testemail.php

 

you'll have to change the email addresses of course, but this is about as simple and stripped down as your can get to send an email using php. if you receive an email at the target address, then you have some more research to do. if you get the same error page that you saw before, then you should get in touch with your host again and give them this script for them to work with.

 

let me know how this works out and we'll go from there.

Posted
i would agree that it's something to stop spammers. but now the challenge is to see if it's going to stop you. let's just see if it's something that they are doing. put the following script into a file named something like catalog/testemail.php

<?php

$lf = "\n";

$to = '[email protected]';
$from = '[email protected]';
$subj = 'test email';

$message = 'this is a test';

$headers = 'Date: ' . date('r', strtotime('now')) . $lf .
'From: "' . $from . '" <' . $from . '>' . $lf .
'To: "' . $to . '" <' . $to . '>' . $lf;

$res = mail($to, $subj, $message, $headers);

echo "results=$res<br/>";

?>

 

then use your browser to go to yourdomain/catalog/testemail.php

 

you'll have to change the email addresses of course, but this is about as simple and stripped down as your can get to send an email using php. if you receive an email at the target address, then you have some more research to do. if you get the same error page that you saw before, then you should get in touch with your host again and give them this script for them to work with.

 

let me know how this works out and we'll go from there.

 

 

Thanks for that.

 

Did all you suggested and didn't get the same error page. Got a blank page with "results=1". Is that right? Did it three times, got three emails with "this is a test"

I used my own personal email address as I don't have access to the mailbox of the website owners at the moment. I'm assuming that doesn't matter though....More about how it's handling it than where it's going, am I right?

 

Any ideas?

Posted

Open contact_us.php in a text editor and where you see STORE_OWNER_EMAIL_ADDRESS change that to your actual email address in single quotes. i.e '[email protected]'. Then rename contact_us.php on your server to contact_us.php.bak and upload the edited version. Now go to your Contact Us page and send an email, see if it works.

Posted
Any ideas?

 

yup, php can send emails. it's something in the code. do what peter suggested and see if there's any difference.

 

it might just be that the domain of the sender must match the domain of the web site. if this is the case, you will have to change the contact_us.php to send the email from the store owner rather than the email address entered in the contact_us form. then you will need to add the 'from address' information from the form to the body of the email so you at least get their email address.

Posted
Open contact_us.php in a text editor and where you see STORE_OWNER_EMAIL_ADDRESS change that to your actual email address in single quotes. i.e '[email protected]'. Then rename contact_us.php on your server to contact_us.php.bak and upload the edited version. Now go to your Contact Us page and send an email, see if it works.

 

Just got around to doing this but it made no difference, same error.

 

Completely stuck now.

 

What could it be!?

Posted

Did you use an actual email account or an alias? I should have made that clearer but I meant you should use the actual email address your alias is forwarded to, not the alias. i.e. [email protected]

  • 4 weeks later...
Posted

Having spoken to two different people at our hosting company we've hit a brick wall with this 'contact us' issue.

 

One said it was nothing to do with them, the other said it probably was but that they weren't able to 'support' it. ie. they broke it but won't fix it.

 

As a quick fix I want to change the link on the left hand side of the page from Contact Us to the actual email address which is [email protected]

 

I've looked through the obvious places I might edit this but struggled to find it. I'm no expert as previously stated, just a bit of a learner.

 

Anyone point me in the right direction?

Archived

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

×
×
  • Create New...