texts: Bug Uncaught TypeError: Cannot read property 'lang' of undefined on product page

texts:
I'm using Magento 2.3.2. But I found I have this bug Uncaught TypeError: Cannot read property 'lang' of undefined on the product page.

Do you have any idea why?


texts: Changing the customer's password from adminpanel. Where can I find a method which is responsible for that?

texts:
In Customers/Manage Customers I can select a customer and then in tab "account information" I have a section "Password Management" where I can change a password for selected customer.

I found out that code responsible for those fields is localized in Mage/Adminhtml/Block/Cusomer/Edit/Tab/Account.php and it is ok, but my question is how to find where and which method is calling to change the password after click the save button in administration panel and additionaly how to find where and which method is calling to send an e-mail with new password.


texts: Magento 2.4.2 crashing 2-3 times per day after update

texts:
I need suggestions on how to diagnose this issue.
I'm running two Magento 2 stores on two separate Amazon EC2 Ubuntu 16.04.7 Micro instances. Both were running Magento 2.3.5 successfully for a long time, and I have now updated to 2.4.2 and PHP 7.4.
Since the update, they crash the hole EC2 instances 2-3 times per day. Both of them have the same issue.
Sometimes I can see the CPU spike go up to 100% before the crash.
I'm analysing traffic using GoAccess to see if there are any suspicious bots.
There is not a huge amount of traffic.
3500 hits per day, 95 unique visitors, 18 MB of data.
From crawlers/bots I get
1200 hits per day for 343 unique bots and 20 MB of data is transfered.
I'm using 2 GB of swap (1.5 GB free normally) and 1 GB of RAM (500 MB free during normal use).
They have around 3 GB of disk space which isn't filled up during the crash.
Here are my PHP settings
/etc/php/7.4/cli/php.ini
post_max_size = 128M
memory_limit = 2048M
max_execution_time = 18000
max_input_time = 6000
zlib.output_compression = On
session.gc_maxlifetime = 1440000
display_errors = Off

/etc/php/7.4/fpm/php.ini
max_execution_time = 18000
max_input_time = 6000
memory_limit = 1024M
date.timezone = Europe/Stockholm
session.gc_maxlifetime = 1440000
display_errors = Off

The last entry in the Magento system.log is
13:04: main.INFO: Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp [] []

14.05: EC2 monitoring lose contact with the server
14.11 Nginx stops logging, but mostly HTTP 499. The last log message is someone trying to exploit magmi.ini (Magento 1 bug?)
GET /en/sales/guest/form/magmi/conf/magmi.ini HTTP/1.1" 301

So, what is the most likely issue here?
I'm going to try and set up a Cloud Watch for the RAM as well.


texts: Percentage added to my Magento product does not update on the fly. (Though it reflects on the Check Out Page)

texts:
I am building an online store.

I wanted a functionality like following:

There are more than one custom prices for a product.
Each custom option has a fixed price. These fixed prices from respective custom prices add to the base price.
There is one more(last) custom price: Adding percentage to the final price.

To add the percentage increase to the final price and not the base price, I changed the code on the following file:

app/code/core/Mage/Catalog/Model/Product/Type/Price.php
FILE MODIFIED: Price.php

Line 343, 344

original code:

$finalPrice += $group->getOptionPrice($confItemOption->getValue(), $basePrice);

new code:

$finalPrice += $group->getOptionPrice($confItemOption->getValue(), $finalPrice);

It works perfectly!

The only thing is that the percentage price is added to final price only on check out page and not on the product page itself(i.e. when I select the % addition on product page).

I think it has to be done with JavaScript.


texts: Magento 2 - Payment Method option missing in admin Backend during Checkout

texts:
we had upgraded from Magento 2.3.3 to Magento 2.3.5-p1

All works fine on the frontend, customers can order and select all activated payment methods.

However, when I try to create an order in the backend, instead of the possible payment methods only "Payment Method" is written.

Does anyone have an idea, how to fix this?

As said, payment methods are active as they should be. Clients can order in the Frontend, but in the Backend I can no create any order because of this.

Any help would be much appreciated.

Best regards


texts:
i am using a magento theme and want to change the categories header color.
    is there any custom css code or method to change the same ?

( image attached )


texts: How can I do External API integration in Magento 2

texts:
I want to integrate an external API with Magento 2, The API has given the code for PHP as:
    <?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2($apiUrl);
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Key' => 'key',
    'UserName' => 'UserName',
    'Token' => 'Access token'
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>


texts: Removing Country and RegionID from Estimates and Tax

texts:
I am working on the checkout a lot currently, but I cannot figure out how to exclude Country and Postal code from the Estimate Shipping and Tax.

There are a lot of other suggestions and solutions like this one:

Magento 2 remove "Estimate shipping costs and tax" from cart

These solutions are unsatisfying though. The delivery cost within our country of service will be the same everywhere. This fix excludes the Shipping cost from the totals calculation and I think customers want to see the total cost of their order before they checkout.

I found out that if you leave shopping-estimation.html completely empty it will do exactly what I want, however I find this fix to be very dirty and it will only work when I leave it empty within the vendor/magento/module-checkout/view/frontend/web/template/cart
directory.

I believe I need to overwrite the file that calls shopping-estimation.html, however I am unable to locate it. I know it has to be within the module-checkout directory.

Here is shipping-estimation.html from vendor/magento/module-checkout/view/frontend/web/template/cart

<form method="post" id="shipping-zip-form">
    <fieldset class="fieldset estimate">
        <legend class="legend">

        </legend>

    </fieldset>
</form>


texts: Magento 2 - How to solve Two-Factor Authorization Error in Admin Area

texts: After putting my Id and Password in Magento 2.4.1 then I found this error at admin login, seems like it is related to two step Authentication, Please tell me the steps to follow to resolve this error.  I am attaching the screenshot of this error -


texts: Order Total and Order Item issue when creating order magento 2

texts:
I am using the following to create an order in magento 2. Basically I have to shift data from a custom made eCommerce site to magento 2.

protected function createRealOrder($singleOrder, $tempOrder, $customer)
{
    try
    {
        $store = $this->_storeManager->getStore($customer->getStoreId());
        $this->_storeManager->setCurrentStore($store);

        $quote = $this->_quote->create();
        $quote->removeAllItems();
        $quote->setStoreId($customer->getStoreId());
        $customerMain = $this->_customerRepository->getById($customer->getEntityId());
        $quote->setCurrency();
        $this->_cartRepositoryInterface->save($quote);
        $quote->assignCustomer($customerMain);

        //add items in quote
        if ($singleOrder['details'])
        {
            foreach ($singleOrder['details'] as $singleProduct)
            {

                $product = $this->getProductDetails($singleProduct);
                $quoteItem = $this->_quoteItem->create();
                $quoteItem->setQty($singleProduct['total_items']);
                $quoteItem->setPrice($singleProduct['unit_price']);
                $quoteItem->setAdditionalData(json_encode(array('category_id' => 491)));
                $quoteItem->setQuote($quote);
                $quoteItem->setProduct($product);
                $quote->addItem($quoteItem);
            }
        }

        // Collect Rates and Set Shipping & Payment Method

        $shippingAddress = $quote->getShippingAddress();
        $shippingAddress->setCollectShippingRates(true)
                ->collectShippingRates()
                ->setShippingMethod('freeshipping_freeshipping'); //shipping method
        $quote->setPaymentMethod('cashondelivery'); //payment method
        $quote->setInventoryProcessed(false); //not effetc inventory
        // Set Sales Order Payment
        $quote->getPayment()->importData(['method' => 'cashondelivery']);

        $this->_cartRepositoryInterface->save($quote);
        $quote->collectTotals();
        // Create Order From Quote
        $quote = $this->_cartRepositoryInterface->get($quote->getId());
        $order = $this->_cartManagementInterface->submit($quote);

        $order->setEmailSent(0);

    } catch (\Exception $e)
    {
        echo '
 ' . $e->getCode();
        echo '
 ' . $e->getFile();
        echo '
 ' . $e->getLine();
        echo '
 ' . $e->getMessage();
    }
}

This does create an order for the assigned customer in the specified store.
Issue comes in the order totals. I get 0 original price for all the order items.

I did check the quote and quote_item database, they are alright, and everything gets calculated fine but when it translates into an order, all the totals are gone from sales_order and sales_order_item


texts: Add product to different website using rest API in magento 2

texts: I want to add product to different website in magento 2 using rest api. I am able to add product to the store but I am not getting any information as how to add product to different websites inside magento.


texts: Magento Configurable Product Import With Simple Products

texts:
I have a problem with Magento 1.9 built in import/export tool.
What I have done is:

1) I created attributes (4 of them).

2) Created attribute set.

3) Created configurable product and added some simple products to that
    configurable product.

4) Exported this product using Data Flow Profiles leaving all settings at default.

5) Modified the export file by adding multiple extra options and saved it as MS-DOS csv file.

6) Imported using Data Flow Profiles Import all products option again leaving everything at default except I have changed import number of rows value to a bigger value.

After a close examination I see that new simple products have been added to Magento store, but they are not associated with my configurable product.
I have tried to move the line that imports the configurable product to the bottom of the csv file, but that did not help.

Has anyone else come across this problem and how did you tackle it?


texts: How to determine refund type while issuing credit memo ? (Magento 2)

texts:
i am implementing an functionality where i need to determine refund type while issuing credit memo so based on that i can send different email template to customers.
I have checked in Magento\Sales\Model\Order\Email\Sender\CreditmemoSender;
send() but i am not getting refund type in it.
Is their any way we can determine that ?
Thankyou


texts: How to display Grouped product without using image and other details..?

texts: I have one Bazaar store to develop in Magento. I have created grouped product, with simple product. As per requirement I want to display only Product name and list of product(Which I added in grouped product), Other details like image,and tags,etc don't want to display. For this What things I need to do. Which file I need to override or need to create a new module or need to implement any other technique. Please suggest me what way I follow.


texts: Error when running full text search in Magento 1.9.3.0

texts:
I was installing some e-commerce tagging for a customer (cart.phtml and view.phtml) and after doing some regression testing it was found that the full-text search function was not working. This function was not tested prior to work commencing so it is not clear whether I can rule out my changes at this time.

