PropioWeb Posted March 2, 2004 Posted March 2, 2004 My Store has been getting a few orders paid with American Express Cards even though I have Visa and Mastercard Logo's on my pages only. Is there a way to modify the text or a way to add images to the page where they input their credit card info so they are aware once again of the fact that we do not Take AmEx or Discover. Visual Ref below. Thanks Samuel Mateo, Jr. osC 2.2 MS2 Installed Mods: WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE
241 Posted March 2, 2004 Posted March 2, 2004 catalog/includes/languages/english/modules/payment/cc.php where I have english you change to your language this file contains the text defines and you should be able to add to the text and if you wish add an image No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
TerryK Posted March 3, 2004 Posted March 3, 2004 I've added images to my checkout_payment.php file indicating I only accept Visa and MasterCard. You can test it out via my WWW link below if you want. Also, if you're using osC2.2-MS2, look at /catalog/includes/classes/cc_validation.php. You can comment out the cards you don't accept there, like this: class cc_validation { var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year; function validate($number, $expiry_m, $expiry_y) { $this->cc_number = ereg_replace('[^0-9]', '', $number); if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; } elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) { $this->cc_type = 'Master Card'; /* Not accepting these cards } elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) { $this->cc_type = 'American Express'; } elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'Diners Club'; } elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Discover'; } elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'JCB'; } elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Australian BankCard'; */ } else { return -1; } (In case it isn't obvious, the above code only allows entry of Visa and MasterCard numbers.) :) HTH, Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. *
PropioWeb Posted March 11, 2004 Author Posted March 11, 2004 Thanks Guys these do help a lot. THough after posting I remembered I'm using a template system so I was able to go in using the template system and add the stuff I wanted. But commenting out the other credit cards is also something I will do. Thanks for the help. Samuel Mateo, Jr. osC 2.2 MS2 Installed Mods: WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE
AlanR Posted March 11, 2004 Posted March 11, 2004 Off topic PropioWeb: You list an Extras for IE Contibution. I did a quick search for that but nothing turned up. Do you have a link? Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.