Hi Support Team,
We are currently using a custom WooCommerce Single Product layout and integrating your Woo Request a Quote functionality.
For variable products, the quote URL requires the following structure:
/?attribute_{attribute_key}={attribute_value}&variation_id={variation_id}&add-to-qtsquote={product_id}
We are able to dynamically output the product ID using:
{{dc:woocommerce:product_id}}
However, we need guidance on how to dynamically output:
- The selected variation ID
- The selected attribute key (e.g.,
attribute_style) - The selected attribute value (e.g.,
C)
Could you please advise:
- Is there a recommended hook, function, or dynamic tag to retrieve the currently selected variation ID?
- Is there a built-in method to output selected attribute key/value pairs for the active variation?
- Is there an official way to generate the correct quote URL for variable products?
We want to ensure compatibility with your plugin’s expected structure.
Second questions: is there a way to check if a product has variation or not?
Thank you.