The error that is being reported is:

  Fatal error: Call to undefined method
  Mage_CatalogSearch_Model_Resource_Fulltext::getFoundData()
  in app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext/Collection.php on line 148

I definitely didn't touch this script at all, but one thing I didn't do was a test if the search was working in the first place.  The relevant source code from this script is:

public function getFoundIds()
    {
        if (is_null($this->_foundData)) {
            /** @var Mage_CatalogSearch_Model_Fulltext $preparedResult */
            $preparedResult = Mage::getSingleton('catalogsearch/fulltext');
            $preparedResult->prepareResult();
            $this->_foundData = $preparedResult->getResource()->getFoundData();
        }
        if (isset($this->_orders[self::RELEVANCE_ORDER_NAME])) {
            $this->_resortFoundDataByRelevance();
        }
        return array_keys($this->_foundData);
    }

Searching for errors relating to this class and getFoundData() have not been fruitful.

This does not appear to be the same issue as Magento 1.9.3: every product is displayed in the search in full text mode as I am not seeing any search results.


texts: Product Tax based on an attribute value, but not for all products, not a FPT and cannot done via Table Rates

texts:
I implementing a car parts store using Magento CE and I am having a problem with getting tax to work.. ----High Level Scenario---- My country is Sri Lanka and this how the tax system for vehicle products work. Say the customer ordered a starter motor and then as highlighted below it will fall under HS Code 8511 and a tax of 4% of product will be applied.

-----------Category------------------------------HS CODE------------------Tax %----

1.Body and main parts------------------------8708.99.90-----------------2%

1.1 Doors

1.2 Windows

2 Electrical and electronics

2.1 Audio/video devices----------------------8519 -------------------------2.5%

2.2 Charging system

2.3 Electrical supply system

2.4 Gauges and meters

2.5 Ignition system----------------------------8511---------------------------1%

2.6 Lighting and signaling system--------8512.3------------------------ 0.5%

2.7 Sensors

2.8 Starting system---------------------------8511------------------------------4%

2.9 Switches-----------------------------------8536

Now my need it to calculate the tax by looking at the HS Code. I do not care how this happens either way using a table rates as shipping price I just want the customer to see the whole amount that have have to bear.

What I have already tried is using a Fixed Product Tax attribute for each product. I can put the relevant Tax for that product. But where I am getting stuck is that the Government only change the HS Code category tax percentage only.They say This HS Code category is increased by 2%. So I will have to iterate through the complete product list to

1)first, find which HS Code category a certain product belong to

2)Then update the change amount

My product list will have like many thousand products. So I guess this is going to be very hard.

I need a way,,,,,in the final process of checkout that checks for the HS Code of the product and apply the necessary tax rate and show the customer the final bill....I am fine with putting HS Code as a product attribute. I think I need to write some database acccess coding for this.

I just need need to show the customer how much he has to pay ultimately. Any help would be strongly appreciated....

Thank you so much people.


texts:
i just started using magento co and installed the latest version in my local machine. But something is wrong with it, i view  the front-End of the store but when i try to login in Admin Panel, it doesnt go to the dashboard, and doesnt even give me a response. So i went to check in my console network and i notice a "302 Found". (using chrome)

The strangest thing is when i use for example the firefox browser,i cant even view the admin login page, it gives me redirections problems.

I dont understand what is wrong, doest someone have a similar situation?

Configuration and details:

Site url: magendo.development

Site url admin: magendo.development/admin

Magento ver 2.0.5 Vanilla Instalation

PHP 5.6.3 Apache 2.4

Local Host;

Windows 10

VHost Configuration:

<VirtualHost *:80>

    Define MAGENTO_ROOT "c:/development/magento"

    DocumentRoot ${MAGENTO_ROOT}

    ServerName magendo.development

    RewriteEngine On
    #LogLevel alert rewrite:trace8

    <Directory ${MAGENTO_ROOT}>
        AllowOverride all
        Allow from all
        Require all granted
   </Directory>

</VirtualHost>


texts:
My website has been migrated to a new server in the same hosting for reasons of optimization, after it, appear this issue when I'm trying to enter in any page of Magento

  Autoload error

  Passed array does not specify an existing static method (class
  'Facebook_Autoload' not found)

I cannot use any command of Magento at the ssh console for the same reason, everywhere shows that issue

The only command related to Magento that I can use is a composer

How can I solve this being that specification the only info that shows me (Without any extension or any line of code)?

My PHP Version is 7.3

(Before migration everything works okay)

Thank you.


texts: Deploy Magento 2 website on Staging server and Composer

texts:
I installed Magento 2 locally using Composer
I use Git to track my code
I need to deploy my local Magento 2 site to a staging server (shared
hosting)

1) For what do I need Composer anyway on Staging server? Is this to get the vendors once only on the Staging server? Why shouldn't I do this via ssh on the server with php composer.phar install ?

2) I need Composer on the Staging server only 1 time for the installation isn't it? The site isn't getting 100 visitors per hour and are symlinks working on shared hosting?


texts: Multiples tables search_tmp and transit_catalog_product_index_eav_temp

texts:
Multiple tables   search_tmp_xxxxx and transit_catalog_product_index_eav_temp  have appeared in my magento, what could it be due to?
What should I do to solve it?
Thanks.


texts: Magento2.3 Cart page registration form add in new popup

texts:
I have enable guest checkout. So when a customer clicks on the checkout button in the cart page then a popup opens, like seen in the screenshot below:

My goal is to add a click event listener to the "Create Account" button, to show a container which contains the user account registration form, if the button is clicked, instead of redirecting to the registration site.
How can achieve that?
Any help is appreciated.
Thanks.


texts:
I am writing an extension for a new payment gateway. In payment controller for a validation purpose I am inspecting is there any products in cart, if not redirecting to cart. Code as below

<?php
     // other code goes here
     if(!$order->getId()){
         $this->_redirect('checkout/cart');
     }
     // other code goes here
?>

But it is not redirecting to cart. Can anyone suggest?


texts: How to show warranty expiration date in Sales Order View Page

texts:
I am looking for a way to hook into one of the Magento events that define Order creation Date. I would like to add a counter next to it that shows how many days/weeks/months ago the order was placed.

The reason is some items have extended warranties while others do not so if I could simply calculate the date then customer service could quickly establish whether the item is still covered by the warranty.

I am not sure how I should go about doing this. If anyone would like to lend a hand I would be very grateful for the help...

Thanks in advance!


texts:
I wrote a program. It is my first program to access to the API when I am done and compiled it, it says the following error in

  Error 1   Cannot implicitly convert type
  'SOAPTesting.ServiceReference2.salesOrderListEntity[]' to
  'SOAPTesting.ServiceReference2.salesOrderEntity[]'    G:\VISUAL STUDIO
  2013 PROJECT
  WORKSPACE\HarshiniPROJECT\SOAPTesting\SOAPTesting\Program.cs  29  38  SOAPTesting

So how to fix this error here is my program,

static void Main(string[] args)
    {
        Mage_Api_Model_Server_V2_HandlerPortTypeClient mservice = new Mage_Api_Model_Server_V2_HandlerPortTypeClient();
        string mlogin = mservice.login("dileepa", "takastakas");

        Debug.WriteLine(mlogin);
        filters mf = new filters();
        complexFilter[] cpf = new complexFilter[1];
        complexFilter mcpf = new complexFilter();
        mcpf.key = "increment_id";
        associativeEntity mas = new associativeEntity();
        mas.key = "gt";
        mas.value = "1008001";
        mcpf.value = mas;
        cpf[0] = mcpf;
        mf.complex_filter = cpf;
        salesOrderEntity[] soe = mservice.salesOrderList(mlogin, mf);
        if (soe.Length > 0)
        {

            foreach (salesOrderEntity msoe in soe)
            {
                try
                {
                    Debug.WriteLine("" + msoe.billing_firstname + " " + msoe.subtotal);
                }
                catch (Exception merror)
                {
                  Console.WriteLine("" + msoe.order_id + "" + merror.ToString());
                }
            }
        }

        Console.ReadLine();

    }


texts:
Tried to install a store locator extension.

