Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding custom field at checkout_shipping_address.php on Shipping Address option


Recommended Posts

Posted

Hello

 

I need to add a custom field on shipping address section, when you add a product to cart and add a shipping address, i was abble to add a custom field, everything ok, with:

 

in english.php i made this:

 

define('ENTRY_STREET_ADDRESS2', 'Street Address 2:');

 

and in checkout_new_address.php i made this:

 

<td class="main"><?php echo ENTRY_STREET_ADDRESS2; ?></td>

<td class="main"><?php echo tep_draw_input_field('street_address2') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT2) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>

 

but i dont know how to make it work because it doesnt save it to mysql when i enter a text o that field...

 

hope you can understand, i have a bad english...

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...