Tell us what you are trying to do?
I am trying to add a 'Add to Cart Button' in my template via blocks.
This exercise is to replace shortcodes with the respective blocks.
All works well except the 'Add to Cart Button'. Am I using it correctly?
Is there any documentation that you are following?
no
Is there a similar example that we can see?
What is the link to your site?
hidden link
Hello and thank you for contacting the Toolset support.
I visited the woodogs page and I was able to add a product to the cart without issues. hidden link
The page is an archive page and the products on it have the button add-to-cart and working without issues.
I am afraid, I don't understand the issue here. Can you provide the steps to follow to reproduce the issue, I'll try them locally or on your site(preferably test site).
Your next reply will be private to let you share credentials to your (test) website safely. ** Make a database backup before sharing credentials. **
Hi Jamal,
thank you for your reply.
yes. the add to cart buttons are added via short code [wpv-woo-buy-or-select].
my issue is, if i use "Add to Cart Button" block, i cannot get it to work.
Dave
Hello Dave,
I just tried on a clean installation to customize the single product page and an archive page, on both tests, I was able to add the "Add to Cart" button using the "Add to Cart Button" block without issues.
Make sure to have the WooCommerce Views plugin installed and to check our article about WooCommerce integration https://toolset.com/learn/create-an-ecommerce-wordpress-site/
I might need to take a closer look at your view to understand the issue better. Can you also record a short video or screenshots that display it?
Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
I can see the issue on your website, the "Add to Cart" block is not working. I could not reproduce this locally with a similar setup(I used category instead of vendors).
Maybe this is a compatibility issue and we should test your website in a minimal setup(only Toolset plugins, WooCommerce, WooCommerce Product Vendors). Preferably on a test site. Or I can take a copy of your website and check that locally. How would you like to proceed?
hi Jamal,
thank you. yes, you can take a copy for your local test.
Dave
Hello Dave, I took a copy of your website for my local debugging. When debugging I made the mistake to deactivate plugins on your live site instead of the copy. I had reactivated the plugins, but I am not sure if I missed anyone. Please check your website and let me know if there is anything I can do.
In the meantime, I'll be debugging locally why the add-to-cart block is not working and I'll get back to you.