When go to the front end producing this error.

  1 exception(s):
  Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is not expected. Expected is one of ( title, css, link, meta, script, remove, attribute ).
  Line: 708

  Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is not expected. Expected is one of ( title, css, link, meta, script, remove, attribute ).
  Line: 708

  0 D:\xampp\htdocs\tork\vendor\magento\framework\Config\Dom.php(115): Magento\Framework\Config\Dom->_initDom('

  1D:\xampp\htdocs\tork\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('

How can i fix this issue?.
Magento version 2.2.2


texts: Get subcategories of parent category when FLAT categories enabled

texts:
I override a block class Mage_Catalog_Block_Navigation (link to signature) to create a custom menu which displays only subcategories of current category.
Inside method renderCategoriesMenuHtml (link to signature) I'm trying to get child categories of selected parent category. So I replaced default code:
foreach ($this->getStoreCategories() as $child) {
    //...
}

with the following:
/**
 * @param $parent ID of category from which we start
 * @param $recursionLevel How many levels of subcategories retrieve
 * getCategories(...) is a method from model Mage_Catalog_Model_Category
 */
$category = Mage::getModel('catalog/category');
$storeCategories = $category->getCategories($parent, $recursionLevel);
foreach ($storeCategories as $child) {
    //...
}

This code works perfectly fine and returns subcategories of selected parent, but as soon as I enable the "Flat Catalog Category" the $parent variable seems to be completely ignored and that code returns all top-level categories, instead of subcategories of category with ID $parent.
What do I do wrong? Shouldn't getCategories method work the same even when flat categories are enabled?
EDIT:
My real question is

Why method getCategories from model Mage_Catalog_Model_Category
ignors parameters $parent and $recursionLevel when flat
categories are enabled? (see source of the method below)
Are there more methods which works different with flat catalog? How
can I recognize them to avoid problems in the future?

I call it like this inside method renderCategoriesMenuHtml:
$parent = 13;
$recursionLevel = 2;
$category = Mage::getModel('catalog/category');
$storeCategories = $category->getCategories($parent, $recursionLevel);

With non-flat categories this code returns subcategories (2 levels as specified in $recursionLevel) of the category with ID 13.
But with flat categories enabled I get all top-level categories with all subcategories (limited with value of admin settings 'catalog/navigation/max_depth', not by $recursionLevel).
Method in model Mage_Catalog_Model_Category:
public function getCategories($parent, $recursionLevel = 0, $sorted=false, $asCollection=false, $toLoad=true)
{
    $categories = $this->getResource()
        ->getCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
    return $categories;
}

calls method in resource model Mage_Catalog_Model_Resource_Category:
public function getCategories($parent, $recursionLevel = 0, $sorted = false, $asCollection = false, $toLoad = true)
{
    $tree = Mage::getResourceModel('catalog/category_tree');
    /* @var $tree Mage_Catalog_Model_Resource_Category_Tree */
    $nodes = $tree->loadNode($parent)
        ->loadChildren($recursionLevel)
        ->getChildren();

    $tree->addCollectionData(null, $sorted, $parent, $toLoad, true);

    if ($asCollection) {
        return $tree->getCollection();
    }
    return $nodes;
}


texts:
i create field product ulr and create button in my custom module in magento2 admin now i want if we write producturl in the text box and presss button its redirect to the url how i do that.

$fieldset->addField(
    'product_url', 'text', [
    'name' => 'product_url',
    'label' => __('Product Url'),
    'title' => __('Product Url'),
    'required' => true,
    'disabled' => $isElementDisabled
        ]
);
    $fieldset->addField('registered', 'button', array(
    'label' => __('Test url'),

    'name'  => 'registered',
    'class' => 'form-button',
    'onclick' => "setLocation('{$this->getUrl('*/*/registeremail')}')",
));


texts: How to clear cart cache on Browser close in magento

texts:
I am on project in which client needs to clear cart cache, means empty all cart on browser close.

Is there any event that detects browser close. or can it be done by javascript.

Please give advice.


texts: How to translate message.text in magento 2

texts:
i want translate " The requested qty exceeds the maximum qty allowed in shopping cart ". I think it's in the template but when I find it, it's here

app\design\frontend\Mgs\dukaken\Magento_Theme\templates\messages.phtml

How to translate it and other things in it, please help me. Thanks all

UPDATE

I want translate " Box not available. "

I added to csv like this, it not translate

"Box not available.","Box nicht verfügbar.",module,Magento_Checkout
"not available.","nicht verfügbar.",module,Magento_Checkout
"Box not available.","Box nicht verfügbar.",module,Magento_GiftRegistry
"not available.","nicht verfügbar.",module,Magento_GiftRegistry
"Box not available.","Box nicht verfügbar.",module,Magento_Bundle
"not available.","nicht verfügbar.",module,Magento_Bundle


texts: When we need to use product and current_product from Registry?

texts:
In Magento2, if we want the current category detail then we can retrieve it from Registry as below:

  $currentCategory = $this->_registry->registry('current_category');

For Getting current product detail, then we can retrieve it from Registry as below:

  $currentProduct = $this->_registry->registry('product');

OR

  $currentProduct = $this->_registry->registry('current_product');

So which one we should use or which one that Magento recommends for getting Current Product? why?

Thanks...


texts:
I use magento 1.9.3.7 with memcached, apc, Lesti FPC and CreareSEO and other but I think only this plugin can do it.
Site work without any changes and editing but sometimes yandex robot find NOINDEX tag on category page.
Today I see it on one category page myself (other pages work correctly)

`<meta name="robots" content="NOINDEX,FOLLOW"/>`

after just rebuild cache I have

`<meta name="robots" content="INDEX,FOLLOW"/>`

nothing more changes..
Where I can find this problem? Have you any idea?


texts: how to understand the magento 2 any module work flow and architecture

texts: I need to understand any module workflow and architecture in magento2. what are steps involved in this process. which file is entry point? I think it is basic question but I must to know the work flow of modules.


texts: Magento 2 - Self referring canonical for custom page

texts:
How do i add a self referring canonical to a custom page layout manufacturerers_index_index ?

The above wont work because the url could be one of many i.e. the layout is inherited by multiple different pages i.e. WWW.ABC.com/manufacturer1, WWW.ABC.com/manufacturer2 etc

Or is there a simple way to add the canonical to all pages and override the canonical setting in configuration > catalog > SEO settings ?


texts: How to convert one step checkout to multistep checkout in magento

texts:
I want to convert one step to multi-step on the checkout page in one-page checkout.

It's working on step form on the same page.

Needs to convert multistep to different pages on the checkout page.

How to do this.


texts: Can someone help me in guiding available API's or any suitable extension for shipping address verification in magento 2 commerce website.


texts: Magento System Configuration setting not load whole page

texts:
Im facing one critical issue.

I Install One Extension. its work perfactly in frontend.

but when i open configuration of that extension its load only 2 config section not whole page. as well as footer also not display.

system.xml file is of 29000 line long.

and no any error dipsplay . also i check var/log

is there is any limitation in system.xml file????


texts: Magento migration error 1.9.3.7 to 2.2.3

texts:
[ERROR]: Class accesscontrol/entity_attribute_backend_customergroups does not exist but mentioned in: eav_attribute.backend_model for attribute_id=198

I have added this to class-map.xml under folder 1.9.3.7

...
<classmap xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="../class-map.xsd">
    <rename>
        <from>accesscontrol/entity_attribute_backend_customergroups</from>
    <to />
    </rename
...

But the error continues

I am running:

php70 bin/magento migrate:data -r -a ~/m2/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.7/config.xml


texts: Unable to change/resize the logo from Magento admin after installing a custom theme

texts:
I'm unable to change/resize the logo from Magento admin after installing a custom theme. I was finally able to change the logo by putting the .jpg file in pub/media/logo/, but facing issues in resizing the logo(175px  * 45p*). I changed/added logo dimensions in
/app/design/frontend///layout/default.xml but even that is not working.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_file" xsi:type="string">images/logo.png</argument>
                <argument name="logo_img_width" xsi:type="number">417</argument>
                <argument name="logo_img_height" xsi:type="number">195</argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

Also I'm not able to disable demo store notice from magento admin.

Any workaround for this?


texts: Add Shipping or Handling Fee if Residential Address

texts:
Quick question.

I need to be able to add a shipping/handling fee if the address is residential.

I am using Magento 2.3 Open Source and have Matrix Rates for shipping.

Perhaps it could see if someone fills out the company field on checkout?

Any solutions or advice would be most welcome.

Many thanks


texts:
I have an extension which saves some data into session when user makes any of the following action:

-adds/remove product to cart or change qty-apply coupon code-login

For this I created different observers, this is just one of them:

        <checkout_cart_product_add_after>
            <observers>
                <save_data_into_session>
                    <type>singleton</type>
                    <class>company_modulname/observer</class>
                    <method>saveData</method>
                </save_data_into_session>
            </observers>
        </checkout_cart_product_add_after>

I don't need anything else, I just need to store value to session or cookie.

Problem:

The problem is about cache. I created observer for each action (checkout_cart_product_add_after,checkout_cart_save_after, ...). Some cache extensions caches also logged in user. It will cache everything except block that is required to display user cart. But this means Magento still needs to go through some models I guess.

My question is: Let's say I define observer inside config.xml and cache module caches my block, but it goes through Magento core models required to display cart inside header. Will Magento go through my observer model or not?


texts: Magento 2 : How to hide add product button from admin panel

texts:
How I can hide add product button from admin panel?

see image below for more clarification.


texts: Magento 2 After Upgrade Category Save Then Data Show Blank

texts:
I am perform upgrade from magento 2.2.1 to magento 2.4.0,but now issue come that when we save category it save successfully but category show blank all category fields show blank.
Here is a screenshot :


texts: Magento 2 print phtml product collection

texts:
When I try to get product list in a controller for a ajax module like this :
echo $this->layoutFactory->create()
            ->createBlock('\Magento\Catalog\Block\Product\ListProduct')
            ->setCollection($productCollection)
            ->setTemplate('Magento_Catalog::product/list.phtml')
            ->toHtml();

I have this error :
Fatal error: Uncaught Error:
Call to a member function setData() on bool in /var/www/magento2/vendor/magento/module-catalog/Block/Product/ListProduct.php:419 Stack trace:
#0 /var/www/magento2/vendor/magento/module-catalog/Block/Product/ListProduct.php(391): Magento\Catalog\Block\Product\ListProduct->getPriceRender()
#1 /var/www/magento2/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor.php(180): Magento\Catalog\Block\Product\ListProduct->getProductPrice(Object(Magento\Catalog\Model\Product\Interceptor))
#2 /var/www/magento2/app/design/frontend/Vital/vital/Magento_Catalog/templates/product/list.phtml(121): Magento\Catalog\Block\Product\ListProduct\Interceptor->getProductPrice(Object(Magento\Catalog\Model\Product\Interceptor))
#3 /var/www/magento2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/magent...')
#4 /var/www/magento2/vendor/magento/module-developer/Model/TemplateEngine/Decorator/DebugHints.php(46): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catal in /var/www/magento2/vendor/magento/module-catalog/Block/Product/ListProduct.php on line 419

Does anyone know where the problem is coming from and how to solve it?
Thanks


texts: How to create/update bulk of products at a time programmatically

texts:
In the following code I have written to create a single simple product at a time, but I want to make a bulk creation of products at a time, can anyone help me in doing this?

Mage::app('default')->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
        $product = Mage::getModel('catalog/product');
        $product->setAttributeSetId($attributeSetId);//ID of a attribute set named 'default'
        $product->setTypeId('simple');  //product type
        $product->setWebsiteIds(array(1));
        $product->setSku($itemjson->getSku($i)); //SKU
        $product->setName($itemjson->getName($i)); //product name
        $product->setWeight($itemjson->getWeight($i));
        $product->setUpdatedAt(strtotime('now'));
        $product->setStatus(1);//product status (1 - enabled, 2 - disabled)
        $product->setTaxClassId(4); //tax class (0 - none, 1 - default, 2 - taxable, 4 - shipping)
        $product->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH); //catalog and search visibility
        $product->setPrice($price); //price in form 11.22
        $product->setDescription($itemjson->getDesc($i));
        $product->setShortDescription($itemjson->getShortDesc($i)) ;
        $product->setStockData(array(
               'use_config_manage_stock' => 0, //'Use config settings' checkbox
               'manage_stock'=>1, //manage stock
               'min_sale_qty'=>1, //Minimum Qty Allowed in Shopping Cart
               'max_sale_qty'=>1000, //Maximum Qty Allowed in Shopping Cart
               'is_in_stock' => 1, //Stock Availability
               'qty' => $itemjson->getStock($i), //qty
                )
            );
        $catArray=$itemjson->getSimpleCat($i);
        $catKeys=array_keys($catArray);
        $product = self::manageAttr($product,$catArray);
        $product->setCategoryIds($categories);
        $product->save();


texts:
I have install an extension, it totally kill my magento, which stay on 503 error. I have try to clean cache, delete maintenance.flag and use ssh to uninstall the extension, but it's still in 503, so I would try to backup my Magento.

I have, in /var/www/magento.xxx.com/var/backup a 1407765060_snapshot.tgz, taking ~155Mo, how can I use it, with ssh lines, to perform backup ?


texts:
I am trying to get a level 2 category list. I got all level 2 categories but I am also getting 2 unknown categories which are not in backend. This is weird.
Here is my code

public function getShopCategories()
{
    $objectManagerr = \Magento\Framework\App\ObjectManager::getInstance();
    $categoryFactory = $objectManagerr->create('Magento\Catalog\Model\ResourceModel\Category\CollectionFactory');

    $categories = $categoryFactory->create()
                    ->addAttributeToSelect('*')
                    ->addAttributeToFilter('is_active', 1) //only active categories
                    ->addAttributeToFilter('include_in_menu', 1)
                    ->addAttributeToFilter('level', array('eq'=>2));

    return $categories;
}

I reindexed and checked for different store views but not getting these categories.


texts: Magento 2 : Error "TypeError: Return value of Magento\Framework\Filter\DirectiveProcessor\TemplateDirective::process() must be of the type string"

texts:
I am facing "TypeError: Return value of Magento\Framework\Filter\DirectiveProcessor\TemplateDirective::process() must be of the type string" error while sending sales email like (order confirmation,credit memo. shipment) etc
Here are some details
Magento/2.4 (Enterprise)

PHP 7.3.27-9+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb 23 2021 15:10:08) ( NTS )

