texts:
Hi am try to review block function overwrite. but it's not working. I am trying both way preference and plugin not working please check and let me know what I am going wrong.
registration.php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Revoamerica_Categoryreview',
    __DIR__
);

etc/module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Revoamerica_Categoryreview" setup_version="1.0.0" />
    <sequence>
            <module name="Magento_Review" />
        </sequence>
</config>

etc/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\Review\Block\Product\View">
            <plugin name="Categoryreview-block-block-review" type="Revoamerica\Categoryreview\Plugin\ReviewPlugin" sortOrder="1" />
        </type>
    </config>

Plugin/ReviewPlugin.php

<?php

namespace Revoamerica\Categoryreview\Plugin;

class ReviewPlugin
{
    public function aftergetReviewsCollection(\Magento\Catalog\Model\Product $subject, $name)
    {
        // logging to test override
        die("testtt");
    }

}
?>


texts:
I have problem with search in Magento 1.9.3.4. It does not return any results (I do not receive errors, neither in logs, nor on site). I have tried solutions suggested in threads linked below question however nothing changed. I have clean install of Magento on server where everything normally works. We tried to reindex and do rollback on older versions of CatalogSearch (after each change reindex). Products are set to visible in both catalog and search. Caches are all off. Any ideas please?

Magento Search returns no product after 1.9.3.1 upgrade
Magento 1.9.3: every product is displayed in the search in full text mode


texts:
I am looking to add the following tracking code to the checkout confirmation page on our magento site but am unsure on what to add/change so that it reflects the order details. Can anyone help?

<script type="text/javascript">
            var _caq = _caq || [];
            var products = [];
            products.push({Sku: 'ProductID', UnitPrice: 'item price here', Quantity: 'quantity here'});
            products.push({Sku: 'ProductID', UnitPrice: 'item price here', Quantity: 'quantity here'});
            _caq.push(["Order", {OrderId: 'OrderID', Revenue: 'oVal', CurrencyCode: '3 letter currency code here', Products: products}]);
</script>


texts: Multi Website, Store and Store view in Magento2?

texts: How to check whether our module is compatiable for multi website, multi store and multi store views?


texts: programmatically get a fixed product tax in product page

texts:
I'am looking for a code that permit me to get the fixed product taxe named "ecotaxe" for France.

Is anyone know how to get this value ?

Thanks,


texts:
following is my config file

<config>
    <modules>
        <Opco_Planner>
            <version>1.0.0.0</version>
        </Opco_Planner>
    </modules>
    <global>
        <models>
            <planner>
                <class>Opco_Planner_Model</class>
                <resourceModel>planner_resource</resourceModel>
            </planner>

            <planner_resource>
                <class>Opco_Planner_Model_Resource</class>
                <entities>
                    <theme>

planner_theme

                    </theme>
                </entities>
            </planner_resource>
        </models>
        <helpers>
            <planner>
                <class>opco_Planner_Helper</class>
            </planner>
        </helpers>
        <blocks>
            <planner>
                <class>opco_Planner_Block</class>
            </planner>
        </blocks>

        <resources>
            <planner_setup>
                <setup>
                    <module>Opco_Planner</module>
                    <class>Opco_Planner_Model_Resource_Setup</class>
                </setup>
            </planner_setup>
        </resources>

    </global>
    <frontend>
        <routers>
            <planner>
                <use>standard</use>
                <args>
                    <module>Opco_Planner</module>
                    <frontName>planner</frontName>
                </args>
            </planner>
        </routers>
    </frontend>
</config>

I named folder inside sql planner_setup under this folder I create install-1.0.0.0.php. so file path will opco/planner/sql/planner_setup/install-1.0.0.0.php. Installer file look like this

<?php

 echo 'Running This Upgrade: '.get_class($this)."\n
 \n";
 die("Exit for now");

It does not echo any thing. Please help me its my second question.
I also create setup file at location opco/planner/model/resource/setup.php but not success.


texts: Catalog Search Refinement issue on admin login

texts:
I trying for this past few hours, but i can't find out the issue. I installed the "Catalog Search Refinement" and checked on front end yesterday. Today I'm tried to login on admin panel and i get this error.

There has been an error processing your request
Mage registry key "_singleton/catalogsearch2/feed" already exists

Trace:
#0 /var/www/magento/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /var/www/magento/app/Mage.php(477): Mage::register('_singleton/cata...', false)
#2 /var/www/magento/includes/src/__default.php(22033): Mage::getSingleton('catalogsearch2/...')
#3 /var/www/magento/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#4 /var/www/magento/includes/src/__default.php(14361): Mage::dispatchEvent('controller_acti...', Array)
#5 /var/www/magento/includes/src/Mage_Adminhtml_Controller_Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#6 /var/www/magento/includes/src/__default.php(14241): Mage_Adminhtml_Controller_Action->preDispatch()
#7 /var/www/magento/includes/src/__default.php(18698): Mage_Core_Controller_Varien_Action->dispatch('login')
#8 /var/www/magento/includes/src/__default.php(18228): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /var/www/magento/includes/src/__default.php(21063): Mage_Core_Controller_Varien_Front->dispatch()
#10 /var/www/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#11 /var/www/magento/index.php(84): Mage::run('', 'store')
#12 {main}

Magento version : 1.9.2.0
PHP version     : 7.0.8

Pleas help me to get out from this error.


texts:
I am trying to upgrade magento version from 2.1.8 EE to magento version 2.3.1.
I am trying to update using command line procedure given here

  https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html

At the step of Modify the Magento updater

I am getting the following error -
[InvalidArgumentException]
  Could not find package magento/project-enterprise-edition with version 2.3.
  0.

I also tried to upgrade through script.
It successfully upgraded from magento 2.1.8 EE to magento 2.3.1 EE through script on local setup , but not upgrading on server .
The command to run the script just terminates showing no error on server instance.


texts: How to override adminhtml block file in Magento 2

texts:
How to override module-customer/block/AdminHtml/Group/Edit/Form.php

I have created custom module for that please find my code for that.

  etc/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\Customer\Block\Adminhtml\Group\Edit\Form">
    <plugin name="add_form_field" type="ZeroCool\AdvancedReviews\Model\Plugin\Form" sortOrder="1"/>
</type>
<type name="Magento\Customer\Controller\Adminhtml\Group\Save">
    <plugin name="save_field" type="ZeroCool\AdvancedReviews\Model\Plugin\Form" sortOrder="1"/>
</type>
<preference for="Magento\Customer\Model\Group\Edit" type="ZeroCool\AdvancedReviews\Block\Adminhtml\Group\Edit" />
</config>

  Vendor/Package/Block/Adminhtml/Group/Edit.Form.php

<?php
namespace ZeroCool\AdvancedReviews\Block\Adminhtml\Group\Edit;

use Magento\Customer\Controller\RegistryConstants;

 class Form extends Magento\Customer\Block\Adminhtml\Group\Edit
 {

public function _prepareLayout()
{
    echo "Layout Worked Successfully..."; die();
}

}

There are below exceptions but can't find solutions for them.

  2 exception(s):
  Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Magento\Customer\Block\Adminhtml\Group
  Exception #1 (ReflectionException): Class ZeroCool\AdvancedReviews\Block\Adminhtml\Group does not exist

Please guide me.

Thanks in Advance.


texts: Magento 2 Get Seller's address from the Item/Product that is added to your cart

texts:
For example in order to get total qty in the cart, the following code can be used:

$quote->getItemsQty();

For example, in order to get product details in the cart, the following code can be used:

$productInfo = $this->_cart->getQuote()->getItemsCollection();
foreach ($productInfo as $item){
   echo $item->getProductId();
   echo $item->getName();
   echo $item->getSku();
   echo $item->getQty();
   echo $item->getPrice();
}

So in order to get seller's details of that particular product that is in your cart, how can I fetch seller's information such as his name or his city through that product?

Thanks in advance.


texts: Magento 2 - get wrong locale which I set in system config?

texts:
In Magento 2, I get wrong locale which I set in system config?

The first, I go to admin->set config locale is Japanese.

And then, I go to class "\Magento\Framework\Stdlib\DateTime\Timezone"

....
    /**
     * {@inheritdoc}
     */
    public function getDateFormat($type = \IntlDateFormatter::SHORT)
    {
        var_dump($this->_localeResolver->getLocale());
        return (new \IntlDateFormatter(
            $this->_localeResolver->getLocale(),
            $type,
            \IntlDateFormatter::NONE
        ))->getPattern();
    }
.......

And then I got the result: "en_US".
Did you see the same issue in your system?
If you have solution, may you help me please?


texts:
in /app/design/frontend/base/default/template/email/order/items/order/default.phtml

my new order email lists the configurable products the customer has ordered

I want to output the product id of the product that was selected, however:

$_item->getProductId()

gives me the configurable product ID and not the child (simple) product that was chosen by the customer.

in the basket, I did this:

$product = Mage::getModel('catalog/product')->load($_item->getProduct()->getId());
if($product->getTypeId() == "configurable")
{
  $product = Mage::getModel('catalog/product')->load($_item->getOptionByCode('simple_product')->getProductId());
}
echo $product->getId() ;

but on this page i get:

Fatal error: Call to a member function getProductId() on a non-object


texts: Customize Account setting form in Magento 2

texts:
In Magento 2, the previous Account Setting edit form has a different layout, like for changing password user has to select the checkbox and then text boxes for password updates pop up,

I am changing that layout

So I removed all the checkboxes, and put change password in the different form.
and also I included first name, last name, email address, gender, dob in password form and display it to none.

The issue is, password update doesn't work, On digging up I found the script code in edit form phtml


texts: mysql data size keep increase to 36 GB(or more until hdd full)

texts:
Yesterday, my store completely down with this critical error

  Can't connect to local MySQL server through socket '/tmp/mysql.sock'

I contacted hosting company, they said error is due to HDD is full and my mysql data is over 36 GB

and they also said 'core_cache' table have 26 GB data size

(Last week, when I dumb the database, I got 3 ~ 5 GB sql file)

While I'm checking, I found mysql data suddenly become 9 GB

So my store become work again since there is hdd space

When I check mysql data today, it is 14 GB few hour ago, and now it's 16 GB it keep increase the size

I think when my hdd become full due to the mysql size again , I will get critical error and store will be down

Can I know why mysql data is so big and keep increase, big size core_cache tables , what should I check..? or solution

( innodb_version          | 5.6.19 )

Appreciate any answer or comments!

