- This topic has 4 replies, 3 voices, and was last updated 5 years, 11 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Product / Add to cart question
Tagged: add to cart
I use a custom post type to create events that I sell users a chance to participate in. Is it possible to add an add to cart button without having to create a product? I would rather use a shortcode to put in the title, id, and price then add to cart from there. Alternatively, maybe I can add a hook to create a new product when a new custom type is entered. Just seeing if there is an easier way to do this before I start this process.
Looking forward to trying out this plugin.
What do you want to “happen,” if the buyer clicks your button?
An add to cart process, if possible, with the title and an id. The payment success page will handle assigning the event to the user.
I don’t want to have a large product page for my clients to fill out. The custom post type automates some of the requirements for the event that is too specific to handle in a generic “product” post.
For WP eStore you must create a product. Then you can do transaction with that product. If you need to, you can maybe associate that product with a custom post type.
You don’t need to have a large product page. An estore product that you create is a place holder. It needs just a few info like the name and price. Then you can use a simple shortcode to facilitate the transaction of that product.
You can also use the following feature to facilitate the transaction using a URL:
Thanks. I did a save_post / delete_post wp action and inserted the data directly into the eStore_tbl. Seems to be working just fine, a new product is created or updated when saving, updating, or deleting my custom type.