Please share your thoughts on this how to fix it ?


texts: Magento 2.4.2 - Strange problem with JS path in a multistore environment

texts:
I have a really strange problem.
We load a JS file in before.body.end in a multistore setup, like this:
\app\design\frontend\Vendor\Theme\Magento_Theme\layout\default.xml
    <referenceContainer name="before.body.end">
        <block class="Magento\Framework\View\Element\Template" template="Magento_Theme::js/js.phtml" name="module_js"/>
    </referenceContainer>

\app\design\frontend\Vendor\Theme\Magento_Theme\templates\js\js.phtml
<script type="text/javascript" defer="defer">
require(['jquery', 'fancybox', 'domReady!'],
    function($, fancybox, doc) {
        jQuery.noConflict();
        var fancyboxExample = {
            openModal: function() {
                $.fancybox.open(this.$modal);
            },
            closeModal: function() {
                $.fancybox.close(true);
            }
        };
    });
</script>

This works perfect, but for some store views, the path is wrong when checking the console:
*Error message in web browser console:
Failed to load resource: the server responded with a status of 404 ()*

The path to the JS file gets duplicated with js/jquery.fancybox.min for some stores:
/static/version1620396352/frontend/Vendor/Theme/sv_SE/js/jquery.fancybox.min/js/jquery.fancybox.min.js
All store views are sharing the same parent theme, where this JS include is being made. We use versioning and version1620396352 is working as expected. If we remove js/jquery.fancybox.min/js from the path above in the browser, the script is loaded correctly.
Update #1
Content in \app\design\frontend\Vendor\Theme\requirejs-config.js
var config = {
paths: {
    'fancybox':'js/jquery.fancybox.min'
},
shim: {
    'fancybox': {
        deps: ['jquery'] //gives your parent dependencies name here
    }
}
};

Update #2
Error in var/log/debug.log
[2021-05-18 12:17:19] main.ERROR: Unable to resolve the source file for 'frontend/Vendor/Theme/sv_SE/js/jquery.fancybox.min/js/jquery.fancybox.min.js' [] []
[2021-05-18 12:17:19] main.CRITICAL: Unable to resolve the source file for 'frontend/Vendor/Theme/sv_SE/js/jquery.fancybox.min/js/jquery.fancybox.min.js' [] []

I would really appreciate is someone could be kind and shed some light on this.
Thank you


texts: How can I preview changes to design or to blocks?

texts:
lets say i add new blocks to the home page. or change some other things. how can I let other people preview it before releasing? any extension or is it built in?

thanks much


texts: How to programmatically add a customizable Option in magento2?

texts:
i have a product with custom options (the fields are not required).
When the customer has put the product in the cart he should have the possibility to set the custom options for the product in the cart.

Following solution helps me to make this possible:
How to programmatically set a customizable Option in magento2?

I have only one problem:
If the user has not selected an option on the product view, the solution of   @skymeissner does not work.
I can set the option for the quote item but it got not saved.

have somebody any solution for this problem ?

UPDATE:
I found out that it is required to save the itemoptions.

$item->saveItemOptions();

This must be placed after setting the option VALUE.
But this does not work, cause the option "option_ids" got not saved.
If I execute the code again, than it works like expected.
Then I can change the value und every time I change it, it works like expected. Only the first time it doesn't work.

If you set it after "options_ids". The system will exit with following exception:

  Fatal error: Uncaught Error: Call to a member function getValue() on null in /vendor/magento/module-catalog/Model/Product/Type/AbstractType.php on line 822.

This error occurs because the option "option_*" (the option value) got not saved.

Somebody any ideas ?


texts:
magento 1.9.2.3 admin login not working
http://127.0.0.1/xxxxxxxxx/index.php/admin/index/index/key/0be5e3803ecd74044d4e1ac161ad3226/

project run on server fine but locahost not working


texts: Anyone know the soap calls needed to create an order

texts:
I'm trying to insert an order via the soap calls.  I can't figure out what calls would be needed to create and tie off an order, start to finish.

I'm not doing this in php, but if I have all the calls listed in the wsdl, then I could figure out what they're really called..

I just really need the names of the standard calls.


texts: How would I add a custom attribute to an Order in Magento. It seems clear for Product and Customer, but I can't find any info for adding extra attributes to orders.


texts:
I'm trying to find how to remove the qty box on the individual product options in bundles.

User doesn't have permission to edit the qty in these box and I want to remove them for a cleaner look.

Thanks!


texts: I can't tell all clients to clear their browser cache!

texts: recently we have changed few files js/CSS/phtml files on our site as we tested them we experienced strange thing in incognito mode the new CSS and js is working fine but if we switched to normal mode it loads the old files. The issue was a browser cache as we cleared browser cache everything worked as well. But the problem is that we can't tell our every client to clear their browser cache. Is there any Solution!?


texts: How to display products by categories in different different pages in magento?

texts:
I am trying to display products by categories in different different pages. eg.

Shoes

Relaxo
Adidas
XYZ

Here, I want to show  all shoes of relaxo in one page and all shoes of adidas in another page and all shoes of xyz in third page. But as I am trying
in relaxo cms page i write...

{{block type="core/template"name="parts.search" as="partsSearch" template="catalogsearch/form.mini.phtml"}}

In its design layout update XML i write...

<reference name="content">

<block type="catalog/product_list" name="product_list" template="catalog/product/list_new.phtml">

<action method="setCategoryId"><category_id>3</category_id></action>

<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">

<block type="page/html_pager" name="product_list_toolbar_pager"/>

</block>

<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>

</block>

</reference>

It shows relaxo shoes in frontend.

But When I try same method for adidas and XYZ shoes it doesn't display there list view.

How to Solve this problem? Please help.


texts: HELP - How to convert Default SOAP-v2 API Magento Objects into XML Values?

texts:
In Magento1.9 - product collection by default return values as Magento Objects using soap v2, how can i change into XML,

<?php
ini_set('display_errors','On');
$proxy = new SoapClient('abc.com/api/v2_soap/?wsdl', array('trace' => 1));
$sessionId = $proxy->login((object)array('username' => 'abc', 'apiKey' => 'abc123'));
$result = $proxy->catalogProductInfo((object)array('sessionId' => $sessionId->result, 'productId' => '9700'));
var_dump($result->result);
?>


texts:
So I just started using Magento 1.9 and playing around with custom attributes.

Is it possible to display the value of a custom attribute on the homepage? When doing some googling around, I only find things about the product view, but this is not what I'm after.

What I did was through the cms created a new attribute called Button text. After this, I opened up the .phtml file of the homepage and added the following php line:

echo $_product->getAttributeText('button_text');

Refreshed the browser, cleared Magento cache: the value isn't shown.
I think I'm missing something small here, but not sure exactly what.

Any ideas?


texts: How to override name.phtml for order invoice view in admin panel : Magento 2

texts:
I am trying to override vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml to add some custom value under sku.
I created a module (it is installed properly).
In this I have created sales_order_invoice_view.xml at app/code/Custom/Sales/view/adminhtml/layout/sales_order_invoice_view.xml. In this I wrote:

 <?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <referenceContainer name="left">
        <referenceBlock name="invoice_items">
            <block class="Custom\Sales\Block\Adminhtml\Items\Column\Name\Seller" name="column_name" template="Custom_Sales::items/column/name.phtml" group="column"/>
        </referenceBlock>
    </referenceContainer>

</page>

Next I created app/code/Custom/Sales/view/adminhtml/templates/items/column/name.phtml. In this I just copied code from original file and added a text like:

<?php if ($_item = $block->getItem()): ?>
<div id="order_item_<?= /* @escapeNotVerified */ $_item->getId() ?>_title"
class="product-title">
<?= $block->escapeHtml($_item->getName()) ?>

