romantix Posted January 19, 2007 Posted January 19, 2007 (edited) Hi, I really needed to combine several of the order screens into one. So I installed this Contribution - "Alternative Purchase System v2.0" Contribution ( http://www.oscommerce.com/community/contributions,3359 ) and now I have most of the things listed on one page (see the link to the screenshot below) but when I fill out the form and click on CONFIRM ORDER --> I get the following Error: Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0. in /home/gourmet/public_html/shop/includes/modules/payment/cc.php on line 137 Warning: Cannot modify header information - headers already sent by (output started at /home/gourmet/public_html/shop/includes/modules/payment/cc.php:137) in /home/gourmet/public_html/shop/includes/functions/general.php on line 33 I have never changed anything in the files listed in the Error message! Here is what I find around line 137 in cc.php: $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => $HTTP_POST_VARS['cc_owner']), array('title' => MODULE_PAYMENT_CC_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_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['cc_expires_month'], 1, '20' . $HTTP_POST_VARS['cc_expires_year']))))); And this is what can be found around line 33 in general php: header('Location: ' . $url); tep_exit(); } WOULD ANYONE PLEASE KNOW HOW TO FIX THIS? Also, how would I be able to make the ‘create the account’ optional with this Contribution? And I have the same problem as the post above - there is no state field. Thanks a million to anyone trying to help! Jan http://www.romantika.net/screenshot.jpg PS: All I'm trying to do is to make my website function like this: http://www.1-800-bakery.com PS2: Was I suppose to install this - http://www.oscommerce.com/community/contributions,3359 or this? --> http://www.oscommerce.com/community/contributions,2197 DOES ANYONE KNOW OF A DIFFERENT CONTRIBUTION THAT DOES THE SAME THING? Thank you again :thumbsup: Edited January 19, 2007 by romantix Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.