Support

Account

Home Forums Front-end Issues WooCommerce Attribute Image to Single Product Reply To: WooCommerce Attribute Image to Single Product

  • Well I have done some research and have almost got the code working. Currently the code looks like this

    add_action(‘woocommerce_single_product_summary’,”finish_image”,22);

    function finish_image() {
    echo ‘<b>Finish:</b>’ .get_field(‘finish_img’, $product_id);
    }

    For some reason the image will not show, It just shows the text “array”(not the setting the actual word array). If I change it to URL, It shows the right url and if I change it to Image ID it show the right id.

    After playing with the settings more, I can no longer get anything to come up, please help!

    Thanks

    Jake