<?= /* @escapeNotVerified */ __('SKU') ?>: <?= implode('
', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?>

CUSTOM TEXT: asdfasdf;

<?php if ($block->getOrderOptions()): ?>

<?php foreach ($block->getOrderOptions() as $_option): ?>

<?= /* @escapeNotVerified */ $_option['label'] ?>:

<?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
<?= /* @escapeNotVerified */ $block->getCustomizedOptionValue($_option) ?>
<?php else: ?>
<?php $_option = $block->getFormattedOption($_option['value']); ?>
<?= /* @escapeNotVerified */ $_option['value'] ?><?php if(isset($_option['remainder']) && $_option['remainder']): ?><span id="<?= /* @escapeNotVerified */ $_dots = 'dots' . uniqid() ?>"> ...<span id="<?= /* @escapeNotVerified */ $_id = 'id' . uniqid() ?>"><?= /* @escapeNotVerified */ $_option['remainder'] ?>

 <?php endif; ?>
 <?php endif; ?>

 <?php endforeach; ?>

 <?php endif; ?>
 <?= $block->escapeHtml($_item->getDescription()) ?>

Please Some one tell me what mistake I have done here ?


texts: Errant "]>" appears at top of store page after installing GTspeed

texts:
I have a really annoying issue.  GTspeed normally works fine, but of course tonight it decided to act up.  After installing and enabling all of the minification settings (css combining and minifying, javascript minifying, expires headers) I noticed at the top of the page this appears:

]>

That's it.  I looked into a couple posts, but I'm not getting any results.  When I turn off GTspeed's optimizations, the website goes back to bare bones display, no style sheets.

Using grep, I've found the offending string in the cache.

var/cache/mage--e/mage---0b0_LAYOUT_FRONTEND_STORE1_RWD_DEFAULT: <if> (lte IE 8) &amp; (!IEMobile)</if>

This matches the issue in the generated HTML source:

<!--[if <!--[if (gte IE 9) | (IEMobile)]><!-->]>

The end there, that extra ]>, is what's doing it.  How to squash this bug?!

This appears at the top of every frontend page, not in admin pages.  The site operates normally, aside from these characters.


texts: Not able merge guest cart with logged in user cart from programatically login

texts:
I have create new login step in magento 2 checkout. When i add product to cart ,goto checkout and login from step guest user cart not merge with logged in user cart. Below is the code for login.

$customer = $this->customerAccountManagement->authenticate(
                $credentials['username'],
                $credentials['password']
            );
            $this->customerSession->setCustomerDataAsLoggedIn($customer);
            $this->customerSession->regenerateId();
            $redirectRoute = $this->getAccountRedirect()->getRedirectCookie();
            if (!$this->getScopeConfig()->getValue('customer/startup/redirect_dashboard') && $redirectRoute) {
                $response['redirectUrl'] = $this->_redirect->success($redirectRoute);
                $this->getAccountRedirect()->clearRedirectCookie();
            }


texts: Magento 2 theme is not applying as like live website

texts:
I got all magento 2 files and db sql file. Now I want to make it working locally, so I follow this steps.
1.I go to Magento root app/etc/env.php and change my database details.
2. I update both the web/unsecure/base_url and web/secure/base_url URLs in core_config_data
3. Then I execute following commands.
ROOT > var > cache > *DELETE ALL*
ROOT > var > page_cache > *DELETE ALL*
ROOT > var > session > *DELETE ALL*
also delete old files generated in ROOT > pub > static > DELETE ALL EXCEPT .HTACCESS

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

chmod -R 0777 var/ pub/ generated/

So magento is working fine..but problem is coming in theme. Online website has applied porto theme and in my local also as I have just copied from online so..
But home page is not displaying like that online website as well as logo also coming from default theme Not that applied theme. So basically I want to get displayed Home page and other pages same as like live website.
Can any one guide me what I am missing.
Thanks


texts: Exception message: We can't initialize Express Checkout Magento 2.2.5

texts:
Paypal Express checkout is not working for guest checkout.
guest checkout is enabled. i have checked error logs and found below issue.

Let me know if any one have a solution for this.

main.CRITICAL: Exception message: We can't initialize Express Checkout.
Trace: #0 /vendor/magento/module-paypal/Controller/Express/AbstractExpress/Review.php(21): Magento\Paypal\Controller\Express\AbstractExpress->_initCheckout()
#1 /generated/code/Magento/Paypal/Controller/Express/Review/Interceptor.php(24): Magento\Paypal\Controller\Express\AbstractExpress\Review->execute()
#2 /vendor/magento/framework/App/Action/Action.php(107): Magento\Paypal\Controller\Express\Review\Interceptor->execute()
#3 /vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#4 /vendor/magento/framework/Interception/Interceptor.php(138): Magento\Paypal\Controller\Express\Review\Interceptor->___callParent('dispatch', Array)
#5 /vendor/magento/framework/Interception/Interceptor.php(153): Magento\Paypal\Controller\Express\Review\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#6 /generated/code/Magento/Paypal/Controller/Express/Review/Interceptor.php(104): Magento\Paypal\Controller\Express\Review\Interceptor->___callPlugins('dispatch', Array, Array)
#7 /vendor/magento/framework/App/FrontController.php(55): Magento\Paypal\Controller\Express\Review\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#8 /vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#9 /vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#10 vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#11 /vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#12 /vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#13 /vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#14 /vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#15 /generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#16 /vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#17 /generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#18 /vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#19 /index.php(46): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#20 {main} [] []


texts: problem in installing fresh magento with same old database

texts: I installed fresh magento with same old database.Now the images are not showing up in my new store and the when I open my old store, It is redirecting to the new store.


texts: How to install bg/freshdesk using composer on Magent 2.3

texts:
I am trying to install freshdesk (I am following this tutorial https://support.freshdesk.com/support/solutions/articles/223950-freshdesk-app-for-magento-2-0) but unfortunately the Module is not installed, both way using Composer and using copy folder.

Using Composer

Without Composer (Copy Folder)

Module is not detected (Copy Folder)

my bad the folder structure should be  app/code/Bg/Freshdesk

Anyone can help about how to add freshdesk to the Magento 2.3 ?


texts:
I'm returning JSON via an endpoint in Magento 2 this bit of JSON looks like the following:

    $new_json = [
        'component_1' => '[{....}]',
        'component_2' => '[{...}]'
    ];
    return $new_json;

The endpoint works, but it returns the following:

0: "...."
1: "...."

Now I can pass the JSON into [ ] to return the following, but this isn't what I want:

[0]:
component_1: "...."
component_2: "...."

My issue is I need to return the JSON with key and value, not 0 and 1 nor a sub value e.g. [0]

Is there a setting for the endpoint to stop it encoding the JSON like this? Or is there something I need to do to return it in the way that I want?

Thanks.


texts: PHP fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Plugin\Block\Topmenu

texts:
this is happening when I install megamenu from template monster and updated to Magento 2.2.6 any ideas? full error below

  Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Plugin\Block\Topmenu::__construct() must be an instance of Magento\Catalog\Model\ResourceModel\Category\StateDependentCollectionFactory, instance of Magento\Catalog\Model\ResourceModel\Category\CollectionFactory given, called in /home/olabrava/public_html/app/code/TemplateMonster/Megamenu/Plugin/Block/Topmenu.php on line 27 and defined in /home/olabrava/public_html/vendor/magento/module-catalog/Plugin/Block/Topmenu.php:47 Stack trace: #0 /home/olabrava/public_html/app/code/TemplateMonster/Megamenu/Plugin/Block/Topmenu.php(27): Magento\Catalog\Plugin\Block\Topmenu->__construct(Object(Magento\Catalog\Helper\Category), Object(Magento\Catalog\Model\ResourceModel\Category\CollectionFactory), Object(Magento\Store\Model\StoreManager), Object(Magento\Catalog\Model\Layer\Resolver)) #1 /home/olabrava/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): TemplateMonster\Megamenu\Plugin\Block\Topmenu->__construct(Object(Magento\Catalo in /home/olabrava/public_html/vendor/magento/module-catalog/Plugin/Block/Topmenu.php on line 47


texts: How To Display Related Product Images On The Left In product page

texts:
I want to display the product images on the left side which are at the bottom of  in the product page image

i also tried to find the code of these images in the local.xml but i am unable to find it

Any help will be appreciated


texts: Creating landing page of an attribute of products, following the concept of the category page

texts:
The products have the brand attribute, you could create a page to list all the products of this brand?

Or this will be possible only through a category of marks ?


texts: Magento 2 How to separate every product on products layout

texts:
I want to separate every product on products layout.

Now:

I want separate product:


texts: Magento admin panel: Promotions > Shopping Cart Price Rules (Percentage off whole cart) Using coupon code

texts:
I'm running 1.14 and you'd think by now they would have developed something for this percentage off the whole cart.

There is "fixed amount discount for whole cart".

Am i missing something or is there really no option for "percent of whole cart price discount".

Any help would be greatly appreciated. Thank you.


texts: Magento 2 : How to Get Shipping Quote (Shipping Calculator) on Product Page

texts:
I want to display the Estimate Shipping and Tax section on the product page in Magento 2.

Any guide how can I achieve this? I don't need the code but If you can provide any guidelines that will be really appreciated.


texts: How is Magento sending emails by default?

texts:
I noticed when making a customer account on my development server Magento sent a confirmation email from (literally) "owner@example.com" - unsurprisingly, I don't own this domain.

How did this happen as I would have thought there would be steps required before Magento would send emails? More broadly, how does Magento send emails? Thanks :)


texts:
Can anyone work on Advanced JS Bundling?

We would like to apply this concept to one of our client projects.

Could you please explain about Advanced JavaScript bundling in detailed step by step & is there any tools (or) modules need to be installed for verify?, Is it possible to implement advanced JS Bundling in Magento/2.2 (Enterprise)?*

Note: I followed M2developer Docs but unable to understand & implement. Could you please guide me & would like to know what are the challenges are going to handle?

Is there any difference between JS bundling and Advanced JS bundling?


texts: How do we exclude the cart and checkout from a customized theme?

