#StackBounty: #magento2 #image #customer-attribute #customer-address Customer address attribute value is not saving in Magento 2

Bounty: 100

We are working on trying to create customer address attribute as input type is File, we have downloaded the code from silksoftware by selecting “Need to Add Customer Attribute” -> “Entity Type” -> “Customer Address”, but the below code is not working/saving, can any one, please help us on this issue.

<?php
namespace ModuleVendorSetup;

use MagentoEavModelConfig;
use MagentoEavModelEntitySetupContext;
use MagentoEavSetupEavSetup;
use MagentoFrameworkAppCacheInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoEavModelResourceModelEntityAttributeGroupCollectionFactory;

class CustomerSetup extends EavSetup {

    protected $eavConfig;

    public function __construct(
        ModuleDataSetupInterface $setup,
        Context $context,
        CacheInterface $cache,
        CollectionFactory $attrGroupCollectionFactory,
        Config $eavConfig
        ) {
        $this -> eavConfig = $eavConfig;
        parent :: __construct($setup, $context, $cache, $attrGroupCollectionFactory);
    } 

    public function installAttributes($customerSetup) {
        $this -> installCustomerAttributes($customerSetup);
        $this -> installCustomerAddressAttributes($customerSetup);
    } 

    public function installCustomerAttributes($customerSetup) {

    } 

    public function installCustomerAddressAttributes($customerSetup) {


        $customerSetup -> addAttribute('customer_address',
            'customeridproof',
            [
            'label' => 'Customeridproof',
            'system' => 0,
            'user_defined' => true,
            'position' => 100,
            'sort_order' =>100,
            'visible' =>  true,
            'default_value' => '',
            'note' => '',

                        'type' => 'varchar',
                        'input' => 'file',
            ]
            );

        $customerSetup -> getEavConfig() -> getAttribute('customer_address', 'customeridproof')->setData('is_user_defined',1)->setData('default_value','')-> setData('used_in_forms', ['adminhtml_customer_address', 'customer_register_address', 'customer_address_edit']) -> save();


    } 

    public function getEavConfig() {
        return $this -> eavConfig;
    } 
} 


Get this bounty!!!

#StackBounty: #magento2 #price #product-list Hide price and popup form in selected product in category product list page

Bounty: 50

I need to hide price in selected product in category list page. [PFA]

enter image description here

I know, there are many extensions for it.

I have used 2-3 extensions for the same but it changes my theme. Because they override list.phtml file.

I need to change only Price div and add my custom code but I can’t figure out how to achieve this?


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #category #multistore #url-rewrite #magento-2.1.4 Magento 2 url_rewrite table contains "az-categories/&quo…

Bounty: 50

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we’ve noticed that our category URLs will some times include one of our store code’s prepended with “-categories/” to all of our URLs.

Eg. “az-categories/wheel-brake-tire/brake.html” when it should be “wheel-brake-tire/brake.html” where “az” is the store code.

After investigating this further we discovered that any time we save a category the system generates more URLs like this.

It creates these URLs for each Store ID but only adds one Store Code to the URL. All stores will have a URL of “az-categories/wheel-brake-tire/brake.html” One row where store_id = 1, another where store_id = 2 and a third where store_id = 3.

We don’t want this occurring on any of our sites.

We’ve disabled our custom extensions in our local environment and it still occurs. We also tried to prevent this by commenting out the Magento code in vendor/magento/module-catalog-url-rewrite/Model/CataegoryUrlRewriteGenerator.php as a test but it still occurred.

Does anyone know how to resolve this so that the system no longer generates these extra URLS and returns our categories are back to normal?

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #composer #sass Installing fork of the community (SnowDog) Sass Blank Theme "Unable to find deploy strateg…

Bounty: 200

I have installed the

"snowdog/theme-blank-sass": "^0.10.1"

Now I am trying to replace it with our fork, versioned 0.110.1 (just added 100)

  "repositories": [
    {
      "type": "composer",
      "url": "https://repo.magento.com/"
    },
    {
      "type": "vcs",
      "url": "https://github.com/iMi-digital/magento2-theme-blank-sass.git"
    }
  ],

I am getting

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)                  
Package operations: 0 installs, 1 update, 0 removals
  - Updating snowdog/theme-blank-sass (0.10.1 => 0.110.1): Downloading (connectiDownloading (100%)         


  [ErrorException]                                             
  Unable to find deploy strategy for module: no known mapping  

Edit:

Deleting the old module from the vendor folder and

composer require snowdog/theme-blank-sass=dev-imi-develop

worked…

But I can not update the module – I always have to remove the module first via rm -rf vendor/snowdog/theme-blank-sass


Get this bounty!!!