Learn html,php,javascript,computer and software fixes, css fixes, website designing,phpbb, computer troubleshooting, hosting




Archive for January, 2009

CHANGING THE CUSTOMER WELCOME EMAIL IN OSCOMMERCE

Thursday, January 15th, 2009

Alright we are here again. I got an email from one of my client saying he would like to change the welcome email sent out by OSCOMMERCE store when a customer registers at his store. Actually it took me sometime to find the the file where i can do this but it has been finally cracked as usual. Here is how to go about it.

  • Go to your Oscommerce backend or admin
  • Go to tools
  • Go to file manager
  • Go to the includes folder
  • Go to language folder
  • Go to English or any folder containing the language your site uses.
  • Open the file create_account.php
  • Find this line:define(’EMAIL_TEXT’, ‘You can now take part in the <b>various services</b> we have to offer you. Some of these services include:’ . “\n\n” . ‘<li><b>Permanent Cart</b> – Any products added to your online cart remain there until you remove them, or check them out.’ . “\n” . ‘<li><b>Address Book</b> – We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.’ . “\n” . ‘<li><b>Order History</b> – View your history of purchases that you have made with us.’ . “\n” . ‘<li><b>Products Reviews</b> – Share your opinions on products with our other customers.’ . “\n\n”);
    define(’EMAIL_CONTACT’, ‘For help with any of our online services, please email the store-owner: ‘ . STORE_OWNER_EMAIL_ADDRESS . ‘.’ . “\n\n”);
    define(’EMAIL_WARNING’, ‘<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ‘ . STORE_OWNER_EMAIL_ADDRESS . ‘.’ . “\n”);
    ?>
  • Start editing the text, please if you dont know php, it is better to change only the words and stay inside any code or quotation lines or otherwise you will get an error.
  • Summary of the file to open = /includes/languages/english/create_account.php

Hope this helps out.

FIXING CURRENCY ISSUES IN OSCOMMERCE

Sunday, January 11th, 2009

We recently moved our store designer-polo-shirts.co.uk to a new and more advanced store OSCOMMERCE. Actually we were using the simple free version from SHOP-SCRIPT but because of the fact that it offers little features when compared with their costly professional version , we decided to search for an open source script that will do all the job a full professional script would do .

Oscommerce is actually a good ecommerce script to try out and it also has a bubbling support forum and developments in place . Well to cut the long story short, we installed the script, and it works perfectly well but we discovered that when we changed the currency to GBP in the currency section under localisation folder and even though we checked the box to make it a default currency, we could not get the price to show with the listed items on the front page, this problem was solved in a very simple way after running around the Oscommerce forum, i was able to solve it by doing the following:

  • Go to your includes folder in your server
  • Open the language folder and then open english.php file
  • Find this line “// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
    define(’LANGUAGE_CURRENCY’, ‘USD’);”
  • Replace the currency with the currency code you have used as your default currency when you configured the currency section in the store admin.
  • Save your file .

That’s it !