Magento 1 : where is the responsible files for “Gift cards,Store Credit” in Sales > Order > Reorder > Order Total section?

I am trying to display the highlighted values into (values with base currency)
like US $0.00

I have checked this file-

app/design/adminhtml/default/default/template/sales/order/totals/default.phtml

But

I am not getting from where these values are appearing from using the above file?

enter image description here

Order > Reorder > Order Total section?" />

How to install Magento 2.3.5-P2

I am facing one issue i am installed Magento 2.3.5-p2 but after successfull installation it will not display admin side.

so can you please help me.

Thanks In Advance…

enter image description here

magento 1.9 – Prevent Disabled Extension From Breaking Frontend

I am having an issue where I am receiving this error on the frontend:

Fatal error: Uncaught Error: Class 'Mage_Core_Helper_Data' not found in /domains/mysite.co.uk/http/app/Mage.php:547 Stack trace: #0 /domains/mysite.co.uk/http/app/code/local/MageWorx/StoreSwitcher/Model/PageCache/Processor/Abstract.php(38): Mage::helper('core') #1 /domains/mysite.co.uk/http/lib/Varien/Autoload.php(94): include('/domains/mysit...') #2 (internal function): Varien_Autoload->autoload('MageWorx_StoreS...') #3 /domains/mysite.co.uk/http/app/code/local/MageWorx/StoreSwitcher/Model/PageCache/Processor.php(38): spl_autoload_call('MageWorx_StoreS...') #4 /domains/mysite.co.uk/http/lib/Varien/Autoload.php(94): include('/domains/mysit...') #5 (internal function): Varien_Autoload->autoload('MageWorx_StoreS...') #6 /domains/mysite.co.uk/http/app/code/core/Mage/Core/Model/Cache.php(703): spl_autoload_call('MageWorx_StoreS...') #7 /domains/mysite.co.uk/http/app/code/core/Mage/Core/Model/Cache.php(685): Mage_Core_Model_Cache->_getProcessor('MageWorx_StoreS...') #8 /domains/mysite.co.uk/http/app/c in /domains/mysite.co.uk/http/app/Mage.php on line 547

The MageWorx StoreSwitcher mentioned in the error is disabled.

Any ideas why this extension is causing issues if it’s not enabled? Removing the extension files from app/code/local doesn’t help either.

Magento ver. 1.9.2.4.

exception – Magento showing errors in developer mode

I have enabled developer and it’s showing me following errors :

1 exception(s):
Exception #0 (Exception): Notice: A non well formed numeric value encountered in /opt/bitnami/apps/magento/htdocs/app/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider.php on line 105