UPDATE - Most space is taken by index tables (like core_cache, core_url_rewrite, catalog_product_index_eav_idx  and so on)

We have around 90,000 SKU products (group + simple)

Tables                   !                      | Size in MB

m_core_cache                                  |    8453.14 |

m_core_url_rewrite                            |     896.05 |

m_catalog_product_index_eav_idx               |     280.88 |

m_catalog_product_entity_varchar              |     231.56 |


texts:
Magento 1.9.4
Porto theme

We will be closed for Thanksgiving holiday and are looking to put up a pop-up window that will say that.
What is an easy way to put up a nice looking pop-up?


texts: jCarousel issue with Easylife Switcher extension for Magento

texts:
I use Easylife Switcher extension in my Magento store, everything seems to be fine until click on color change, when I click on the color jcarousel is stop working, I think it is not reinitialize. In product view page i have this error: ReferenceError: ProductMediaManager is not defined
I use this script in the media.phtml and a Magento 1.9 version.

     jQuery(document).ready(function($) {

            myCarousel = null; // This will be the carousel object

jQuery(document).ready(function($) {

        myCarousel = null; // This will be the carousel object

function mycarousel_initCallback(carousel, state) {
    var page = 1;
    jQuery('#jcarousel_gallery_prev').css('visibility', 'hidden');

    if (state == 'init') {
        myCarousel = carousel;
    }
    jQuery('#jcarousel_gallery_next').bind('click', function() {
        carousel.next();
        page++;
        jQuery('#jcarousel_gallery_prev').css('visibility', 'visible');
        jQuery('#jcarousel_gallery_next').css('visibility', (page == 3) ? 'hidden' : 'visible');
        return false;
    });
    jQuery('#jcarousel_gallery_prev').bind('click', function() {
        carousel.prev();
        page--;
        jQuery('#jcarousel_gallery_next').css('visibility', 'visible');
        jQuery('#jcarousel_gallery_prev').css('visibility', (page == 1) ? 'hidden' : 'visible');
        return false;
    });

    jQuery('.product-view .product-img-box .more-views .jcarousel-skin-tango .jcarousel-item').width(<?php echo $thumbX;?>);

};

        jQuery('#jcarousel_gallery_carousel').jcarousel({
            scroll: 1,
            visible:3,
            initCallback: mycarousel_initCallback,
            buttonNextHTML: null,
            buttonPrevHTML: null,
                setupCallback:function(){
                   jQuery('#jcarousel_gallery_carousel.jcarousel-list li').each(function(){
                        jQuery(this).width(103)
                   })
                },
        });
    });

jQuery(document).ready(function($) {
jQuery('.cloud-zoom').live('click', function(){
var images = [];

images.push(jQuery('#cloud_zoom').attr('href'));
jQuery('a.cloud-zoom-gallery').each(function(){
images.push(jQuery(this).attr('href'));
});
jQuery.fancybox(
images,
{
'theme' : 'light',
'padding' : 0,
'type' : 'image',
'changeFade' : 0,
'transitionIn'  :   'elastic',
'transitionOut' :   'elastic',
'speedIn'       :   400,
'speedOut'      :   400,
'openEffect' : 'elastic',
'closeEffect' : 'elastic',
'nextEffect' : 'elastic',
'prevEffect' : 'elastic'
}
);
return false;
});
});

Thank you


texts: Magento 2.2.4 Upgrade issue : Area is already set

texts: I have upgraded to version 2.2.4 from 2.2.3 now I'm getting error when try to save theme seting


texts: configurable product name changes to simple product name when attributes (color/size) are selected

texts:
I have a configurable product for a shirt that has 150 simple products associated with it (30 colors, 5 sizes for each color). Today I noticed that the product name is defaulting to the name of the simple product once a color and size are selected. Can anyone tell me why the product name is changing from the configurable product name to the simple product name when a color and size are selected?

Incidentally, we also just applied an upgrade to Amasty Color Swatches Pro about a week ago, which we've also been having a separate set of issues with. I only mention this is in off chance that these two issues are related.


texts: Magento 2.2.4 adding new custom attribute error "Attempt to load value of nonexistent EAV attribute"

texts:
I have shop with some custom product attributes - everything working find. But today I added a new custom attribute (id 163) and added to default set.

I can see dropdowns for new attribute - but after saving the product with selected value of new attribute a warning is in system.log - and after reloading product in admin selected value is not set in new attribute:

main.WARNING: Attempt to load value of nonexistent EAV attribute '163'
                    for entity type 'Magento\Catalog\Api\Data\ProductInterface'.

I find some other threads with same error but no solution. In table catalog_product_index_eav there is value of selection saved ...

Thanks for help!
Martin


texts: Invalid block type "product_list" in Magento Category Pages

texts:
I am getting following exception.log file whenever i try to visit the category pages

2016-08-12T14:36:10+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: ' in /home/magento/app/Mage.php:596
Stack trace:
#0 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(514): Mage::throwException('Invalid block t...')
#1 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(456): Mage_Core_Model_LayoutOverriddenClass->_getBlockInstance('', Array)
#2 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(491): Mage_Core_Model_LayoutOverriddenClass->createBlock('', 'product_list')
#3 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(258): Mage_Core_Model_LayoutOverriddenClass->addBlock('', 'product_list')
#4 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(224): Mage_Core_Model_LayoutOverriddenClass->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/magento/var/cache/ew/files/00/15/Mage/Core/Model/Layout.php(229): Mage_Core_Model_LayoutOverriddenClass->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_LayoutOverriddenClass->generateBlocks()
#7 /home/magento/app/code/core/Mage/Catalog/controllers/CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()
#9 /home/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 /home/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/magento/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/magento/app/Mage.php(685): Mage_Core_Model_App->run(Array)
#13 /home/magento/index.php(84): Mage::run('', 'store')
#14 {main}

i dont understand why this is happening on the simple category pages.

How to debug this issue.


texts: Magento2: How to add custom message with shipping method?

texts:
I am using this extension for custom shipping method.
Now I want to show custom message with this shipping method So it will show in whole checkout process.
Can anyone please help me to achieve like this.

Any help would be much appreciated.


texts: There has been an error processing your request error while going to the page

texts:
I go to some page and after that I see

  There has been an error processing your request

  Exception printing is disabled by default for security reasons.

  Error log record number: 1480226950850

In report-> 1480226950850

  a:5:{i:0;s:51:"Controller file was loaded but class does not
  exist";i:1;s:1066:"#0
  /var/www/hosts/mage-composer/src/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(340):
  Mage::exception('Mage_Core', 'Controller file...')  #1
  /var/www/hosts/mage-composer/src/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(308):
  Mage_Core_Controller_Varien_Router_Standard->_includeControllerClass('/var/www/hosts/...', 'Agents_Agent_Fi...')  #2
  /var/www/hosts/mage-composer/src/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(196):
  Mage_Core_Controller_Varien_Router_Standard->_validateControllerClassName('Agents_Agent',
  'finalize')  #3
  /var/www/hosts/mage-composer/src/app/code/core/Mage/Core/Controller/Varien/Front.php(172):
  Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
   #4 /var/www/hosts/mage-composer/src/app/code/core/Mage/Core/Model/App.php(365):
  Mage_Core_Controller_Varien_Front->dispatch()  #5
  /var/www/hosts/mage-composer/src/app/Mage.php(692):
  Mage_Core_Model_App->run(Array)  #6
  /var/www/hosts/mage-composer/src/index.php(83): Mage::run('chny',
  'store')  #7
  {main}";s:3:"url";s:21:"/agent/finalize/rend/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:4:"chny";}

What should I do? How I can fix it?


texts:
Most Magento Report building forums, blogs, tutorials, etc all seem to focus on taking an existing Magento Report and either copying or extending it. Most of these are grids which link to a specific dataset and all of them include standard filters i.e. from/to date & period (plus extra filters on some reports).

However, there seems to be very little information out there about how to create a completely custom report with custom filters.

For instance, a customer would like a report with two custom filters which reports back on just two simple aggregated metrics.


texts: List all user email ids based on role_name in magento 2?

texts:
In Magento 2,
We want to list all user email id's by using their role_name.

How we can achieve in one collection with optimal way?

Thanks!


texts:
I have Udropship through Magento.
How do I create a daily manifest or shipped items report for the day. The USPS is asking me if I can provide this.


texts: Programmatically changing magento product attributes values and output

texts:
In my store, it makes sense for us to have a single attribute for a certain variable, but on the front-end we want to divide the list. For example, a product may have the following options:

Size 1, Type A
Size 1, Type B
Size 2, Type A
Size 2, Type B

Only one of these options can be selected. In magento this shows up as a single dropdown. What we want to do is divide this into two lists and use radio buttons. For example:

Type A
 - Size 1
 - Size 2

Type B
 - Size 1
 - Size 2

Because only one can be selected, it makes sense to have these options in a single attribute field. How can I programmatically intercept the output so I can change the option items to radio buttons, and separate them into two lists?


texts: Magento2: In which table Resource Access dropdown (tree-resources-container) is saved?

texts:
public function getRules()
{
    $resoId = 'Mageants_AdvancedPermissions::catalog_attributes';
    $permission = 'allow';
    $rid = $this->_adminSession->getUser()->getRole()->getData('role_id');
    $resources = $this->_rulesCollectionFactory->create();
    $collection = $resources->addFieldToFilter('role_id', array('eq' => $rid))->addFieldToFilter('resource_id', array('eq' => $resoId))->addFieldToFilter('permission', array('eq' => $permission));
    return $collection;
}


texts:
I have created the below code for the export of the CSV in my cron class file. But I unable to get it export file and when I checked in database it was showed me to status running for my job_code colum in cron_schedule table.

crontab.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="default">
      <job name="sdfdf" instance="KiwiCommerce\AdminActivity\Cron\Test" method="execute">
          <schedule>* * * * *</schedule>
      </job>
    </group>
</config>

Test.php

<?php
namespace KiwiCommerce\AdminActivity\Cron;

class Test {

    protected $fileFactory;
    protected $csvProcessor;
    protected $directoryList;
    protected $_logger;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Customer\Model\Session $customerSession,
        \Magento\Framework\App\Response\Http\FileFactory $fileFactory,
        \Magento\Framework\File\Csv $csvProcessor,
        \Magento\Framework\App\Filesystem\DirectoryList $directoryList
    ) {
        $this->fileFactory = $fileFactory;
        $this->csvProcessor = $csvProcessor;
        $this->directoryList = $directoryList;
        parent::__construct($context, $customerSession);
    }

    /**
     * Method executed when cron runs in server
     */
    public function execute() {

        $fileName = 'csv_filename.csv';
        $filePath = $this->directoryList->getPath(\Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR)
          . "/" . $fileName;

        $customer = $this->_customerSession->getCustomer();
        $personalData = $this->getPresonalData($customer);

        $this->csvProcessor
            ->setDelimiter(';')
            ->setEnclosure('"')
            ->saveData(
                $filePath,
                $personalData
            );

        return $this->fileFactory->create(
            $fileName,
            [
                'type' => "filename",
                'value' => $fileName,
                'rm' => true,
            ],
              \Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR,
            'application/octet-stream'
        );
    }

    protected function getPresonalData( \Magento\Customer\Model\Customer $customer )
    {
        $result = [];
        $customerData = $customer->getData();
        $result[] = [
            'address_id',
            'firstname',
            'middlename',
            'lastname',
           'email',
            'company',
            'street',
            'telephone',
            'fax',
        ];

        $result[] = [
            null,
            $customerData['firstname'],
            $customerData['middlename'],
            $customerData['lastname'],
            $customerData['email'],
            null,
            null,
            null,
            null,
        ];

        $addressId = 1;
        foreach ($customer->getAddresses() as $address) {
            $result[] = [
                $addressId,
                $address['firstname'],
                $address['middlename'],
                $address['lastname'],
                null,
                $address['company'],
                $address['street'],
                $address['telephone'],
                $address['fax'],
            ];
            $addressId++;
        }

        return $result;
    }
}


texts: How to use WSDL SOAP functions and objects in Magento 2?

texts:
I just had a brief look at the Magento 2 WSDL file.

Until 1.9 I used the WSDL file as part of my development (Delphi win 32) to have access to the functions, arrays, objects etc...
This was very helpful.

I already found the functions again... totally different names though, so I have to redevelop everything... which is time-consuming, but possible.

But what I haven't understood until now is the login credentials with the token system. In V1.9 I had an API-User and the corresponding password,
which I could use to get my session ID:
e.g. mage.login(myLoginParam)

I already found the extension settings in the Magento backend.
But I really don't have a clue how to submit those consumer key, secrets... etc..
I am connecting to Magento using the HTTPRIO component from Delphi.

Can anyone enlighten me?

b/r
Holger


texts: Error installing Magento: Error parsing body - doesn't seem to be a chunked message

texts:
I am trying to install Magento and I am getting this error:

The URL "https://something.com/" is not accessible.
Error parsing body - doesn't seem to be a chunked message

Weird because I am on that page...

I am getting this error when I am on the page: "Configuration".

Here is the options I selected:

Enable Charts
Use Web Server (Apache) Rewrites
Use Secure URLs (SSL)
Run admin interface with SSL

Here are the options I did not select:

Skip Base URL Validation Before the Next Step
Skip Secure URL validation before next step

I have a Ubuntu server with NGiNX server. I am using the most recent version of Magento community.

What is causing the problem and how can I solve it?


texts:
If we want to search by name or sku, we can just alter the their respective attribute settings in admin panel. But how to search by mentioning product id?

I thought changing Mage_Adminhtml_Model_Search_Catalog would does the same but I figured it out that it doesn't.

    $collection = Mage::helper('catalogsearch')->getQuery()->getSearchCollection()
        ->addAttributeToSelect('entity_id') /* added */
        ->addAttributeToSelect('name')
        ->addAttributeToSelect('description')
        ->addSearchFilter($this->getQuery())
        ->setCurPage($this->getStart())
        ->setPageSize($this->getLimit())
        ->load();

Please help.


texts:
Have a little problem with my M2 V 2.3.
In the shopping cart the thumbnails image is not displayed.

I can see that it gets a 404 for the image and when I look ind the pub/media I can not find the requested path for the image.

All other images are working fine. The only problem is in the shopping cart.

http://kasperstestdev.prod42.magentohotel.dk/

Sit is still in development.


texts: Magento 2 how to create custom field in user registration page

texts:
How to create custom field (Text field and drop down ) in user registration page and it should effect in.

User registration page
Admin panel customer information
Customer my account page


texts:
I've inherited a running, trading website and am trying to work through numerous issues with it, amongst them, that the secure site is pulling through a lot of unsecured content and links, seemingly with the unsecure_base_url setting.

I intend to scour the site to work out the issues, but in the interim is there any downside to using an https:// url in the unsecure_base_url field?

And if I want to enforce Secure Usage, would it be a valid permanent solution?

Any advice appreciated.


texts:
can someone explain why i have "report.INFO: Broken reference:" in my system.log in magento 2.2. how to fix it? Also there is another error that says:
report.INFO: Broken reference: the 'footer.bottom.links' tries to reorder itself towards 'copyright', but their parents are different: 'footer.bottom' and 'footer' respectively. [] []


texts: How I can add / mark order to see if was printed - Magento 2

texts:
how I can mark or add something in the order to see if this order was printed?

I have more admin users that print orders, I need to know what order has been viewed and printed and which haven't.


texts: How can I update special prices in magento via API?

texts:
I try this scrpit to update special prices. The update is slowly. Is it possible to update any item in one request? In this issue I make request for every item.
SOAP V2
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy->catalogProductSetSpecialPrice($sessionId, '2', '77.5', '2012-03-29 12:30:51', '2012-04-29 12:30:51');
var_dump($result);


texts: Magento2 Form Component Base Table not found

texts:
I'm creating an input form for my module with form components as recommended by the magento2 documentation.

The uiComponent is displaying on the page however it's throwing this error - where it's showing the namespace for the model rather than the table name.

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'site.Vendor\Module\Model\Slideshow' doesn't exist, query was: SELECT main_table.* FROM Vendor\Module\Model\Slideshow AS main_table WHERE (id = '')

I'm not entirely sure what's the cause of this - or where it's getting the namespace from.


texts: issue with add product to cart magento 2

texts:
I am trying to add a new configurable product with it's supper attributes when we hit the update cart button.
check code here
/**
 * Update customer's shopping cart
 *
 * @return void
 */
protected function _updateShoppingCart()
{
    try {
        $cartData = $this->getRequest()->getParam('cart');
        if (is_array($cartData)) {
            if (!$this->cart->getCustomerSession()->getCustomerId() && $this->cart->getQuote()->getCustomerId()) {
                $this->cart->getQuote()->setCustomerId(null);
            }
            $cartData = $this->quantityProcessor->process($cartData);
            $cartData = $this->cart->suggestItemsQty($cartData);
            $this->addnewproducttocart();
            $this->cart->updateItems($cartData)->save(); // second point
        }
    } catch (\Magento\Framework\Exception\LocalizedException $e) {
        $this->messageManager->addErrorMessage(
            $this->_objectManager->get(\Magento\Framework\Escaper::class)->escapeHtml($e->getMessage())
        );
    } catch (\Exception $e) {
        $this->messageManager->addExceptionMessage($e, __('We can\'t update the shopping cart.'));
        $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
    }
}

public function addnewproducttocart(){
    $product_id = '126';
    $product =  $this->_objectManager->create('Magento\Catalog\Model\Product')->load($productId);
    $params = array(
        'product' => $product_id,
        'super_attribute' => array(
            525 => 100,
            //525 is the attribute id of size and 100 is the selected option value (small) of that attribute.
        ),
        'qty' => 2,
    );
    $this->cart->addProduct($product, $params);
    $this->cart->save(); // first point
}

This was working before in Magento 2.2.2 but after upgrade to Magento 2.3.4 not working correctly.
The problem is when we save cart ( at the second point ) it deletes the existing quote item and creates new also info_buyrequest is missing for a new one.
Working fine if we write exit after the first point when saving cart but creating a problem when we save cart at the second point.
If you guys have any Idea please share.
Any help will be appreciated.


texts: Magento 1.9 How can I hide or exclude in the Navigation Menu category under sub-sub-sub category items

texts:
My project running Magento version Magento1.9.3.2.I have a menu drop down more category show that main reason hide or remove some item under the category.

This facility Magento admin panel through possible just add 'no' to Include in Navigation Menu. It's working category, sub category, and sub-sub category. This same facility not hiding or working sub-sub-sub category items.

Example: Iphone (Category) - mobiles(Sub Category) - New (Sub-Sub Category ) - iphone 11 pro (Sub-Sub-Sub category) and iphone 11 (Sub-Sub-Sub Category)

How can I hide iphone 11 pro only navigation bar ?


texts:
I've Magento 1.x code. I would like to use in Magento2.x version.

What it would be ??

Code :

<?php $_options = Mage::helper('core')->decorateArray($this->getOptions()) ?>
    <?php foreach($_options as $_option): ?>
    <?php echo $this->getOptionHtml($_option) ?>
<?php endforeach; ?>
</dl>
<?php else: echo dlkghflghf;?>

I need to relevant code to Render HTML for options.

What I can use for <?php echo $this->getOptionHtml($_option) ?> In Magento 2 ?


texts: Magento 2.1.7 Product EAV Reindexer issue

texts:
I am very new to magento and am finding it ok to use (after overcomming a lot of issues it has) however i am now at one spot cdwhere i cant seem to resolved an issue i have with the Product EAV Indexer

  /opt/plesk/php/7.0/bin/php bin/magento index:reindex
  catalog_product_attribute

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mage_catalog_product_index_eav_idx.source_id' in 'field list', query

  was: INSERT INTO mage_catalog_product_index_eav (entity_id,
  attribute_id, store_id, value, source_id) SELECT
  mage_catalog_product_index_eav_idx.entity_id,
  mage_catalog_product_index_eav_idx.attribute_id,
  mage_catalog_product_index_eav_idx.store_id,
  mage_catalog_product_index_eav_idx.value,
  mage_catalog_product_index_eav_idx.source_id FROM
  mage_catalog_product_index_eav_idx ON DUPLICATE KEY UPDATE
  entity_id = VALUES(entity_id), attribute_id =
  VALUES(attribute_id), store_id = VALUES(store_id), value =
  VALUES(value), source_id = VALUES(source_id)

Which if am correct states that i need the column source_id in catalog_product_index_eav_idx.source_id, However, When i add this column in and set the value to 0 for each row (i created a test database to see and that filled all the values with 0) i then get this error when running the same command

  SQLSTATE[21S01]: Insert value list does not match column list: 1136
  Column count doesn't match value count at row 1, query was: INSERT
  INTO mage_catalog_product_index_eav_idx SELECT DISTINCT
  pid.entity_id, pid.attribute_id, pid.store_id,
  IFNULL(pis.value, pid.value) AS value FROM (SELECT DISTINCT
  s.store_id, s.website_id, dd.attribute_id,
  COALESCE(ds.value, dd.value) AS value, cpe.entity_id FROM
  mage_store AS s LEFT JOIN mage_catalog_product_entity_int AS
  dd ON dd.store_id = 0 LEFT JOIN mage_catalog_product_entity_int AS
  ds ON ds.store_id = s.store_id AND ds.attribute_id = dd.attribute_id
  AND ds.entity_id = dd.entity_id LEFT JOIN
  mage_catalog_product_entity_int AS d2d ON d2d.store_id = 0 AND
  d2d.entity_id = dd.entity_id AND d2d.attribute_id = 94 LEFT JOIN
  mage_catalog_product_entity_int AS d2s ON d2s.store_id =
  s.store_id AND d2s.attribute_id = d2d.attribute_id AND d2s.entity_id =
  d2d.entity_id LEFT JOIN mage_catalog_product_entity AS cpe ON
  cpe.entity_id = dd.entity_id WHERE (s.store_id != 0) AND ((ds.value IS
  NOT NULL OR dd.value IS NOT NULL)) AND (COALESCE(d2s.value, d2d.value)
  = 1)) AS pid LEFT JOIN mage_catalog_product_entity_int AS pis ON pis.entity_id = pid.entity_id AND pis.attribute_id = pid.attribute_id
  AND pis.store_id = pid.store_id WHERE (pid.attribute_id IN('136',
  '139', '149', '161', '167', '169', '170', '171', '231')) AND
  (IFNULL(pis.value, pid.value) IS NOT NULL) AND (NOT(pis.value IS NULL
  AND pis.value_id IS NOT NULL))

I have been trying to solve this issue for quite a while now but am not having any luck.

I think I need to replace the core code which is used for the re-indexer but i cannot seem to find this.

Any chance someone could point me in the right direction on where Magento stores these files or how to resolve the issue using a different method?


texts: Show specific products via Widget on CMS page - but not by utilizing a category for it

texts:
We want to display specific products that the user can choose in the backend of Magento (1.9). Right now we know that there is:

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="xxx" template="catalog/product/list.phtml"}}

