Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout Success


adresources

Recommended Posts

Posted

I'm close to finishing a site that needs to allow customers the ability to upload various files when they get to

 

"Home » Checkout » Success"..."Your Order Has Been Processed!"

 

 

 

I would like to replace the notice about "arrival time, "updates" and "thanks for..." with a handy php form that lets the customers upload files.

 

It seems that I need to edit the "checkout_success.php" files but what should be edited and would the catalog/checkout_success.php and catalog/includes/languages/english/checkout_success.php need editing. Heads Up! I'm using STS v4.x.

 

 

 

Thanks for any help!

 

B

 

 

 

(The reason for uploading at the end gives me a few extra levels of security from "bad" files. First, no one can purchase without signing up (includes a Validation Contrib) and then they have to pay for the item before they are aloud to upload.)

Posted

Hi,

 

I frequently use iframed forms in pages. My suggestion is:

 

1: Write your "uploading page"

2: Comment out or delete what you don't want to display.

3: Call (iframe) your uploading page from whatever point on the success pages you wish it to appear.

....A: Reduces server load - only iframe refreshes (more in product pages than success pages :) )

....B: Refreshes are faster, even with php scripted validations

....C: Iframe stays in same place when refreshing (especially handy in longer pages)

 

To see a "Web Request Form" example from a client's industrial site visit this page . To avoid my client from seeing your request, please use the name: Test Disregard

 

One of the nice things is that if they can fumble solo, they'll work inserted in any page (mine call up product names and ids to fill in blanks and hiddens and work in, ahumm, Frontpage).

 

The only language file you'll need to work with is a new file for the uploading page.

 

I do not have STS so these possible lines are from my files (I tried leaving out all add-ons):

 

Find:

 

<tr>

<td><table border="0" width="100%" cellspacing="4" cellpadding="2">

<tr><td colspan="2"></td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div></tr>

<tr>

<td valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'default/table_background_man_on_board.gif', HEADING_TITLE); ?></td>

<td valign="top" class="main"><?php echo TEXT_SUCCESS; ?><p>

 

 

and comment until you find:

 

 

<h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>

</tr>

</table></td>

</tr>

 

at least this is the general area you'll be looking at modifying. The entire segment is the row everything appears upon. (You can just replace the entire row too.) Hope this helps.

Posted

Thanks for the reply!

 

I'm assuming I would edit the "checkout_success.php" in my root directory if that is where I want the form?

Posted

That's doing the trick (in the root)...just need to fiddle with it a little longer to make sure it will be fully functional

 

Thanks again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...