texts: How to bind product image to email in Magento2.2.5?

texts:
I have created custom module in which I need to bind product image to email template in Magento2.2.5?

My code:

$requestData["imgUrl"] = $data["shareProdImg"];

            $postObject = new \Magento\Framework\DataObject();
            $postObject->setData($requestData);

            $transport = $this->transportBuilder
                ->setTemplateIdentifier('custom_pdp_email_template')
                ->setTemplateOptions(['area' => \Magento\Framework\App\Area::AREA_FRONTEND, 'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID])
                ->setTemplateVars(['data' => $postObject])
                ->setFrom(['name' => $data["userName"],'email' => $data["userMail"]])
                ->addTo($data["shareMail"])
                ->getTransport();
            $transport->sendMessage();

My template file:

                    {{depend data.imgUrl}}
                    {{trans "%imgUrl" imgUrl=$data.imgUrl}}

                    {{/depend}}

Any help would be appreciated.


texts:
I try to override Vendor\Modulename\Controller\Account\CreatePost.php controller.
I want to do some changes  in this function. but it's not working.
If i try to override the execute function from the same controller it's works, but for this function it's not working

Does anyone know why for this function it's not working?

namespace Namaspace\ModuleName\Controller\Account;

class CreatePost extends \Magento\Customer\Controller\Account\CreatePost{
    protected function getSuccessMessage()
    {
        if ($this->addressHelper->isVatValidationEnabled()) {
            if ($this->addressHelper->getTaxCalculationAddressType() == Address::TYPE_SHIPPING) {
                // @codingStandardsIgnoreStart
                $message = __(
                    'If you are a registered VAT customer, please click here to enter your shipping address for proper VAT calculation.',
                    $this->urlModel->getUrl('customer/address/edit')
                );
                // @codingStandardsIgnoreEnd
            } else {
                // @codingStandardsIgnoreStart
                $message = __(
                    'If you are a registered VAT customer, please click here to enter your billing address for proper VAT calculation.',
                    $this->urlModel->getUrl('customer/address/edit')
                );
                // @codingStandardsIgnoreEnd
            }
        } else {
            $message = __('GUGUGUG you for registering with %1.', $this->storeManager->getStore()->getFrontendName());
        }
        return $message;
    }
}


texts: Magento 2: Where to change the expiration period of Account Confirmation Link?

texts:
We have enabled the Account Confirmation link for customers but where can I set the expiration period for confirmation link. There is no configuration for this in admin.
Please guide


texts:
We have implemented our own email-inline.css file within our theme folder - skin/frontend/package/theme/css/email-inline.css.  This works great for emails that are triggered by frontend actions that include {{inlinecss file="email-inline.css"}} - such as new order email locale/en_GB/template/email/sales/order_new.html.

However, it seems to cause an issue with certain templates, and fallback to the base email-inline.css file - such as locale/en_GB/template/email/outofstock_subscription.html.

My hunch is that these are templates when the email is triggered by the admin system (or at least not the frontend).

Is there a way to test this, and is there a way to explictly ensure that the correct area is loaded when an email is sent?


texts: I want to round all product prices in store after tax including . How can i do that with plugin ?


texts:
i try to install this extension :

https://www.magesolution.com/front-end-cms-page-builder.html

i do all steps, and when go to my site i see error 500.

the message of error :

[24-Jun-2019 08:04:59 UTC] PHP Fatal error:  Class 'MGS\Core\Helper\Data' not found in /home/pt1byfxrpoja/public_html/app/code/MGS/Fbuilder/Helper/Data.php on line 15

I go to file Data.php and i see this 15:

class Data extends \MGS\Core\Helper\Data

Its true, but see error ,,, where is problem ?


texts: Magento 2 - How Can I Update Catalog Product Price Programmatically in Frontend and Add Product to Cart With New Price?

texts:
I create one Module and make a custom form which is display in the catalog product view page.
when the customer change option from dropdown then the product price will change and also that updated price goto cart.


texts: Product attribute keeps being "null" in flat table

texts:
I'm having a magento installation with flat product tables activated. As I need an attribute in collections I've set it to "Used in Product Listing", the rest is a pretty simple textfield for all products not visible in frontend.
The problem I encounter is that in flat tables this attribute isn't set whereas another attribute with all options set in backend to the same settings works as expected.

Re-Indexing doesn't make a difference (besides holding the server cpu hostage ;))


texts: how to add custom user agent with android in magento 2?

texts:
I want to add new custom theme with my Android in app user agent.

For exmaple i want to show new theme in my Android app

Is there any solution for this


texts:
I'm running Magento EE 1.14.2.4

My old product category with sub categories URL is like this on the front end:

http://example.com/category-parent/category-child.html

However, for some reason I'm starting to get URLs like this in my navigation for NEW categories I add:

http://example.com/catalog/category/view/s/category-child/id/202/

Any idea what is causing this behavior?


texts:
I have been installing new modules, which by all accounts are functioning as they should.

I don't have much experience with Magento and have encountered the following error;

Fatal error: Class 'Mage_Files_Helper_Data' not found in /public_html/app/Mage.php on line 547.

The line 547 states: self::register($registryKey, new $helperClass);

This error arises when I click on product to go to the main product view. Up until that point everything works as should, search results etc. I've Goggled the error with no luck, I have tried things such as flushing the cache

Any guidance will be welcomed.

The full code where the error is;

/**
     * Retrieve helper object
     *
     * @param string $name the helper name
     * @return Mage_Core_Helper_Abstract
     */
    public static function helper($name)
    {
        $registryKey = '_helper/' . $name;
        if (!self::registry($registryKey)) {
            $helperClass = self::getConfig()->getHelperClassName($name);
            self::register($registryKey, new $helperClass); THIS IS LINE 547 ERROR
        }
        return self::registry($registryKey);
    }

    /**

It has not been explained how can I determine which module in Magento could be throwing the error or where those files could be located.

If someone could advise that would be great?


texts: Auto Select simple products for configurable product

texts:
Let say I sell green, black, and white T-Shirts inside a configurable product with one option (color).
So indeed there are 3 simple products selected. But what if I have 3 simple products of white T-Shirts which are changing in price? How can I automatic choose the cheapest white T-Shirt product to sell in the configurable product?

I am thinking about a select statement, which selects all possible products for a configurable product, and then make some MIN() statements. But how is the products linked to the conf. product in the database?

Do you have any clues?

(Magento CE 1.8.1)


texts:
Hi I'm looking for an event to use when payment fails.

Currently the only idea I have is using the mage_run_exception event and checking if it's related to the checkout/payment.

Is there an alternative event or potential model/controller rewrite I can do?


texts: How can I translate an image into Magento?

texts:
Is there a way to store images per StoreView separately?
If not, how could a solution look like?

It is a webshop with more than 15 languages, some pictures have certificates, which are valid only for the respective country.

I would like to avoid to explicitly set pictures to "disabled".


texts:
Is there a simple way to change the language for all modules in magento or will I have to ask the extension-maker why the language of their modules is english instead of german after the installation?

Thank you for your support!

Update: There are no csv-files in app/locale for that extension


texts:
I am working on a shipping module, which i have to create based on the below logic.

Shipping costs logic will be determined by unit cost and the order quantities with minimum weight as 1 lb per below setting:

If unit price is less than $5 and
Quantity ordered as below:

1 to 10 -> set as 1 lb
11 to 30 -> set as 2 lbs
31 to 50 -> set as 3 lbs
Over 51 -> set as 5 lbs

If unit price is more than $5.
Quantity ordered as below:

1 to 5 -> set as 1 lb
6 to 10 -> set as 2 lbs
11 to 20 -> set as 3 lbs
21 to 30 -> set as 5 lbs
Over 31 -> set as 10 lbs

I have created a module which is going to set the package weight according to the above rules. The customer is going to use the table rate shipping method for shipping cost.

But every time the package weight is overwritten by tablerate shipping method


texts: Magento2 - How To Setup Magento Commerce Cloud In Local Development?

texts:
I am new In Magento cloud and I have to start the development. how to set up in local and how to deploy new code.
I have all details for cloud I am unable to set up in my local.
I clone the git repo in local. and trying run the command
sudo composer install

but it's giving an error

[Composer\Downloader\TransportException]
The "https://repo.magento.com/archives/magento/module-invitation/magento-module-invitation-100.4.0.0.zip" file could not be downloaded (HTTP/1.1
404 Not Found)

I have found a solution.  set private and public keys in  auth.json. keys set but still getting an error
Thank you.


texts: Is New Magento Security Patch required on fresh install?

texts:
I installed Magento today with:

wget http://www.magentocommerce.com/downloads/assets/1.9.1.1/magento-1.9.1.1.tar.gz

I thought as this is the latest version I would not need to install the security patch casued the recent security breach.

The messages says:

  Important: New Magento Security Patch - Install it Now It is important
  for you to download and install a new security patch (SUPEE-5994) from
  the Magento Community Edition download page
  (https://www.magentocommerce.com/products/downloads/magento/). Please
  apply this critical update immediately to help protect your site from
  exposure to multiple security vulnerabilities impacting all versions
  of the Magento Community Edition software. Please note that this patch
  should be installed in addition to the recent Shoplift patch
  (SUPEE-5344).

Do I really need to install this patch?  Why would Magento not just include it in new downloads?  Is there anyway I can verify the patch has been installed?


texts:
I would like to retrieve a specific page name in my frontend phtml on magento v1.9.2.4. I have found many ways to retrieve 'current' page title, such as thoses questions posted on stackoverflow :

https://stackoverflow.com/questions/14950370/how-to-get-page-title-in-magento
Get the meta description and page title of any page

but this is not what I want. I need to show this title in a 'call-to-action' fashion which will be used elsewhere on the website.

EDIT 2017-01-04 - I found a solution, please view my post below


texts: Magento 1.9.2.4 "admin/system_config" admin page throws errors after migrate from 1.7.0.2

texts:
System -> configuration admin page on Magento (1.9.2.4) throwing below errors after I get migrated from (1.7.0.2).

a:5:{i:0;s:51:"Controller file was loaded but class does not exist";i:1;s:1209:"
#0 app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(340): Mage::exception('Mage_Core', 'Controller file...')
app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(308): Mage_Core_Controller_Varien_Router_Standard->_includeControllerClass('/data/16/3/97/9...', 'Mage_Adminhtml_...')
app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(196): Mage_Core_Controller_Varien_Router_Standard->_validateControllerClassName('Mage_Adminhtml', 'system_config')
app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
app/Mage.php(684): Mage_Core_Model_App->run(Array)
index.php(83): Mage::run('', 'store')
{main}";s:3:"url";s:31:"/index.php/admin/system_config/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}

Anyone help on this?


texts: magento2 error like undefined Property on shipping method like canada post

texts:
Magento2 checkoutcart page error like undefined Property on shipping method like canada post and not Calculated tax
function inside on here general/locale/weight_unit like
public function getStoreWeightUnit($storeId)
    {
        return $this->_scopeConfig->getValue(
            'general/locale/weight_unit',
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $storeId
        ) == 'kbs' ? 'KILOGRAM' : 'GRAM';
    }

So give me solution.
Thank You,
Your Faithfully,
Mehul Kanjariya


texts: How to show Content Blocks in HTML File in Magento 2

texts:
I have created a custom tab in Magento 2 in which the html part is shown by HTML file.
Means its extension is (.html).
I want to show some blocks in that html file how would i do that..
Infact i have used php tag and echo something it doesn't work there how to show that data inside php tag?


texts: Use 3rd party jQuery files in custom module Magento 2

texts:
Trying to use slick slider in my custom module

All css is loaded by /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/layout/reviewrating_index_index.xml

I am In Developer Mode.

I followed Magento2 adding 3rd party jQuery files to module

1) In /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/templates/reviewrating_index_index.phtml

 I am a Text

 I am a Text

2) In /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/requirejs-config.js

var config = {

     map: {
        '*': {
            customjs: 'CompanyName_ReviewRating/js/customjs',
        }
    },
    paths:{
        "slick": "js/slick/slick"
    },
    shim:{
        'slick':{
            'deps':['jquery']
        }
    }
};

console.log('This is printed');

3) In /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/web/js/slick/
    Below files are present in this location

 -> slick.js
  ->slick.css
  ->slick-theme.css

Issue: js file is not loaded

  In console GET http://localhost/magento2/pub/static/frontend/Magento/luma/en_US/js/slick/slick.js net::ERR_ABORTED


texts:
I am running multiple sites off my Magento install, with multiple store views for each website.

Each of my store views is based on a different currency. My issue is due to contractual agreements etc I need to have the prices of my products individually set, rather than based on a currency exchange rate.

My process so far is as follows. I have set all my currency exchange rates to 1:1 so there is no conversion. For each of my products I have taken off the 'Default Store View' for pricing on each of my websites (now saving the product prices from Magento backend sets the same price across all stores, however, creates an EAV record for the pricing for each store view, so I have linked in the database to my local system that changes the price direct in the database giving a different price for each store view for each product). So my pricing across each store and currency is correct.

On the product view page, the price shows correct and can be bought at the correct price and no problems so far (due to the pricing taken from the EAV table).

At this point, I will mention I have for all of my products I have a 'price' set and also a 'special price'.

The category view page, however (and as I understand is taken from the Price Index Table, rather than the EAV to save time and processing etc. With the indexed table created and referenced to on a Website ID only, rather than store ID......) So the price is shown on the category view is wrongly taken from the default store price on the item. After a bit of playing around though, I noticed that ONLY the special price is showing as referenced from the Indexed table, the price that is shown (with a strikethrough as I have a cheaper special price) is actually correct.

Is this 'price' field always taken straight from the EAV instead of the indexed table?

Also is there a way that I could change the special-price field to take the value from EAV rather than the indexed table?

I have toyed with the idea of creating my own price block to be used on the catalog view pages only, however, this is a little out of my knowledge base (still getting the hang of Magento......)


texts:
I am a newbie, so I would need some help. How do I change URLS in my products CMS? Can't find something in CMS Pages or Static Blocks.

I would like to change "Versand", but I can't find the source. Someone knows something?


texts:
I have created a custom module using the atwix tutorial: http://www.atwix.com/magento/adding-custom-attribute-to-a-cms-page/

but I cannot save the data entered into the custom module from the cms into the database. I flushed the cache because I read that can help but it doesn't make a difference.

I also checked my database in phpmyadmin and can see that the query isn't being executed. I think the main reason for this is because I am having problems creating my own installer script. I saw the tutorial on the Magento website but it didn't work even though I followed it. I don't understand what I'm doing wrong and after pulling my hair out for 3 days I need help.

I have attached a screenshot of my files and the file structure:

Here is the code from my config.xl file:

<?xml version="1.0"?>
<config>
    <modules>
        <Aa_Custom>
            <version>0.1.0</version>
        </Aa_Custom>
    </modules>
    <global>
        <models>
            <aacustom>
                <class>Aa_Custom_Model</class>
            </aacustom>
        </models>
        <events>
            <adminhtml_cms_page_edit_tab_content_prepare_form>
                <observers>
                    <aa_page_edit_tab_content>
                        <type>singleton</type>
                        <class>Aa_Custom_Model_Observer</class>
                        <method>cmsField</method>
                    </aa_page_edit_tab_content>
                </observers>
            </adminhtml_cms_page_edit_tab_content_prepare_form>
        </events>
        <page>
            <layouts>
                <aa_custom_page>
                    <label>Aa Custom Page</label>
                    <template>page/aa-page.phtml</template>
                </aa_custom_page>
            </layouts>
        </page>
    </global>
</config>


texts: cms blocks removing content after save in magento 2?

texts:
cms block break html tags after saving data.
it is removing  url of image and display like this


texts: Magento 2: Warning: array_merge(): Argument #1 is not an array vendor/magento/framework/App/Config/Initial/Converter.php on line 78

texts:
I have developed a module store view pricing in which I have edited price attribute's scope. Whenever I install that extension of time below warning populates during setup: upgrade in the command window

  Warning: array_merge(): Argument #1 is not an array /var/www/html/magento219/vendor/magento/framework/App/Config/Initial/Converter.php on line 78

Could anyone tell the reason about that? It is because of extension bug or a core bug? This is code to edit price attribute:

use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\InstallDataInterface;

    /**
     * InstallData for install Database for StoreViewPricing
     */

        class InstallData implements InstallDataInterface
        {
            /**
             * eav Setup Factory
             *
             * @var \Magento\Eav\Setup\EavSetupFactory
             */
            private $eavSetupFactory;

            /**
             * @param \Magento\Eav\Setup\EavSetupFactory $eavSetupFactory
             */
            public function __construct(EavSetupFactory $eavSetupFactory)
            {
               $this->eavSetupFactory = $eavSetupFactory;
            }

            /**
             * @param \Magento\Framework\Setup\ModuleDataSetupInterface $setup
             * @param \Magento\Framework\Setup\ModuleContextInterface $context;
             */
            public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
            {
                /** @var EavSetup $eavSetup */

                $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                $entityType = $eavSetup->getEntityTypeId('catalog_product');
                $eavSetup->updateAttribute($entityType, 'price', 'is_global',0);

            }
        }

I have add condition

  && is_array($nodeData) at
  vendor/magento/framework/App/Config/Initial/Converter.php on line 78

for temporary solution

if (is_array($childrenData) && is_array($nodeData)) {
                $nodeData = array_merge($nodeData, $childrenData);
            } else {
                $nodeData = $childrenData;
            }

My Module.xml is

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Mageants_StoreViewPricing" schema_version="2.0.0" setup_version="2.0.0" active="true">
         <sequence>
            <module name="Magento_Catalog"/>
            <module name="Magento_Directory"/>
        </sequence>
    </module>
</config>

I know it's wrong to edit core files so i need permanent solution if any one can help on this.

Thank you


texts: magento add suggested url in custom search Extension same as catalog search

texts:
How to  add suggested url in custom search Extension same as catalog search like the below screen shot

http://screencast.com/t/3mipRH9p


texts: Getting error: "The account sign-in was incorrect or your account is disabled temporarily"

texts:
I create user by execute API call on: "/index.php/rest/all/V1/customers" with json body:
{
   "customer":{
      "id":0,
      "group_id":0,
      "email":"marcinwarzybok@outlook.com",
      "firstname":"Marcin",
      "lastname":"Warzybok"
   },
   "password":"Abcdef123"
}

Returns result:
{
   "id":2,
   "group_id":0,
   "created_at":"2020-09-08 11:58:13",
   "updated_at":"2020-09-08 11:58:13",
   "created_in":"Default Store View",
   "email":"marcinwarzybok@outlook.com",
   "firstname":"Marcin",
   "lastname":"Warzybok",
   "store_id":1,
   "website_id":1,
   "addresses":[

   ],
   "disable_auto_group_change":0,
   "extension_attributes":{
      "is_subscribed":false
   }
}

Which means i have a new user registered.
When i tried to login in by executing API call on "/rest/all/V1/integration/customer/token" with the following credentials in json body:
{ "username":"marcinwarzybok@outlook.com", "password":"Abcdef123" }
, it returns an error:

{
    "message": "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.",
    "trace": "#0 [internal function]: Magento\\Integration\\Model\\CustomerTokenService->createCustomerAccessToken('marcinwarzybok@...', 'Abcdef123')\n#1 /bitnami/magento/htdocs/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)\n#2 /bitnami/magento/htdocs/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#3 /bitnami/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#4 /bitnami/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent('dispatch', Array)\n#5 /bitnami/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#6 /bitnami/magento/htdocs/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins('dispatch', Array, Array)\n#7 /bitnami/magento/htdocs/vendor/magento/framework/App/Http.php(116): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#8 /bitnami/magento/htdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#9 /bitnami/magento/htdocs/vendor/magento/framework/App/Bootstrap.php(263): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#10 /bitnami/magento/htdocs/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#11 {main}"
}

But i should get some kind of token to make authorize calls. I found something like this: your account is temporarily disabled. But i red this solution provide only temporary solution to a problem.
What about persistence resolve of a problem ? Is anyone have done working rest api integration in Magento 2?


texts:
Installed a search extension and now the shopping cart is broken.  Am getting a javascript error.

When the extension is disabled everything works fine. The Extension support told me to empty their .js file. But that does not fix the issue.

I don't understand where the $.noConflict(); should go.


texts: Web Setup Wizard keeps saying 'update is already in progress'

texts:
It is been going on for hours

[2018-06-23 10:30:04 CEST] Update is already in progress.
[2018-06-23 10:31:03 CEST] Update is already in progress.
[2018-06-23 10:32:04 CEST] Update is already in progress.
[2018-06-23 10:33:04 CEST] Update is already in progress.
[2018-06-23 10:34:05 CEST] Update is already in progress.
[2018-06-23 10:35:03 CEST] Update is already in progress.
[2018-06-23 10:36:03 CEST] Update is already in progress.
[2018-06-23 10:37:03 CEST] Update is already in progress.
[2018-06-23 10:38:03 CEST] Update is already in progress.
[2018-06-23 10:39:03 CEST] Update is already in progress.
[2018-06-23 10:40:04 CEST] Update is already in progress.
[2018-06-23 10:41:03 CEST] Update is already in progress.
[2018-06-23 10:42:04 CEST] Update is already in progress.
[2018-06-23 10:43:03 CEST] Update is already in progress.
[2018-06-23 10:44:05 CEST] Update is already in progress.
[2018-06-23 10:44:06 CEST] Update is already in progress.
[2018-06-23 10:45:06 CEST] Update is already in progress.
[2018-06-23 10:45:06 CEST] Update is already in progress.
[2018-06-23 10:46:06 CEST] Update is already in progress.
[2018-06-23 10:46:06 CEST] Update is already in progress.
[2018-06-23 10:47:05 CEST] Update is already in progress.
[2018-06-23 10:47:06 CEST] Update is already in progress.
[2018-06-23 10:48:07 CEST] Update is already in progress.
[2018-06-23 10:48:07 CEST] Update is already in progress.
[2018-06-23 10:49:03 CEST] Update is already in progress.
[2018-06-23 10:49:04 CEST] Update is already in progress.
[2018-06-23 10:50:05 CEST] Update is already in progress.
[2018-06-23 10:50:05 CEST] Update is already in progress.
[2018-06-23 10:51:04 CEST] Update is already in progress.
[2018-06-23 10:51:04 CEST] Update is already in progress.
[2018-06-23 10:52:04 CEST] Update is already in progress.
[2018-06-23 10:52:05 CEST] Update is already in progress.
[2018-06-23 10:53:04 CEST] Update is already in progress.
[2018-06-23 10:53:04 CEST] Update is already in progress.
[2018-06-23 10:54:05 CEST] Update is already in progress.
[2018-06-23 10:54:05 CEST] Update is already in progress.

Is there a way for killing the process so I can use the Web Setup Wizard again?


texts: Change custom field position in checkout page

texts:
I'm currently working on a custom shipping method for Magento 1.9.

Right now, I have to add a custom field in the checkout page and fill it with the timeslots available for delivery (I plan to add a select field).

I followed this tutorial : http://excellencemagentoblog.com/blog/2015/08/20/checkout-add-extra-address-field/#disqus_thread to create a custom field and save it in the database when the customer make an order.

It's working but I don't know how to change the field position from billing/shipping address block to shipping method block. I want to place my field after the shipping methods.

I tried to do something like this :

layout file (app/design/frontend/base/default/layout/address.xml) :

<?xml version="1.0"?>
<layout version="0.1.0">
    <checkout_onepage_index>
        <reference name='checkout.onepage.shipping_method.available'>
            <block type='checkout/onepage_shipping_method_available' name='form.additional.info' template='checkout/onepage/shipping_method/timeslots_field.phtml'></block>

        </reference>
    </checkout_onepage_index>
</layout>

template file (app/design/frontend/base/default/template/checkout/onepage/shipping_method/timeslots_field.phtml) :

        <?php echo $this->__('Delivery Instructions') ?>

        <input type="text" name="available[delivery_instruction]" id="available:delivery_instruction" value="<?php echo $this->escapeHtml($this->getAddress()->getDeliveryInstruction()) ?>" title="<?php echo $this->__('Delivery Instructions') ?>" class="input-text required-entry" />

template file (app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml)

// lot of stuff
<?php echo $this->getChildHtml('form.additional.info'); ?>

Does someone can help me ?

Thanks.

Edit : edited code with newest version, I can't manage to make it work.


texts: Check if product is saleable, without product load

texts:
There's the following code in my theme, that checks in a loop if products  are saleable:

foreach ($_products as $productId){
    $product = $_productModel->load($productId);
    if (!$product->isSaleable()){
        //...
    }
}

How should I change this and remove load() function?


texts: Export products but only from one category

texts:
As far as I can see, I can export customers and products.
But when I only need products from one category I can't find that flag for it.

Is there a trick to to do that?


texts: make form for upload the receipt for bank transfer

texts:
I hope you are having a great day.

I want to ask how to make a form to let customer to upload the receipts (image) of transfer the money.

thank you.
magento 1.9


texts: Number of columns does not correspond to the number of rows in the header in row(s) Magento 2

texts:
I am trying to upload products in Magento 2.2.6 from default import using CSV. I am getting this error while checking data on CSV.

I have double check my CSV file has accurate columns and values in it.


texts:
Recently I have installed Magento ver. 1.9.1.0 with ShoppyStore theme quick-stater package. Back-end is seems working fine. But front-end is taking too much time to  load a page. I am newbie (not a programmer) and this is my first time on magento. I choosed Magento due to seller account system module.

Can somebody help me to faster my Magento site? or if it is not possible then can someboday tell me is seller account system possible in OpenCart? Here is my site link beedo.pk


texts: Magento(1.9.1.1):Email and name not saved

texts:
I'm having an issue with customer email and name not being saved in order details. It happens often. sometime this issue is not occuring.

The customer's email, account ID, first name and last name are not being written to the table sales_flat_order Also table sales_flat_order_grid the customer ID missing.

This issue also described here : https://community.magento.com/t5/Magento-1-x-Technical-Issues/missing-data-in-sales-orders/td-p/26958


texts: Exclude categories from category list of a product

texts:
I added categories unordered list on product page with the following code

<?php
        $currentCatIds = $_product->getCategoryIds();
        $categoryCollection = Mage::getResourceModel('catalog/category_collection')
                             ->addAttributeToSelect('name')
                             ->addAttributeToSelect('url')
                             ->addAttributeToFilter('entity_id', $currentCatIds)
                             ->addIsActiveFilter();
                             foreach($categoryCollection as $cat){
          echo '
 getUrl().'" title="'.$cat->getName().' ">'.$cat->getName().'
';
        }

        ?>

I use some "service" categories and for this I set "not included in menu and in category list"

Is it possible to hide this "special categories" from the product detail list?


texts: undefined index in $cookie['test'] in Magento 2 checkout observer

texts:
The shipping method custom module's
observer shows error
checkoutobservershipping.php
 if ($_COOKIE['pickupStoreVal'])
        {
            $id = $_COOKIE['pickupStoreVal'];
            $collection = $this->_storeCollection->getCollection()->addFieldToFilter('store_id', $id);
        }

undefined index : pickupStoreVal  /checkoutobserver.php on line 54

I have two shipping methods

1)Free shipping
2)Store pickup - custom module

