Thanks, is there a public issue tracker where I can view the status of the issue?
The way I would probably tackle this issue is send the product ID in the url. On the page that receives the product ID, load the $product variable ($product = new WC_Product($_GET['product_id']);) output the details of the product to hidden form fields at the bottom of the page (assuming these are post meta values):
<input type="hidden" name="material" value="<?php echo esc_attr(get_post_meta($product->get_id(), 'material', true)); ?>" />
<input type="hidden" name="colour" value="<?php echo esc_attr(get_post_meta($product->get_id(), 'colour', true)); ?>" />
Add a class to each form field you want to populate.
Then add javascript that pulls the value from the hidden fields and updates the form fields.
-
This reply was modified 7 years, 9 months ago by agraddy. Reason: updated name field