Jump to content

website-de

Members
  • Content count

    6
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Richard
  1. website-de

    One Page Checkout Support

    Hi; Yes it is in the wrong area but on changing confirmation() function in file html_public/catalog/includes/modules/payment/dps.php with this: <?php function confirmation() { global $HTTP_POST_VARS, $order; for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate(); for ($i=$today['year']; $i < $today['year']+10; $i++) { $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); } $cc_card_number=substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4); /** * $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, * 'fields' => array(array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_OWNER, * 'field' => $HTTP_POST_VARS['dps_cc_owner']), * array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_NUMBER, * 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), * array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_EXPIRES, * 'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['dps_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['dps_cc_expires_year']))))); */ $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('dps_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_card_number', $cc_card_number)), array('title' => MODULE_PAYMENT_DPS_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('dps_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('dps_cc_expires_year', $expires_year)))); return $confirmation; }?> This works now and allthough Google Chrome crashed on first install it seems ok and i am getting error messages back. Not sure i need to add global $order; I think there's a fix for the payment error msg not outputting or at least i remember fixing it at some stage. I'll let you know and upload with one page checkout, site for you to test for me at Experience NZ, in the next week. Thanks you Steve your reply set me off in the right direction. I haven't tested this properly yet and if anyone has any comments or additions speak up please. Regards Rich
  2. website-de

    One Page Checkout Support

    I did notice today that in the dps module in paymentMethod array[selection] the fields are outputting nothing so a good place to start. [paymentMethod] => Please select the preferred payment method to use on this order. Bank Transfer Payment DPS Credit Card [selection] => Array ( [0] => Array ( [id] => banktransfer [module] => Bank Transfer Payment ) [1] => Array ( [id] => dps [module] => DPS Credit Card [fields] => Array ( [0] => Array ( [title] => [field] => ) [1] => Array ( [title] => Credit Card Owner: [field] => ) [2] => Array ( [title] => Credit Card Number: [field] => ) [3] => Array ( [title] => Credit Card Expiry Date: [field] => ) ) ) ) Any other thoughts would be appreciated. Rich
  3. website-de

    One Page Checkout Support

    Hi; I got this too but after turning off errors display in my php.ini it worked fine, doesn't like deprecated notices or warnings either. Rich
  4. website-de

    One Page Checkout Support

    I may of posted this in the wrong place: May be i'll get a better response in this thread please help?
  5. It works perfectly as described except it doesn't seem to be compliant with DPS PX Post? In the not for production credit card module the cc_number, cc_expire, cc_cardholder text input fields show fine but in the PX post module they don't show. Screenshot Here is what is available to me. Array vars.txt etc for this page If anyone has any ideas i like to hear from you I note in vars.txt dps_object text fields are empty but i can't get these to populate. Look for [dps] => dps Object in vars.txt link above. DPS contribution is here DPS PxPost Payment Module If i can help anyone else withthis contribution i'll try as i have it working with standard payment modules. Regards Rich Tip! When debugging this or installing this module turn display errors off as deprecated errors, notices and warnings will kill the ajax powered side of the script.
  6. PS: also after validating the html i changed a few areas there too. i.e colspan=6 to colspan="6"

  7. I worked it out! I get Parse error: syntax error, unexpected $end in single_feed.php. line 208. Fix for this is don't use short tags and also

    is obviously wrong then it works. Thanks saved me tonnes of time developing

  8. I have 2 folders with the same scripts in i.e New Install and update install ..... one is an export add on and the other is for your single feed is that correct. Which folder do we use.

×