Recent Topics

How to get products all custom attributes with values for API call??



  • I create the Singel page application with react and use Bagisto admin.
    I need to get products all custom attributes for filtering products.
    I have a custom attribute range (in admin) with values [200,500,1000]. I want to be shot to the user all that, if hi click to some value show products have that value (custom filtering logic);

    How to get custom attributes????



  • Hi @Megalight
    You can use product view helper to get custom attributes of product
    $customAttributeValues = $productViewHelper->getAdditionalData($product)
    Thanks


Log in to reply