Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help...created sizing fields in checkout, not storing in database?


Recommended Posts

I created a page for sizing information that displays in the account (to be saved). That is functioning fine and is stored in the database in the customers table.

On the checkout pages, I display the sizing form as well, and it shows the saved information (if there is any saved)...

But this is not submitting to the fields I created in the orders table of the database.

 

For an example, this is one of the fields on the checkout_shipping.php page

<td><?php echo tep_draw_input_field('circumference', $account['customers_circumference']) ?>   </td>

 

and on checkout_process.php I added (below 'customers_address_format_id' => $order->customer['format_id'],):

 'customers_circumference' => $order->account['circumference'],

 

The field this (is supposed to) submits to in the order table is customers_circumference

Checkout is functioning fine other than not storing the data in the orders database.

 

Has anyone created something similar who might be able to help me get this to work? Are there other files I need to edit?

 

Thanks,

-clueless college student doing a pro-bono project

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...