#StackBounty: #magento2.3.4 #server-setup #localhost How to setup Access_Control_Allow_origin & From origin blocked by CORS in Ngin…

Bounty: 100

My main website store URL: test.website.in

Second website store URL : grocery.website.in

Initially, i developed multi-website in the localhost, and its working also but after move to live server main website working but second website store not working.

enter image description here

.htaccess:

SetEnvIf Host grocery.website.in* MAGE_RUN_CODE=grocery
SetEnvIf Host grocery.website.in* MAGE_RUN_TYPE=website

Note : Followed this tutorial still facing issues.


Get this bounty!!!

#StackBounty: #product #programmatically #magento2.3.4 faster way to update attributes/ update product programmtically with stock data …

Bounty: 200

I have this code but Anybody tell me faster way to update products.

This below code takes much time. So any alternative solution for to save product in fast way and Can I also put sleep function at end of the for loop to less consume memory ?
Thank you

  public function updateProducts(){

        foreach($productIds as $productId){
            $objectManager = MagentoFrameworkAppObjectManager::getInstance(); // instance of object manager
            $product = $objectManager->create('MagentoCatalogModelProduct');
            $product->load($productId);
            $product->setSku('my-sku'); // Set your sku here
            $product->setName('Sample Simple Product'); // Name of Product
            $product->setStatus(1); // Status on product enabled/ disabled 1/0
            $product->setWeight(10); // weight of product
            $product->setVisibility(4); 
            $product->setPrice(100); // price of product
            $product->setStockData(
                                    array(
                                        'use_config_manage_stock' => 0,
                                        'manage_stock' => 1,
                                        'is_in_stock' => 1,
                                        'qty' => 14
                                    )
                                );
    $imageUrl = "https://example.com/img1.jpg";
    $tmpDir = $this->getMediaDirTmpDir();
    $newFileName = $tmpDir . baseName($imageUrl);
                        $result = $this->file->read($imageUrl, $newFileName);
                        if ($result) {
                             $_product->addImageToMediaGallery($newFileName,array('small','thumbnail','base'), $imageType, true, false);
                        }
            $product->save();
          unset($product);
        }
}
    protected function getMediaDirTmpDir(){
            return $this->directoryList->getPath(DirectoryList::MEDIA) . DIRECTORY_SEPARATOR . 'tmp';
        }


Get this bounty!!!

#StackBounty: #nginx #magento2.3.4 #multi-website #localhost #centos Magento 2.3 – How to configure Nginx for Multi-Website store on Lo…

Bounty: 50

Steps :-

  1. Main website Path : usr/share/nginx/html/gomart
    • Contains all magento files
    • Configuration in nginx.conf.sample for Multi-Website
    • nginx.conf.sample -> https://justpaste.it/97yki (code)
  2. Multi-Website Path : usr/share/nginx/html/gomart/grocery
    • Created subfolder inside the root folder along with symbollice linksof app, lib, pub, var and copy index.php & .htaccess from root folder to subfolder
  3. Inside the subfolder Symbolic Liks:
  4. Nginx Setup (Not sure right)

Url : http://192.168.1.64:8087/grocery 404 error.


Get this bounty!!!

#StackBounty: #nginx #magento2.3.4 #multi-website #localhost #centos Magento 2.3 – Separate folders for each website store – How to con…

Bounty: 50

Steps :-

  1. Main website Path : usr/share/nginx/html/gomart
    • Contains all magento files
    • Configuration in nginx.conf.sample for Multi-Website
    • nginx.conf.sample -> https://justpaste.it/97yki (code)
  2. Multi-Website Path : usr/share/nginx/html/gomart/grocery
    • Created subfolder inside the root folder along with symbollice linksof app, lib, pub, var and copy index.php & .htaccess from root folder to subfolder
  3. Inside the subfolder Symbolic Liks of (usr/share/nginx/html/gomart/grocery)
  4. Nginx Setup (Not sure right)

Url : http://192.168.1.64:8087/grocery 404 error.


Get this bounty!!!

#StackBounty: #nginx #magento2.3.4 #multi-website #localhost #centos Magento 2.3 – How to setup Nginx for Multi-Website store on Localh…

Bounty: 50

Installed magento 2.3.4 on centos 7 – nginx localhost,

  • Root folder – usr/share/nginx/html/gomart
  • Created subfolder inside the root folder along with symbollice link of app, lib, pub, var and copy index.php & .htaccess from root folder to subfolder index.php, .htaccess [Modified for Multi-Website] – Folder Path – usr/share/nginx/html/gomart/grocery

Second Website (Multi Website) configure by this tutorial

How to setup etc/site-available & etc/nginx/conf.d/mgento.conf for multi-website store?

Current store etc/site-available & etc/nginx/conf.d/mgento.conf configuration.

How to setup multi-website for Nginx in the site-available& mgento.conf?


Get this bounty!!!

#StackBounty: #nginx #magento2.3.4 #multi-website #localhost #centos Magento 2.3 – Setup Multi Website on Centos 7 – Nginx in Localhost

Bounty: 50

Install magento 2.3.4 on centos 7 – nginx localhost,

  • Root folder – usr/share/nginx/html/gomart
  • Created subfolder inside the root folder along with symbollice link of app, lib, pub, var and copy index.php & .htaccess from root folder to subfolder index.php, .htaccess [Modified for Multi-Website] – Folder Path – usr/share/nginx/html/gomart/grocery

Second Website (Multi Website) configure by this tutorial

How to setup etc/site-available & etc/nginx/conf.d/mgento.conf for multi-website store?

Current store etc/site-available & etc/nginx/conf.d/mgento.conf configuration.

How to setup multi-website site-available& mgento.conf?


Get this bounty!!!

#StackBounty: #layout #magento2.3.4 #cms-pages Cms page custom layout update file for multiple pages – Magento 2.3.4

Bounty: 50

In Magento 2.3.4 you can add custom layout update via XML files, using

cms_page_view_selectable_<PAGEIDENTIFIER>_<CUSTOMNAME>.xml

format.

But what if I want to apply this layout update on 20 CMS pages? Do I have to create a separate XML file for each page? Is there any way I can apply a layout update XML file on multiple CMS pages?


Get this bounty!!!

#StackBounty: #magento2 #magento2.3 #magento2.3.4 How to Add tax value in Price filter magento2?

Bounty: 50

I have 100 products and all products have different tax rule and i also do settings from backend to display tax inclusive price display in catalog product list now when i do the price filter its doing filter on normal price and shows the product above the price filter so how can i add tax value in my price filter for better understanding i attach the image.
enter image description here


Get this bounty!!!

#StackBounty: #magento2 #module #magento2.3.4 #carrier #magento-shipping how to control the sort order of shipping method's rates i…

Bounty: 50

I’m trying to build a custom carrier class (shipping method) that display shipping methods based on time/date related third party API , I tried to find out a solution to sort the below options but I failed

has any one faced such an issue ? how do magento sort these options ?

any help is really appreciated
thanks

Shipping carrier - custom class - time related shipping


Get this bounty!!!