Exception #0 (Exception): Notice: A non well formed numeric value encountered in /opt/bitnami/apps/magento/htdocs/app/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider.php on line 105
<pre>#1 TemplateMonsterFilmSliderBlockWidgetFilmSlider->loaderDimensions('{"slider_id":"5"...') called at (generated/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider/Interceptor.php:63)
#2 TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor->loaderDimensions('{"slider_id":"5"...')
#3 call_user_func_array(array(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, 'loaderDimensions'), array('{"slider_id":"5"...')) called at (vendor/magento/framework/View/TemplateEngine/Php.php:82)
#4 MagentoFrameworkViewTemplateEnginePhp->__call('loaderDimensions', array('{"slider_id":"5"...')) called at (generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:37)
#5 MagentoFrameworkViewTemplateEnginePhpInterceptor->__call('loaderDimensions', array('{"slider_id":"5"...')) called at (app/code/TemplateMonster/FilmSlider/view/frontend/templates/widget/filmslider/default.phtml:5)
#6 include('/opt/bitnami/app...') called at (vendor/magento/framework/View/TemplateEngine/Php.php:59)
#7 MagentoFrameworkViewTemplateEnginePhp->render(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, '/opt/bitnami/app...', array('csp' => &MagentoCspHelperInlineUtil#000000005e8a241e00000000218919f2#)) called at (vendor/magento/framework/Interception/Interceptor.php:58)
#8 MagentoFrameworkViewTemplateEnginePhpInterceptor->___callParent('render', array(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, '/opt/bitnami/app...', array('csp' => &MagentoCspHelperInlineUtil#000000005e8a241e00000000218919f2#))) called at (vendor/magento/framework/Interception/Interceptor.php:138)
#9 MagentoFrameworkViewTemplateEnginePhpInterceptor->MagentoFrameworkInterception{closure}(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, '/opt/bitnami/app...', array()) called at (vendor/magento/framework/Interception/Interceptor.php:153)
#10 MagentoFrameworkViewTemplateEnginePhpInterceptor->___callPlugins('render', array(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, '/opt/bitnami/app...', array()), array(array('csp_helper_plugi...'))) called at (generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:26)
#11 MagentoFrameworkViewTemplateEnginePhpInterceptor->render(&TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor#000000005e8a245b00000000218919f2#, '/opt/bitnami/app...', array()) called at (vendor/magento/framework/View/Element/Template.php:271)
#12 MagentoFrameworkViewElementTemplate->fetchView('/opt/bitnami/app...') called at (generated/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider/Interceptor.php:180)
#13 TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor->fetchView('/opt/bitnami/app...') called at (vendor/magento/framework/View/Element/Template.php:301)
#14 MagentoFrameworkViewElementTemplate->_toHtml() called at (vendor/magento/framework/View/Element/AbstractBlock.php:1100)
#15 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at (vendor/magento/framework/View/Element/AbstractBlock.php:1104)
#16 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at (vendor/magento/framework/View/Element/AbstractBlock.php:674)
#17 MagentoFrameworkViewElementAbstractBlock->toHtml() called at (app/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider.php:127)
#18 TemplateMonsterFilmSliderBlockWidgetFilmSlider->toHtml() called at (generated/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider/Interceptor.php:89)
#19 TemplateMonsterFilmSliderBlockWidgetFilmSliderInterceptor->toHtml() called at (vendor/magento/framework/View/Layout.php:566)
#20 MagentoFrameworkViewLayout->_renderBlock('RiKBubYQVryPL12f...') called at (vendor/magento/framework/View/Layout.php:542)
#21 MagentoFrameworkViewLayout->renderNonCachedElement('RiKBubYQVryPL12f...') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#22 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('RiKBubYQVryPL12f...') called at (vendor/magento/framework/View/Layout.php:497)
#23 MagentoFrameworkViewLayout->renderElement('RiKBubYQVryPL12f...', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#24 MagentoFrameworkViewLayoutInterceptor->renderElement('RiKBubYQVryPL12f...', false) called at (vendor/magento/framework/View/Layout.php:594)
#25 MagentoFrameworkViewLayout->_renderContainer('content', false) called at (vendor/magento/framework/View/Layout.php:544)
#26 MagentoFrameworkViewLayout->renderNonCachedElement('content') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#27 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content') called at (vendor/magento/framework/View/Layout.php:497)
#28 MagentoFrameworkViewLayout->renderElement('content', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#29 MagentoFrameworkViewLayoutInterceptor->renderElement('content', false) called at (vendor/magento/framework/View/Layout.php:594)
#30 MagentoFrameworkViewLayout->_renderContainer('main', false) called at (vendor/magento/framework/View/Layout.php:544)
#31 MagentoFrameworkViewLayout->renderNonCachedElement('main') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#32 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main') called at (vendor/magento/framework/View/Layout.php:497)
#33 MagentoFrameworkViewLayout->renderElement('main', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#34 MagentoFrameworkViewLayoutInterceptor->renderElement('main', false) called at (vendor/magento/framework/View/Layout.php:594)
#35 MagentoFrameworkViewLayout->_renderContainer('columns', false) called at (vendor/magento/framework/View/Layout.php:544)
#36 MagentoFrameworkViewLayout->renderNonCachedElement('columns') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#37 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('columns') called at (vendor/magento/framework/View/Layout.php:497)
#38 MagentoFrameworkViewLayout->renderElement('columns', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#39 MagentoFrameworkViewLayoutInterceptor->renderElement('columns', false) called at (vendor/magento/framework/View/Layout.php:594)
#40 MagentoFrameworkViewLayout->_renderContainer('main.content', false) called at (vendor/magento/framework/View/Layout.php:544)
#41 MagentoFrameworkViewLayout->renderNonCachedElement('main.content') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#42 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.content') called at (vendor/magento/framework/View/Layout.php:497)
#43 MagentoFrameworkViewLayout->renderElement('main.content', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#44 MagentoFrameworkViewLayoutInterceptor->renderElement('main.content', false) called at (vendor/magento/framework/View/Layout.php:594)
#45 MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false) called at (vendor/magento/framework/View/Layout.php:544)
#46 MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#47 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper') called at (vendor/magento/framework/View/Layout.php:497)
#48 MagentoFrameworkViewLayout->renderElement('page.wrapper', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#49 MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false) called at (vendor/magento/framework/View/Layout.php:594)
#50 MagentoFrameworkViewLayout->_renderContainer('page.wrapper.out...', false) called at (vendor/magento/framework/View/Layout.php:544)
#51 MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper.out...') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#52 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper.out...') called at (vendor/magento/framework/View/Layout.php:497)
#53 MagentoFrameworkViewLayout->renderElement('page.wrapper.out...', false) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#54 MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper.out...', false) called at (vendor/magento/framework/View/Layout.php:594)
#55 MagentoFrameworkViewLayout->_renderContainer('root', false) called at (vendor/magento/framework/View/Layout.php:544)
#56 MagentoFrameworkViewLayout->renderNonCachedElement('root') called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:206)
#57 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root') called at (vendor/magento/framework/View/Layout.php:497)
#58 MagentoFrameworkViewLayout->renderElement('root', true) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:193)
#59 MagentoFrameworkViewLayoutInterceptor->renderElement('root') called at (vendor/magento/framework/View/Layout.php:963)
#60 MagentoFrameworkViewLayout->getOutput() called at (vendor/magento/framework/Interception/Interceptor.php:58)
#61 MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', array()) called at (vendor/magento/framework/Interception/Interceptor.php:138)
#62 MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterception{closure}() called at (vendor/magento/framework/Interception/Interceptor.php:153)
#63 MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at (generated/code/Magento/Framework/View/Layout/Interceptor.php:494)
#64 MagentoFrameworkViewLayoutInterceptor->getOutput() called at (vendor/magento/framework/View/Result/Page.php:258)
#65 MagentoFrameworkViewResultPage->render(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/View/Result/Layout.php:171)
#66 MagentoFrameworkViewResultLayout->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/Interception/Interceptor.php:58)
#67 MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#)) called at (vendor/magento/framework/Interception/Interceptor.php:138)
#68 MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (app/code/Magezon/Core/Plugin/View/Result/Layout.php:24)
#69 MagezonCorePluginViewResultLayout->aroundRenderResult(&MagentoFrameworkViewResultPageInterceptor#000000005e8a260500000000218919f2#, &Closure#000000005e8a230800000000218919f2#, &MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/Interception/Interceptor.php:135)
#70 MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (app/code/Zemez/Amp/Model/Plugin/Framework/Controller/ResultInterfacePlugin.php:95)
#71 ZemezAmpModelPluginFrameworkControllerResultInterfacePlugin->aroundRenderResult(&MagentoFrameworkViewResultPageInterceptor#000000005e8a260500000000218919f2#, &Closure#000000005e8a230800000000218919f2#, &MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/Interception/Interceptor.php:135)
#72 MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/Interception/Interceptor.php:153)
#73 MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#), NULL) called at (generated/code/Magento/Framework/View/Result/Page/Interceptor.php:130)
#74 MagentoFrameworkViewResultPageInterceptor->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000005e8a22b900000000218919f2#) called at (vendor/magento/framework/App/Http.php:120)
#75 MagentoFrameworkAppHttp->launch() called at (generated/code/Magento/Framework/App/Http/Interceptor.php:24)
#76 MagentoFrameworkAppHttpInterceptor->launch() called at (vendor/magento/framework/App/Bootstrap.php:261)
#77 MagentoFrameworkAppBootstrap->run(&MagentoFrameworkAppHttpInterceptor#000000005e8a22a000000000218919f2#) called at (index.php:39)
</pre>