for displaying a specific category, but what I do want is to determine the specific products and show them in the same manner.

Like:

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" product_ids="22, 23, 32, 942, 1283" template="catalog/product/list.phtml"}}

Note the difference: product_ids="22, 23, 32, 942, 1283".

How can I achieve this? Is this even possible? What would be needed to enable it for my shop?


texts: How to inline edit magento 2 product collection using ui-components(grid)?

texts: Suppose i want to edit some rows in product's grid collection.


texts: Restrict adding products to cart from admin order create

texts:
I am creating order from admin end.
My requirement is to restrict few products to place order only from admin.
I need to show some message when those particular product selected and added to Order, I tried for event "checkout_cart_product_add_after" but that is not firing here.
I need to restrict it based on attribute value or sku.
Can anyone suggest me how this can be achieved? Thanks!!


texts: magento admin page can not able to login

texts:
i am working with magento(1.9), now i can not able to login to admin as well as front end.

Here i attached the screen for your further reference.


texts:
hy for our exisiting customers we require that they pay after 30 days is there a module than only is visible for exisitng customers (so logged in).
And when they choose this option they receive an invoice at the last day? (so the 30th day) ?
or will this be some custom development.


texts: I need to get out of order information via api, but i didn't know what to do, anyone help me, thank in advance.


