Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add New Field In Checkout_payment.php


gregy

Recommended Posts

Hi

 

I was looking around knowledge base without luck.

 

I would like to add simple input field (already done)

 

	  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo TABLE_HEADING_DARILNI; ?></b></td>
	  </tr>
		</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			  <td class="main"><?php echo TABLE_HEADING_DARILNINAVODILA; ?></td>
			<td align="left"><?php echo tep_draw_input_field('darilni'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>

 

into checkout_payment.php where customers would enter code that was written on paper gift coupon.

 

Code should be written into database (table already made, i mean field is already inserted into database)

 

CREATE TABLE `orders_status_history` (
 `orders_status_history_id` int(11) NOT NULL auto_increment,
 `orders_id` int(11) NOT NULL default '0',
 `orders_status_id` int(5) NOT NULL default '0',
 `date_added` datetime NOT NULL default '0000-00-00 00:00:00',
 `customer_notified` int(1) default '0',
 `comments` text,
 `smscomments` text,
 `darilni` text,
 PRIMARY KEY  (`orders_status_history_id`)
) TYPE=MyISAM AUTO_INCREMENT=28025;

 

and displayed in orders.php

 

should be easy, but not for my knowledgement :'(

 

thanx a lot in advance for help!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...