texts: Is there a simple way to exclude the customized theme from the cart and checkout page (however still keeping the customized theme's header and footer). I simply want the original RWD design one from my magento 1.9.1


texts: Problems Loading a Custom Model in an Integration Test

texts:
I’m working on an integration test that utilizes a custom model and am unable to load the object. Core objects are loading fine.  I can create a quote using my own fixture without issue. As far as I can tell, the Account model and resource model are structured properly.

Consider the following (failing) test:

 /**
 * @magentoDbIsolation enabled
 * @magentoAppIsolation enabled
 * @magentoDataFixture loadFixture
 */
public function testOrderProvidesDiscountWithPromo(  ) {

    \Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');

    /** @var  Mageplaza\Affiliate\Model\Account $affiliate */
    $affiliate = Bootstrap::getObjectManager()->create(Mageplaza\Affiliate\Model\Account::class);
    $affiliate->load(1, 'account_id');

    $quote = Bootstrap::getObjectManager()->create(\Magento\Quote\Model\Quote::class);
    $quote->load('test_promo', 'reserved_order_id');

    $this->assertEquals(1, $affiliate->getData('account_id'));
}

The affiliate account is created using the following fixture:

\Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');

/** @var  Mageplaza\Affiliate\Model\Account $affiliate */
$affiliate = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(Mageplaza\Affiliate\Model\Account::class);

$affiliate->setAccountId(1)
    ->setCustomerId(1)
    ->setCode('mycode')
    ->setGroupId(1)
    ->setBalance(0)
    ->setStatus(1)
    ->setTree(1);

$affiliate->save();

The $quote object is loading properly but the $affiliate one is not.

Can anyone see what I may be doing wrong or are there any extra steps that must be taken to ensure that the custom model loads properly as well?

(I'm using Magento 2.2 for what it’s worth)


texts: Can I manually remove all Magento_%SampleData extensions from M2.1.3+ install?

texts:
So I'm looking at my production environment, and I notice a whole bunch of Magento_%SampleData folders. If I try and run the magento sampledata:remove command, I get the error:

[Exception]
  Warning: file_get_contents(/home/public_html/app/code/Theme/Blog/c
  omposer.json): failed to open stream: No such file or directory in /home/public_html/vendor/magento/module-sample-data/Model/Dependency.php
   on line 109

However because, its a production environment, I cannot remove/change this extension for now But I was wondering if I manually disable and then remove the SampleData components, will this cause any problems?

If I go this route, how do I prevent composer from re-installing them in future upgrades?


texts:
I convert an xml file to .csv based on a freshly installed magento's export via dataflow.

After that i changed my product.csv with all required attributes and made magmi import.

All cool but when i try to go some product page from home page like http://185.22.187.222/index.php/kopek-dis-kasima-oyuncagi-petstages.html

site appears corrupted. Im adding my csv file so if you guys want to help me i'll be thankful!

You can also check backend if you want to login information, just send a mail or add me in skype "agnahie" and yayilanradyasyon@gmail.com

It makes me crazy... Probably the problem is my stupidity.

Here is the link for newly generated csv file; http://www.megafileupload.com/en/file/609298/products--4--csv.html


texts: Module Config File: what are resource connection definitions for

texts:
I searched for that information quite a while but did not found any explanation.

Many examples and tutorials for custom modules with custom database tables suggest the following for the config.xml file of corresponding module:

<resources>
    <[modulename]_setup>
        <setup>
            <module>[NAMESPACE]_[MODULENAME]</module>
            <class>Mage_Eav_Model_Entity_Setup</class>
        </setup>
        <connection>
            <use>core_setup</use>
        </connection>
    </[modulename]_setup>
    <[modulename]_write>
        <connection>
            <use>core_write</use>
        </connection>
    </[modulename]_write>
    <[modulename]_read>
        <connection>
            <use>core_read</use>
        </connection>
    </[modulename]_read>
</resources>

So my questions are:

What are [modulename]_write and [modulename]_read for?
What is the connection definition in [modulename]_setup for?
What is <class>Mage_Eav_Model_Entity_Setup</class> for?

I ask this, because it works well with just

<resources>
    <[modulename]_setup>
        <setup>
            <module>[NAMESPACE]_[MODULENAME]</module>
        </setup>
    </[modulename]_setup>
</resources>


texts: Is there an easy way to swap the long and short descriptions in the mysql database for a magento 2.2.0 installation for all products?


texts:
I have to override method using plugin.

private function getShippingPrice(RateRequest $request, $freeBoxes)
{
    $shippingPrice = false;

    $configPrice = $this->getConfigData('price');
    if ($this->getConfigData('type') === 'O') {
        // per order
        $shippingPrice = $this->itemPriceCalculator->getShippingPricePerOrder($request, $configPrice, $freeBoxes);
    } elseif ($this->getConfigData('type') === 'I') {
        // per item
        $shippingPrice = $this->itemPriceCalculator->getShippingPricePerItem($request, $configPrice, $freeBoxes);
    }

    $shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);

    if ($shippingPrice !== false && $request->getPackageQty() == $freeBoxes) {
        $shippingPrice = '0.00';
    }
    return $shippingPrice;
}

di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\OfflineShipping\Model\Carrier\Flatrate">
        <plugin name="vendor_module_offlineshipping_carrier_flatrate" type="Vendor\Module\Plugin\Flatrate" />
</type>
</config>

I have to do per vendor flate rate shipping as below

if ($this->getConfigData('type') === 'V') {
        // per item
        $shippingPrice = $this->itemPriceCalculator->getShippingPricePerVendor($request, $configPrice, $freeBoxes);
    }

Please help me to override above method.If anyone know reply me.


texts:
I'm attempting to create a staging environment using Magento "Staging Website" feature that was include in 1.12 (System > Content Staging).  However, after the initial set up is complete, all I'm left with is a new store view and a few empty files

staging/base_staging/.htaccess
staging/base_staging/index.php

I don't see anything in var/log and have reindexed.  My guess is that if these files are empty, it's obviously not going to do anything.

What could have prevented this from running correctly?


texts: Translate language of magento to another language- Magento 2

texts: I m new in Magento.I want to change the English language of Magento to Persian. I cant find the good source for translating the language of Magento to another languages.can you give me a good source??


texts: Install Mailchimp without using Composer

texts:
I have a question about installing Mailchimp,

https://php-download.com/package/mailchimp/mc-magento2.

Server I'm using doesn't give permission to run composer. So I need to manually upload the full package. But I don't know how to do it. I just can't use composer in usual way.
I need to connect ebizmarts/mailchimp-lib with Mailchimp without using composer.

I'm using magento 2.1.7 Enterprise Cloud.

Can anyone help me with it please?


texts: Is it possible to add a template to a widget using $this->getchild?

texts:
I'd like to add some pagination for a widget that i'm adding to a CMS page.  Is it possible to add a template to this widgets .phtml page or is there any other way for me implement this functionality?

The template is located at:

  app/design/frontend/namespace/default/template/catalog/layer/view.phtml


texts: Magento 2, How to make users to install the plugin via composer

texts:
In my module, I have created a composer.json file with this code and pushed it to git
{
    "name": "lovat/magento2-api",
    "description": "Lovat Api Sales Module for Magento 2",
    "type": "magento2-module",
    "version": "1.0.0",
    "require": {
        "php": "^7.2.2",
        "magento/framework": "101.0.*"
    },
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "Lovat\\Api\\": ""
        }
    }
}

After I use this command: composer require lovat/magento2-api
but I have this error
[InvalidArgumentException]
  Could not find package lovat/magento2-api.

  Did you mean one of these?
      bower-asset/u2f-api
      bower-asset/api
      bower-asset/gomc-api
      bower-asset/mu.api
      bower-asset/goog-api


texts: how to create section and tabs in admin panel

texts:
how to create new section and new tab in admin panel.
i have tried groups under sections and fields under groups, but not able to create sections.
Could you please explain in detail how to create sections and tabs in admin panel...

Thanks in advance for help


texts:
I have some code I would like to be triggered outside of Magento but I continue to get an error. Here is the code:

<?php
// Part 1

require_once('store/app/Mage.php'); //Path to Magento
umask(0);
Mage::app();

/**
     * Get the resource model
     */
    $resource = Mage::getSingleton('core/resource');

    /**
     * Retrieve the read connection
     */
    $readConnection = $resource->getConnection('core_read');

// Part 2

echo "Deleting 227";
// Delete base product
$id = '227';
$cartHelper = Mage::helper('checkout/cart');
$items = $cartHelper->getCart()->getItems();
foreach($items as $item):
if($item->getProduct()->getId() == $id):
$itemId = $item->getItemId();
$cartHelper->getCart()->removeItem($itemId)->save();
break;
endif;
endforeach;
?>

I use Part 1 regularly in other PHP files. It seems I may be specifying the wrong model? The error I am getting:

Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /Users/root/Documents/webroot/pk3/redeem/upsell.php, line 21' in /Users/root/Documents/webroot/magento/lib/Zend/Controller/Response/Abstract.php:323 Stack trace: #0 /Users/root/Documents/webroot/magento/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 /Users/root/Documents/webroot/magento/app/code/core/Mage/Core/Model/App.php(1246): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...') #2 /Users/root/Documents/webroot/magento/app/code/core/Mage/Core/Model/Cookie.php(93): Mage_Core_Model_App->getResponse() #3 /Users/root/Documents/webroot/magento/app/code/core/Mage/Core/Model/Cookie.php(209): Mage_Core_Model_Cookie->_getResponse() #4 /Users/root/Documents/webroot/magento/app/code/core/Mage/Core/Model/Cookie.php(260): Mage_Core_Model_Cookie->set('PHPSESSID', '64ad98a760b93cc in /Users/root/Documents/webroot/magento/lib/Zend/Controller/Response/Abstract.php on line 323


texts: Add to Cart, Add to wishlist like product list page on related products

texts: How to display add to block on related products similar to it is displaying on list page?


texts: Add side bar in custom layout in magento2?

texts:
I want to display the subcategory and product tabs in category page .So i have customise the layout file .

How to do this..

Thanks.


texts: Change position field from numeric to alphanumeric. Where to find $category->setPostedProducts?

texts:
Each Product has a different position in each category. The position only accept numeric and will change it to alphanumeric. So I set the position from catalog_category_product and _index in the database to "varchar".

But it still wont work. So I think, that there is another validation in the php Code.
I found the Code in:

app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php:
Line 320:

    $category->setPostedProducts($products);

