Support » Plugin: Product Variation Table for WooCommerce - PVT » Additional Variation Image

  • Resolved kyleitt

    (@kyleitt)


    Hi Hakik

    Your plugin is great but I would like your assistance on some custom work with displaying an additional variation image column. Please can you provide me with your email address to discuss this further.

    My email address is kyle@ittconnect.co.za

    Hope to hear from you.

    Kind Regards
    Kyle

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Thanks for your interest. Unfortunately, this is not the purpose of this plugin. But it is a great idea. Right now, the plugin grabs the thumbnail image of variation.

    I can give you some hints to develop as you are thinking-

    – You can use any additional variation gallery plugins. It will give you the facility to insert more images for the variation.
    – Those plugins will insert images as an array inside post_meta against variation_id
    – You can get them like this get_post_meta('variation_id', 'additiona_images_meta', true);
    – Then go to product-variant-table-for-woocommerce > inc > tamplates > content-tbody.php
    – There on line number 42 will get a foreach loop and variant_id is variation_id here.
    – Now use get_post_meta('variation_id', 'additiona_images_meta', true); inside foreach loop with exact parameter.
    – Then display images as you want

    I hope it will helpful for you.

    Thanks

    Thread Starter kyleitt

    (@kyleitt)

    Hi Hakik

    Thanks for the response.

    I tried to do it as per your hints but with no luck.

    As a default, woocommerce lets you add additional variation images gallery onto each variation so is there really a need for the extra plugin?

    What I need is:
    – There is a thumbnail column on the table for the main variation image currently which is great.
    – I would like to add an additional column next to this that just displays 1 extra image which is loaded into the gallery of each variation. I just need the first image of the additional variation gallery to show next to each variation.

    I realise this is a custom request and I am happy to pay you upfront to develop this for me for your time. Really hoping you can help!

    Kind Regards
    Kyle

    Plugin Author Hakik Zaman

    (@hakik)

    Hi

    As a default, woocommerce lets you add additional variation images gallery onto each variation so is there really a need for the extra plugin?

    As far I know WooCommerce gives you to upload a single image for each variation.

    In that case, maybe your theme gives you the additional feature to upload more images for each variation.

    Which theme you are using?

    Thanks

    Thread Starter kyleitt

    (@kyleitt)

    Hi

    Oh I see, maybe it is this particular theme that is adding the variation gallery to it as a standard. I am using the Bridge theme.

    Here is what my product variation looks like: Click Here

    You will see there is 1 image loaded into the variation gallery of that one variation.

    This is how the table currently looks with your plugin: Click Here

    This is what I want to achieve, just one image as an extra image for each vartiation: Click Here

    Kind Regards
    Kyle

    Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    I have installed your theme for checking. Unfortunately, I didn’t find any field to add additional images for a specific variation.

    Can you please check which plugin or theme setting you are using to gain that facility?

    Hope to hear from you soon!

    Thread Starter kyleitt

    (@kyleitt)

    Hi Hakik

    Sorry for late response.

    It seems that you need to enable it in the theme settings. I found it my side.

    Go to Theme Settings > Shop > Attribute Swatches > Set “Use images from product variations” to On.

    This should now give you the ability to add variation image gallery.

    Kind Regards
    Kyle

    Thread Starter kyleitt

    (@kyleitt)

    If its easier, we can disable this option and rather use the Additional Variation Plugin if it makes it easier your side. Let me know.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Sorry, still I didn’t find the settings. I have given a solution in the next part of this article.

    Note: Please don’t try it on the live site. Firstly try it on your local machine

    Follow the following steps carefully-

    1. Firstly Uninstall and Delete PVT and reinstall it again (to delete data from database).
    2. Install Additional Variation Images Gallery Plugin.
    3. Set images using Additional Variation Images Gallery.
    4. You have to edit two files of PVT-
    product-variant-table-for-woocommerce > inc > class_pvtfw_common.php
    product-variant-table-for-woocommerce > inc > templates > content-tbody.php
    5. Here you will get two files.

    If you follow the above instructions carefully. You will get PVT like this.

    Please let me know if it fulfils your need.

    Thanks

    Thread Starter kyleitt

    (@kyleitt)

    Hakik!

    You are an absolute star. It is all working and I cannot thank you enough for all your help and patience.

    I will be sure to leave you a nice review. Keep well!

    Kind Regards
    Kyle

    Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Glad to know everything is working from your side.

    Keep me in your prayers.🙂

    Have a good day!

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Additional Variation Image’ is closed to new replies.