Mike Jolley on "creating woocommerce booking for event booths"

ساخت وبلاگ

thank you for taking the time to read my question. I'm creating a website for someone that organises tattoo conventions. The person in question rents booths for the coventions in three different types. Tattoo booth, Piircing booth and Vendor booth.

I'm creating the events using regular wordpress posts and I've used woocommerce to create the three different type of booth as products. In single.php i've included the shortcode to list the three different products.

with the following code I've managed to create a product page with the title of the post and the type of product that the visitor clicked on.

$referrer = wp_get_referer();
$postid = url_to_postid( $referrer );
$referrer_title = get_the_title( $postid );

I've been breaking my head on finding a way to create a new product in the cart using the info of both the post and the product, so when the visitor clicks on the add to cart buton, the correct product and event are linked and can be sold as one product. In the cart it should show something like "event stand type - event title".

does anyone know a way to make this work? I'm not new to coding and I haven't found any plugin that does this. You can see it in action here: http://starfire.vascofialho.nl/conventions/events/ .

https://wordpress.org/plugins/woocommerce/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 280 تاريخ : دوشنبه 11 مرداد 1395 ساعت: 16:19