WooCommerce – Get a Quote
-
I’m using the WooComerce – get a quote plugin for my site. I have a bunch of products that they can click get a quote and it will take them to a form to fill out.
I created a content-single-product.php file that styles the individual page. I found on the documentation section of the WooCommerce get a quote, a shortcode that I need help adjusting. shortcode([dvin-wcql-shopbutton product_id=”17″]), inside of the content-single-product.php I have the following code
echo do_shortcode('[dvin-wcql-shopbutton product_id="469"]');
I have over 1000 products instead of manually inputting each product_id, how can I do it so that the product_id=”XXXX” grabs the post-id-XXXX of the product page they are viewing. I believe I would need an array to do this. Any help would be much appericated.
- The topic ‘WooCommerce – Get a Quote’ is closed to new replies.