Thanks Xavier
I can see there are FOUR files for the creditcard payment plugin:
creditcard.php
creditcard.xml
creditcard_configuration.php
creditcard_end.php
Not sure if I need ALL of them but I have done a copy & paste and prepended "amex" to the name of each.
With amexcreditcard.php these are the lines I changed:
Line 73: if($method->payment_type!='amexcreditcard' || !$method->enabled){
Line 101: $this->amexcreditcard = JRequest::getCmd('name','amexcreditcard');
Line 107: $element->payment_type=$this->amexcreditcard;
Line 121 to 124: $bar->appendButton( 'Pophelp','payment-creditcard-form');
hikashop_setTitle(JText::_('AMEXCREDITCARD_PAYMENT'),'plugin','plugins&plugin_type=payment&task=edit&name='.$this->amexcreditcard);
$app =& JFactory::getApplication();
$app->setUserState( HIKASHOP_COMPONENT.'.payment_plugin_type', $this->amexcreditcard);
Line 130: $element->payment_params->information = JRequest::getVar('amexcreditcard_information','','','string',JREQUEST_ALLOWRAW);
Line 138: if($order->order_payment_method=='amexcreditcard'){
Line 154: if($history->history_payment_method=='amexcreditcard' && !empty($history->history_data)){
With amexcreditcard.xml these are the lines I changed:
Line 14: <filename plugin="amexcreditcard">amexcreditcard.php</filename>
Line 15: <filename>amexcreditcard_end.php</filename>
Line 16: <filename>amexcreditcard_configuration.php</filename>
With amexcreditcard_configuration.php these lines reference the plugin. Do they also need to be changed?
Line 133: <label for="creditcard_information">
Line 135: <?php echo JText::_( 'CREDITCARD_INFORMATION' ); ?>
Line 147: <textarea rows="20" style="width:100%" name="creditcard_information"><?php echo @$this->element->payment_params->information;?></textarea>
With amexcreditcard_end.php these lines reference the plugin. Do they also need to be changed?
Line 21: <div class="hikashop_creditcard_end" id="hikashop_creditcard_end">
Line 23: <span class="hikashop_creditcard_end_message" id="hikashop_creditcard_end_message">
I may have gone a bit overboard on the changes as it fails! Could you please have a look and see if you can see where it went wrong.
Many thanks.