Zen Cart Logo
Forums / General Questions / Product additional info by customer

Product additional info by customer

Views: 570

Results 1 to 2 of 2
25 Oct 2013, 5:47 AM
#1
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Product additional info by customer

I am begginer with php and DB so i have this issue.

I need the customers of the store to add specific description like a poll.

The page

This is the options I want.

<p align="left"><strong>
    <select name="choice">
	 <option value="1"> 1 път дневно</option>
	 <option value="2"> 3 пъти дневно</option>
 	 <option value="3"> 5 пъти дневно</option>
  	 <option value="4"> 9 пъти дневно</option>
     <option value="5"> 14 пъти дневно</option>
     <option value="6"> 20 пъти дневно</option>
	</select>
      </strong></p>
<input type="submit" name="submit" value="Send">

I need after a customer chose one from them and press the send button, how to make the chosed option value to be stored for the current product in DB, сo then I can call the data and show it like average result on the products page.

I just need a hint how to import the chosed value in to the DB and how to cal it back afterwards.

Many thanks

25 Oct 2013, 6:37 AM
#2
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Product additional info by customer

I supose using

INSERT INTO products_user_spec (column1, column2, column3,...)
VALUES (value1, value2, value3,...)

products_user_spec will be the new table i'll create,

but how to asign a value for the current product id it is mistery for me :)