When I select free shipping it will be showing error
I also  tried
if (isset($_COOKIE['pickupStoreVal']))

How I can resolve this?


texts: Magento 2 new instance redirecting to staging site

texts:
I have my magento 2 staging site setup in folder staging and on url stagingexample.com , I have created a new folder newSetup in staging folder and setup copy of staging site in newSetup.
I want to access the new instance of site as stagingexample.com/newSetup.

The homepage and admin panel of stagingexample.com/newSetup and stagingexample.com/newSetup/admin are working fine.

But, on frontend all the pages are redirecting to stagingexample.com/page_url only.

Please provide a solution.


texts: how can we display data from database for all field form custom table in magento?

texts:
i have created one table which is name with example which have filed like firstname, last name, email. now i display data through

\app\design\frontend\default\example_theme\layout\nextbits_example.xml

<?xml version="1.0" encoding="UTF-8"?>

<layout version="0.1.0">

<example_index_index>
    <reference name="content">
        <block type="example/example" template="example/email2.phtml"/>
        <block type="example/example" template="catalog/nextbits_example.phtml"/>
    </reference>
    </example_index_index>

</layout>

\app\design\frontend\default\example_theme\template\catalog\nextbits_example.phtml

    <?php
        echo $this->getContent(); //disp emaill call method from block example
    ?>

\app\code\local\Xyz\Example\Block\Example.php

<?php
class NextBits_Example_Block_Example extends Mage_Core_Block_Template
{
    public function getContent()
    {
        $model = Mage::getModel('example/example')->load('1');
        $data = $model->getData();

        $model = Mage::getModel('example/example')->getCollection();

        echo '
';

        foreach($model as $obj){
            print_R($obj->getData('fname'));
            echo "
";
        }
    }

}

its output is only for one field suppose i get either email, or first name or lastname ,
Now if i want to display result of all the field , How can i get result of all field?

and also want only list of result filed wise like all id, then all the firstname and then all lastname like this..then what to do?

Thank You.!!!


texts: Magento 2 Images Not Showing in FTP under /pub/static/frontend/..../images

texts:
I ran a GTMetrix performance check on one of my client websites

  Losslessly compressing https://www.buzzyblends.co.uk/pub/static/frontend/buzzy/default/en_GB/images/healthy.jpg could save 15.9KiB (27% reduction). See optimized version.
  Losslessly compressing https://www.buzzyblends.co.uk/pub/static/frontend/buzzy/default/en_GB/images/linkedin.jpg could save 12.4KiB (81% reduction). See optimized version.

and similar findings under the /pub/static/frontend/buzzy/default/en_GB/images folder.

But when I traversed the folders via FTP, the images were not present on the folder. The image names appeared under the directory but all the files were zero kb.

Am I looking at the wrong place to download the original images and optimise?


texts:
Does Magento 2 log mails to the database?

i.e. where did Magento 1's core_email_queue go?

Does it make a difference if Sales Emails -> Asynchronous sending is enabled?


