Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Lugaru on "Woocommerce add Custon data to Order item meta"

$
0
0

Hey,

im relativley new to WordPress. I have the following Situation/Problem:

Wordpress installation with The Event Calender Plugin, Woocommerce and Wootickets.

Now I need to store some custom Data to the Order Item Meta and I dont know how. The User has the Option to Click two buttons (same Product). Variable Products are not an Option.

On one button no additional Data will be saved, on the second one i want to store a kind of unique id... I already have it in the post fields, but how to save it anywhere in the database, belonging to the Order and the Product?

EDIT: A second question just came up: I limited the quantity to 1 per Product. So a order only can contain 1 piece of each product, but I want to deny a "rebuy", so if the user comes back he shold not be allowed to purchase the same Product again...

Thanks in advance

Cheers


Viewing all articles
Browse latest Browse all 8245

Trending Articles