Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

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

    Knowledge Base
    2
    2
    767
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Megalight last edited by Megalight

      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????

      1 Reply Last reply Reply Quote 0
      • V
        vishalK last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post