does anyone know how to solve them
???

code in line:

public function loaderDimensions($jsonParams)
    {
        $params = json_decode($jsonParams, true);
        $loader = ();

        if ($params('aspectRatio') == -1) {
            $loader('height') = $params('height');
            $loader('padding') = 0;
            $loader('position') = 'no-abs';
        } elseif ($params('aspectRatio') != 0) {
            $loader('height') = 'auto';
            $loader('padding') = 100 / $params('aspectRatio'); //105 line
            $loader('position') = 'abs';
        }

        return $loader;
    
    }

Thank in advance

magento2 – How to do apply filter of custom field value in Sales Order in Admin Magento 2?

I have created some fields and save data in quote and sales_order table on my order success.

I have successfully display the data in Admin Sales Order but it doesn’t apply filter on it as it will search in sales_order_grid table.

How to search data with using quote and sales_order table only.

Any Help is appreciated.

magento2 – Magento 2 search results suggest SQL commands

When i search some keywords like brand name XXX the search results suggest like following SQL commands

XXX' AND SLEEP(3) oRDeR BY 1 #
XXX" or (1,2)=(select*from(select name_const(CHAR(111,108,111,108,111,115,104,101,114),1),name_const(CHAR(111,108,111,108,111

I have Googled about it i see i am not alone:
https://www.google.com/search?biw=1920&bih=947&sxsrf=ALeKk01E6H2rZeNBTsgP5IBg5ubFXrUkNw%3A1601427042443&ei=YtZzX_fDGsOckwWRn4fgDQ&q=magento+AND+SLEEP%283%29+oRDeR+BY+1+%23&oq=magento+AND+SLEEP%283%29+oRDeR+BY+1+%23&gs_lcp=CgZwc3ktYWIQA1DG2Q1YxtkNYNDbDWgAcAB4AIABY4gBY5IBATGYAQCgAQKgAQGqAQdnd3Mtd2l6wAEB&sclient=psy-ab&ved=0ahUKEwj3_P3P1I_sAhVDzqQKHZHPAdwQ4dUDCA0&uact=5

