• Resolved floofp

    (@floofp)


    Hi,
    Currently I have added a ACF Repeater field for Images where I can currently add images too it.
    I have used this for references: https://docs.woocommerce.com/document/product-csv-import-suite-column-header-reference/

    Heres a picture of the ACF Field
    Image 1

    Heres a picture of the Repeater Field
    Image2

    Heres how it looks on my product page:
    How it looks on product page

    – So from my understanding, I should be able to use the *images* as it states in the docs for woocommerce it states this:
    Woocommerce docs
    Ive used all of these refences for my other work, but I cant seem to get it right for the images.

    Basically my goal is, all the images I add through my ACF field on the frontend side gets added to the Product Images, from the docs the first image added should be the featured image and the rest should get added to the gallery of that product – but it seems not to work?

    I’ve tried putting _images and -images
    I have also tried another method someone mentioned instead of images I tried to use wc_product_image without any luck either

    Hopefully someone can help me with this issue! tyvm

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    > I have also tried another method someone mentioned instead of images I tried to use wc_product_image without any luck either

    How about: https://stackoverflow.com/questions/62114707/replacing-woocommerce-product-image-using-acf-custom-fields

    Kind regards,

    Thread Starter floofp

    (@floofp)

    @conschneider Im not really looking to “replace” the image, I’m more looking for it to link together, so that the images im uploading through the ACF field gets put in the Product Image / Product Gallery box

    I’m sure this is super simple because it was this simple with taxonomies, prices etc. So I don’t see why the two image boxes should be this difficult

    Your docs states that ‘images’ should work, but somehow it doesn’t so im missing something small I assume

    Note: I also tried the above code without anything working, it just crashes my frontend page

    • This reply was modified 4 years, 5 months ago by floofp.
    Thread Starter floofp

    (@floofp)

    Heres a list of stuff ive tried to put into my ACF Field that I found that people recommeneded:
    images
    _images
    product_image
    _product_image
    wc_product_image
    _wc_product_image
    woocommerce_thumbnail
    _woocommerce_thumbnail
    woocommerce_single
    _woocommerce_single
    attachment-thumbnail
    _attachment-thumbnail

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    > Im not really looking to “replace” the image, I’m more looking for it to link together, so that the images im uploading through the ACF field gets put in the Product Image / Product Gallery box

    Gotcha.

    I don’t see that ACF is declaring support for WooCommerce product images that way anywhere.
    I think ACF needs additional PHP code in order to be able to do this. What custom code function do you use for this?

    Kind regards,

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ACF Image field to Woocommerce Product Image’ is closed to new replies.