texts: Create collection from different tables in magento grid

texts:
I am preparing a grid in which I need 7 fields and in this there will be  4 fields from table 1 2 fields from table 2 and 1 field from table 1.
I tried using concurrent left joints unfortunately did not succedd so please help.

$collection =Mage::getModel('name/name')->getCollection();
$collection->getSelect()->joinLeft('table1', 'main_table.payment_id = payment_installment.payment_id',array('amount'));
    $collection->getSelect()->joinLeft('sales_flat_order_address', 'main_table.order_id = sales_flat_address.entity_id',array('email'))


texts: Magento 2: Login user programmatically showing wrong default header message "Default welcome msg!" instead of showing "Welcome, user!"

texts:
When you login to Magento 2.2.6 programmatically with code below, header show default message "Default welcome msg!" instead of "Welcome, user!"

// Load customer session
$customerSession = $objectManager->create('Magento\Customer\Model\Session');
$customerSession->setCustomerAsLoggedIn($customer);

Expected result

Session should get started
Header should show "Welcome, user!"

Actual result

Session getting started
Header shows "Default welcome msg!"

Unlike when you login with magento login page, it is not picking customer fullname during login with code.


texts: Get order product item count in order success page - Magento 2

texts:
I want get number of product order in order success page. This found solution magento 1.9 visit Get ordered product count in magento
<?php $_order = $this->getOrder() ?>
<?php echo $_order->getTotalItemCount();?>

but I didn't get any solution in Magento 2
If anyone know Get order product item count in order success page phtml file, please share with me,Thanks for advance


texts:
I am overriding the vendor\magento\module-catalog\view\frontend\templates\product\view\type\default.phtml. For this I have copied this and pasted in my theme app\design\frontend\Sm\clickboom\Magento_Catalog\templates\product\type\default.phtml, But it is not working.

Any help on this?


texts: Magento Newsletter: How to Remove from Queue

texts:
Any suggestions how to delete Queue newsletters from Magento? The most I found is to change a sent date to like 100 years from now. :)
Any way to actually delete the queue?

Using Magento 1.7.0.2


texts:
The shop is working on a magento 2.3 with MSI.

I would like to add two informations to each item in a guest cart endpoint /V1/guest-carts/:cartId.

The stock from a given source
A thumbnail from a product custom attribute

What is the best way to achieve this ?

I had try to use extension attribute, but not successfully.


texts: How to add "Use Default Value" checkbox for custom form field

texts:
I have created a form by exending Magento\Backend\Block\Widget\Form\Generic class in my class.
I am adding a field using $fieldset->addField() to my form for which I need to add "Use Default Value" checkbox field like below screenshot.

With dataProvider class in ui_component form, this is done by setting
'arguments' => [
    'data' => [
        'config' => [
            'dataType' => 'text',
            'formElement' => 'input',
            'componentType' => 'field',
            'label' => 'Field',
            'validation' => [
                'validate-digits' => true,
            ],
            /*
             * Below line of code adds the checkbox which
             * Enable/Disable input field when checked
             */
            'service' => [
                'template' => 'ui/form/element/helper/service',
            ],
        ],
    ],
]

Any idea on how to set it for my addField function? I have tried it adding as a config parameter but its not working.
$fieldset->addField(
    'field',
    'text',
    [
        'name' => 'field',
        'label' => __('Field'),
        'title' => __('Field'),
        'required' => true,
        'service' => [
            'template' => 'ui/form/element/helper/service',
        ]
    ]
);


texts: Magento 2 Display Sub Category of parent? I am trying to get subcategory using current category registry object but i don't know how to  getChildrenCategories for parent.


texts: FedEx shipping method display error This Service is not available

texts:
FedEx is displaying error on checkout page This Service is not available
Following things I did:

Add weight to Product
Change location
Change Network location
Disable Residential delivery
Enable Residential delivery
Change max weight

And many more steps I follow that are available on Magento stack and on other communities


texts: Assign multiple attributes in a single product

texts:
I have an attribute 'Hard drive' I would like to add several labels on my configurable product

exemple :

250go
500go
1To

I would like to put different capabilities in the drop-down list


texts: Not able to edit or add in the HTML Code part PageBuilder

texts: I used FAQ extension in Magento 2.2 EE.But we have migrated to 2.3.I am not able to edit or add in the HTML Code part.All the other fields are working. How to edit this.


texts: how to define model,controller,helper,block,layout.xml in config,xml file in magento

texts:
I m creating module for new product.....
I m creating this for my knowledge...

I wrote config.xml......
I also add mymodue_module.xml in etc of magento for my module....It is also showing in backend of magento

I wrote my controller.....

Bt when I called from by url it is showing error...

my config.xml....

<?xml version="1.0" encoding="UTF-8" ?>
<config>
    <!-- module configuration -->
    <modules>
        <Packt_New>
            <version>0.0.1</version>
        </Packt_New>
    </modules>
    <!-- module configuration end -->
    <global>

        <blocks>
            <new>
                <class>

                    Packt_New_Block
                </class>
            </new>

        </blocks>

        <helpers>
            <new>
                <class>
                    Packt_New_Helper
                </class>
            </new>
        </helpers>

        <models>
            <new>
                <class>
                    Packt_New_Model
                </class>
            </new>
        </models>
    </global>
        <frontend>
            <routers>
                <new>
                    <use>standard</use>
                    <args>
                        <module>
                            Packt_New
                        </module>
                        <frontName>
                            new
                        </frontName>
                    </args>
                </new>
            </routers>
        </frontend>
</config>

my Controller..

<?php

class Packt_New_IndexController extends Mage_Core_Controller_Front_Action{

    public function indexAction(){

    }

    public function newAction(){

        echo "this is my new controller ";
    }

}


texts: Mutli store setup to use another store other than default as the default language for category and product translation

texts:
We have a multi store setup with our default store set to be in English.

We have a Dutch website (.nl) which inherits all of the English products and categories but we have altered the names, descriptions and category names to be in Dutch at the store level.

We are now setting up a parallel store to the .nl site for the Belgium domain (.be) but we would like to use the .nl translations and overrides as that is the native language for half of the population. Is this possible?

We can change the locale to use the Dutch language pack but can't figure out if its possible to get the product and category level information to be shared.


texts:
I usually import categories by first uploading to our server via FTP and then import it using MAGMI. However, I am getting the below error all of sudden

  "SQLSTATE[HY000] [2002] Invalid argument in
   - Trace not found"

Much appreciated if anyone could help me out.


texts: Firegento - how to add store address to the header (VAT compliance)

texts:
Could somebody help me with Firegento PDF. The problem is that original Magento PDF invoice includes store address in the header. BUT, despite German contributors (they come from VAT EU country) Firegento doesn't include this important data.So the Firegento invoices are not meeting EU VAT standards without store(sender) full address.

How to include standard Magento store address from original PDF to Firegento header?


texts:
i have a Menu of 2 Levels. On the last level i want to show the categorys on the left sidebar.

