Home Forums WoodMart support forum Importing variation image to Variation Image Gallery using WP All Import

Importing variation image to Variation Image Gallery using WP All Import

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #128446

    Adapt Online
    Participant

    Hi,

    I was wondering how I can import images to the Variation Image Gallery using WP All Import.

    When I’m importing two images now the first image is set as the variation image but the second image does not show up and the Variation Image Gallery is empty. Is it a meta_field I need to set? Or how does it work?

    Regards

    #128469

    Artem Temos
    Keymaster

    Hello,

    The meta field for additional variations images gallery is called woodmart_variation_gallery. It contains IDs of images uploaded to specific variation.

    Kind Regards

    #142739

    dsl-ms
    Participant

    Is there anyway that I can use product/variation SKUs instead of IDs to reference the additional images? I’m trying to get this working with an import/export plugin but working with ID’s can be difficult… I installed another plugin (WooCommerce Additional Variation Images) to get this functionality, but that breaks some of the functionality of the theme and your implementation already exists mostly.

    There is however a code snippet provided by the import/export plugin to enable using SKUs instead of IDs when referencing the images for import/export (in private content area)… is there a way you can modify this to make it work with the woodmart_variation_gallery meta field please, I think it will be a simple change for you?

    #142747

    Artem Temos
    Keymaster

    Hi,

    Sorry, but this functionality requires IDs for images and can’t work with any kind of other fields.

    Regards

    #142985

    dsl-ms
    Participant

    Ok. The Additional Variation Images plugin by woocommerce can achieve this, but it breaks a few things on the product page (please see screenshots in private area) when active. I have been in touch with them and they pointed me back to you guys 🙁
    So I feel a bit stuck right now… Here’s what they said:

    Unfortunately, it looks like your theme isn’t playing nicely with Additional Variation Images. Your best bet here would be to contact your theme’s developer for a fix, as they have declared WooCommerce support. Alternatively, you may want to consider switching to a theme that doesn’t contain these issues.
    Best,
    Ross
    Happiness Engineer @ Automattic

    Please could you help?

    #142987

    Artem Temos
    Keymaster

    Our theme is fully compatible with WooCommerce but since we have our own gallery that is much more powerful then default WooCommerce one so it is not compatible with that particular extension. If you want to change the theme, we can provide you with a refund.

    #142994

    dsl-ms
    Participant

    I wanted to use your gallery as I said above but using ID’s isn’t gonna work and isn’t practical for most users – you must admit.

    Of course I don’t want to change the theme and get a refund, how is that even helpful!? Like I said I’m in the middle here, everyone blames the other.

    I need the ability to set these by SKU through an import file so it isn’t done one by one, being a time consuming process. I’ve mentioned a couple of ways to achieve it but nobody wants to add this feature to make their plugin better.

    #143073

    Artem Temos
    Keymaster

    We understand but our theme is designed to work with IDs and we will change to SKUs it will break a lot of functionality on other customers websites who use IDs. There is no easy solution here.

    #145295

    dsl-ms
    Participant

    Hi Artem, I’ve given up on the idea of SKU as I understand it’s a lot of work.

    However, is there at least a patch/workaround you will consider that allows me to reference the image by filename/file path? That way the image is still linked to the ID and is unique but it means I could enter a reference which makes sense and that I’d know when importing the variation images.

    On a site with 100s or even 1000s of products, trying to get this format in a spreadsheet for each product is really tricky:
    {“10029″:”10335″,”10028″:”10265″,”10027″:”10257”}
    {“variation_id”:”attachment_id”,”variation_id”:”attachment_id”,”variation_id”:”attachment_id”}

    An added advantage of doing it this way would be that if the image is deleted and re-uploaded or updated, it is assigned a new ID but the filename won’t have to change and I won’t have to go re-matching image IDs.

    Consider it please? 🙂

    #145446

    Artem Temos
    Keymaster

    Hi,

    Connecting different things by ID is a best practice in any software project so that is why we built it in this way. Rebuilding it to URL is the same process as to SKU. And the same problem may occur here if the image will be removed. Sorry, but we will not rebuild this in our theme.

    Kind Regards

    #162075

    Adapt Online
    Participant

    If anyone needs help with this I have written a script that solves it. Just message me at [email protected]

Viewing 11 posts - 1 through 11 (of 11 total)