Fedex , osCommerce and Godaddy Hosting January 17, 2008
Posted by admin in : Simple Issues , add a commentOne of our clients was facing issue with the FedEx Module in osCommerce.
The site was running on Godaddy Hosting.
We disabled Fedex. Then in Fedex1.php, we changed the part that references godaddy to:
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, “http://proxy.shr.secureserver.net:3128″);
Then enable the module again, and did a rate request, and that’s it.
Cheers !
Default country dropdown lists in oscommerce November 18, 2007
Posted by admin in : Simple Issues , add a commentA client had this query…
How to change the country dropdown lists to default to a specific country. As you know hey default to aphabetical order. I want to be able to have United States to be listed out of order at the top of the list with the others in the normal order. Is this a php edit or a SQL edit and where and how would it be done?
Solution :
You can also make any country appear by default while still having the pull down list available.
In includes/functions/html_output.php at about line 299 find:
$countries_array = array(array(’id’ => ”, ‘text’ => PULL_DOWN_DEFAULT));
Replace (for the United States) with…
// $countries_array = array(array(’id’ => ”, ‘text’ => PULL_DOWN_DEFAULT));
$countries_array = array(array(’id’ => ‘223′, ‘text’ => ‘United States’));
You can change the country id and the text in this line to make any country appear by default.
Cheers !
Authorize.net AIM , cURL path ! August 25, 2007
Posted by admin in : Complex , add a commentRecently one of a customer faced big issues with the Authorize.net AIM Module for osCommerce.
He had his Hosting account with GoDaddy.
We were able to solve the issues with the help of the customer himself !
Thanks to Kevin, the customer !
Common issues : Timeout, Sale Not getting saved in osC Admin
username and password in welcome email of oscommerce July 5, 2007
Posted by admin in : Simple Issues , add a commentOne of our clients wanted this small thing to be achieved. They wanted the USERNAME And PASSWORD to be shown on the welcome email that an user while registering in an eshop
Here are the steps :
2. Open the create_account.php (catalog/) and :
Change the code FROM:
$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
TO:
$email_text .= EMAIL_WELCOME . EMAIL_USERNAME . EMAIL_PASSWORD . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
open the language file create_account.php
(usually in /languages/english, but may need to open other languages if using other languages):
Find the code:
define(’EMAIL_WELCOME’, ‘Welcome to <b>’ . STORE_NAME . ‘</b>.’ . “\n\n”);
Add after that code:
define(’EMAIL_USERNAME’, ‘Your username is: ‘ . stripslashes($HTTP_POST_VARS[’email_address’]) . “\n\n”);
define(’EMAIL_PASSWORD’, ‘Your password is: ‘ . stripslashes($HTTP_POST_VARS[’password’]) . “\n\n”);
Thats it !
Worldpay and osCommerce ! June 6, 2007
Posted by admin in : Complex , add a commentDealing with Worldpay in osCommerce is the most complex when it comes to payment gateways.
The default contrib works fine until someone places a order… they pay for the item using worldpay and recieve a Confirmatione mail from worldpay however when you check in the admin panel it displays no orders.
There can be many reasons for this. STS, wpcallback.php, register globals.
We wewre able to sort this out for a client recently !