{"id":1417,"date":"2019-07-04T06:51:58","date_gmt":"2019-07-04T06:51:58","guid":{"rendered":"http:\/\/global-ecommerce-services.com\/wiki\/?page_id=1417"},"modified":"2021-09-14T06:53:22","modified_gmt":"2021-09-14T06:53:22","slug":"brand-model-search-magento2-installation","status":"publish","type":"page","link":"https:\/\/global-ecommerce-services.com\/wiki\/brand-model-search-magento2-installation\/","title":{"rendered":"Brand Model Search Magento2  Installation"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Table of Contents<\/p><ul class=\"toc_list\"><li><a href=\"#1Overview\"><span class=\"toc_number toc_depth_1\">1<\/span> 1.Overview:<\/a><\/li><li><a href=\"#2How_to_Install_Brand_Model_Search_Magento_2_Installation\"><span class=\"toc_number toc_depth_1\">2<\/span> 2.How to Install Brand Model Search Magento 2 Installation<\/a><ul><li><ul><li><a href=\"#21_Upload_Extension_files_using_Filezilla_to_appcode_folder\"><span class=\"toc_number toc_depth_3\">2.0.1<\/span> 2.1. Upload Extension files using Filezilla to app\/code folder<\/a><\/li><\/ul><\/li><li><a href=\"#22_Run_Installation_commands_in_SSH\"><span class=\"toc_number toc_depth_2\">2.1<\/span> 2.2. Run Installation commands in SSH\u00a0<\/a><\/li><\/ul><\/li><li><a href=\"#3_Setup_attributes\"><span class=\"toc_number toc_depth_1\">3<\/span> 3. Setup attributes<\/a><\/li><li><a href=\"#4_Setup_Static_Block\"><span class=\"toc_number toc_depth_1\">4<\/span> 4. Setup Static Block<\/a><\/li><li><a href=\"#Admin-gt_Content-gt_Blocks-gt_Add_New_Block\"><span class=\"toc_number toc_depth_1\">5<\/span> Admin-&gt; Content-&gt; Blocks-&gt; Add New Block<\/a><\/li><li><a href=\"#5_Questions\"><span class=\"toc_number toc_depth_1\">6<\/span> 5. Questions<\/a><\/li><\/ul><\/div>\n<h2><span id=\"1Overview\">1.Overview:<\/span><\/h2>\n<p>Helps the customer to search and choose the required product by brand and a nested search inside the chosen brand<\/p>\n<h2><span id=\"2How_to_Install_Brand_Model_Search_Magento_2_Installation\"><span id=\"Installation_Steps_for_Call_Us_for_Price_Extension\" class=\"mw-headline\">2.How to Install Brand Model Search Magento 2 Installation<\/span><\/span><\/h2>\n<h3><\/h3>\n<h4><span id=\"21_Upload_Extension_files_using_Filezilla_to_appcode_folder\"><b>2.1. Upload Extension files using Filezilla to app\/code folder<\/b><\/span><\/h4>\n<p>1. Take a backup of the Magento files before replacing.<\/p>\n<p>2. Extract the files from the package.<\/p>\n<p>3. Upload the &#8220;Globalecomservices&#8221; folder under app\/code on Magento root.<\/p>\n<div>Example: app\/code\/Globalecomservices<\/div>\n<div><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1616\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/Wiki-packages-upload.png\" alt=\"wiki-packages-upload\" width=\"1003\" height=\"220\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/Wiki-packages-upload.png 1003w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/Wiki-packages-upload-150x33.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/Wiki-packages-upload-300x66.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/Wiki-packages-upload-768x168.png 768w\" sizes=\"(max-width: 1003px) 100vw, 1003px\" \/><\/div>\n<div>\n<h3><span id=\"22_Run_Installation_commands_in_SSH\"><b>2.2. Run Installation commands in SSH<\/b><b>\u00a0<\/b><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0Login to your server with SSH (using putty or similar tool). Go to your Magento root folder (Usually<\/span> <span style=\"font-weight: 400;\">public_html folder) and run commands below. This is the standard Magento extension installation<\/span> <span style=\"font-weight: 400;\">procedure.<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<ol>\n<li><b>a) Enable Gift wrap modules using command below:<\/b><b><\/b><\/li>\n<\/ol>\n<p><i><span style=\"font-weight: 400;\">p<\/span><\/i><i><span style=\"font-weight: 400;\">hp bin\/magento module:enable Globalecomservices_Brandmodel<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0<\/span><\/i><\/p>\n<ol>\n<li><b>b) Run upgrade command: <\/b><span style=\"font-weight: 400;\">(This is a standard Magento command)<\/span><\/li>\n<\/ol>\n<p><i><span style=\"font-weight: 400;\">p<\/span><\/i><i><span style=\"font-weight: 400;\">hp bin\/magento setup:upgrade<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0<\/span><\/i><\/p>\n<ol>\n<li><b>c) Run di Compile command\u00a0<\/b><\/li>\n<\/ol>\n<p><i><span style=\"font-weight: 400;\">p<\/span><\/i><i><span style=\"font-weight: 400;\">hp -d memory_limit=-1 bin\/magento setup:di:compile<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0<\/span><\/i><\/p>\n<ol>\n<li><b>d) Redeploy static content\u00a0<\/b><\/li>\n<\/ol>\n<p><i><span style=\"font-weight: 400;\">p<\/span><\/i><i><span style=\"font-weight: 400;\">hp -d memory_limit=-1 bin\/magento setup:static-content:deploy<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0<\/span><\/i><\/p>\n<ol>\n<li><b>e) Verify if the module is listed\u00a0<\/b><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">To list modules, run the following command<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">php -d memory_limit=-1 bin\/magento module:status<\/span><\/p>\n<\/div>\n<h2><span id=\"3_Setup_attributes\"><b>3. Setup attributes<\/b><\/span><\/h2>\n<p><b>3.1. Create Attribute<\/b><\/p>\n<p>Stores -&gt; Product-&gt;Add new Attributes<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-1418 aligncenter\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1-1024x576.png\" alt=\"pic1\" width=\"834\" height=\"469\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic1.png 1366w\" sizes=\"(max-width: 834px) 100vw, 834px\" \/><\/p>\n<p><b>3.1.1 Enter Atttribute data as follows<\/b><\/p>\n<p>Click Add attributes button<\/p>\n<p>Create attribute &#8220;brands&#8221;\u00a0 like below<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1420 alignnone\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2-1024x576.png\" alt=\"pic2\" width=\"900\" height=\"506\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic2.png 1366w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><b>3.1.2. Follow the instruction to create \u201cd_brands\u201d attribute code, <\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p>Default Label: brands<br \/>\nAttribute code: <strong>d_brands<\/strong><br \/>\nUse in quick search =&gt;Yes<br \/>\nSearch Weight =&gt; 1<br \/>\nVisible in Advanced Search =&gt;Yes<br \/>\nAllow HTML Tags on Storefront =&gt;Yes<br \/>\nVisible on Catalog Pages on Storefront =&gt;Yes<br \/>\nUsed in Product Listing =&gt; Yes<br \/>\nUsed for Sorting in Product Listing =&gt;Yes<\/p>\n<p><b>3.1.3. Similarly Create attributes\u00a0 \u201cd_models\u201d\u00a0<\/b><\/p>\n<p style=\"line-height: 15.0pt; background: white; margin: 0in 0in 7.5pt 0in;\"><b><span style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;\">Note:-\u00a0<\/span><\/b><span style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;\">It should be\u00a0 \u201c<strong>d_brands<\/strong>\u201d, \u201c<b>d_models<\/b>\u201d<\/span><\/p>\n<p><b>3.2.\u00a0 Assign attributes to Attribute Set<\/b><\/p>\n<p style=\"line-height: 15.0pt; background: white; margin: 0in 0in 7.5pt 0in;\">Click the button Add New Groups .Please enter the group name\u00a0<strong>\u201cBrandmodel\u201d<\/strong><\/p>\n<p>A group will be created at the end you can drag and drop to your respective location and save.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1421 alignnone\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3-1024x576.png\" alt=\"pic3\" width=\"900\" height=\"506\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic3.png 1366w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1422 alignnone\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4-1024x576.png\" alt=\"pic4\" width=\"900\" height=\"506\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic4.png 1366w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><b>3.3. Add Brand\u00a0 model data to products:-<\/b><\/p>\n<p><span style=\"font-family: Arial, sans-serif; font-size: 10.5pt;\">Products-&gt;Catalog-&gt;Add product<\/span><\/p>\n<p style=\"line-height: 15.0pt; background: white; margin: 0in 0in 7.5pt 0in;\"><span style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-large wp-image-1423\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5-1024x576.png\" alt=\"pic5\" width=\"900\" height=\"506\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic5.png 1366w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/span><\/p>\n<p style=\"line-height: 15.0pt; background: white; margin: 0in 0in 7.5pt 0in;\">You can find a new tab <b><i>Brands Models\u00a0<\/i><\/b>on the left side. Fill in all the required details and assign the product to a category as needed.<\/p>\n<p>Note: d_brands, d_models\u00a0 attributes can take multiple values if the product has several fitments. Please select multiple select format. For Example, some products such as accessories, may fit multiple brands and models.<\/p>\n<h2><span id=\"4_Setup_Static_Block\"><b>4. Setup Static Block<\/b><\/span><\/h2>\n<p><b>4.1.\u00a0 Add a static block for Brand model\u00a0<\/b><\/p>\n<h2><span id=\"Admin-gt_Content-gt_Blocks-gt_Add_New_Block\"><span style=\"font-size: 16px;\">Admin-&gt; Content-&gt; Blocks-&gt; Add New Block<\/span><\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1600\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd.png\" alt=\"brandmodeladd\" width=\"1324\" height=\"558\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd.png 1324w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd-150x63.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd-300x126.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd-768x324.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodeladd-1024x432.png 1024w\" sizes=\"(max-width: 1324px) 100vw, 1324px\" \/><br \/>\n<span style=\"text-decoration: underline;\"><strong>Brand model\u00a0:-<\/strong><\/span><\/p>\n<p><strong>Block Title: <span style=\"text-decoration: underline;\">Brand model\u00a0<\/span><\/strong><br \/>\n<strong>Identifier: brand-model<\/strong><br \/>\n<strong>Status: Enabled<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1599\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodel-block.png\" alt=\"brandmodel-block\" width=\"512\" height=\"91\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodel-block.png 512w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodel-block-150x27.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/brandmodel-block-300x53.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\">Content:<\/span><\/p>\n<pre><strong>{{block class=\"Magento\\Framework\\View\\Element\\Template\" name=\"catalog.product.Brandmodelsearch\" template=\"Globalecomservices_Brandmodel::product\/brand_model.phtml\"}}<\/strong><\/pre>\n<p><b>4.2. Call static block in category page<\/b><\/p>\n<p>Admin-&gt;Catalog-&gt;Categories-&gt;Select respective category-&gt;Below description area there is a section (Add CMS Block) to call static block to that category page in that select Brand Model and save the category.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1610\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/categoryblock.png\" alt=\"categoryblock\" width=\"834\" height=\"358\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/categoryblock.png 834w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/categoryblock-150x64.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/categoryblock-300x129.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/categoryblock-768x330.png 768w\" sizes=\"(max-width: 834px) 100vw, 834px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>4.3. Refresh Magento cache.<\/b><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-1424 alignnone\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6-1024x576.png\" alt=\"pic6\" width=\"818\" height=\"460\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6-1024x576.png 1024w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6-150x84.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6-300x169.png 300w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6-768x432.png 768w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2019\/07\/pic6.png 1366w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><\/h2>\n<h2><span id=\"5_Questions\">5. Questions<\/span><\/h2>\n<p>If you have any questions or issues, please contact technical support team via\u00a0<a href=\"http:\/\/mage-extensions-themes.com\/support\/\" target=\"_blank\">http:\/\/mage-extensions-themes.com\/support\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents1 1.Overview:2 2.How to Install Brand Model Search Magento 2 Installation2.0.1 2.1. Upload Extension files using Filezilla to app\/code folder2.1 2.2. Run Installation commands in SSH\u00a03 3. Setup attributes4 4. Setup Static Block5 Admin-&gt; Content-&gt; Blocks-&gt; Add New Block6 5. Questions 1.Overview: Helps the customer to search and choose the required product by ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/global-ecommerce-services.com\/wiki\/brand-model-search-magento2-installation\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"categories":[5,36],"tags":[35],"_links":{"self":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1417"}],"collection":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/comments?post=1417"}],"version-history":[{"count":32,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1417\/revisions"}],"predecessor-version":[{"id":1620,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1417\/revisions\/1620"}],"wp:attachment":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/media?parent=1417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/categories?post=1417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/tags?post=1417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}