Home Forums WoodMart support forum How can I KNOW if a product is part of a FBT bundle?

How can I KNOW if a product is part of a FBT bundle?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #504781

    marketingdigital
    Participant

    i am in the cart page and i need to know if the products on it are part of a product bundle (frequently bougth together) or not?

    there is any item meta i can check in here?

    thanks,

    #504807

    Luke Nielsen
    Keymaster

    Hello,

    You can see it only via the WordPress dashboard, or rather via the FBT bundles (Products -> Frequently bought together):

    https://take.ms/ibSEB

    Don’t hesitate to let me know if you need any further help or any other info.

    Kind Regards

    #504836

    marketingdigital
    Participant

    Thankyou,

    When you are in the CART PAGE, you can access each line item (as a php product objet) and get some metas about it.
    for example: $meta_data = $item->get_meta_data();

    Array
    (
        [0] => WC_Meta_Data Object
            (
                [current_data:protected] => Array
                    (
                        [id] => 49517
                        [key] => pa_sabor
                        [value] => chocolate-b
                    )
    
                [data:protected] => Array
                    (
                        [id] => 49517
                        [key] => pa_sabor
                        [value] => chocolate-b
                    )
    
            )
    
        [1] => WC_Meta_Data Object
            (
                [current_data:protected] => Array
                    (
                        [id] => 49550
                        [key] => _reduced_stock
                        [value] => 1
                    )
    
                [data:protected] => Array
                    (
                        [id] => 49550
                        [key] => _reduced_stock
                        [value] => 1
                    )
    
            )
    
    )

    Well where ddo you store the FBT meta? how can i detect (php) if a product on cart is bundeled by you Xtemos FBT system.

    Thankyou!!!

    #504848

    Luke Nielsen
    Keymaster

    Hello,

    The Frequently bought together does not store any meta data of the product.

    Unfortunately, we do not provide detailed insights into the workings of specific functionalities within our theme as a standard practice.

    Please feel free to reach out to me if you have any further questions.

    Kind Regards

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