But i cant find the declaration of the Method "setPostedProducts" anywhere. I searched all files.
And where is the MySQL "Update product..." Statement, so that I can check the value before it will be send to the DB?
Can someone tell me where can find it? Or I can solve this problem?

The Second thing is, how can i display the Position to the Frontend (.phtml)
I Want to show it in Product Listing and View.
Thanks

Greetings


texts: Magento 2.2.x: Watermark only large/fullscreen image?

texts:
If I set only the "base" image watermark in the admin panel, it watermarks not only the fullscreen image but also the "medium" image used in the main product view. On the full image, the watermark is the correct size but on the medium image, the watermark covers about a third of the product image.

How can I either stop the medium image being watermarked or allow the watermark to be sized proportionally to the product image size? i.e. by setting a heightXwidth percentage instead of a pixel value.

Also, my watermark has a white background which gets converted to transparent - this is not desirable for me.

TIA.


texts:
I'm trying to run my custom module that setup two cronjobs. Here is my config.xml file.

<config>
    <global>
        <models>
            <RLTS_Certification>
                <class>RLTS_Certification_Model</class>
            </RLTS_Certification>
        </models>
    </global>
    <crontab>
        <jobs>
            <certi_status_update>
                <schedule>
                    <cron_expr>*/2 * * * *</cron_expr>
                </schedule>
                <run>
                    <model>RLTS_Certification/StatusHelper::updateCertiStatus</model>
                </run>
            </certi_status_update>

            <certi_renewal_reminder>
                <schedule>
                    <cron_expr>*/2 * * * *</cron_expr>
                </schedule>
                <run>
                    <model>RLTS_Certification/StatusHelper::certiRenewalReminder</model>
                </run>
            </certi_renewal_reminder>
        </jobs>
    </crontab>
</config>

My cronjobs are not visible in cron_schedule table. One more thing is, that table is empty. What I need to do to setup these cronjobs?


texts: Fully truncate cart on visiting a specific URL

texts:
I'm trying to fully truncate the cart.
I've override getAllVisibleItems in the checkout \Magento\Quote\Model\Quote Model
But I still can visit the cart page and see the empty table of it, and the product also still showing up in the mini-cart
Here is my code
private function truncateUserQuote()
{
   $this->removeAllItems()->save();
   $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
   $cs = $objectManager->create('\Magento\Checkout\Model\Session');
   $cs->getQuote()->removeAllItems()->save();
}


texts:
I am having problems importing my images in Magento CE 1.8, I have followed all the procedures

CSV have the following columns
sku _attribute_set  _type   _category   _root_category  _product_websites   att_cost    att_eby_title   att_upc created_at  description external_image  external_small_image    external_thumbnail  image   manufacturer    msrp    name    price   short_description   small_image status  tax_class_id    thumbnail   visibility  weight  qty _media_image

the data is formatted in field="," text=" "

The image fields are in this format "/TUSHT134SLR252f140fc3bf32.jpg"

The Images are in the /media/import/ Directory

I have tried pulling the leading "/" on my image fields, that didnt work (as expected)

I keep getting "image not found" error on the import

I have used Import, Dataflow and Magmi all three give me the same error!


texts: How to create simple product with json or XML request using SOAP API in magento?

texts:
I need to create product from the request  with json or XML request using API in magento.

Any help for this?


texts: Cannot Create New Configurable Product Magento 1.9.3.8

texts:
When attempting to create a new Configurable product we get an incomplete screen for the Product Information i.e. just the left hand menu.

In the Apache error log we see

  PHP Fatal error:  Call to a member function getAttributeCode() on
  null in
  /var/www/vhosts/XXXXXXXXXX.co.uk/httpdocs/magento-1.9.3.8/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
  on line 245, referer:
  https://www.XXXXXXXXXXX.co.uk/index.php/cgb_mag_admin/catalog_product/new/set/79/type/configurable/key/7f90363b0508fd6c820a0f0ac01074ed/

The code in question reads in the product and gets a list of the attributes but they are empty of detail.  I have created a brand new Attribute Set containing one brand new Attribute and used that to try and create but still fails.

This installation was built with an import of products from a 1.9.2 system. One can view the imported Configurable products and the Associated Products OK.

This installation was a copy up of code and database from a dev system here and it works fine in dev.  I even copied the install back down again to test and it works so there must be some server issue but I cannot work out what it might be.  Any help gratefully accepted.

PHP Version 5.6.36


texts: update layout using custom layout handles

texts:
i'm fairly new to magento, so i might not get all terms right. it's also possible that i haven't fully understood the magento internals which work through layouts and templates to print a webpage to the customer.
i followed some simple tutorial to add a module to magento which provides me three additional options too choose from when setting the page_layout for categories/products.
so far so good. the entries show up in admin backend and the templates i associated to these page_layouts are correctly loaded if i browse to a custom layout category.

i've removed and added plenty of blocks via local.xml. i've been using <default> (which targets all layouts iirc) and <catalog_category_default> (which is parsed when browsing a category). so in know how to use  and "<block type="foo/myblock" name="my.precious.block" /> to remove or display a block.

now i want to add a block to one of my custom layouts.
my /magento/app/code/local/Foo/Layout/etc/config.xml looks like this:

<?xml version="1.0"?>
<config>
    <modules>
        <Foo_Layout>
            <version>0.0.1</version>
        </Foo_Layout>
    </modules>
    <global>
        <page>
            <layouts>
                <foo_category_a module="page" translate="label">
                    <label>CustomCategory (A)</label>
                    <template>page/category_a.phtml</template>
                    <layout_handle>foo_cat_a</layout_handle>
                    <update handle="foo_cat_a" />
                </foo_category_a>
            </layouts>
        </page>
    </global>
</config>

/app/etc/modules/Foo_Layout.xml looks like this:

<?xml version="1.0"?>
<config>
    <modules>
        <Foo_Layout>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Page />
            </depends>
        </Foo_Layout>
    </modules>
</config>

and my /app/design/frontend/default/foo/layout/local.xml like this:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addCss"><stylesheet>css/foo.css</stylesheet></action>
        </reference>

        <reference name="header">
            <remove name="topSearch" />
        </reference>

        <reference name="right">
            <remove name="right.permanent.callout" />
        </reference>

        <reference name="left">
            <remove name="left.permanent.callout" />
        </reference>

        <reference name="root">
            <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml" />
        </reference>
    </default>

    <!--
        category view mods
    -->
    <catalog_category_default>
        <reference name="left">
            <remove name="catalog.leftnav" />
            <remove name="currency" />
            <remove name="tags_popular" />
        </reference>
    </catalog_category_default>

    <foo_cat_a>
        <remove name="products.info" />
    </foo_cat_a>
</layout>

so i have:
layouts added: check
selectable in admin: check
correctly loading the specified templates: check
being able to add blocks to custom layout: fail :(

what am i missing here? i searched the web up and down, tried many different locations for layout-definition and the layout-update-code, but nothing worked so far.

the predefined handles work well (e.g. <catalog_category_default>) but not those defined by me.

greetings
patrick


texts: How to debug Magento 2 code when using command lines?

texts:
Running a script in command line is something we frequently do in Magento 2. For example, when creating new module, we must run setup:upgrade command. We cannot see all the information we need to know.

I know many Magento developers choose PHPStorm as their favorite editor. How we can use PHPStorm to debug Magento 2 command lines?


texts: Fatal error on Magento shop only to some users

texts:
Some users in our shop are reporting a Fatal error that prevent them to access it. The error is:

  Fatal error: Class 'Wyomind_Notificationmanager_Model_Resource_Setup' not found in /home/yokkao5/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.phpon line 234

I already contacted the devs and they said it is related to the Compilation. But we never use/used it.
Also, all the files related to the Wyomind_Notificationmanager extension have been removed from the ftp.

What strange is that it's not happening to everyone, as we keep receiving orders in the while.
What's even more strange is that the error seem to be based on the connection type. I will elaborate...
Using a smartphone under Wifi I got the error. Switched to 4G and the website loads normally. Switched back to Wifi, error again.

Could it be an error due to the weight of the website, therefore slow connections get that error?
Our Magento installation is pretty heavy, about 8 websites currently.


texts: Looking for a PrototypeJS Product Carousel Extension Recommendation

texts:
I'm looking for an extension recommendation for a product carousel which:

Functions via the PrototypeJS library (not jQuery)
Has the ability to display multiple slides at any single given time
Has the ability to skip multiple slides (i.e all visible slides)
Has the ability to slide continuously in a circular motionm, and lastly
Has the ability to auto scroll

I.E, if I want to display products:

a, b, c, d, e & f

The carousel would ideally display (as an example) 3 products at a time, so:

[a, b, c] slide [d, e, f] then back to [a, b, c] etc.

Please do not recommend: https://code.google.com/p/prototype-carousel/

This codepool has become abandoned, been split into multiple branches accross github and I haven't been able to find a single repository which has the five requirements as mentioned above. And yes, I have looked at the Issues List and fixes applied.

An ideal example can be found on any www.dx.com product page, using either the:

Customers Who Viewed This Item Also Viewed, or
Customers Who Bought This Item Also Bought carousels

Note that the first carousel on the example page does not have auto slide enabled, a feature which I am looking for.

The reason I'm looking for PrototypeJS specifically and not jQuery is because I'd like to avoid having to add another JS library next to Prototype, which is natively supported by Magento.


texts:
I have the left sidebar which works in 2columns-left layout.

I have to create a new sidebar, let's call it left2.

Inside 2columns-left.phtml I call it with

<?php echo $this->getChildHtml('left2'); ?>

In my local.xml I have

<cms_page_view translate="label">
   <reference name="left2">
            <block type="catalog/navigation" name="vertnavcms_mobile" template="catalog/navigation/vertnavcms_mobile.phtml"/>
   </reference>
</cms_page_view>

And in my vertnavcms_mobile.phtml
I have <?php echo "hello world" ?>

But nothing is outputed on frontend (cms page). What am I missing?

Thanks!


texts: Magento 2 : load order by id in customer account order view

texts:
In the customer account order view page, I added a Block and an associated phtml file. Inside this phtml, I would like to load the order to access some information.
NB: the block is added dynamically and not using XML
I tried in my block :
protected $_order;

public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Sales\Api\Data\OrderInterface $order
        )
{
    $this->_order = $order;
    parent::__construct($context);
}