texts: Use JS + Simple SKU to lookup configurable sku

texts:
I'm setting up enhanced ecommerce tracking using GTM for our site & a problem I'm running into is product lists & product details output the config sku to the dataLayer but adds to cart, checkouts, and transactions output the simple sku to the dataLayer.

I want this to be uniform so that all of these events output the config sku to the dataLayer.

Is there a way for me to use the simple SKU & javascript to look up a simple sku's config sku & pass that to GTM instead of the built-in simple sku value? Or is backend work required for this?

(Using 2.3.2)


texts: What tables among these to export to start another web not based on magento

texts:
I am to develop a website based on a php framework, not magento. I would need tables such as products, categories, customers, orders, images and eventually a couple more if there is a need I cant think of now. The problem is that magento has a mindblowing roster of related tables that are confusing and I would not know what to do with them if I am using some other framework like laravel etc. For example

this totally confuses me and I dont know if I need that or what to do with it

catalog_product_entity_text

catalog_product_entity_tier_price

catalog_product_entity_varchar

catalog_product_link

catalog_product_link_attribute

I would enormously appreciate an experienced wise tip on which I actually need. And what about the Foreign keys? For example, to link orders table with customers table.


texts: I can't override the adminhtml block and controller please suggest me missing parameter

texts:
I can't override the adminhtml block please suggest me missing parameter

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"></pre>
        <preference for="Magento\Sales\Block\Adminhtml\Totals" type="Namespace\Modulename\Block\Adminhtml\Totals" />

        <preference for="Magento\Sales\Controller\Adminhtml\Order" type="Namespace\Modulename\Controller\Adminhtml\Order" />
</config>


texts: how to define  id for product, category and pages

texts:
I am trying to implement some dynamic remarketing on for my magento store. Currently every page on my site is listed the exact same as opposed to ‘product page’, ‘cart page’, etc.

In order to properly implement the dynamic remarketing I need each of these page types (home, category, product, cart, purchase) to be defined like this:

<body id="product" class="product product-580 product-gerber-river-shorty-knife category-172 category-knives hide-left-column hide-right-column lang_en">

I am new to magento and am not sure where to look. I found this thread Getting current admin username into <body> class or id and think it's on the right track but i'm not really sure.

Here is an example of a store that implements what I mean although i don't think it's run on the magento platform. https://www.roofrackscalgary.com/store/113-base-racks


texts: How to apply/schedule for AD0-E702 Adobe Certified Professional—Magento Commerce Developer Certification?

texts:
I am not much sure how to schedule AD0-E702 Adobe Certified Professional—Magento Commerce Developer exam ?
I have few questions :

Can we take exam on own system ?
How it works ?
What are prerequisite ?

Thankyou


texts: Magento 2 : How to Display Product Id on Product View Page

texts:
I want to display product id on product view page when user click on product.

For ex :- This product id is 1. When This page is display on this page I want to display product id 1.

How can I get ?

Please help me.....


texts:
How to set active class to magento2.1 wish-list button on product page?
I mean that, when i go to product page, if i marked that product to my wish-list before, just shows already added to wish-list or change the color of button.


texts: How do I allow this attribute type to handle SVG?


texts: Magento 2: Transnational email custom variables

texts: There is zero documentation on how to create a variable and attach it to $order or anything of the sort. In my case, I need to multiply a product variables and quantity variable and display them as another variable within the transnational email that gets sent out with a order.


texts:
Look at the below layout which is from "base/default/layout/contacts.xml".

<default>
    <reference name="footer_links">
        <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled">
            <label>Contact Us</label>
            <url>contacts</url>
            <title>Contact Us</title>
            <prepare>true</prepare>
        </action>
    </reference>
</default>

What I understand from above layout is: (please let me know if I am wrong about something)

The blocks will be added in to the "default" layout handle.
The block "footer_links" is being referred which is in "page.xml"

<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>

The "footer_links" has type:  "page/template_links" which is calling the class "Mage_Page_Block_Template_Links".
The "action" layout element is calling a method addLink from "Mage_Page_Block_Template_Links" class.
The "translate" attribute is used for language specific changes.

What I want to understand is:

What does "module" and "ifconfig" attributes are used for in "action" layout element?


texts: Filter Category Collection by Enabled, Visible Products

texts:
I want a list of category IDs, which have products that have...

visibility: Catalog or Catalog and Search
status: enabled (for the given store)

I can't find a built-in way to do this that is fast.

I can do this by getting product collection and filter it by status and visibility and then combine the category IDs from all of the products, (array_intersect() or the like,) but this is very slow.

I can do this by getting all of the categories and then checking their product counts, but this includes products which are disabled or hidden.

(As a side note: the database table catalog_category_product_index_enbl_idx suggests that this is an index of enabled products, by category. But the table is empty, and no code seems to use it that I can find.)

The site I'm working on has about 50,000 products and about 2000 categories, so I need something very fast. Right now, the fastest way for me to get this is by using two queries:

Categories with visible products:

SELECT
    `category_id`
FROM
    `catalog_category_product_index`
WHERE
    `store_id` = 1
    AND `visibility` IN (2,4)
GROUP BY `category_id`

Categories with enabled products:

SELECT
    ccpi.`category_id`
FROM
    catalog_product_entity_int cpei1
        LEFT JOIN
    catalog_product_entity_int cpei2
        ON cpei1.entity_id = cpei2.entity_id
        AND cpei2.`store_id` = 1
        AND cpei2.`attribute_id` = 273
        AND cpei2.`value` = 1
        INNER JOIN
    catalog_category_product_index ccpi
        ON ccpi.`product_id` = cpei1.`entity_id`
WHERE
    cpei1.`store_id` = 0
    AND cpei1.`attribute_id` = 273
    AND (
        cpei2.`value` = 1
        OR (cpei2.`value` IS NULL AND cpei1.`value` = 1)
    )
GROUP BY ccpi.`category_id`

These queries are built as future-proof as I can build them, but getting all of the table names and attribute IDs and values like this:

$cpei = $resource->getTableName('catalog_product_entity_int');
$ccpi = $resource->getTableName('catalog_category_product_index');
$storeId = (int)Mage::app()->getStore()->getStoreId();
$visibleValues = array(
    Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG,
    Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH
);
$enabledAttrId = Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product', 'status')->getId();
$enabledValue = (int)Mage_Catalog_Model_Product_Status::STATUS_ENABLED;

However, it's still pretty messy. It's extremely fast, and gives me every category ID with enabled, visible products, but it's not the "right" way.


texts:
We have a magento 2.0 website that is not working with AMEX and paypal pro. All other cards are working we are getting an X for CVV mismatch in paypal although API response shows the correct CVV.

Please help!

Thanks


texts: Magento 2: Add a product to the cart programmatically

texts:
I am quite new to Magento and have the requirement to add a predetermined free product to the shopping cart each time the customer adds something else. So far I have added an observer to watch for the 'checkout_cart_product_add_after' event.

I have used the following code in my observer but when I add a product to the cart, a message is displayed saying

  "We can't add this product to the basket right now"

use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\App\RequestInterface;
use Magento\Framework\View\Result\PageFactory;

class AddProduct implements ObserverInterface
{
    protected $resultPageFactory;
    protected $_productRepository;
    protected $_cart;
    protected $formKey;

    public function __construct(
        \Magento\Catalog\Model\ProductRepository $productRepository,
        \Magento\Checkout\Model\Cart $cart,
        \Magento\Framework\Data\Form\FormKey $formKey,
        PageFactory $resultPageFactory
    )
    {
        $this->resultPageFactory = $resultPageFactory;
        $this->_productRepository = $productRepository;
        $this->_cart = $cart;
        $this->formKey = $formKey;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $productId =10;

        $params = array(
            'form_key' => $this->formKey->getFormKey(),
            'product' => $productId, //product Id
            'qty'   =>1 //quantity of product
        );
        //Load the product based on productID
        $_product = $this->product->load($productId);
        $this->cart->addProduct($_product, $params);
        $this->cart->save();

    }

}

I hope somebody is able to explain what is going wrong here or point me in a different direction if this approach will not work. I am using version 2.2 of Magento.

Many thanks


texts: magento display only one root category while adding new product

texts:
I am overriding behaviour of magento, So my question is
How to display only one root category in categories tab of the new product?

I am having 5 root categories and 5th one is my navigation menu,
While creating new product from backend, I wanted to display only 5th root category to choose in categories tab of new product.


texts: Magento2 bundle product retail price would like to display

texts:
I would like to fetch and display bundle product sales price on the PDP page in the custom block programmatically (what ever the default options selected)
Can any one advise me the solution.


texts:
After a customer is logged in, when I check if the customer is logged in or not, it returns true only on the customer account page and returns false on every other page like home page, product page, etc.
This is the code which I am using to check

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

  $customerSession = $objectManager->get('Magento\Customer\Model\Session');

    <?php if($customerSession->isLoggedIn()) {
        echo "YEs logged in";

     }?>


texts: How to Fix Parameter must be an array or an object that implements Countable

texts:
After upgrading to PHP 7.2 I get a lot of Warnings

  Parameter must be an array or an object that implements Countable

I've tried many ways to fix it but none have worked so far.  The commented lines below are my attempts. How can I fix this?

$bannerGroupCode = $this->getBannerGroupCode();
$data = $this->getDataByGroupCode($bannerGroupCode);
$bannerGroupData = $data['group_data'];
$template = '';
  if (count($bannerGroupData) > 0):
// if (empty($bannerGroupData)):
// if ($bannerGroupData && count($bannerGroupData) >= 0):
// if (is_array($bannerGroupData) && count($bannerGroupData) > 0):
// if (strlen($bannerGroupData) > 0):
    $prebaneff = $bannerGroupData->getPreBannerEffects();
    $bannerType = $bannerGroupData->getAnimationType();


texts: Magento 1.9 Disabled products displayed in Search

texts:
I am working on Magento 1.9 and facing a issue where the disabled products are showing up in search suggestion as well as in search results.

What i have tried

https://magento.stackexchange.com/a/79888/62788
set it's visibility to Not visible individually

Please help me to fix this.


texts: Magento 1.9 - Product image resolution issue

