Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Text Box to Prod. info page


socal_kl

Recommended Posts

Hi

I would like to add a text box for customers to enter data in for a section in the product info page. sort of like an attribute to the product. my client offers a product that can use any size and i was wondering if the customer could enter in the size in the text box? .. thanks :rolleyes:

Weather you think you can, or you think you can't. Your right.

Link to comment
Share on other sites

or, could someone tell me where the file is to edit the product attributes page how it displays. not the one thats in admin. is there a seperate file that displays it on the prod info page? .. >_<

Weather you think you can, or you think you can't. Your right.

Link to comment
Share on other sites

or, could someone tell me where the file is to edit the product attributes page how it displays. not the one thats in admin. is there a seperate file that displays it on the prod info page? .. >_<

 

If you want to add a text box to the product_info.php page, you should use the tep_draw_input_field function that osCommerce has. All that you would have to do is find the place that you want it to be located at, echo tep_draw_input_field('instace_name'), and then do some kind of insert sql call when a button is pressed. I would suggest doing a form action statement, as they are easier to handle, and you can put the insert command at the top of the page then redirect to wherever you want to go from there.

 

Good Luck

Link to comment
Share on other sites

I am not shure where you want to place that text, but if you are looking to change in the box"what is new this month" then the file what control this box is /catalog/includes/modules/new_product.php

Link to comment
Share on other sites

thanks! i got the box to show up fine, but im not to fimiliar with mysql and am not sure how to write the action statement. is there something i can refer to too get a look at what needs to be done? also, where do i define the 'instance name'

Weather you think you can, or you think you can't. Your right.

Link to comment
Share on other sites

thanks! i got the box to show up fine, but im not to fimiliar with mysql and am not sure how to write the action statement. is there something i can refer to too get a look at what needs to be done? also, where do i define the 'instance name'

 

'instance_name' is just the name of the text box, that way the code can refer back to it and get the right information. IF you want to see how something is inserted, look at your create_account.php file and see how they handle form actions.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...