Look here:

https://www.evernote.com/shard/s312/sh/2f446214-27b3-4ded-90cc-c3227f104f6f/7153126e64017fe82181fbe8b8e0f233/deep/0/Sportbike-Masters-Lauf-9+10.png

How can i do this?


texts: Magento 2: Logged in User: Add token to existing Reset Password functionality

texts:
I am working on a Magento-2.3 task where logged in users' Reset Password functionality is to be customized.
A token field needs to be added which will be sent through Email.
User has to then enter the Token received in email instead of Current Password.
I have created the HTML/CSS/JS codes. But, finding hard time to send Password Reset Token programmatically and also, in case I send it, verify Token and save password.
Meanwhile, I am looking into /vendor/magento/module-customer.


texts:
I'm having problems with slowness on pages that involve checkout. For some reason, it seems to me that when we wrap up the checkout session, it takes a very long time for things to "happen".

Even if logged into pages such as home or catalogsearch, the slowdown involving the session doesn't occur.

My sessions are storage on files, the same for cache.
Even deactivating the profiler, slowness occurs in the same way.

I have read some similar cases using Redis (not my case, I have files) and also cases where there are many inactive sessions (also not my case, the project is not released):

Very long time for Mage_Core_Model_Session_Abstract_Varien::start
Magento varien session start very slow on category pages with MEMCACHE session storage
Slow Magento - Mage_Core_Model_Session

There is a case where APC cache "resolved" the problem, but I belive it ins't a solution, just a workaround: https://community.magento.com/t5/Installing-Magento-1-x/Magento-very-slow-loading-since-upgrade-to-1-9-1/td-p/3930

I tried change sessions to db storage mode, but the problem persists. I got that on profiler (checkout/cart page):

Although there are many similar cases, either with session in redis, memcache or even in files, there is no concrete answer as to why this happens. So why this happens and how fix it?

Magento 1.9.3.3

PHP 7.0.28

UPDATE:

I tried use Redis with Cm_RedisSession and Cm_Cache_Backend_Redis extensions but the slowness on pages that involve checkout don't stop.


texts: Magento contact form unable to submit your request error

texts:
Magento 1.9.2.3 contact form issue, its the default contact form in magento. I get error Unable to submit your request, please try again later, even all fields are filled, however this form is submitted and we get email but error still appears for users using that form.

I have narrowed down this error to:

 if (!$mailTemplate->getSentSuccess()) {
 throw new Exception();
 }

in app/code/core/Mage/Contacts/controllers/IndexController.php

when I comment out the code above, it will give correct message ("Success, your query has been sent...").

What's the fix for this? Is above code necessary? I will get the please fill all fields error if I leave some of the required field blank.


texts:
I'm developing a backend module, which displays a table with all the products. I'm trying to make a searcher in order to search an specific product from the table. It's like making an order from the backend, that you have to choose some products and you can make filters with the searcher.

I tried to make it in php and javascript, but by the moment it doesn't works as I would like. So now I'm trying to do it in Ajax, but I've never typed any code in ajax, so it will take me a few hours to learn the basics.

The fact is, if any of you know where's the .phtml code which let you make orders from the backend, because I want to know how magento does the searcher. Maybe If I copy the code, it will be easier. Or if anyone knows a better way to do it, please let me know it.

Thanks.


texts: Magento 2.3.2 Import only images for multiple products

texts:
I want to import images for multiple products. I read many questions and I tried the answer but with no luck.

I want to import images from external server. For that I created CSV with sku, base_image, small_image, thumbnail_image column.

The value in all field is like :
htts://external.com/imgae_name

I selected "Product" in Entity Type, Import Behaviour is Add/ Update. I skip Image file directory.

When I click on "check data" button I am getting following error.

  Product Type is invalid or not supported in row(s): 1

If I add Product type column then I am getting attribute set error. Can anybody help me on that ?

Even when I import custom attribute I am getting same error. For that I created csv with sku and cost.

Here cost is my product attribute.


texts: How to Auto-generate the Product URL key During Import

texts:
We are importing products using a PHP script using AvS_FastSimpleImport which is an extension of Mage_ImportExport.

The CSV files / array do not contain the field url_key.

So currently, this value is empty for the products.

We would like to have the URL key auto generated, just as if we enter a product manually in the backend and leave the field empty.

The script already contains a part to load admin events:

Mage::getConfig()->loadEventObservers('adminhtml');
Mage::app()->addEventArea('adminhtml');

Edit This bug is fixed in EE 1.13.1.0


texts:
Hi I've installed Magento 2 in a directory  : var/www/html/magento2

There seems to be two problems I'm experiencing:

When I browse to http://....aws.com/ I can see contents of html folder and lists the Magento2 folder. Then clicking on this folder opens up the home page of magento.