texts: We are facing an issue while trying to upload product images. The PNG format images looks fine like original image color/ resolution but JPG format images not looks good like the original image. JPG image color/resolution looks changed on product view page. Couldn't figure out what is the issue. Screenshots are attached.


texts: Magento 2: Create a url like : localhost/magento/{frontname}/profile/id/5

texts:
I want to create a url like `localhost/magento/{frontname}/profile/id/5'

so, i have created a controller file profile.php

namespace Learning\HelloPage\Controller;
use Magento\Framework\Controller\ResultFactory;
class Profile extends \Magento\Framework\App\Action\Action
{

    public function __construct(
       \Magento\Framework\App\Action\Context $context)
    {
       parent::__construct($context);
    }

    /**
     * View  page action
     *
     * @return \Magento\Framework\Controller\ResultInterface
     */

    public function execute()
    {
       $seller_id = $this->getRequest()->getParam('id');

       $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);

       return $resultPage;
    }
}

this is i have done so far and if i run this url : localhost/magento/{frontname}/profile/id/5 it takes me to 404 page
please suggest a solution.


texts:
<script type="text/javascript">
function myFunction(){
    var x = document.getElementById("billing:postcode").value;
    <?php
 $pincode =  "<script>document.writeln(x);</script>";
$collection = Mage::getModel('cod/cod')->getCollection()->addFieldToFilter('pincode', $pincode)->addFieldToFilter('status',1);
 ?>
alert(<?php echo count($collection) ?>);

}
</script>


texts: How do I get data from my custom module table?

texts:
I have a custom module with its own table which saves the date inside the column named date_to.

I am trying to access the values from only this column but when I load the collection and call getData('date_to') I get the whole collection and not just the date_to column.

Here is what I have tried so far:

$date = Mage::getModel('namespace_modulename/tablename')->getData('date_to');

print_r($date);

When I do print_r($date); I get the whole collection even though I have specified in parenthesis the I only want the date_to column values.

I know I'm missing out an important piece and would like for some help please.


texts: Magento 2 - Remove inactive products from cart after login

texts:
I am looking for the best way to remove inactive products (not available on stock) after user login from cart/mini-cart.

I know that I can set quote lifetime in admin, but I am wondering how to achieve this programmatically.


texts: How to get Quote subtotal by customer Id in magento 2?

texts:
I have used below code to get the quote object from customer id

{
protected $_objectManager = null;
protected $_customerSession;
protected $quoteFactory;
public function __construct(
\Magento\Framework\ObjectManagerInterface $objectManager,
\Magento\Customer\Model\Session $customerSession,
\Magento\Quote\Model\QuoteFactory $quoteFactory
){
    $this->_objectManager = $objectManager;
    $this->_customerSession = $customerSession;
    $this->quoteFactory = $quoteFactory;
}

 public function execute(){

  if($this->_customerSession->isLoggedIn()){
            $customerId = $this->_customerSession->getCustomer()->getId();
            $quoteData = $this->getQuoteCollection($customerId);
            echo $quoteData->getSubtotal();die;
        }

 }

 public function getQuoteCollection($customerId)
  {
    $quote = $this->quoteFactory->create()->getCollection()->addFieldToFilter('customer_id',$customerId);
    return $quote;
 }
}

How to get the subtotal from current logged in customer quote? I am getting fatal error after using above code.Please anyone help on this.


texts: Magento1 reindexing: running indexer from command is queuing instead of reindexing

texts:
I am trying to run Magento indexer with:

php shell/indexer.php --reindex catalog_url

But I am getting:

Catalog URL Rewrites index was rebuilt successfully in 00:00:00

Which first made no sense to me, but when I checked the admin backend, I found out that Catalog URL Rewrites is in state WAIT(IN QUEUE) and when I force processing the queue from the backend I get the 500 error.

This means that running the indexer from command line is just putting the indexing process in queue, and is not actually doing the real indexing!

My question: is there any way to configure the indexing behaviour to not but processes into the queue and run then directly instead?


texts: How to get the country code based on country id in magento 2

texts:
I wish to get the country code based on country id in checkout page .
I have the country id, How do i pass it to get country code in magento 2


texts: Why category resource is not present in catalog? Also explain how to add category

texts:
I want to retrive category tree in rest api but category is missing in resources.
While hitting  127.0.0.1/magento/api/rest/category got
message Request does not match any route.
Please tell how to add it in magento 1.9 and how to get category tree by rest api in magento 1.9 ?


texts: Magento 1.9 : How to get Image label under the main image?

texts:
How can I get image "label" to print/output under the main image??

Need to display the Image label change according to the selection of the thumbnail image.

(e.g Front, Rear, Side etc)


texts:
I am trying to login from the admin side of my site. But it is not logging me in with the correct user-name and password provided.

I cleared browser history and tried in other browsers also.

It gives me an error :

  Fatal error: Access to undeclared static property:
  Mage::$_isDeveloperMode in /home//public_html/one/em0113-full-package
  /app/Mage.php on line 881

Help me to resolve this issue.


texts: Update all textfields of multiple products by clicking one update button

texts:
we are using magento multi vendor site.

For single Product we are displaying price, selling price , quantity...etc in vendor account.

we gave an option for vendor to update all the textfields of single product by clicking on one "update" button.

we are using following code for this.

PHTML

<button id="update_button_<?php echo $products->getId(); ?>" class="button wk_mp_btn1" onclick="updateAllFields('<?php echo $products->getId(); ?>'); return false;"  >
<?php echo $helper->__('Update') ?>
</button>

Javascript

function updateAllFields(product_id) {
            updateFieldPrice(product_id);
            updateFieldSpecialPrice(product_id);
            updateField(product_id);

            }

Now we want to provide an option for update all textfields of multiple products by clicking on one "update" button.
Ex: for one product we will edit price , for second we will edit price and qty, for third price, quantity , special price . we edit all textfield values and enter the button "save all".

In the image, last but one column, you can see "save all" button. once we click on that button it should save all the field values.


texts: Magento 2 how to add Register , Wishlist , Login block to header.panel?

texts: I'm using magento 2 and I'm trying to add the Register , Wishlist, Login links to my tob bar, into header.panel , what's the properly code to add that from xml, or any other way ?


texts: Magento 2 overwrite html file in custom module

texts:
I would like to overwrite the following file row_incl_tax.html in my custom module:

vendor/magento/module-weee/view/frontend/web/template/checkout/summary/item/price/row_incl_tax.html

app/code/Custom/Module/view/frontend/checkout/summary/item/price/row_incl_tax.html

I've tried:

app/code/Custom/Module/view/frontend/requirejs-config.js:

var config= {
    map: {
        '*': {
            'Magento_weee/template/checkout/summary/item/price/row_incl_tax.html': 'Custom_Module/template/checkout/summary/item/price/row_incl_tax.html',
        }
    }
}

But the above isn't working for me. Any idea is this the correct way?


texts:
Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/bigshopnz/public_html/vendor/magento/framework/Config/Dom.php:388
Stack trace:
#0 /home/bigshopnz/public_html/vendor/magento/framework/Config/Dom.php(116): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/bigshopnz/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/bigshopnz/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(151): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/bigshopnz/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(132): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/bigshopnz/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(276): Magento\Framework\ in /home/bigshopnz/public_html/vendor/magento/framework/Config/Dom.php on line 388

Can you please let me know the proper solution for this error?


texts:
I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.

The url is look like this:

https://www.example.com/en/clothes.html/pants.html

and the product

https://www.example.com/en/clothes/pants.html/hot-pants.html

How I can made the url for categories to be like this:

https://www.example.com/en/clothes/pants.html

and the same for product, to remove the html suffix from url too:

https://www.example.com/en/clothes/pants/hot-pants.html

My Catalog SEO configuration is:

If I try to remove the Catalog URL Suffix I have the following error:

Unique constraint violation found


texts: Magento 2.3.3 GraphQl Error after upgrade while Compilation

texts:
After upgrade from magento 2.3.2 to 2.3.3 I get this error while Compilation:

  Fatal error: Declaration of Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart::execute(Magento\Framework\GraphQl\Query\Resolver\ContextInterface $context, Magento\Quote\Api\Data\CartInterface $cart, array $shippingAddresses): void must be compatible with Magento\QuoteGraphQl\Model\Cart\SetShippingAddressesOnCartInterface::execute(Magento\GraphQl\Model\Query\ContextInterface $context, Magento\Quote\Api\Data\CartInterface $cart, array $shippingAddressesInput): void in /home/ttu52076/public_html/vendor/magento/module-quote-graph-ql/Model/Cart/SetShippingAddressOnCart.php on line 20

Any help?

Thanks


texts:
Having a few issues with Product import

I have 3 websites each with 1 store eg:

UK:  Store:  Admin, Website: Base
DE:  Store: de, Website: de
IT:  Store: it, Website: it

I do my initial import:

store|websites|attribute_set|prodtype|
admin|base|Default|configurable|

and the product goes in fine

But then I try to import my language version:

store|websites|attribute_set|prodtype|
de|de|Default|configurable|

It goes in fine, but then removes the product from the initial Website!

How do I configure the CSV, so that it does not lose the Website/stores, but also knows which store it is importing the content into?


texts: Update to 1.9.2.2: Login / Registration form not working (It's not the formkey)

texts:
we updated our shop from 1.7.x to 1.9.2.2 and face a curios problem: On most of the devices the login form and registration form is working but not on all devices (Exactly, it works on all our devices, but some customers have this problem). After sending the forms the page is reloaded without error message and the action was not successful.

We inserted the hidden field "formkey" but are still having this problem. Any ideas where we can look at?

Our shop is www.begeisternderwahlkampf.de


texts: Magento 2 referenceBlock Location in layout File

texts:
In default.xml of the magento/module-theme Module we have the following referenceBlock on Line 19:

        <referenceBlock name="top.links">
        <block class="Magento\Theme\Block\Html\Header" name="header" as="header" before="-">
            <arguments>
                <argument name="show_part" xsi:type="string">welcome</argument>
            </arguments>
        </block>
    </referenceBlock>

In which layout file is the block with Name 'name="top.links"' defined ? It is referred, so it has to be defined in some layout XML file.


texts: Retrieve all the products attribute using rest api

texts:
I am new to magento2 and learning using rest API of magento2.

I want all products to attribute that is present in the database. I searched in the database and I found that the table eav_attribute contains all attrs.

I would like to retrieve all these attributes using rest API.
I have tried the following endpoints:

rest/V1/products/attribute-sets//attributes
rest/V1/eav/attribute-sets/list?searchCriteria... field attribute_set_name
rest/V1/eav/attribute-sets/list?searchCriteria... field entity_entry_id

and more others but I am not able to find.

I have tried this too. rest/V1/products/attribute-sets/9/attributes
but I don't get all attributes. I.e the color attribute available in Magento admin but I can't get using rest api.

Please, can you help me?


texts: $collection->addAttributeToFilter works if cache disabled, but not if enabled

texts:
$myattr = $this->catalogSession->getData('myattribute');
if(!empty($myattr)){
    $collection = $this->_catalogLayer->getProductCollection();
    $attribute = $this->eavConfig->getAttribute('catalog_product', 'myattribute');
    $option_id = $attribute->getSource()->getOptionId($myattr);
    $collection->addAttributeToFilter('myattribute',array('finset'=>$option_id));
}

in Block/Category/MyattributeChooser.php in the _prepareLayout function

This works if I have caching disabled OR I select any filter at all.  It does not work if caching is enabled but I used my custom chooser and no other filters are displayed.

I need to know how to make it work.  This is on a categories page.  I could just totally turn off caching for the chooser but that isn't a very good answer.

I've found too that although it works it doesn't recalculate pagination either.  $collection->getSize() results in an Illegal State error and $collection->clear() and $collection->resetData() have no effect on anything whatsoever.  $collection->isLoaded() returns NULL.


texts: Which folder should I put admin-related JS files?

texts:
I've written a few javascripts which are meant for the admin, but I'm not sure in which folder I should place these JS files. These scripts will be embeded in the pages in the Magento admin panel.

The folders in /skin/adminhtml are accessible by anyone and I don't think that is a good place for scripts meant for admin.

In which folder should I place my JS scripts which are meant for the admin? If not, how can I place the scripts in a folder which will only be accessible in the admin panel?


texts: Magento 2: Setting theme ID is not working by using config:set

texts:
I found xpath design/theme/theme_id in vendor/magento/framework/View/DesignInterface.php:28.

I'm trying to set new ID and there is an error:

magento config:set design/theme/theme_id 7
The "design/theme/theme_id" path does not exist

What's wrong with it? Is there described reason why it doesn't work?

Other configuration paths work fine.

Magento v2.2.5.

In this case related question-answer doesn't work: How to configure Mangento 2 Theme/Design via the Command-Line? (It doesn't work neither by using bin/magento nor n98-magerun2).


texts: Connection of magento 2 site with akeneo pim installed in localhost using akeneo connector

texts:
Environment:
Magento: 2.3.4.
Akeneo PIM: Vr 4 (community )

Hi!
I have downloaded akeneo community pim using docker. It's installed in my mac and can be accessed at localhost:8080.
I have also installed an official akeneo connector in my Magento 2 site. Now to connect Magento 2 site with pim i have generated the credentials from the akeneo PIM portal. There are 5 components of the information required for configuration;

Akeneo base URL: Using localhost URL
Akeneo User id: Provided by akeneo pim site
Akeneo User PWD: Provided by akeneo pim site
Akeneo API Client Id: Provided by akeneo pim site
Akeneo API Client secret: Provided by akeneo pim site

But when I submit the information by click on the TEST button, I get the following error:

"cURL error 7: Failed to connect to 127.0.0.1 port 8080: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"

I understand that Magento 2 is not able to connect to the pim installed in my localhost. My question is which akeneo base URL to use to connect the Magento site to my pim

thanks
Harish


texts: how to make column sortable in custom grid when it has renderer?'sortable' =>true doen't work

texts:
I tried

'sortable'  => true,

but it didn't work with a column whose content will be resulted from a renderer

$this->addColumn('wh1', array(
      'header'=> Mage::helper('inventory')->__('Physical Inv.<br>WH1'),
       'index' => 'wh1',
    //  'sortable'  => true,
    // begin: render the sku content
        'renderer' => new Lenmar_Adminhtml_Block_Inventory_Inventory_RendererPhWH1Inventory(),
       'width'     => '10px',
         'type' => 'text',
        'filter'    => false,

    ));

I have other renderer and sort for it is working good it seems that it is something with index values but I don't know how to make it work

this one works even with renderer:

    $this->addColumn('item_type', array(
      'header'    => Mage::helper('catalog')->__('Item Type'),
      'width'     => '100px',
      'index'     => 'item_type',
          'type'=>'options',
          'options' => $this->_getAttributeOptions('item_type'),
     'renderer' => new Lenmar_Adminhtml_Block_Inventory_Inventory_RendererTypeInventory(),

    ));

I know that the sort is based on variable of index value forexample if I use sku it will sort them by sku but i don't know what to use instead of wh1 value?
its because item_type is an attribute inside magento attributes but wh1 is only in table of mysql not in magento side


texts: Get Product Attribute into Order Confirmation Email

texts:
I'm currently attempting to override the following file in order to add the color attribute to the Order Confirmation Email:

vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml

Under the "sku" line, I've created an additional line to display the color of the product (this is the only change I've made to the file):

<?= $block->escapeHtml($_item->getName()) ?>

<?= /* @escapeNotVerified */  __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?>

<?= /* @escapeNotVerified */  __('Color') ?>: <?= $block->escapeHtml($block->getColor($_item)) ?>

Having tested the email, I can see the label "Color" being output, However it's not returning the actual value.


texts: the shipping information was unable to be saved. Verify the input data and try again in Maneto 2.3.2

texts:
we are facing issue
the shipping information was unable to be saved. Verify the input data and try again
when customer is doing the checkout
Magento ver. 2.3.2


texts: Memory Limit Reached while upgrading Magento 2.1.11 to 2.1.12

texts:
I am trying t oupgrade Magento 2.1.11 to 2.1.12 but it keeps getting a memory limit fatal error. The error says

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 29 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

I have upgraded before using composer since version 2.1.9 and have not had an issue. This is the first time I am having this issue with an upgrade. The memory limit for PHP memory limit is 1024 MB . My host will not allow any more and my php.ini file does not affect the server (it is set to 2G). Is 2.1.12 a much higher memory user than the previous versions? Is there another way to upgrade without using Composer? The updater in Magento 2 has never worked. I have read that I can copy and past the updated files to the server, but that sounds like all kinds of problems waiting to happen. Any advice would be appreciated. Thank you.


texts: Remove Child products attribute/vaules from the Layered navigation filter

texts:
As we know in default Magento 2 and layered navigation filters are coming based on the configurable product and assigned child product. Child products are not visible in the frontend but assigned attribute values included in the filter.
My requirement is to disable/remove not visible products from the layered navigation filter and it will only display/include configurable products only.
To achieve this I have tried the below code but it is only applying in the right side product list section but Not the layered navigation section.

Magento\Catalog\Model\Layer

/**
     * Retrieve current layer product collection
     *
     * @return \Magento\Catalog\Model\ResourceModel\Product\Collection
     */
    public function getProductCollection()
    {
        if (isset($this->_productCollections[$this->getCurrentCategory()->getId()])) {
            $collection = $this->_productCollections[$this->getCurrentCategory()->getId()];
        } else {
            $collection = $this->collectionProvider->getCollection($this->getCurrentCategory());
            $collection->addAttributeToFilter('type_id',['in' => ['configuration', 'bundle']]);
            $this->prepareProductCollection($collection);
            $this->_productCollections[$this->getCurrentCategory()->getId()] = $collection;
        }

        return $collection;
    }

Please let me know if anyone has worked on this kind of changes/customization.
Thanks in Advance.


texts: ECG compliant alternative method for file_get_contents (remote XML)

texts:
What is correct "ECG-way" to load an remote XML file?

For local files this works:

$xml = new Varien_Simplexml_Config($configFile);
$node = $xml->getNode('my/selected/node');

But not from remote URL:

  Varien_Simplexml_Config

public function __construct($sourceData=null) {
    if (is_null($sourceData)) {
        return;
    }
    if ($sourceData instanceof Varien_Simplexml_Element) {
       $this->setXml($sourceData);
    } elseif (is_string($sourceData) && !empty($sourceData)) {
        if (strlen($sourceData)<1000 && is_readable($sourceData)) {
            $this->loadFile($sourceData);
        } else {
            $this->loadString($sourceData);
        }
    }
    #$this->setCache(new Varien_Simplexml_Config_Cache_File());
    #$this->getCache()->setConfig($this);
}

Because $sourceData isn't readable it tries to load a XML string, what also doesn't work, because it's just the remote URL ...

Question: is there a method in Varien or Zend library that is usable for loading remote XML files?


texts: How to remove 404 error page not found when installing a magento extension?

texts: I have installed a magento extension for Check availability for a product in a online store.I have installed it, after updating the configurations of that extension in the System tab, it is showing 404 error page not found.Can anyone say y it is like that ?


texts:
I never installed a patch before. I tried to install SUPEE-10975 from here.
But it does fail with the following message:

$ ./PATCH_SUPEE-10975_CE_v1.9.3.3_v1-2018-11-27-09-17-33.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

checking file app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
checking file app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php
checking file app/code/core/Mage/Adminhtml/controllers/Cms/BlockController.php
checking file app/code/core/Mage/Adminhtml/controllers/Customer/GroupController.php
checking file app/code/core/Mage/Adminhtml/controllers/SitemapController.php
checking file app/code/core/Mage/Adminhtml/controllers/System/BackupController.php
Hunk #1 succeeded at 358 (offset -11 lines).
checking file app/code/core/Mage/Captcha/Model/Observer.php
checking file app/code/core/Mage/Captcha/Model/Zend.php
checking file app/code/core/Mage/Captcha/etc/config.xml
checking file app/code/core/Mage/Catalog/Model/Api2/Product/Image/Rest/Admin/V1.php
checking file app/code/core/Mage/Catalog/Model/Product/Attribute/Media/Api.php
checking file app/code/core/Mage/Cms/Model/Wysiwyg/Images/Storage.php
Hunk #2 succeeded at 380 (offset -8 lines).
checking file app/code/core/Mage/Core/etc/config.xml
Hunk #1 FAILED at 28.
1 out of 3 hunks FAILED
checking file app/code/core/Mage/Core/sql/core_setup/upgrade-1.6.0.6.1.2-1.6.0.6.1.3.php
checking file app/code/core/Mage/Dataflow/Model/Convert/Container/Abstract.php
Hunk #1 FAILED at 55.
Hunk #2 FAILED at 140.
2 out of 2 hunks FAILED
checking file app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php
checking file app/code/core/Mage/ImportExport/Model/Import/Entity/Customer/Address.php
checking file app/code/core/Mage/Payment/etc/config.xml
checking file app/code/core/Mage/Payment/etc/system.xml
checking file app/code/core/Mage/Payment/sql/payment_setup/upgrade-1.6.0.0.1.1-1.6.0.0.1.2.php
checking file app/code/core/Mage/Sendfriend/Block/Send.php
checking file app/code/core/Mage/Wishlist/controllers/IndexController.php
checking file app/code/core/Zend/Controller/Request/Http.php
checking file app/design/adminhtml/default/default/template/cms/browser/content/files.phtml
checking file app/design/frontend/base/default/layout/captcha.xml
checking file app/design/frontend/base/default/template/wishlist/sharing.phtml
checking file app/design/frontend/rwd/default/layout/page.xml
Hunk #1 FAILED at 36.
1 out of 1 hunk FAILED
checking file app/design/frontend/rwd/default/template/sendfriend/send.phtml
checking file app/etc/modules/Mage_All.xml
checking file app/etc/modules/Mage_Captcha.xml
checking file app/locale/en_US/Mage_Wishlist.csv
The next patch would delete the file js/lib/jquery/jquery-1.12.0.js,
which does not exist!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file js/lib/jquery/jquery-1.12.0.min.js,
which does not exist!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file js/lib/jquery/jquery-1.12.0.min.map,
which does not exist!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
checking file js/lib/jquery/jquery-1.12.1.js
checking file js/lib/jquery/jquery-1.12.1.min.js
checking file js/lib/jquery/jquery-1.12.1.min.map

What can I do to resolve this?


texts: Install New Extensions 'Extension Dependencies' show 'Wrong Version'

texts: I'm trying to install a new extension into Magento from Magento Connect. Once I paste in the extension key and hit install it brings up a list of 'Extension Dependencies'. For some of them it shows the status as 'Ready to install' but for others it shows 'Wrong version' or 'Already installed'. I've never had this come up before, am I safe to install the extension or could it cause problems by doing so? I am now given the options 'proceed' or 'cancel installation'.


texts: Problems with Trade payments and Braintree

texts:
So we have a problem with our M2 site. We have a retail site and a trade site. We use Braintree. On the retail site customers are able to place an order fine using their debit/credit cards however on the trade site it is returning an error (attached) however it is taking payment. We are using two different Merchant ID's at first we had one and thought that was the problem however now we have two seperate ID's it still isn't working.

Any suggestions?

We really need to get this up and running however Braintree have said it isn't a problem on their end so something is going wrong in Magento.

I have attached the console received:


texts: select entities multiselect attribute which stored as comma separated ints in varchar table

texts:
Some product attribute is multiselect and stored as:

954,955,956,957,958,959 in database

How to select products with 954 option id ?

like seems to be not accurate, string should be spitted by comma, and then compared to condition

I found some SUBSTRING_INDEX solutions but not sure its best way, how magento (magento2) itself handles it?


texts:
I'm trying to edit a function from a third party extension, in this case, the moloni one. I want to override a function that is in
Vendor\moloni\magento2\libraries\MoloniLibrary\Controllers\Products.php

Until now I have a folder in app\code with

  app\code\Vendor\Moloni\registration.php

    <?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Vendor_Moloni',
__DIR__
);

  app\code\Vendor\Moloni\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">
<preference for="moloni\magento2\Libraries\MoloniLibrary\Controllers\Products" type="Vendor\Moloni\Libraries\MoloniLibrary\Products" />
</config>

  app\code\Vendor\Moloni\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="Vendor_Moloni" setup_version="1.0.1">
</module>
</config>

  app\code\Vendor\Moloni\Libraries\MoloniLibrary\Products.php

    <?php

namespace Vendor\Moloni\Libraries\MoloniLibrary;

use moloni\magento2\libraries\MoloniLibrary\Controllers\Products as vendormoloni;
use Invoicing\Moloni\Libraries\MoloniLibrary\Moloni;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Sales\Api\Data\OrderInterface;
use Magento\Sales\Model\ResourceModel\Order\Tax\Item;
use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory as CategoryCollectionFactory;
use Magento\Catalog\Model\Category as CategoryModel;
use Magento\Tax\Api\TaxCalculationInterface;

class Products extends vendormoloni
{
   /**
     * @param \Magento\Sales\Api\Data\OrderInterface $order
     * @return array
     */
    public function setShippingFromOrder($order)
    {
      //the code of the original I want to override
    }
}

It does not work, what am I missing? When I try to di:compile it sais

PHP Fatal error:  Class 'moloni\magento2\libraries\MoloniLibrary\Controllers\Products' not found in /var/www/html/magento2/app/code/Vendor/Moloni/Libraries/Products.php on line 14

but the path is right, I think :D

Thanks in advance,
Regards

edit
I got working I think but it gives me an error here

/**
 * @var Tools
 */
private $tools;

telling me that
Class Custom\Moloni\Libraries\MoloniLibrary\Tools does not exist

what can I do?


texts:
I currently have 4 widgets on my front page that display 4 products each.

At the moment it uses either featured products, special producs or hot products to decide which products to populate the widget with.

I select the product types using the categories.

I'm looking for a way to randomize the products from the specific category.


texts:
We import csv files in mariadb, 1 csv takes about 30 minutes. For daily sync of csv files thats about 3-4 hours and judge that as too much.
Magento 2.3, Update on save is activated + Mysql tuner executed.
Both actions don't solve the issue.

We guess there is something to improve in the Magento tables. Does someone recognize the issue?


texts: How to get payment method selected magento 2

texts:
I need to get the 'Cash On Delivery' payment method if it is selected.
I Cannot get the payment method name. The
getMethodInstance() and getTitle() are not working. See the code I used below:

<?php

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$cart = $objectManager->get('\Magento\Checkout\Model\Cart');
$itemsCollection = $cart->getQuote();

$it = $itemsCollection->getPayment();
$iit = $it->getMethod();


texts:
I want to install Magento CE 1.9.X on Amazon AWS (CentOS). I am new to it.

I do not want to use AMI.

Could you point me to a step by step guide please?

Thanks for your help!


texts: magento 2.1.5 - General system exception happened - import products

texts:
Im start learning Magento 2, made a fresh  install of Magento 2.1.5 by command line on a VM with

Ubuntu server 14.04
PHP 7.0.16
MySQL 5.7.17
Apache 2.4

Tried to import several times the products
1 - added a product manually and exported the csv, then deleted the product and tried to import.
2 - downloaded the sample file and tried to import it

Always have the same error:

  General system exception happened

Have seen the logs and don't see anything unsual..

Does anyone knows how to fix this?

UPDATE: Problems during the installation of mysql server, reinstalled everthing resolved!


texts: Get the composer version of installed modules

texts:
How can I get, code wise, the list of the installed modules and their version listed in composer?

I need something like this (format is just as an example. It's not really important):

array(
    array(
        'name' => 'magento/module-catalog',
        'version' => '101.1.0'
    ),
    array(
        'name' => 'magento/module-cms',
        'version' => '101.1.0'
    ),
....
)

I tried \Magento\Framework\Composer\ComposerInformation::getInstalledMagentoPackages() and getSystemPackages(), but both return and empty array.

I suspect this might happen because I didn't install Magento 2 via composer. I just cloned the guthub repo.

But this is not a solution. I need something that will work on both install methods (composers and clone repo).


texts: order and invoice email no longer sending automatically 2.1.3

texts: The order and invoice emails have all of a sudden stopped sending automatically,  they can still be sent manually by clicking on 'send email'  there seems to be no issue on the email server, is there a way to fix this?


texts:
I'm creating my own extension that adds a widget with a WYSIWYG-editor. I found a tutorial about this subject: http://www.magebuzz.com/blog/magento-2-add-wysiwyg-editor-text-area-in-custom-widget/.

This code does add a WYSIWYG editor, but it does not work well. It's buggy, for example:

When I insert HTML, save the widget, reopen the widget the widget itself is added to the WYSIWYG editor of the widget.
Update does not work at all.

What is the proper way to create a widget with WYSIWYG-editor?


texts: What Are the Import/Exports `defaults` for in a uiElement Object?

texts:
In many of Magento 2's UI Element view model constructors, the defaults array will have an imports or exports property.

return Collection.extend({
    defaults: {
        //...
        imports: {
            rows: '${ $.provider }:data.items'
        },

return Insert.extend({
    defaults: {
        //...
        exports: {
            externalFiltersModifier: '${ $.externalProvider }:params.filters_modifier'
        },

Looking at the source of the uiElement module,

#File: vendor/magento/module-ui/view/base/web/js/lib/core/element/element.js
    initLinks: function () {
        return this.setListeners(this.listens)
                   .setLinks(this.links, 'imports')
                   .setLinks(this.links, 'exports')
                   .setLinks(this.exports, 'exports')
                   .setLinks(this.imports, 'imports');
    },

These imports/export seem to have something to do with "linking" information between objects when an object is instantiated.  However, it's not clear how this linking works (uiRegistry based?) or what the syntax for strings like ${ $.provider }:data.items are.  It's clear these strings use template literals that expand into something like

foo_bar:data.items

But the meaning of this final string is still mysterious.

Does anyone know how the import/export properties of these objects work?


texts: Magento 2.3 - How to send associative as a response using custom rest API?

texts:
I need to send associative array in response. Keys can be dynamic like

{
 'a':'1',
 'b':'2'
}

I already tried mixed[], mixed, string, string[], array and array[]. But I always get following result.

{
 '1',
 '2'
}


texts: Simple Product page not displaying add to cart button

texts:
Magento 2.1.5 CE

created a simple product, browsed product page.
No add to cart button displayed ?


texts: Uncaught reference error - is not defined - Magento 2

texts:
I've been reading up on requirejs for Magento 2 and I've used it sucessfully for some scripts but I'm having trouble with one called Lity.

I have my requirejs-config.js file setup as follows:

var config = {
deps: [
    "js/main",
],

map: {
    '*': {
        'lityLightbox': 'js/lity',
    }
},
"shim": {
    "lityLightbox": ["jquery"],
}
};

and my main.js contains the following:

require(['jquery', 'lityLightbox'],
function ($, lityLightbox) {
    "use strict";
    $(document).ready(function ($) {
        $(document).on('click', '[data-lightbox]', lity);
    });
});

However I get the following console error: Uncaught ReferenceError: lity is not defined but yet the script still works but only sometimes?

How can I sort out the console error please? Is it anything to do with the order that the scripts are loaded?

Update

After passing the reference correctly I now have a different error

Uncaught Error: Mismatched anonymous define() module: function ($) { return factory(window, $); }'

This is on the first line of the lity.js file

I have this entire script wrapped in require(['jquery', 'lityLightbox'], function($){ *** });

Are you able to help wth that too please


texts: Magento 1.9 How to change Product Listing Logic

texts:
I need to change the default logic used for the product listing. I only need to get products whose attribute 'is_master_record' = 1. Do i need to override the following file to implement this

/app/code/core/Mage/Catalog/Block/Product/List.php

This file has following function

protected function _getProductCollection()
    {
        if (is_null($this->_productCollection)) {
            $layer = $this->getLayer();
            /* @var $layer Mage_Catalog_Model_Layer */
            if ($this->getShowRootCategory()) {
                $this->setCategoryId(Mage::app()->getStore()->getRootCategoryId());
            }

            // if this is a product view page
            if (Mage::registry('product')) {
                // get collection of categories this product is associated with
                $categories = Mage::registry('product')->getCategoryCollection()
                    ->setPage(1, 1)
                    ->load();
                // if the product is associated with any category
                if ($categories->count()) {
                    // show products from this category
                    $this->setCategoryId(current($categories->getIterator()));
                }
            }

            $origCategory = null;
            if ($this->getCategoryId()) {
                $category = Mage::getModel('catalog/category')->load($this->getCategoryId());
                if ($category->getId()) {
                    $origCategory = $layer->getCurrentCategory();
                    $layer->setCurrentCategory($category);
                    $this->addModelTags($category);
                }
            }
            $this->_productCollection = $layer->getProductCollection();

            $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());

            if ($origCategory) {
                $layer->setCurrentCategory($origCategory);
            }
        }

        return $this->_productCollection;
    }

I'm confused on where change the code do i need to logic after this line?

$this->_productCollection = $layer->getProductCollection();

For example

$prodctCollection = $layer->getProductCollection();
$this->_productCollection = $productCollection->addAttributeToFilter('is_master_record',1);

I want to change effect in both search result and product listing page( ie category->subcategory->product list)


texts: Magento admin display old version after upgrade Magento 2.2.5 to 2.3.1

texts:
After upgrade Magento 2.2.5 to Magento 2.3.1, Magento admin panel still display the old version that is 2.2.5
Updgration done successfully but admin does not display new version.


texts: CE 1.9.1.1 - Determine which user created backend order

texts:
we have created a Telesales role inside Magento with relevant permissions, and have assigned users (Telesales agents) against that role.

Now I am aware of the SO post Differentiating Backend vs. Frontend Purchases in Magento, but I need to find a way to show orders created by a specific backend user. Is this possible? I have also looked into the Advanced Reports extension from AheadWorks, but this doesn't seem to be a feature they support.


texts: Custom payment integrate in custom payment module

texts:
How to integrate payment integration method in the sample custom payment module.
I have two files.
Html and javascript.

I want to add these files in a sample payment custom module or I just want to say that I have to integrate payment API in a sample payment module.

Any link or any suggestion code kindly help


texts: How to sort the Attribute Set list on the Manage Products Grid dropdown menu?

texts:
We are using Magento 1.8.1.  When I navigate to the Catalog > Manage Products grid view of our products, I see the Attribute Set column, which displays as a selectable dropdown menu.

The challenge we are having is that our list of attribute sets is quite long, and they are ordered in order of when they were created (so I assume they are ordered by their attribute_set_id or something like that).

I would like to re-sort this list alphabetically, so that if I wish to find a specific attribute set, I simply look through an alphabetized list, rather than having to scroll up and down like crazy to find the attribute set I need.

I appreciate any guidance you can provide.

Thanks.


texts:
It is possible to do some collection in checkout/cart ? I tried this one but it doesn't work . My objectif is to get all items cart then filter them by attribute.

$_cart = Mage::getModel('checkout/cart')->getCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('attribute', 'value')
    ->setPageSize(100);

foreach ($_cart as $item) {
    echo $item->getPrice();
}

or

$items= Mage::getSingleton('checkout/cart')->getQuote()->getItemsCollection();
// I dont know if it is possible to add a filter on it.


texts: how to get id of image right after adding it to image gallery of product?

texts:
I need somehow to get id of product right after it addition to gallery of product, i am trying this code, but still ID is null for some reason:

$product->addImageToMediaGallery($imageToAdd,
        array('image', 'small_image', 'thumbnail'),
        false,
        false);

$product->save();

$items = $product->getMediaGalleryImages();

foreach($items as $productImage) {
    if(basename($productImage->getFile()) === basename($imageToAdd)){
        $uploadedImagesIds[] = $productImage->getId(); // it gives NULL
        break;
    }
}

Althrough I've called $product->save() method it still gives me null on $productImage->getId();

Is it possible to retrieve id of image added to gallery somehow ?


texts:
I built my website on Magento, and would like to keep it on Magento.

However, I recently did a Wordpress install on my site as well, which was sort of a pain to get working. The reason why I installed Worpress is to utilize a custom product configurator that was available for Woocommerce, I tried building the same thing for Magento but it was just not possible.

So now my problem is that I have two different checkouts on my website.. one for the Woocommerce products (right now only 4 products) and hundreds of products on Magento. If the customer adds the Woocommerce product to their cart then goes back to Magento, it will cause confusion as they are two different carts.

Is there any way to have the Woocommerce products merge with the Magento cart?

Thanks,
Tim


texts: Magento 1 fetch Order items which has blank/zero product id/price/sku from last one day

texts: Any idea how to create shell script which fetch order items which has blank/zero product id/price/sku from last one day in Magento 1 ?


texts: How to make payment success page as third tab of checkout process?

texts:
How to make payment confirmation page as third tab of checkout process?

I need to make checkout contain 3 tabs:

1 - shipping (1st image)

2 - payment (2nd image)

3 - confirmation (3d image)

So "checkout/onepage/success" (see at 3d image) should look like checkout step and become 3d tab like at 1st and 2nd images.

Of course need to show order number as it shown at current version.


texts: Magento 2 Widget filter option to add price

texts: When I select simple product from drop down under layout updates. I can select based on SKU, ID or Product. is there way to add Price to this Column...?


texts: Italian translation in a multi-language site don't work

texts:
I've a multilanguage site in Magento 1.9. I set Italian like default language.
There are some words in the footer that aren't translate. I added this words into csv file but the problem remains.
It's shown in the following image:

"QUICK LINKS", for example, remains in English language. I Found this string in only in the file page.xml and I try to change it but it isn't changed. The code part of this file where I found this string is the following:

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                    <label>Page Footer</label>
                    <action method="setElementClass"><value>bottom-container</value></action>
                </block>
                <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>
                <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                    <action method="setTitle"><title>Quick Links</title></action>
                </block>
                <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                    <action method="setTitle"><title>Account</title></action>
                </block>
                <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
                <!--<block type="cms/block" name="footer_social_links">
                    <action method="setBlockId"><block_id>footer_social_links</block_id></action>
                </block>-->
            </block>

Can you help me, please?
Thank's!


texts: Error 503 Backend fetch failed in varnish cache magento

texts:
I am configuring Varnish cache in for my magento site
I have followed the step from following url
https://www.howtoforge.com/tutorial/how-to-install-varnish-with-nginx-on-centos-7/
But when i enter my site with http its throwing
Error 503 Backend fetch failed
Backend fetch failed

Guru Meditation:
XID: 32774

Varnish cache server

I am using cent os 7
Https is working normally without affecting varnish ..
What am I missing , is  the link I refereed is wrong .Kindly suggest any other step for https and issue for 503 in http


texts: Magento2 after installation error (Exception log)

texts:
I have installed Magento 2 and after first exception, I get an error as below.

[2019-05-16 08:16:50] main.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.core_config_data' doesn't exist, query was: SELECT `main_table`.* FROM `core_config_data` AS `main_table` {"exception":"[object] (Zend_Db_Statement_Exception(code: 42): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.core_config_data' doesn't exist, query was: SELECT `main_table`.* FROM `core_config_data` AS `main_table` at /var/www/vhosts/magento2/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.core_config_data' doesn't exist at /var/www/vhosts/magento2/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228)"} []

what does it mean?

and how to fix it?

Help me. Thanks In advance


texts:
I have Magento 1.9 integration with ERP for Product, inventory, order. My ERP does not include the Configurable Product feature like multiple inventory for same product with different size, but our ERP team advice that they can provide the config. product in the CSV format of Magento config. product.

Can you please provide any way to handle this situation?


texts: How to develop a module for store rating not product

texts: I have 3 store view to my website and I want to have a part in my home page where the guest can evaluate my store (not the product) and the only authenticated customer can evaluate and save directly their opinion but not logged in will be redirected to the login page to save the evaluation. So how to do that thanks in advance


texts:
I need to display images for products without uploading on my server. I need to achieve:

Images are uploaded on another server
Images to be display on magento2 products

Is it possible that we add ONLY URL of images and it displays in Magento 2.  This is how we add product in Amazon like site by mentioning url of images.

What I already checked: How to set product images from external url, Import product images from external url

Any ideas and suggestions are welcome.