View Single Post
  #5  
Old 10-26-2012, 10:30 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Clone a payment module

Well I have to admit that it is extremely difficult unless you are a JavaScript guru. I have done stuff like this before, but it is at the very limit of my abilities.

The JS that controls OPC, is located in /common_files/modules/One_Page_Checkout/ajax.checkout.js

Very tricky file to work with, you will be interested in "_callbackPaymentMethodListChanged" I believe. Let us know how you progress with this, I am very interested in this subject. Hopefully someone with more experience than me will weigh in on this as well. I'd like to know who wrote the OPC code, it is fairly brilliant.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote