Skip to content
Skype : webmull.hemant|info@webmull.com
FacebookTwitterInstagramPinterestLinkedIn
WEBMULL Logo
  • Home
  • About Us
    • Carreers
    • Gallery
    • Request for Quote
    • Contact Us
  • Services
    • Web Development
    • Web Design
    • Graphic Design
    • Training and Live Project
    • Internet Marketing
    • Domain Registration & Web Hosting
  • Portfolio
  • Training
    • PHP Training
    • WordPress Training
    • Magento Training
    • Joomla Training
    • Drupal Training
    • PHP Quiz
  • Blog
Previous Next

Magento2 : Create Category attribute

PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @var EavSetup $eavSetup */
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
 
 
/**
* Add attributes to the eav/attribute
*/
$eavSetup->addAttribute(
\Magento\Catalog\Model\Category::ENTITY,
'external_link',
[
'group' => 'General',
'type' => 'varchar',
'label' => 'External Link',
'input' => 'text',
'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_GLOBAL,
'visible' => true,
'required' => false,
'user_defined' => true,
'default' => '',
]
);

2022-07-26T05:41:56+00:00By webmull|Tags: Magento, Magento 2|

Share This Story, Choose Your Platform!

FacebookTwitterRedditLinkedInWhatsAppTelegramTumblrPinterestVkXingEmail

Related Posts

  • Magento 2 – Admin Design Configuration Page Infinite Loading
    Magento 2 – Admin Design Configuration Page Infinite Loading
    Gallery

    Magento 2 – Admin Design Configuration Page Infinite Loading

  • Magento 2.2.4 – Error: Area is already set while try to save or change new theme
    Magento 2.2.4 – Error: Area is already set while try to save or change new theme
    Gallery

    Magento 2.2.4 – Error: Area is already set while try to save or change new theme

  • Magento 2 – Exception – Bucket does not exist on category page
    Magento 2 – Exception – Bucket does not exist on category page

    Magento 2 – Exception – Bucket does not exist on category page

  • Magento 2: Unlock the admin user
    Magento 2: Unlock the admin user
    Gallery

    Magento 2: Unlock the admin user

  • Magento 2: How to create new admin user using SSH
    Magento 2: How to create new admin user using SSH
    Gallery

    Magento 2: How to create new admin user using SSH

One Comment

  1. jorge April 1, 2016 at 2:52 pm

    How do you implement this?

Comments are closed.

Webmull Services

  • Home
  • About Us
  • Web Development
  • Web Design
  • Graphic Design
  • Training and Live Project
  • Internet Marketing
  • Domain Registration & Web Hosting
  • Portfolio
  • Blog
  • PHP Training
  • WordPress Training
  • Magento Training
  • Joomla Training
  • Drupal Training
  • PHP Quiz
  • Carreers
  • Contact Us
  • Request for Quote
  • Webmull Shop
  • Gallery

PHP Training in Vadodara

  • PHP Training
  • WordPress Training
  • Magento Training
  • Joomla Training
  • Drupal Training
  • PHP Quiz
  • Carreers
  • Gallery

Our Work!

Tags

common_error Constants CRUD data type Interview Questions joomla jQuery Magento Magento 2 operators photoshop PHP PHP-Session php-tutorial PHP Array phpbasic PHP Data Type PHP Function PHP Operators PHP Questions PHP Quiz PHP Syntax PHP Variables PHP Variable Scope Prestashop prototype SEO system_error webmull wordpress
  • Popular
  • Recent
  • Comments
  • PHP questions and answers of PHP Basic and Introduction
    May 7th, 2016
  • PHP interview questions and answers Quiz to prepare and test PHP certificate exam
    April 26th, 2016
  • Basic PHP Quiz Questions for Operators
    February 27th, 2017
  • PHP Basic Quiz questions for Variables and Constant
    March 13th, 2017
  • PHP Basic Quiz questions for Syntax and Operators
    April 1st, 2017
  • PHP Interview Questions on Array, Function, Variable Scope
    July 3rd, 2019
  • Magento 2 Design Configuration page infinite loading
    Magento 2 – Admin Design Configuration Page Infinite Loading
    April 15th, 2019
  • magento 2-2-4 know issue area is already set when try to save or change new theme
    Magento 2.2.4 – Error: Area is already set while try to save or change new theme
    March 17th, 2019
  • PHP Basics Quiz questions for data type and Control Structures
    April 17th, 2018
  • Magento 2 – Exception – Bucket does not exist on category page
    March 23rd, 2018
  • Rajesh says:

    nice, its working for me
  • biplab says:

    Didn't worked for me
  • Apurv says:

    Where is the js files placed in the file system?
  • Earl says:

    Thank you, It works on me!!! Thanks again
  • jasbir says:

    Hello sir, i have create all file but when i adding there…
Copyright 2022 © webmull | All Rights Reserved | Powered by Webmull
FacebookTwitterInstagramPinterestLinkedIn
Page load link
Go to Top