Is it a bug? How can i clear these search suggets?

catalog – Magento 2.3 How to show Out of Stock Products only in Search?

My site is supposed to show out of stock products in some places in the catalogue, so the Catalog > Inventory > Display Out of Stock Products setting is set to “Yes.”
But I do not want out of stock products to show up in the search. Before upgrading to M2.3, we accomplished this by overriding MagentoCatalogInventoryModelPluginLayer’s beforePrepareProductCollection() function:

 public function beforePrepareProductCollection(
        MagentoCatalogModelLayer $subject,
        MagentoCatalogModelResourceModelCollectionAbstractCollection $collection
    ) {

        $_category = $subject->getCurrentCategory();
        if (is_object($_category) and in_array($_category->getId(), array(161, 184)))// don't apply to Recently Sold, Our Archive categories
        {
            return;
        }

        parent::beforePrepareProductCollection($subject, $collection);
        $stockFlag = 'has_stock_status_filter';
        if (!$collection->hasFlag($stockFlag)) {
            $resource = $this->getStockStatusResource();
            $resource->addStockDataToCollection(
                $collection,
                true // force
            );
            $collection->setFlag($stockFlag, true);
        }
    }

    protected function getStockStatusResource()
    {
        if (empty($this->stockStatusResource)) {
            $this->stockStatusResource = $this->stockStatusFactory->create();
        }
        return $this->stockStatusResource;
    }

Now that Layer.php is gone in Magento 2.3, I don’t know where to start with trying to hide out of stock products in search. I thought maybe I could use MagentoCatalogInventoryModelPluginProductSearch, but that isn’t used at all as far as I can tell.

How to add QTY box in recently viewed product in magento 2.3.5 version

I want add qty box in recently viewed product in magento 2.3.5. All recently viewed product using knockout js. please suggest any way

magento2.3 – how to remove decimal value for weight attribute in more information tab in magento 2.3

enter image description here

getAdditionalData()) :?>

<div class="additional-attributes-wrapper table-wrapper">
    <table class="data table additional-attributes" id="product-attribute-specs-table">
        <caption class="table-caption"><?= $block->escapeHtml(__('More Information')) ?></caption>
        <tbody>
              <?php foreach ($_additional as $_data) :?>
              <?php if ($_data('code') == 'weight') {
                $_data('value') = $_data('value').'grams';?>
                <tr>
                  <th class="col label" scope="row"><?= $block->escapeHtml($_data('label')) ?></th>
                  <td class="col data" data-th="<?= $block->escapeHtmlAttr($_data('label')) ?>"><?= /* @noEscape */ $_helper->productAttribute($_product, $_data('value'), $_data('code')) ?></td>
                </tr>
              <?php } else { ?>
                <tr>
                  <th class="col label" scope="row"><?= $block->escapeHtml($_data('label')) ?></th>
                  <td class="col data" data-th="<?= $block->escapeHtmlAttr($_data('label')) ?>"><?= /* @noEscape */ $_helper->productAttribute($_product, $_data('value'), $_data('code')) ?></td>
                </tr>
              <?php } ?>
              <?php endforeach; ?>
        </tbody>
    </table>
</div>

magento2 – How to Add Html Link Additional Options in Magento 2.3.3

I’ve applied following solution, its working up to magento 2.3.2 version but its not working in magento 2.3.3

$printableDesignImagesLinks .= ‘helperData->getMediaUrl() . $this->helperData->getPrintableDesignsPath() . ‘/’ . $printableDesignImages($i) . ‘” target=”_blank”>’ . $printableDesignImages($i) . ”;

$additionalOptions() = (
‘label’ => “Printable Design Images”,
‘value’ => $printableDesignImagesLinks
);

$item->addOption(array(
‘product_id’ => $item->getProductId(),
‘code’ => ‘additional_options’,
‘value’ => $this->jsonSerializer->serialize($additionalOptions)
));

Output :

enter image description here

Is there any solution for this issue? Just let me know
Thank you in advance!