D
D
devele2016-04-30 08:43:59
CMS
devele, 2016-04-30 08:43:59

Woocommerce product categories?

Hello, I have 2 questions.
1. You need to display the categories of goods and when you select a menu item with Ajax, show their contents.
2. I need to display buy one click on the product page, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2016-04-30
@wppanda5

1. Same as for any other post type.
2. Attach AJAX to this button, push WC()->cart->add_to_cart( $product_id ) and wc_create_order() into its handler , redirect to checkout in response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question