Home › Forums › WoodMart support forum › question about Virtual product
question about Virtual product
- This topic has 15 replies, 2 voices, and was last updated 3 months, 3 weeks ago by
Hung Pham.
-
AuthorPosts
-
March 27, 2025 at 12:09 pm #649489
troyzhu1219Participantplease look at the link:
in my website, we provide not only physical product, but also consulting and course(courses will explorer in next 2 months.)
https://easdom.com/consulting
my question is : how to close the deal by woodmart, as you can see, in the page (https://easdom.com/consulting/#), I setted consulting prices based on different plan by priceing table widget. so if a client click on “book now”, how to check out? or how to add this plan to the cart if it need to add into cart? can you explain the logic for me? and how to set?
thanks very much.March 28, 2025 at 8:35 am #649754
Hung PhamKeymasterHi troyzhu1219,
Thanks for reaching to us.
You can change type of product > and add product to the plans https://ibb.co/wZVWj7Q3
Regards,
April 2, 2025 at 6:44 am #650985
troyzhu1219ParticipantI have set the button as “Product add to cart” as attached, but when I click on it , it doesn’t active.
so , do I need to create a virtual product in the woocommerce product? so that once I click on it, the virtual product will add into the cart?Attachments:
You must be logged in to view attached files.April 2, 2025 at 8:56 am #651012
Hung PhamKeymasterHi troyzhu1219,
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Regards,
April 2, 2025 at 4:51 pm #651186
troyzhu1219Participantplease see below:
April 3, 2025 at 7:20 am #651289
Hung PhamKeymasterHi troyzhu1219,
Admin credential is incorrect, please check again.
Regards,
April 7, 2025 at 3:32 pm #652199
troyzhu1219Participantplease see below:
April 8, 2025 at 8:07 am #652365
Hung PhamKeymasterApril 8, 2025 at 6:25 pm #652607
troyzhu1219Participanthi , I just create the virtual product in woocommerce. and select the product in the button.
but here is the problem:
look at the page: https://easdom.com/consulting/
as you can see , I have 4 product option: after I select the product into the button, the button change to “Read more”, and when I click on Read more, it will direct to the virtual product page, if I did not select the product on the button, it will show “Book Now”.
I don’t want when my client click on the button, it direct to the product; and I want once the client click on the “Book Now”, it will direct add to the cart or go to the checkout page directly , because the clinet already decide to book now, no need to turn to the product page to “read more. ”
please tell how to set. ?April 8, 2025 at 6:30 pm #652609
troyzhu1219Participanthi , I just create the virtual product in woocommerce. and select the product in the button.
but here is the problem:
look at the page: https://easdom.com/consulting/
as you can see , I have 4 product option: after I select the product into the button, the button change to “Read more”, and when I click on Read more, it will direct to the virtual product page, if I did not select the product on the button, it will show “Book Now”.
I don’t want when my client click on the button, it direct to the product; and I want once the client click on the “Book Now”, it will direct add to the cart or go to the checkout page directly , because the clinet already decide to book now, no need to turn to the product page to “read more. ”
please tell how to set. ?and I have another question about Virtual product. since I have created the virtual products for my consultation service, and the category is “consultation”. but I do not want these virtual products appear and showing in my shop, because in my shop, we sell physical products, I do not want fix the physical products and virtual products together.
I want physical products sell in the shop, and virtual products showing in the consultation page. how to do it ?
thanksApril 9, 2025 at 10:54 am #652736
Hung PhamKeymasterHi troyzhu1219,
I checked your product, please make sure you added Price to product or it is not out of stock products.
Also, there is no way to redirect product directly to cart or checkout page.
Regards,
April 9, 2025 at 11:55 am #652762
troyzhu1219Participantthanks.
and I have another question about Virtual product. since I have created the virtual products for my consultation service, and the category is “consultation”. but I do not want these virtual products appear and showing in my shop, because in my shop, we sell physical products, I do not want fix the physical products and virtual products together.
I want physical products sell in the shop, and virtual products showing in the consultation page. how to do it ?
thanksApril 10, 2025 at 4:34 am #652938
troyzhu1219Participanthey, anyone can reply me ? thanks.
April 10, 2025 at 8:10 am #652945
Hung PhamKeymasterHi troyzhu1219,
You can edit the layout with Shop page with
Exclude
condition and select specific categories https://ibb.co/0qCKg1QFor consultation page, you can use
Products (grids or carousel)
widget to select specific categories.Regards,
April 10, 2025 at 8:23 am #652948
troyzhu1219Participantnot workable . please check below attached images.
I add exclude condition in the shop layout.
but when I open the shop, the consultation product still appear.
https://easdom.com/shop/page/6Attachments:
You must be logged in to view attached files.April 10, 2025 at 2:52 pm #653105
Hung PhamKeymasterHi troyzhu1219,
Please add this code to the functions.php of the child theme:
add_action( 'pre_get_posts', 'exclude_categories_from_shop' ); function exclude_categories_from_shop( $query ) { if ( ! is_admin() && $query->is_main_query() && is_shop() ) { $tax_query = $query->get( 'tax_query' ); $tax_query[] = array( 'taxonomy' => 'product_cat', 'field' => 'slug', // or 'term_id' 'terms' => array( 'consultation' ), // change slugs 'operator' => 'NOT IN', ); $query->set( 'tax_query', $tax_query ); } }
Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register