• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
1.0k
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 17 Sept 2020, 14:45 17 Sept 2020, 14:43

    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 18 Sept 2020, 14:37

      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
      2 out of 2
      • First post
        2/2
        Last post