magento 1.9 – interception of every "get" call in the Mage_Catalog_Model_Product model

Is there a standard method (without overriding the model) to catch every "get" call to the object: Mage_Catalog_Model_Product?

I want to make sure that every time getSpecialPrice() or getTaxClassId() Function is called for "grouped" products, my custom logic comes into play.

This would allow me to have custom management of some data for the grouped products, both in the collections and during upload, with a few lines of code, without using the observer: catalog_product_load_after and catalog_product_collection_load_after

magento2.3 – Magento 2: Unrecognized error: No methods for modal can be called before the initialization. An attempt was made to use the & # 39; show & # 39; to call.

I use the following code to display modal. I use the semantic user interface. I am getting the following error

** **.

Uncaught Error: cannot call methods on modal prior to initialization; attempted to call method 'show'
    at Function.error (jquery.js:259)
    at HTMLDivElement. (widget.js:186)
    at Function.each (jquery.js:376)
    at jQuery.fn.init.each (jquery.js:142)
    at jQuery.fn.init.$.fn. (as modal) (widget.js:182)
    at :4:32
    at Object.execCb (require.js:1650)
    at Object.context.execCb (resolver.js:145)
    at Module.check (require.js:866)
    at Module.enable (require.js:1143)

** **.

My code

 require((
            'jquery','semantic/minjs'
            ), function($,semantic) {            
                $('.ui.modal').modal('show');
            }
        );

magento2.3 – Update related products of a configurable product – Magento 2.3.4

I am looking for a solution to change related products if the customer chooses another attribute / simple product of this configurable product.

For example, I have a configurable product with the attribute colors red and black. Both simple products (red and black) have different related products.

When I enter the configurable product and change the color, only the associated product that is connected to the configurable main product is displayed. The associated products are not updated depending on the selection.

Do you have a solution for this?

Thanks a lot.

magento2 – The VAT widget returns different business value on Magento 2 for multiple websites

I have Multi Website on my Magento 2.2.0

Configured to display the sales tax identification number at the storefront website level (eav_attribute taxvat)

 attribute_id | website_id | is_visible | is_required | default_value | multiline_count |
+--------------+------------+------------+-------------+---------------+-----------------+
|           17 |          1 |          0 |           0 | NULL          |            NULL |
|           17 |          2 |          1 |           1 | NULL          |            NULL |

Expected output

Website One should be disabled VAT (is_visible => 0)

Website Two Should Have Value Added Tax (is_visible => 1)

My edition

It works as expected in the development environment

However, no VAT is shown on the registration form on websites in production mode.

So I debugged MagentoCustomerBlockWidgetTaxvat.php to check the function and make a print.

public function isEnabled(){
     print_r($this->_getAttribute('taxvat'));
     return $this->_getAttribute('taxvat') ? (bool)$this->_getAttribute('taxvat')->isVisible() : false;
}

Development: Website One is_visible returns not correct & Website Two is_visible returns True

Production: Website One is_visible returns not correct & Website Two is_visible returns not correct

Can somebody help me with it? I don't know why it doesn't work in production mode. Values ​​for website 1 on website 2 are used.

magento2 – Magento 2.3 inventory management with Linnworks integration Inventories that are not updated by Linnworks

I use Magento 2.3.4 and have successfully integrated it into Linnworks. However, I believe I need to disable inventory management in Magento 2.3 so that Linnworks can update inventory.

I use GoDaddy as the host. Is there any way to do the following solution? If not, is there any way to disable it without going to the server where Linnworks updates inventory (which is not currently the case)?

Your help would be greatly appreciated.

I saw this answer here (How to disable inventory management in Magento 2.x):
"You need to run the following command to disable MSI modules in Magento 2.3+ versions.

magento2 – setup: staitic-content: deploy does not update JS in Magento 2

I use Magento 2 in production mode.

I made some changes to my module JS files.

I am trying to reflect the JS change on the live site using the following command.

php bin/magento setup:static-content:deploy en_US en_GB ar_SA

I can't see the JS files in the pub / static folder are updated.

I have cleared the cache PHP Bin / Magento Cache: Clear before and after providing static content.

Thank you in advance for your support.