• Resolved urikanonov

    (@urikanonov)


    Hi,

    My product catalog is in part used for the shop on Instagram.
    As I understand, the price shown for a product group on the Instagram shop belongs to the default variation (is that correct – can you please confirm this assumption?).
    Today it’s pretty much random because the logic in WC_Facebookcommerce_Integration::get_product_group_default_variation tries to match based on the default attributes BUT I would like the chosen variation to be the one with the minimal price.

    My request is to add a filter to control the result of this function. Currently it has no filter…

    Thanks,
    Uri

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @urikanonov

    Thanks for reaching out!

    If I understand you correctly, you are using Facebook for WooCommerce for your Instagram Shop, is that correct?

    As per the plugin’s support documentation, at the moment Instagram shopping/checkout support is not available. You can use Instagram Shopping if you need users to checkout from Instagram.

    With this extension, merchants can link an Instagram Business Account to the Facebook account and then sync the products to the Facebook catalog. This catalog can be shared between Facebook and Instagram.

    Hope this helps!

    Thread Starter urikanonov

    (@urikanonov)

    Hi @xue28, this is already what I’m already doing. The products are being synced to the Facebook catalog and from there shown in the Instagram shop. However, the view on Instagram doesn’t show multiple variations for variable products (like it does on Facebook) but a single price.
    I’m trying to control that single price. My guess is that’s coming from the default variation for the product group and hence why I would like to control it.

    So my asks are:
    1. Can you please confirm that price is indeed controlled by the “default” variation?
    2. To add a filter using which I can control the result of the “WC_Facebookcommerce_Integration::get_product_group_default_variation” method to choose the default variation on my own.

    I hope this is clearer now ??

    Thanks,
    Uri

    Thread Starter urikanonov

    (@urikanonov)

    Regarding question #1, looks like this default variation indeed controls the price judging by this thread:
    https://github.com/woocommerce/facebook-for-woocommerce/issues/233

    I just need a more flexible way of controlling the variation rather than the hardcoded logic that currently exists.

    Hello,

    1. ... looks like this default variation indeed controls the price
    
    2. To add a filter using which I can control the result of the “WC_Facebookcommerce_Integration::get_product_group_default_variation” method to choose the default variation on my own.

    Please note Facebook for WooCommerce is an extension created for some purposes, one of them to sync products between a WooCommerce site and Facebook, as mentioned, it is still not fully compatible with Instagram.

    Since this is a development topic, I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    We also recommend these pages/resources to get more information:

    The WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
    WooCommerce Facebook group.
    — The #developers channel of the WooCommerce Community Slack.

    Thanks.

    Thread Starter urikanonov

    (@urikanonov)

    @ihereira – All of the above “resources” are general for Woocommerce.
    I’m asking for a very specific (and small) feature addition for this particular plugin. If this isn’t the appropriate channel to ask for this feature then please tell me what is the proper way.

    Also, is there an option to contribute this change myself?

    Thanks,
    Uri

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello Uri!

    Thanks for getting back to us!

    If this isn’t the appropriate channel to ask for this feature then please tell me what is the proper way.

    Also, is there an option to contribute this change myself?

    You are correct. Per our support policy here, customization tasks/requests fall outside the scope of support for this forum. As mentioned above by Igor, this thread will be left open for a while to see if any forum members are able to contribute to this conversation.

    If you want professional development support, you might want to consult our Woo-vetted experts for customization tasks here: https://woocommerce.com/experts/

    You can also look for and/or add a feature request for functionalities that you think should be part of the core Facebook for WooCommerce plugin here: https://woocommerce.com/feature-requests/facebook/

    Hope this helps!

    Thread Starter urikanonov

    (@urikanonov)

    I tried to submit a feature request multiple times but my requests are being ignored.
    All I want is one simple filter. I’m even willing to contribute the code myself.

    Can you please help make this happen?

    Thanks,
    Uri

    Hi @urikanonov!

    Thank you for your reply.

    I tried to submit a feature request multiple times but my requests are being ignored.

    Feature requests are measured by developers based on how many persons need it at a determined time. The more people needing a feature, the more chances it has to be developed and launched into the extension.

    In this case, we suggest you add your votes and comments to the feature request you want; the more votes a feature receives, the more chances it has to be considered for a future release.

    All I want is one simple filter. I’m even willing to contribute the code myself.
    Can you please help make this happen?

    If you want to contribute to the Facebook for WooCommerce extension, you can do it in the Facebook for WooCommerce development repositoy. Before you do, please make sure you read and follow the contributing guidelines described here: https://github.com/woocommerce/facebook-for-woocommerce/blob/319427c2d122660ff2917d28356914738f68465b/.github/CONTRIBUTING.md

    I hope this helps!

    Thread Starter urikanonov

    (@urikanonov)

    Hi,

    I tried to open a pull request but I’m getting a 403 authentication error when pushing it to the remote branch. Who can help me with this?

    $ git.exe push –progress “origin” user/urikanonov/variable-product-default-variation
    remote: Permission to woocommerce/facebook-for-woocommerce.git denied to urikanonov.
    fatal: unable to access ‘https://github.com/woocommerce/facebook-for-woocommerce.git/’: The requested URL returned error: 403

    Thanks,
    Uri

    Plugin Support Niall a11n

    (@wpniall)

    Hi there @urikanonov!

    Can you please confirm if you’ve followed the steps here to get set up as contributor for the Facebook for WooCommerce plugin? If not, I suspect that’s likely what’s causing the 403 permission error.

    If you have, please let us know and we can take a closer look at what’s causing the 403 error.

    Thank you, Uri!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Choosing default product group variation’ is closed to new replies.