and in my pthml :
 $order = $block->_order->load($data['order_id']);

but it results in an error.
If someone could give me a hand, please?


texts: Cache block in multiple, different versions in cache

texts: Is there way to add the same block to cache in different versions to cache, for example for different sorting in products' grid, but for the same request params - for example random sorting, which should be different every time? It would be good to have for example 10-20 versions of block with different order of products and just take different versions from cache. It is not good solution to clean cache for every request with random sorting parameter.


texts: Can we migrate magento 1.14.1.2 EE to 2.3 CE?

texts:
Is there any plugin or module to migrate magento from 1.14.2.1 EE to 2.3 CE?
Please share some links or tutorials if you have.


texts: Magento2 : how to change admin startup page programmatically

texts: I want to change landing page of admin based on some condition how can I achieve this ?


texts:
Is a good practice to instantiate a Magento help in the class constructor?

protected $helper

public function __construct()
{
    $this->helper=Mage::helper('helper_name');
}


texts: How to create phtml file to edit home page?

texts:
I have phtml file at

  app/code/Vendor/Module/view/frontend/template/content.phtml

How can I make it to change homepage?

I have module.xml file and registration.php file as well. Module is installed.

I suppose that I have to make Block and Controller, but can't get it right.

In wich directories and what files I should make that content.phtml file could make changes to homepage?


texts: Magento throwing 500 server error to few customers

texts:
We are facing a weird issue where Magento throws 500 server error to very few customers. The error log says PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 96 bytes). Notice we already gave 2GB of memory_limit in PHP, so this is definitely not the memory issue but something else. We tried many ways to reproduce this without any luck. Once the customer gets this 500 error, s/he gets it all the time when they visit our website again.

What could be wrong? How to reproduce this kind of error?


texts: Double shipment confirmation sent Magento 2.3

texts:
We currently have Magento 2.3 and Mailchimp.
Every time a customer buys something, the customer gets 2 sets of the same email every confirmation sent out. So now we have been put on a blacklist of some sort for spamming. How can we stop this from happening?
Any help is appreciated.


texts: Error While Saving Product and doing reindex in Magento2.3

texts:
When I run the reindexing command got this error:

Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface in /home/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116 Stack trace: #0 /home/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Invento...', Array) #1 /home/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Invento...')
#2 /home/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Invento...')
#3 /home/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Invento...')
#4 /home/public_html/vendor/magento/framework/In in /home/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116

Got the same error when saving product.


texts: custom phtml file in magento2.1.6 not working

texts:
i want to update this file in my custome theme

  magento2\vendor\magento\module-catalog\view\base\templates\product\price\amount\default.phtml

i have add it here in my theme

  magento2\app\design\frontend\vendor\theme\Magento_Catalog\view\base\templates\product\price\amount\default.phtml

but its not working. please guide me how to make changes init.


texts: After cpanel backup restore magento 2 I do not get it work

texts:
Picture 1:
After the backup restore at cpanel of my mangento 2 webshop because I changed hosting provider, www.takoda.online now shows usually normal like this.

Picture 2:
But when I hit any link on this frontpage I get anywhere this 'not found' page, so somewhere there is something wrong, can't figure out what

I did have made the permission all 777 just to be sure that is not the problem.

I do have multiple store views.

Anyone got any idea what I have to check or set up properly to be sure that a backup that I have restored manually?

I have linked the database already.

Thanks a lot
Alain


texts: Magento 2 :- What is difference between custom modules and extensions

texts:
please explain me in full way what difference between custom module and extensions with simple one example

Thanks.


texts: Mageplaza Magento 2 brazil language pack is not working

texts:
composer require mageplaza/magento-2-portuguese-brazil-language-pack:dev-master
php bin/magento setup:static-content:deploy pt_BR
php bin/magento cache:flush

I ran those commands language appear in admin dashboard, I have selected the desired language Store->Configuration->General-> locale
After that i have tried removing var/cache , var/view_preprocessed , generated , pub/static ... but nothing impacts on my site.

What I am doing wrong I am not getting it.


texts: Installing SUPEE-6285 for 1.8.1 on 1.8.0.0?

texts: I can not use sh file so I found zip file on magentary.com. The problem is that I found only zip file for 1.8.1, but on my store I have Magento 1.8.0. Is there any difference between those two versions regarding SUPEE-6285 patch?


texts: How to change "Street Address: Line 1" label in one step checkout magento 2 shipping address?

texts: change "Street Address: Line 1" label in one step checkout magento 2 ?


texts: Removed page_cache folder and admin cache page not working

texts:
I removed the whole folder var/page_cache and now my admin page and cache page are not working anymore. I made a new folder page_cache but no difference. I can not refresh (no button anymore) and empty cache (noting happens when I push the button).

How can I build cache (because the site is also slow due to lack on full page cache) and make my admin cache page working again?

I use Magento 2.1.7.


texts: magento2 after store change redirect to same page

texts:
I have a different store when I am changing the store it redirects to the home page but I want to redirect to the same page where store changed in Magento 2
I have written this code

?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $conf = $objectManager->get('Magento\Framework\App\Config\ScopeConfigInterface')->getValue("web/unsecure/base_url");
?>

through this code it redirects to home page


texts: Parse syntax error when accessing CMS->Pages inside admin

texts:
I am getting the following PHP fatal error and blank white screen when trying to access the CMS >Pages page inside admin:

  Parse error: syntax error, unexpected '%' in
  Mage/Adminhtml/controllers/Cms/PageController.php on line 139

Has anybody come across this issue before or know the best way to resolve it?


texts:
how i can change output data in new order template, now i have here:

but this little not corrected, need

  John Genry

  Local

  test

  95220

  Berlin

  Berlin

  Germany

  T.1597538

how i can change this? in template New Order i can see where i can change this


texts: Is Magento CE 1.7.0.2 compatible with MySQL 5.5 and PHP 5.3.28?

texts:
I have a few Magento (CE 1.7.0.2) sites on a VPS server that currently runs MySQL 5.0.9 and PHP 5.3.26

The datacenter company that hosts the VPS wants to upgrade the MySQL and PHP version due to the new requirements of WHM/Cpanel

Will there be any problem if they upgrade to these mysql / php versions?


texts: i sell products that come in variations. i upload image into media/import, and after the 1st product on csv file, magento create duplicate image file and renames it like below for the other products that have same image filename as 1st product on csv. i have products that come in 60-70 variations, so this is filling storage qquickly, how can i fix this?


texts: Magento 2 not install in my local server

texts:
I am trying to install magento 2 on local server.
But I am getting this error.

I have changes in php.ini file in local server. But this error didn't fix.
I have remove comment xsl and intl extension and restart server but not working.
Please suggest me how to fix this issue.
I am new on magento 2.

Here is php info :


texts:
I tried to send an invoice email from frontend with pdf attached, by extending InvoiceSender like this:

namespace Namespage\Module\Model\Plugin\Order;

use Magento\Sales\Model\Order\Invoice;
use Magento\Framework\DataObject;
use Magento\Sales\Model\Order;

class InvoiceSender extends \Magento\Sales\Model\Order\Email\Sender\InvoiceSender
{
  public function send(Invoice $invoice, $forceSyncMode = false)
  {
      $invoice->setSendEmail(true);

      if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
          $order = $invoice->getOrder();

          $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

          //start attact pdf invoce
          $pdf = $objectManager->create('Magento\Sales\Model\Order\Pdf\Invoice')->getPdf([$invoice]);
          $date = $objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime')->date('Y-m-d_H-i-s');
          $pdf->render();
          $message = $objectManager->get('Magento\Framework\Mail\Message');
          $message->createAttachment(
              $pdf->render(),
              \Zend_Mime::TYPE_OCTETSTREAM,
              \Zend_Mime::DISPOSITION_ATTACHMENT,
              \Zend_Mime::ENCODING_BASE64,
              'invoice-'.$invoice->getId().'.pdf'
          );
          //end attach pdf invoce

          $transport = [
              'order' => $order,
              'invoice' => $invoice,
              'comment' => $invoice->getCustomerNoteNotify() ? $invoice->getCustomerNote() : '',
              'billing' => $order->getBillingAddress(),
              'payment_html' => $this->getPaymentHtml($order),
              'store' => $order->getStore(),
              'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
              'formattedBillingAddress' => $this->getFormattedBillingAddress($order)
          ];
          $transportObject = new DataObject($transport);

          /**
           * Event argument `transport` is @deprecated. Use `transportObject` instead.
           */
          $this->eventManager->dispatch(
              'email_invoice_set_template_vars_before',
              ['sender' => $this, 'transport' => $transportObject->getData(), 'transportObject' => $transportObject]
          );

          $this->templateContainer->setTemplateVars($transportObject->getData());

          if ($this->checkAndSend($order)) {
              $invoice->setEmailSent(true);
              $this->invoiceResource->saveAttribute($invoice, ['send_email', 'email_sent']);
              return true;
          }
          return true;
      } else {
          $invoice->setEmailSent(null);
          $this->invoiceResource->saveAttribute($invoice, 'email_sent');
      }

      $this->invoiceResource->saveAttribute($invoice, 'send_email');

      return false;
  }

  protected function checkAndSend(Order $order)
  {
      $this->identityContainer->setStore($order->getStore());
      $this->prepareTemplate($order);

      /** @var SenderBuilder $sender */
      $sender = $this->getSender();

      try {
          $sender->send();
          $sender->sendCopyTo();
      } catch (\Exception $e) {
          $this->logger->error($e->getMessage());
      }

      return true;
  }
}

the problem seems occure when getPdf(...) function being called, and shows an error like this:

  1 exception(s): Exception #0
  (Magento\Framework\Exception\ValidatorException): Invalid template
  file: 'Magento_OfflinePayments::info/pdf/checkmo.phtml' in module:
  'Magento_OfflinePayments' block's name: 'info\checkmo_0'

  Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid
  template file: 'Magento_OfflinePayments::info/pdf/checkmo.phtml' in
  module: 'Magento_OfflinePayments' block's name: 'info\checkmo_0'