magento2 – Products are disappeared on the frontend. All show up after reindex manually. – Magento 2

All products are disappeared on the frontend. All show up again after reindex all

php bin/magento indexer:reindex

After a few hours later, all products are disappeared again on categories and search results.

I did ‘bin/magento cron:install’

It looks cronjob is working

enter image description here

Magento 2.4.2

magento2 – Magento 2 : Does redis make any difference on low traffic store

I’ve recently come across redis being installed and configured on single server low traffic stores.

Generally the default response for anyone when reporting their Magento 2 store (which is everyone) is for the web hosts to install and configure redis (among other things). However so far it is my personal opinion that having redis adds an additional barrier when trying to load new content and I see very little performance gain.

Knowing a bit about the technology and how it works it is my understanding is that with a webserver using ssd’s with low traffic the benefit is minimal. I’m wondering if anyone in the community has some benchmarks on low traffic stores with a before and after to confirm my theory.

I do however understand how redis has a positive impact on high traffic stores.

I’m keen to hear other’s experiences. I see questions on configuring redis but I don’t seen that anyone has asked this question on magento 2.

Why does Magento2 add 0.0001 in the credit memo refund processing?

I am talking about the file


here in codes

if ($desiredAmount < $this->priceCurrency->round($maxAllowedAmount) + 0.0001) { 


if ($desiredAmount > $maxAllowedAmount - 0.0001) {

why is there addition and subtraction of the amount 0.0001

Can’t this be done without this?

magento2 – Magento 2 visibility “catalog” not saving in default store view

Magento 2 visibility “catalog” not saving in “default store view” but when store is “All store view” it is saving “catalog” but in default store view when visibility set “catalog” after save it is showing “catalog,search”

Using Magento 2.3.5p1

enter image description here
Anyone how to solve this?

magento2 – Add DropDown in Sales Order Grid Section in Magento 2.2.5

I have checked some of the links but they do not work my need so Please help someone who did this before


<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <columns name="sales_order_columns">
        <column name="company_status">
            <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">MagentoCompanyStatusUiComponentListingColumnCompanyStatusOptions</item>
                <item name="config" xsi:type="array">
                    <item name="filter" xsi:type="string">select</item>
                    <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
                    <item name="dataType" xsi:type="string">select</item>
                    <item name="label" xsi:type="string" translate="true">Company Status</item>



namespace MagentoCompanyStatusUiComponentListingColumnCompanyStatus;

use MagentoFrameworkDataOptionSourceInterface;

class Options implements OptionSourceInterface
    public function toOptionArray()
        $options = ();
        $options() = (
            'label' => 'Payment & Artwork: Y > Vplus',
            'value' => 0
        $options() = (
            'label' => 'Payment or Artwork: N',
            'value' => 1
        $options() = (
            'label' => 'Payment & Artwork: N',
            'value' => 2
        return $options;

magento2 – How to get all Shipping Methods list with shipping rates and shipping tax on cart page?

I want all available shipping methods list with shipping rates and Tax amount.

I’ve done below function, though it’s giving me shipping methods list with rates but not shipping tax amount per shipping method on cart page

public function getShippingDetails($quote)
     $output = ();
  if (! $quote->isVirtual()) {
        $shippingAddress = $quote->getShippingAddress();
         $this->_totalsCollector->collectAddressTotals($quote, $shippingAddress);
        $shippingRates = $shippingAddress->getGroupedAllShippingRates();
        foreach ($shippingRates as $carrierRates) {
            foreach ($carrierRates as $rate) {
                $output() = $this->_converter->modelToDataObject($rate, $quote->getQuoteCurrencyCode());
    return $output; 

It returns

    "carrier_code": "freeshipping",
    "method_code": "freeshipping",
    "carrier_title": "Free Shipping",
    "method_title": "Free",
    "amount": 0,
    "base_amount": 0,
    "available": true,
    "error_message": "",
    "price_excl_tax": 0,
    "price_incl_tax": 0
}, {
    "carrier_code": "flatrate",
    "method_code": "flatrate",
    "carrier_title": "Flat Rate",
    "method_title": "Fixed",
    "amount": 5,
    "base_amount": 5,
    "available": true,
    "error_message": "",
    "price_excl_tax": 5,
    "price_incl_tax": 5

The shipping Tax applied 10% , however I’m getting $5 in price_incl_tax for flatrate instead of 5.5
I’ve tried to fetch the price with tax with below code as well but didn’t work

     * Tax data
     * @var MagentoTaxHelperData
    protected $_taxData;
 $amount =(double)$rate->getPrice();
 $amountInclTax=$this->_taxData->getShippingPrice($amount, true, $shippingAddress);
 $amountExclTax=$this->_taxData->getShippingPrice($amount, false, $shippingAddress);

Can anyone please help me ,how I can get shipping rates with shipping tax amount?


magento2 – How to override a method in a vendor module?

Hi so i wrote this code to override a method in the woom cmstree module. But it seems like, something is wrong and i have used an entire day to figure it out, without any success.

My Vendor/MyModule/Block/Widget/Children.php


namespace VendorMyModuleBlockWidget;

class Children extends WoomCmsTreeBlockWidgetChildren


protected $belongsToMenu = "";

public function prepareLinks($treeChildren, $first = false)
    $html = '';

    some random code

    return $html;

My etc/di.xml

<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="WoomCmsTreeBlockWidgetChildren" type="VendorMyModuleBlockWidgetChildren" />

So this is how i did it. And i of course got the registration file and module.xml

But when i go to the page where this widget is used i get this error

(2021-03-04 20:56:22) main.CRITICAL: Error: Class 'VendorMymoduleBlockWidgetChildren' not found in /home/sonose2/public_html/generated/code/Vendor/Mymodule/Block/Widget/Children/Interceptor.php:7

I have been look at some examples but the are exact as mine and i have been trying alot of other stuff and now i ran out of ideas what to do.