jimlongo
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseYes that’s what I was thinking – add it to wp_post meta.
My question is how to go about that. I’m not that familiar with WP, do I need to create an action? And I can’t see any examples of how to insert data into the database.i was looking at the woocommerce_order_status_completed hook, I’m not sure how best to proceed.
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseThe products aren’t ever entered into my system. There’s no process for that.
I use the identifier to grab the image from the CDN to display on the product page. But there is only 1 product page.
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseYes but there is only 1 product for sale right now. A printed photo (otherwise there would be 10 of 1000’s of products and growing by the minute).
What is unique is that your photo is different from mine.
So if you buy the product, I need to know the variable that identifies it as your photo.
BTW, thanks for your patience in trying to help.
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseOf course they wouldn’t. But I need to be able to identify which picture they purchased. Right now all I know is that Joe Brown, address, etc., bought a photo. Which one did he buy?
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseTo identify which photo belongs to their order. The only identifier is the session variable I’ve captured. Otherwise it could be any of 1000’s of photos they just purchased.
Forum: Plugins
In reply to: [WooCommerce] custom order data into databaseThanks,
Each product is unique to that client.
Let’s say it’s a photo of them. They are given a Number at the time it’s taken which they enter into a form on the website.
I capture the number into a variable from a form, and they can now see it on the website and buy it. (the number is parsed and let’s us get the photo from a CDN to display on the website)
After they buy it I need to identify which photo they purchased. Hence the need to capture the session variable into the database for further use in the order emails and admin order details, etc.,