Viewing 2 replies - 1 through 2 (of 2 total)
  • I spent all day reading this forum and another blogs with informations that could help me on this same issue. Unsuccessfully. Many colleagues with the same question unanswered. ??

    Well, someone posted a solution using slug as a key and it worked for me, because I use the same name for slug and sku .

    I decided to share, because maybe this can help someone else:

    [dynamichidden URL “CF7_get_post_var key=’slug'”]

    I just did this for a client.

    Just create your own shortcode (functions.php)

    function cf7_add_sku(){
    
    	global $product;
    	return $product->get_sku();
    
    }
    
    add_shortcode('CF7_ADD_SKU', 'cf7_add_SKU');

    Then add the dynamic field in your form

    <p>Subject<br />
    [dynamictext your-subject "CF7_ADD_SKU"]</p>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce SKU’ is closed to new replies.