2

I have created product attribute with input type select below, I have put attribute create code.

$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

        $eavSetup->addAttribute(Product::ENTITY, 'seller_id', [
            'type'                    => 'int',
            'label'                   => 'Seller',
            'input'                   => 'select',
            'required'                => true,
            'sort_order'              => 1,
            'source'                  => 'Kunj\Seller\Model\Config\Source\Sellers',
            'global'                  => ScopedAttributeInterface::SCOPE_WEBSITE,
            'user_defined'            => true,
            'visible_on_front'        => false,
            'used_in_product_listing' => true,
            'is_used_in_grid'         => true,
            'is_visible_in_grid'      => true,
            'is_filterable_in_grid'   => true,
            'group'                   => 'General'
        ]);

Now, everything is working fine with that attribute, I have attached screenshot.

enter image description here

Now, I want to display without the default option like this.

enter image description here

And option should appear with ajax and options list should be based on search keyword.

1 Answer 1

0

@kunj Could you share here the Kunj\Seller\Model\Config\Source\Sellers file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.