Jump to content


  • Content count

  • Joined

  • Last visited

  1. pingram3541

    Alternative Checkout System

    Ok, I figured out where the flaw was. The checkout_alternative.php submit function was set to go to checkout_success.php instead of checkout_confirmation.php. The cc expiration date is checked via code in the latter and not in the other. This makes sense anyway because you wouldn't want the error to be displayed on the success page for obvious reasons and you wouldn't want the error to display on the submitting page 'checkout_alternative.php' either because this page also creates the new account which has already been submitted and the shopper should now be logged in.
  2. pingram3541

    fast easy checkout

    It seems the site I picked up has an install of FEC 3.2 and the 'Alternative Checkout System' in which Frank had said in the early days of this thread partly inspired/coded this contribution. Alternative Checkout System Thread I can't seem to figure out a bug in which the cc expiration date isn't erroring out when expired, orders are still processed. The ACS contrib looks to be orphaned so I'm seeking help here. You may be asking why the old 2005 version of ACS instead of the current FEC as it would seem FEC is an enhancement from ACS. Well one major reason. (actually I am using both contribs) FEC is a two-step checkout for new and existing users 1. Login or create account or don't create account 2. Shipping and CC checkout ACS is a one-step checkout for new users 1. All account info, shipping and billing info in 1 page - single click to checkout_success.php If already logged in, then we use FEC's combined shipping/checkout page (which doesn't have the CC expire problem). I've compared both files and just can't figure out what I'm missing. Any help on fixing this problem would be appreciated. Like I said, no errors, just processing CC's with expired dates. Thanks.
  3. pingram3541

    Alternative Checkout System

    Doesn't look like this contribution is still being managed but I'll give this a shot. I inherited a site that had V2 of this mod installed and noticed a few things, one of which I have still yet to figure out. 1. in /checkout_alternative.php - added code for "Existing customers can login HERE" Just above this code: <tr> <td class="main"><b><?php echo TITLE_PAYMENT_ADDRESS; ?></b></td> <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td> </tr> Paste this: <tr> <td class="main">Existing customers can login <strong><a href="https://www.mysite.com/login.php" style="color:#CC0000">HERE</a>.</strong></td> </tr> 2. /includes/languages/english/checkout_alternative.php seems to be corrupt and many of the 'define' functions have jumbled text. Also, I suppose the above code could be added to the: define('TEXT_GREETING', 'code from above here'); as an alternative, provided the 'greeting' is called somewhere in the main /checkout_alternative.php (I haven't tried this) 3. in /checkout_alternative.php added the newsletter subscribe option "checked" by default. Just below this code: <tr> <td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td> <td class="main"><?php echo tep_draw_password_field('confirmation') . ' ' . (tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></td> </tr> Paste this: <tr> <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1',true,'checked') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> </tr> Otherwise, new accounts do not update the database with 0 for unsubscribed or 1 for subscribed which can be a problem if you use the newsletter manager and other newsletter mods. Without this code, the database newsletter field is just left blank. (Leave this out if you don't ever use or plan to use the newsletter function of OSC.) 4. Finally, I found a problem where if the credit card expiration date is expired, it does not return an error when submitted like it does when existing customers use the /checkout_payment.php. For example I can still process an order even if the expiration date is left default at January 2008. I have compared code between checkout_alternative.php and checkout_payment.php but just haven't put my finger on it as of yet. Any suggestions would be appreciated. Thanks
  4. pingram3541

    Category Info Box Edit

    also you can remove what I had on line 17 or close it out like this to simply have a bg image for each line in the list: // $categories_string .= "<tr><td class=ch19>"; then do what you found: $categories_string .= '<tr><td>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> </td></tr> and change to: $categories_string .= '<tr><td background="image.gif">'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> </td></tr> :D
  5. pingram3541

    Category Info Box Edit

    You might just try adding the css style to you <tr><td>...i.e. '<tr><td class=whatever background=anyimage.gif>' This didn't work for me and I had to create my own STS tag like this. 1) Opened categories.php from /includes/boxes/ and simply saved as mycategories.php. 2) Added the following statement in /includes/modules/sts_inc/sts_user_code.php at the end of the file: $sts->start_capture(); require(DIR_WS_BOXES . 'mycategories.php'); $sts->stop_capture('mycategories', 'box'); // 'box' makes the system remove some html code before and after the box. Otherwise big mess! 3) Edited my template in /includes/sts_templates/mytemplate/sts_template.html to have my table placement, width etc. then added the STS tag $mycategories without the <tr><td> since mycategories.php will have that in the php code. 4) Edited mycategories.php to have my (inside) formatting: here is a copy (this took some trial and error to get the sub-categories to indent) ---------------- ---added $categories_string .= "<tr><td class=ch19>"; to set a background delimiter image for each category/sub-category ---added $categories_string .= ' <img src=images/m15.gif width=7 height=5 align=absmiddle> <a class=ml1 href="'; to both category and subcategies to add arrows and formatting ---added $categories_string .= '<span class="ch20">'; to change color of selected category font ---added $categories_string .= '</span>'; to close span arguement changing selected category text color ---added $categories_string .= '</tr></td>'; added closing </tr><td> to close the background class=ch19 for my delimiter image on each category you can also use the following in the code to set the image for parent category and a different image for subcategory but I wanted all ine the same so I just put the images in the code directly. if (tep_has_category_subcategories($counter)) { $categories_string .= tep_image(DIR_WS_IMAGES . '', ''); } else { $categories_string .= tep_image(DIR_WS_IMAGES . '', ''); } Hope this helps anyone pulling their hair out with this one. :D
  6. pingram3541

    Category Info Box Edit

    Oh yeah, this is exactly what I was looking for. Tried creating a \includes\sts_templates\templatename\boxes\infobox_categories.php.html but that didn't work for the categories box, seems to work for infobox_search.php.html, infobox_whats_new.php.html and others, at least the outside box formatting but I want to edit the inner $contents as well, i.e. a graphical arrow next to each main category, .gif separator, and subcategory css style. Also tried editing the code directly in \includes\boxes\categories.php with no luck. I'd like some feedback on this topic as well please.