Then when I try to access admin page (http://....aws.com/magento2/admin) I'm not seeing the admin page.

Where should the .htaccess be located and what should the RewriteBase be set to pls?

Thanks


texts: magento 2 observer on customer email change

texts:
I want to fire observer when customer email is changed, i could not find any event for it. please help with same
what i want to is below
1: fire observer on customer update customer details
2: check if email id is changed
3: check if email is changed


texts: Uncaught TypeError: Cannot read property 'nodeName' of undefined in custom js admin panel

texts:
I loaded custom js in head section of grid ui component in order to open a model dialog box when i click a button.

require([
"jquery",
'Magento_Ui/js/modal/modal'
], function($, modal){

var options = {
    type: 'popup',
    responsive: true,
    innerScroll: true,
    title: 'Title',
    buttons: [{
        text: $.mage.__('Proceed'),
        class: '',
        click: function () {
            /* some stuff */
            this.closeModal();
        }
    }]
};
var popup = modal(options,$('#popup-modal'));

$("#print").click(function(){
....
....}});

Its throw an following error when page load

jquery.js:3762 Uncaught TypeError: Cannot read property 'nodeName' of undefined

can any one suggest please.

Thanks.


texts: How i Modify my magento 2 theme in my theme css is integrated but HTML not

texts:
I am new and learn Magento 2. I am creating my new custom theme in Magento 2 and integrated my HTML and CSS.HTML is not showing on my page but CSS work How I apply HTML in my theme and modify my theme
this is my theme Structure


texts:
I made a module, following a tutorial, but now I need to call these items registered in the module, to my store home

my module is Create / Save Admin Grid

how do i call these saved lines on my module?

this is my module structure, it works correctly, but I can't call it in a .phtml file

can anybody help me? I've been looking for the solution for days, but I'm not able to call the store home

my block
app/code/Zeepi/ZeepiConfiguracoes/Block/Adminhtml/Banner.php

<?php

namespace Zeepi\ZeepiConfiguracoes\Block\Adminhtml;

class Banner extends \Magento\Backend\Block\Widget\Container
{
    /**
     * @var string
     */
    protected $_template = 'banner/banner.phtml';

    /**
     * @param \Magento\Backend\Block\Widget\Context $context
     * @param array $data
     */
    public function __construct(\Magento\Backend\Block\Widget\Context $context,
    \Zeepi\ZeepiConfiguracoes\Model\BannerFactory $modelnameFactory,
    array $data = [])
    {
        $this->BannerFactory= $modelnameFactory;
        parent::__construct($context, $data);
    }

    /**
     * Prepare button and grid
     *
     * @return \Magento\Catalog\Block\Adminhtml\Product
     */
    protected function _prepareLayout()
    {

        $addButtonProps = [
            'id' => 'add_new',
            'label' => __('Add New'),
            'class' => 'add',
            'button_class' => '',
            'class_name' => 'Magento\Backend\Block\Widget\Button\SplitButton',
            'options' => $this->_getAddButtonOptions(),
        ];
        $this->buttonList->add('add_new', $addButtonProps);

        $this->setChild(
            'grid',
            $this->getLayout()->createBlock('Zeepi\ZeepiConfiguracoes\Block\Adminhtml\Banner\Grid', 'zeepi.banner.grid')
        );
        return parent::_prepareLayout();
    }

    /**
     *
     *
     * @return array
     */
    protected function _getAddButtonOptions()
    {

        $splitButtonOptions[] = [
            'label' => __('Add New'),
            'onclick' => "setLocation('" . $this->_getCreateUrl() . "')"
        ];

        return $splitButtonOptions;
    }

    /**
     *
     *
     * @param string $type
     * @return string
     */
    protected function _getCreateUrl()
    {
        return $this->getUrl(
            'zeepiconfiguracoes/*/new'
        );
    }

    /**
     * Render grid
     *
     * @return string
     */
    public function getGridHtml()
    {
        return $this->getChildHtml('grid');
    }

    public function getCollection()
    {
        $collection = $this->BannerFactory->create()->getCollection();
        return $collection;
    }

}


texts: Magento 2 minicart showing count multiple time

texts:
I am using magento 2.1.6 and i have a problem with my mini cart. the minicart showing multiple count at a time if i added 1 product it show "11 items" . and also if there is no product in cart it just only show the count "0" the label is not displaying please see the attachment

<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/** @var $block \Magento\Checkout\Block\Cart\Sidebar */
?>

    <a class="action showcart" href="<?php /* @escapeNotVerified */ echo $block->getShoppingCartUrl(); ?>"
       data-bind="scope: 'minicart_content'">
        <?php /* @escapeNotVerified */ echo __('My Cart'); ?>

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

            <?php echo $block->getChildHtml('minicart.addons'); ?>

    <?php endif ?>


texts: Get Product id before save event in observer

texts:
how can I get product id from new product before save event.I have used below code but it will create blank product in database every time.

$newProduct = $product->duplicate();
echo $product_id = $newProduct->getId();

any other way to get product id before product save.


texts:
I have been charged with customizing Magento 1.9.1 and my question seems complicated to me, but might not to a seasoned MageDev.

What I want to do is have an attribute set, say "UniqueChoice", and in our application based on the roles of "Admin" and "Showcase", we would like to have more/less options. What is the best way to accomplish this? Can it somehow be done through the GUI? Or will I need to override some files to add this functionality?


texts: How to add banner or slider in magento 2.1.1 home page and how to create custom theme?

texts:
Please explain both question in detail:

How to add slider in home page.
I want to keep homepage banner slider, so please suggest for banner slider in magento 2.

How to create custom theme in magento.
How to create custom theme in magento 2, give me list of files and step to create theme.


texts:
Is there a Magento demo instance with the Magento Enterprise Solr search activated?

I was guessing http://enterprise-demo.magentocommerce.com/ might have activated this feature but did not find out if Solr is activated. In the admin backend, access to the system configuration is disallowed.


texts: Magento 2: Do I need to have separate swatches for every configurable product?

texts:
TL;DR

Simply put: How to make a configurable product with different images and different prices for each?

To read more:

I was under the assumption that configurable products pull its configuration from other products. If I have 4 options, it will pull the data (price, quantity, image) of the products that are set during the making of the main configurable product.

Let's say I need to create a configurable product (flower bouquet). And this bouquet comes in different arrangements, good, better, best, and deluxe and each has its arrangement has its own price, image, and quantity.

My question is, where do I set the images for a configurable product?

The way I'm doing it now is by:

Create a new configurable product --> Create configuration
Select Attributes (I would create a new one for this example)
I will choose 'visual swatch' for -> Catalog Input Type
Then I will add options in the section: Manage Options (Values of Your Attribute)

Now here where I get confused. Do I add the 4 product photos here, in the attribute?

Because in the next screen, I will also add the details for 4 products. I will set the price, image, quantity, SKU etc.

But at the front end (customer view) the images are being pulled from the switch. (I found out because if I don't set images for the swatch, the little squares under the product title will come blank).

So as for the images I uploaded for each product, what are they for if they won't be shown?

If only the images that come from the switch, does that mean I have to set a different swatch attr for every configurable product?

So here, I don't upload an image for the swatch:

Here, it shows that I have 4 products being set with images:

Obviously, it shows blank squares:

Now I went back and added an image to the attribute (the visual swatch) and refreshed the page:

The front end now shows the swatches with images, but when I click on one, it doesn't update the main product image. Notice I'm selecting an image labeled 2 and hovering over an image labeled 3, and the product shows image labeled 1.


texts:
I'm using Magento 1.7 on WAMP server. I can't access my store. I can't access the admin panel neither.

Instead of loading the store, the page shown is the content defined under /error/CUSTOM_THEME/report.phtml.

I checked app/etc/local.xml, I have access to the database via phpMyAdmin, and I deleted var/cache and var/session. I have no maintenance.flag, this is not the problem.

I don't know why my store is not loading. Any ideas on what could be causing that?


texts: Reindex a group of products programmatically

texts:
I'd like to know if it's possible to re-index not all product data, but just a group of them, based on their id. Something like this:

foreach($collection as $product){
     reindexSingleProduct($product->getID());
}


texts: Minimum hardware requirenment for magento 2

texts: What should be the minimum configuration of the system (Laptop or PC) to run Magento 2 smoothly ? specially processor (Intel).


texts: Magento-2 get product collection from category id on home page

texts:
$categoryId = '3';
    $objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
    $categoryFactory = $objectManager->get('\Magento\Catalog\Model\CategoryFactory');
    $productFactory = $objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
    $category = $categoryFactory->create()->load($categoryId);
    $collection = $productFactory->create();
    $collection->addAttributeToSelect('*');
    $collection->addCategoryFilter($category);
    $collection->addAttributeToFilter('visibility', \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH);
    $collection->addAttributeToFilter('status',\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)->load();
    $collection->setPageSize(5);

    foreach($collection as $products){
        print_r($products->getData());
    }


texts: magento 2.3.1 "Catalog Category Link" widget blank

texts:
I am trying to use the following widget:

{{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="ewrrewq" title="rqewrqrq" template="category/widget/link/link_block.phtml" id_path="category/482" }}

but nothing is displayed. I did some diggings and I found out that

Magento\Catalog\Block\Category\Widget\Link

is a virtualType declared in

vendor/magento/module-catalog/etc/di.xml.

What bothers me is that I cannot seem to debug it at all. Looks like that block is silently failing to initialize, do you have any tips on how do handle this ?

EDIT: it seems that many of the widgets are not working although they work on a clean installation using the default theme. It might be the installed theme, I will disable it and see check again


texts: How Restrict zip codes for Cash on delivery payment method

texts: How to make magento module for Cash on delivery payment method should visible only for some zip codes/pin codes and it can be check in product page also.


texts: How do I reduce image url length so that facebook doesn't truncate them and renders them correctly?

texts:
Thanks for your attention! Ignore this question for now as it doesn't seem a length issue as I have just tried with a certain bunch of URLs that we are facing a problem with while not with another bunch. Will update the question above once I have more clarity.

Note: All links used in this post are hypothetical to explain the issue. Can't share actual links as the site is under development and confidential.

Suppose I try to post a shortened link in a facebook post such as  http://tinyurl.com/j9w7uth, which translates to something like this: https://www.example.com/product-detail-page.html. The issue is the preview image. The preview image has a url that is being truncated. The error message while posting in facebook is such -

This happens only with products, and only when the products have images that have been set up through Magento. If it is an external image, as mentioned above, with a url along the lines of https://d3v0wwxsdfl9f8.cloudfront.net/media/catalog/cdn/e823.jpg, there's no issue.

If the image has been uploaded through Magento (which only happens on product pages) the image will have a url along the lines of:

https://d3v0wwxsdfl9f8.cloudfront.net/media/catalog/product/cache/1/thumbnail/600x/17f82f742ffe127f42dca9de82fb58b1/e/l/e823.jpg

And facebook will truncate that url
http://d3v0wwxsdfl9f8.cloudfront.net/media/catalog/product/cache/1/thumbnail/600x/17f82f742ffe127f42dca9de82fb58b1

This happens whether or not you use a url shortener, because the shortener does not shorten the preview image url. It shortens the url of the page, which has no problem.

Have read about facebook's handling of such issues when reported but did not want it all that encouraging, hence want to understand if there could be a way we could shorten the auto-generated URL and/or workaround this issue within Magento itself. If nothing is possible then will have to knock on fb's door.


texts:
I have around 10 stores, not much traffic on application. I know the quick fix to this issue by making modification in database. But I get this issue several time after 2-3 months and I am not sure why it occurs.

Exception:

  exception 'PDOException' with message 'SQLSTATE[23000]: Integrity
  constraint violation: 1062 Duplicate entry '50011893' for key
  'UNQ_SALES_FLAT_ORDER_INCREMENT_ID'' in
  /var/www/html/lib/Zend/Db/Statement/Pdo.php:228

Can anyone help me to understand the reason? so that I can provide a permanent fix to my client.


texts:
I have enabled RSS in System > Configuration > RSS Feeds > Catalog > Top Level Category-->Enabled.

However it lists static pages as well as product categories when I go to www.mysite.com/rss

Is there way I can unlist category from RSS feeds list somehow?


texts: How to move shipping method from the first step to another step?

texts:
I'm just trying to move the shipping method from the shipping step to a new custom step that I've created.
Can anyone help?


texts: Magento 2 : Unable to save data in Sessions with Cache enabled

texts:
I am trying to save some temporary data into the customer session object ( \Magento\Customer\Model\Session ), which I need to retain until a quote is generated. I have tried two methods to save data in session, $session->setData('Att',$value); and $session->setAttValue($value); on a temporary bases. These getter and setter methods reside in a class which I created to handle session related operations and are called from observers.

The problem is : Once I store the value in the session and try to get it back, I am getting NULL value when Full Page Cache is enabled; however if the FPC is not enabled, the accessor method returns expected value from session.

PS: I found an issue which might be similar to what I am facing here, but in the issue, the solution suggested was hole-punching the block, but in my situation, I am not using any block, I am using observers only and I could not find a way to hole-punch function for observer. Any help appreciated.

Thanks in Advance,


texts: How to implement Partial Re indexing in Magento 2?

texts:
I have 5 Lakh product in Magento 2.
I want to implement partial re-indexing in Magento 2.
I have checked one post related to that https://maxchadwick.xyz/blog/digging-into-magento-2-partial-reindexing-implementation
But how to know if i want to create a extension in app/code or some plugin related to that.
Any help is appreciated.


texts: Magento2 - How to show Actual Price of custom options, not + amount?

texts:
Magento2.3. I would like to change the + amount to the actual price of the item with option - the base price added to the custom option. Also remove the plus sign.

I know there are plugins that do this however I would like to achieve this by  modifying my theme. I would very much appreciate help.


texts:
After migration from linode to AWS, While using the bin/magento setup:upgrade command, getting below error.
Notice: Undefined index: oauth_consumer in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152

What could be the issue? Please help.


texts: Configurable attribute selection dependency in product view page

texts:
I have two configurable attributes and I want their selection not to be dependent, as select first option one and then option two.

Is it possible to select the options at any order, thus without any dependency?


texts: Overwrite community model class not working

texts:
I am trying to overwrite Ebizmarts Mandrill model class , but its not working.
This xml is from Ebizmarts Mandrill config file:

<models>
    <ebizmarts_mandrill>
        <class>Ebizmarts_Mandrill_Model</class>
        <resourceModel>ebizmarts_mandrill_resource</resourceModel>
    </ebizmarts_mandrill>
    <ebizmarts_mandrill_resource>
        <class>Ebizmarts_Mandrill_Model_Resource</class>
    </ebizmarts_mandrill_resource>
    <core>
        <rewrite>
            <email_template>Ebizmarts_Mandrill_Model_Email_Template</email_template>
            <email_queue>Ebizmarts_Mandrill_Model_Email_Queue</email_queue>
        </rewrite>
    </core>
</models>

And below xml is from my module config file to rewrite Ebizmarts_Mandrill_Model_Email_Template file:

<email>
    <class>Mage_Updatemandrill_Model</class>
</email>

<ebizmarts_mandrill>
    <rewrite>
        <email_template>Mage_Updatemandrill_Model_Email_Template</email_template>
    </rewrite>
</ebizmarts_mandrill>

I have added a test file in shell folder to check which model class is being called and it shows my new module class.

require_once('../app/Mage.php');
umask(0);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$item = Mage::getModel('ebizmarts_mandrill/email_template');
echo get_class($item);

It returns Mage_Updatemandrill_Model_Email_Template.


texts:
Magento how to get rating star by review id

I used the following code

$ratingCollection = Mage::getModel('rating/rating_option_vote')
     ->getResourceCollection()
     ->setReviewFilter($_review->getId())
     ->setStoreFilter(Mage::app()->getStore()->getId())
     ->addRatingInfo(Mage::app()->getStore()->getId())
     ->load()
     ->getItems();

     $ratings = array();
     foreach($ratingCollection as $item){
        $ratings[]=$item->getValue();
    }

but I am getting array summary as 12, 15 but I need %

Thanks


texts: Update translations of color attribute (label)

texts:
Would anyone know how to update the translations for 'color' attribute in Magento EAV.

I need the admin value tu remain the same (after checking if it exists), then change the values of the translations for the different Storeviews.

Many thanks!


texts: How can i use Instagram widget in magento2 footer section

texts:
I am trying to Hit following API URL for the Instagram widget.

https://api.instagram.com/v1/users/XXXXXXX/media/recent?callback=jQuery112402885046003635292_1532581248756&access_token=XXXXXXXXXXXXXXXXXXXXXX&count=10;

But I am getting in response

{"error_type": "OAuthRateLimitException", "code": 429, "error_message": "You have exceeded the maximum number of requests per hour. You have performed a total of 436 requests in the last hour. Our general maximum limit is set at 200 requests per hour."}


texts: I am using paypal in payment method but it seems that the IPN transaction ID is displaying to admin panel Comment History, is there a way to customize the Comment History to blank instead of notification of transaction ID from paypal?


texts: Create link dynamically in customer account navigation

texts:
I want to create a link dynamically in customer_block_account_navigation (link supposed to show up in the sidebar)

A static link isn't a problem, you can achieve that with a xml layout update:

<customer_account>
    <reference name="customer_account_navigation">
        <action method="addLink" translate="label" module="customer">
            <name>mymodulename</name>
            <path>mypath</path>
            <label>Label of the link</label>
        </action>
    </reference>
</customer_account>

The link goes to a custom form which supposed to show up only for certain customer. So I need to control the link (or layout update) via PHP in my own module. But I couldn't find any solution how to do that.

Can anyone help me?

Thank you so much.


texts: Address Attribute not set to Address template in Magento 2

texts:
I need to update default address layout which used in order, invoice and emails.
So that I change the layout in
store->configuration->customer->customer configuration->address template.
I need to display house number after the Street Name.
I created address attribute named as house_no. house_no value is available but is not showing email or PDF
this is the deafult
{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}{{depend firstname}}
{{/depend}}
{{depend company}}{{var company}}
{{/depend}}
{{if street1}}{{var street1}}
{{/if}}
{{depend street2}}{{var street2}}
{{/depend}}
{{depend street3}}{{var street3}}
{{/depend}}
{{depend street4}}{{var street4}}
{{/depend}}
{{if city}}{{var city}},  {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}

{{var country}}

{{depend telephone}}T: {{var telephone}}{{/depend}}
{{depend fax}}
F: {{var fax}}{{/depend}}
{{depend vat_id}}
VAT: {{var vat_id}}{{/depend}}

After the modification code
{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}{{depend firstname}}
{{/depend}}
{{depend company}}{{var company}}
{{/depend}}
{{if street1}}{{var street1}}
{{/if}}
{{depend street2}}{{var street2}}
{{/depend}}
{{depend street3}}{{var street3}}
{{/depend}}
{{depend street4}}{{var street4}}
{{/depend}}
{{depend house_no}}
 {{var house_no}}{{/depend}}
{{if city}}{{var city}},  {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}

{{var country}}

{{depend telephone}}T: {{var telephone}}{{/depend}}
{{depend fax}}
F: {{var fax}}{{/depend}}
{{depend vat_id}}
VAT: {{var vat_id}}{{/depend}}

Please help me what is the wrong in there ?


texts: How to add a "CRM invoice" custom attribute into the invoice page in Magento Sales section?

texts:
I want to make a plugin or a functionality that is adding to the invoice section(after pushing the button Invoice from an Order) that it allows me to add a CRM invoice ID. The attribute has to be edited by the admin of the store admin.

I want to display on the PDF that is generated for the invoice, this ID instead of Invoice ID. The CRM invoice ID is not a range and it has to be a number that I can set.

Is there a paid plugin or a free plugin for this?

This is not duplicate because what I want to do is not explain in the linked post. I am trying to add in the admin interface a field where I can store a value to show later on in the custom PDF invoice that I've created. The Linked post is telling me how to add a custom filed to an order but I do not find there all the necessary data to make this happen. I've made a lot of tests with no success.

I would like to discuss and make test with other developers that are better than me in this case and go trough the functionality step by step, but I would like to have the possibility to ask .


texts: Use the same .phtml template to show different collection of products

texts:
I have my own custom .phtml file that I would like to use for different collections of products. For example, I would like to use it to display the first n elements of category as well as the already seen products or related products.
In addition I need to able to decide for each block to show/hide the price of the products.

Is it possible to do it with the core modules of Magento or should I extend the existing ones and write a new module?


texts: Fetch value from collection without foreach loop

texts:
I have a custom collection

$someCollection = Mage::getModel('mymodule/mymodel')->getCollection()
                           ->addFieldToSelect('some_field')
                           ->addFieldToFilter('another_field', array('eq' => $someValue));

Now consider, that this collection will always return only one row from the table, i.e.

$someCollection->getSize();

will always be "1". How to get the value of "some_field" without a foreach like:

foreach($someCollection as $row){
    $catchTheValue = $row->getSomeField();
}

I don't want to write foreach loop for one iteration. Can someone help?


texts: How can I get all products with special price via Magento SOAP V2 API?

texts: I need to get all products that are at a discount. Is there any way to achieve this with SOAP API? Is it possible to compose such a filter?


texts: "extension_attribute" is omitted in order item REST API Response

texts:
I am trying to add a new extension attribute to order items to be accessible in the REST API Response in OrderRespository and OrderItemRepository. Y create the etc/extension_attribute.xml and the two plugins:
extension_attribute.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
  <extension_attributes for="Magento\Sales\Api\Data\OrderItemInterface">
    <attribute code="external_price" type="float" />
  </extension_attributes>
</config>

di.xml
<type name="Magento\Sales\Api\OrderRepositoryInterface">
       <plugin name="get_order_external_price_attribute" type="Morwi\MayoreoOrdenes\Plugin\OrderRepository"/>
  </type>
  <type name="Magento\Sales\Api\OrderItemRepositoryInterface">
       <plugin name="get_order_item_external_price_attribute" type="Morwi\MayoreoOrdenes\Plugin\OrderItemRepository"/>
  </type>

I validate, and my plugin's methods are running. And I print_r the Items object from the return variable of each one, and they had the attribute external_price in extension_attributes:
[extension_attributes] => Magento\Sales\Api\Data\OrderItemExtension Object
    (
        [_data:protected] => Array
            (
                [gw_id] =>
                [gw_base_price] =>
                [gw_price] =>
                [gw_base_tax_amount] =>
                [gw_tax_amount] =>
                [gw_base_price_invoiced] =>
                [gw_price_invoiced] =>
                [gw_base_tax_amount_invoiced] =>
                [gw_tax_amount_invoiced] =>
                [gw_base_price_refunded] =>
                [gw_price_refunded] =>
                [gw_base_tax_amount_refunded] =>
                [gw_tax_amount_refunded] =>
                [external_price] => 10.5
            )

    )

However, when I execute the API from my postman, the extension_attribute node is not in the response on any of the two apis:
{
    "amount_refunded": 0,
    "base_amount_refunded": 0,
    "base_cost": 59.08,
    "base_discount_amount": 0,
    "base_discount_invoiced": 0,
    "base_discount_tax_compensation_amount": 0,
    "base_original_price": 82.37,
    "base_price": 82.37,
    "base_price_incl_tax": 82.37,
    "base_row_invoiced": 0,
    "base_row_total": 82.37,
    "base_row_total_incl_tax": 82.37,
    "base_tax_amount": 0,
    "base_tax_invoiced": 0,
    "created_at": "2021-01-21 22:48:42",
    "discount_amount": 0,
    "discount_invoiced": 0,
    "discount_percent": 0,
    "free_shipping": 0,
    "discount_tax_compensation_amount": 0,
    "is_qty_decimal": 0,
    "is_virtual": 0,
    "item_id": 38,
    "name": "CEPILLO HI-LO",
    "no_discount": 0,
    "order_id": 18,
    "original_price": 82.37,
    "price": 82.37,
    "price_incl_tax": 82.37,
    "product_id": 162302,
    "product_type": "simple",
    "qty_canceled": 0,
    "qty_invoiced": 0,
    "qty_ordered": 1,
    "qty_refunded": 0,
    "qty_returned": 0,
    "qty_shipped": 0,
    "quote_item_id": 134,
    "row_invoiced": 0,
    "row_total": 82.37,
    "row_total_incl_tax": 82.37,
    "row_weight": 0,
    "sku": "5952",
    "store_id": 1,
    "tax_amount": 0,
    "tax_invoiced": 0,
    "tax_percent": 0,
    "updated_at": "2021-01-21 22:48:42",
    "weight": 0
}

How can I resolve this?


texts:
I use grid view in my store, and have already removed the option to switch to list view. However, Google has indexed a large amount of list view pages and keep on sending users to this view.

Is it possible to automatically switch to grid view if list view is detected?

Magento version: 1.9.2.4

Thanks


texts: Magento2 order total is not showing tax value on cart page

texts:
order total is not showing tax value on cart page. Even its working okay on checkout page. First tax was not showing on cart page, but after following below given process it start showing  on cart page but still order total is wrong.

Magento2 Tax not displaying in Cart Page

you will find different total value on estimation page & checkout page. Different is cart estimation page is not showing tax value in total.

site link

use
country - united state
state -  california
zipcode - 90001


texts:
Background:

I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:disable Company_Commercebug.

Magento reported that the module was disabled. (I then ran the usual setup:upgrade, deleted all cache/generated/static directories and cleared all redis caches), but I found that the module was still outputting its CSS and JS files via the frontend.

This behaviour only stopped when I uninstalled the module using module:uninstall.

There is a good explanation of what module:uninstall does in the Magento Dev Docs but there is not an equivalent explanation for module:disable.

So what does module:disable actually do? Is it meant to prevent CSS/JS/etc. from being included? How does it differ from "Disable module output" in the admin panel?


texts: Magento 2.2.x 500 internal server error upon installation

texts: I have just installed magento 2.2.4 on my cPanel and I got internal server error 500. I tried to rename .htaccess file but then it opens with no css and its admin gives 404 error. My cPanel uses PHP 7.1 and mysql 5.6


texts: What does the "Processing" status mean (processing payment, shipment, ...) and where can I find a complete list of Magento statuses and their definitions?


texts: Magento 2 - product is showing via url, but it isn't appearing in the frontend

texts:
I'm having a problem with Magento 2, I've created a configurable product like how I do it every time. However, some products aren't showing in the frontend of the categories, If I try opening it up the URL, I'm able to see the product, but it just won't list in the categories I added to.

Any idea why?


texts: Magento trupentine varnish cache issue with product compare and login on top links?

texts:
We are using this extension for varnish cache

But we are facing a issue with sign in/logout link and compare product count in top links.

when we logout account and navigate to homepage it still shows sign out button but actually it is logged out.

same with compare product count, When we add product to compare.It adds the products in compare list but neither update the quantity on top links nor showing any message .

I have tried with ESI, AJAX, dummy, ttl =>0 method to bypass the header links but not working.

Can anyone help me to solve this issue?


texts: What version of MySQL is actually supported?

texts:
Was running Maria DB 5.5, tried to install Magento CLI 2.4.0, Amazon Linux / nginx Got this error.
Sorry, but we support MySQL version 5.6.0 or later.
Ok. So I install MySQL 5.6. It seems to be working, I get to
Starting Magento installation:
File permissions check...
[Progress: 1 / 1282]
Required extensions check...
[Progress: 2 / 1282]
Enabling Maintenance Mode...
[Progress: 3 / 1282]
Installing deployment configuration...
[Progress: 4 / 1282]
Installing database schema:
Schema creation/updates:
Module 'Magento_AdminAnalytics':
[Progress: 5 / 1282]
Module 'Magento_Store':
[Progress: 6 / 1282]
...
[Progress: 639 / 1282]
Installing search configuration...

In SearchConfig.php line 81:

  Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

No problem. I install elasticsearch. Retry install, now it's saying that the minimum version is 5.7??
[Progress: 4 / 1282]
Installing database schema:
Schema creation/updates:

In SqlVersionProvider.php line 93:

  Current version of RDBMS is not supported. Used Version: 5.6.23. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)


texts:
I have an issue with the reindex of Magento.
I have try to do this with the terminal and this is the response error

  [Exception]
  Notice: Use of undefined constant MCRYPT_RIJNDAEL_256 - assumed 'MCRYPT_RIJ
  NDAEL_256' in /Applications/MAMP/htdocs/Magentooo/vendor/magento/framework/
  Encryption/Encryptor.php on line 394

Is there somebody who can help me with this issue?


texts: Query string URL rewrite via .htaccess magento 1.9

texts:
I have created a CMS page having url key like brands.php, that cms page contains an phtml file as its content and when the page open its shows the list of all brands, When we click on any of the brand name the url be like brands.php/?name=test-brands
I want it to be like brands.php/test-brands
I have added below code in htaccess file and this converted the url but now I am unable to get url parameter from $_GET, $_REQUEST or Mage::app()->getRequest()->getParam('name').
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^name=([\w-]+)$
RewriteRule ^brands\.php$ /brands/%1? [R=301,L]

RewriteRule ^brands/([\w-]+)$ brands.php?name=$1 [L]

Due to this will show no route page.


texts: Magento 2 Update mass Product description using $mysqli->real_escape_string() using core php root script

texts:
After migrating all data from Magento 1.9 aproximat 800 product have static image urls in descriptin.
{{skin url="images/seringue.gif"}}
So I have created one root script to update all product descriptions programmatically...
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('memory_limit', '5G');
error_reporting(E_ALL);

use Magento\Framework\App\Bootstrap;

include 'app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();

$state = $objectManager->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/product_update_description.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('Update Product Description'); // Simple Text Log
$logger->info('ID'); // Simple Text Log
$allProductIds = [7,8,9,10,11,12,13,14,15];
foreach ($allProductIds as $productId){
    $product = $objectManager->create('Magento\Catalog\Model\Product');
    $product->load($productId);
    $description = str_replace('{{skin url="images/seringue.gif"}}','{{media url=&quot;wysiwyg/seringue.gif&quot;}}',$product->getDescription());
    $product->setDescription($description);
    $logger->info($product->getId().','.$product->getSku()); // Simple Text Log
    $product->save();
}

$resource = $objectManager->get('Magento\Framework\App\ResourceConnection');
$connection = $resource->getConnection();

$selectSql = "SELECT * FROM `catalog_product_entity_text` WHERE `value` LIKE '%{{skin url=\"images/seringue.gif\"}}%' AND value_id='37531'";
$result = $connection->fetchAll($selectSql);
$resource->closeConnection();
foreach ($result as $product) {
//print_r($product['value']);
    $logger->info($product['entity_id']);
    $description = str_replace('{{skin url="images/seringue.gif"}}','{{media url=&quot;wysiwyg/seringue.gif&quot;}}',$product['value']);
   $sql = "UPDATE `catalog_product_entity_text` SET `value` = '".$description."' WHERE `value_id` = '".$product['value_id']."';";
    $connection->query($sql);
}

The full script runs without success, in the database, nothing is changed.


texts: A technical problem with the server created an error. Error in magento 2.3.2

texts:
I am getting the below error, when I try to insert an image in a CMS page.

  A technical problem with the server created an error. Try again to
  continue what you were doing. If the problem persists, try again
  later.

How to resolve it?

There are two kind of error which i am getting.
Initially https://prnt.sc/qisky9 and after I click on Browse I get https://prnt.sc/qisl30


texts: Replace Zoom Image when click on More Views

texts:
The Issue that i am facing is, when you click on more views, the main image gets replaced but the background zoom image remains the same as base image.

You can view the problem on following link,
Select image from more views & try hover on the image.

Here is my code for the app.js file

swapImage: function(targetImage) {
    targetImage = $j(targetImage);
    targetImage.addClass('gallery-image');

    ProductMediaManager.destroyZoom();

    var imageGallery = $j('.product-image-gallery');

    if(targetImage[0].complete) { //image already loaded -- swap immediately

        imageGallery.find('.gallery-image').removeClass('visible');

        //move target image to correct place, in case it's necessary
        imageGallery.append(targetImage);

        //reveal new image
        targetImage.addClass('visible');

        //wire zoom on new image
        ProductMediaManager.createZoom(targetImage);

    } else { //need to wait for image to load

        //add spinner
        imageGallery.addClass('loading');

        //move target image to correct place, in case it's necessary
        imageGallery.append(targetImage);

        //wait until image is loaded
        imagesLoaded(targetImage, function() {
            //remove spinner
            imageGallery.removeClass('loading');

            //hide old image
            imageGallery.find('.gallery-image').removeClass('visible');

            //reveal new image
            targetImage.addClass('visible');

            //wire zoom on new image
            ProductMediaManager.createZoom(targetImage);
        });

    }
},

wireThumbnails: function() {
    //trigger image change event on thumbnail click
    $j('.product-image-thumbs .thumb-link').click(function(e) {
        e.preventDefault();
        var jlink = $j(this);
        var target = $j('#image-' + jlink.data('image-index'));

        ProductMediaManager.swapImage(target);
    });
},


texts: Magento 1.9 frontend custom page showing 404 page

texts:
Am creating frontend custom page it showing 404 page, my code's are following

  app\etc\modules\SilverExchange_Declaration.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <SilverExchange_Declaration>
            <active>true</active>
            <codepool>local</codepool>
        </SilverExchange_Declaration>
    </modules>
</config>

  app\code\local\SilverExchange\Declaration\etc\config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <SilverExchange_Declaration>
            <version>0.1.0</version>
        </SilverExchange_Declaration>
    </modules>
    <global>
            <blocks>
                <silverexchange_declaration>
                    <class>SilverExchange_Declaration_Block</class>
                </silverexchange_declaration>
            </blocks>
        </global>
    <frontend>
        <routers>
            <declaration>
                <use>standard</use>
                <args>
                    <module>SilverExchange_Declaration</module>
                    <frontname>declaration</frontname>
                </args>
            </declaration>
        </routers>
        <layout>
            <updates>
                <declaration>
                    <file>declaration.xml</file>
                </declaration>
            </updates>
        </layout>
    </frontend>
</config>

  app\code\local\SilverExchange\Declaration\controllers\IndexController.php

<?php

class SilverExchange_Declaration_IndexController extends Mage_Core_Controller_Front_Action
{

    public function IndexAction()
    {
        echo "HI fill your Declaration here";
    }
    Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());die;
}

  app\code\local\SilverExchange\Declaration\Block\Declaration.php

<?php
class SilverExchange_Declaration_Block_Declaration extends Mage_Core_Block_Template {

}

  app\design\frontend\coolbaby\default\layout\declaration.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
  <declaration_index_index>
    <reference name="content">
      <block type="silverexchange_declaration/helloWorld" name="declaration_any_block" template="declaration/index.phtml" />
    </reference>
  </declaration_index_index>
</layout>

  app\design\frontend\coolbaby\default\template\declaration\index.phtml

<?php
echo "Hi there";

  link http://127.0.0.1/ramesh/sliver-exchange/declaration

Something i miss here...!


texts: magento 2 select province to refresh shipping method in checkout page

texts: Magento checkout pages select province to refresh shipping method in Magento 2.help me


texts: Should i be using Categories or Static Blocks to add new menu items in Nav Bar?

texts:
I have been directed to use categories (subcategories & url reqwrite) but I don't like that every link after 'HOME' is a sub of 'HOME'

I also can't seem to be able to find any pages, static blocks or categories linked to the 'HOME' Button. Only a page, which doesn't affect the button text itself.


texts:
My problem that many times when I install an extension, it works in a theme but not in others.
For example this extension : SharingTools
It works in default theme but not in the theme I use.
What is the problem for that ?


texts: Magento 1 Automatic Product Imagem Slider Module

texts:
I'm searching for a Magento 1.9 module that provides automatic replacement of images in the product's page, but cant find one.

Does anybody knows one?

Thank you,


texts: Undefined index: category_id in Magento 2 Import

texts:
I'm trying to import some data into magento for some custom atributes, it seems to get some far through the sheet and then errors with the following message:

Notice: Undefined index: category_id in /domains/http/vendor/magento/module-catalog-url-rewrite/Model/Category/Plugin/Storage.php on line 52

Can anyone shed any light on this for me? Here is some example data for you:


texts:
I'm looking for a right way to create global variables in Magento that I can use it on every view page. I have some solution in mind but I don't if it's good enough.

Create a module which provides a global configuration - I don't prefer this much since I rather work with php array rather than xml, just my stupid taste.
Override the base block to have one more utility function

It's just my thought, any other suggestions are welcome :)


texts:
How do I set modes to production or default or developer in my nginx conf file?

I need to do this for Magento 1.9 version and not Magento 2