texts: Magento 2 - Should I always copy the whole layout file into my theme and make my changes?

texts:
I have to modify the layout of the catalog_product_view.xml.

Should I copy the whole file into my theme and then make my changes or should I create the file catalog_product_view.xml in my theme and make changes by referencing blocks and containers?

In my opinion it would be better to copy the whole layout file, because if a magento update is getting released, then it might break the layout.


texts: Quote/QuoteItem addErrorInfo is not persistent

texts:
On Magento 1, I'm having an issue where the quote and quote item error messages is not persistent.

$item->addErrorInfo('cataloginventory', Mage_CatalogInventory_Helper_Data::ERROR_QTY, $message);

The above code is fine for set the status in that request. However, as soon as another request hit, the error message is not there any more e.g. $quote->getErrors() returns empty array.

I've tried to do $quote->save() as well as $quoteItem->save() but I don't think that's the reason.


texts: How to remove invoice, shipment and creditmemo from Admin grid in magento1.9.0.1 programmatically

texts: I want to delete order programmatically. So I want to delete sales order from sales->orders grid as well as sales->invoices grid, sales->shipments grid. For that, I got a link here These site's code is not working on Invoice Delete and on Shipment Delete in Magento1.9.0.1 programmatically. it only deletes the order from sales->order list, not invoice from sales->invoices and not delete shipment from sales->shipments. I search a lot in google, but there is no suitable result "How to delete invoice and shipment and creditmemo programmatically in Magento 1.9.0.1".If any one knows about this issue, please reply it.


texts: What is best code editor for Magento extension development?

texts:
I have developed few extensions using "Notepad++", "Sublime" or "Geany" code editors.

Although I am following the Magento EQP Coding Standard tool (https://github.com/magento/marketplace-eqp) to check the issues before submission on marketplace.

Generally I found the issues in technical review as below:

  End of line character is invalid; expected \"\n\" but found \"\r\n\"

  Spaces must be used to indent lines; tabs are not allowed

  Expected 1 space after comma in function call; 2 found

  Expected \"if (...) {\n\"; found \"if(...) {\n\"

  Opening brace of a class must be on the line after the definition

  Opening brace should be on a new line

  Line exceeds 120 characters; contains 131 characters

  No space found after comma in function call

  Closing brace indented incorrectly; expected 4 spaces, found 1

Is there any specific best code editor so I can reduce the warnings and errors counter while development?


texts: PayPal Express Checkout broken in Magento Version 1.9.3.6 with HTTPS

texts:
we switched from HTTP to HTTPS / SSL and now the PayPal Express checkout is broken.

when you try to pay with paypal, you get redirected by to cart view and see the error message Security header is not valid (#10002: Security error).

what do we have to do? change something in PayPal account?


texts: How to have 2 Shopping Carts on the home page?

texts: I'm using Venustheme - Yume theme , and what I want to do is to add another Shopping cart , in the top bar , and the normal one have it hidden on the desktop version , and when it goes mobile , hide the top bar one , and display the normal one. My problem is I'm new to Magento , and I don't know how to add, or where or what to call , to have another one in the top bar. Does anyone have any idea what I should do ?


texts: Display Estimated delivery date in product Page

texts:
How to display estimated delivery date in product page when the user selects
 country and zip code ?


texts: How upcoming SameSite cookie changes could affect Magento or 3rd modules, possible issues?

texts:
On February, 4, Google is set to roll out a new Chrome update that promises a bunch of new features designed to make the browser faster and more secure — including a new approach to cookies.

The SameSite update will require website owners to explicitly state label the third-party cookies that can be used on other sites. Cookies without the proper labelling won’t work in the Chrome browser, which has 64% of the overall browser market, according to Statcounter.

Update:
Since I posted this question a lot of discussion has been done.

Currently the latest can be seen in the Magento 2 repo:

https://github.com/magento/magento2/issues/26377

Keep tunned!

Extra links:

https://tools.ietf.org/html/draft-west-first-party-cookies-07
https://www.troyhunt.com/promiscuous-cookies-and-their-impending-death-via-the-samesite-policy/


texts: Choose Template when Inserting Widget to a CMS Page

texts:
We insert an (own) widget to a CMS page using the button.

There is no prompt for the template. Is it possible to choose the template in the Widget insertion GUI for CMS content or does this have to be done manually in the source-code view?


texts: Catalog Price Rules discount applied to Parent Category, not reflecting on Children

texts:
Note:  I've asked this on StackOverflow, and will update my question there with credit (or delete) if I get an answer here.

I have have nested products which are not getting a discount if that product does not have the parent category selected within the product page. For example:

Within the Magento Admin, I've created a Catalog Price Rule "If ANY  of these conditions are TRUE : Category > contains > 8" (8 being the ID of the Products category) like so:

  Products - (20% Catalog Price Rule applied)

      T-Shirts

T-shirt #1 has the "T-shirts" and "Products" category selected. Sale works fine.

T-Shirt #2 has only the "T-Shirts" category selected, leaving the "Products" category unselected.  Sale doesn't work.

You would think that the sale should still apply to all products of a subcategory even if the parent is not selected, because technically it's still a within the parent category.

If there is no way around this, I'm assuming I'd have to assign the "Products" category to all subproducts?  What If i have hundreds, is there a quicker way to do this?


texts: what things and concept i should learn before learning magento 2

texts:
I am a php , html , css , javascript developer and i have worked on wordpress , laravel also , now i am learning magento 2 and i am not understanding most of the things . i want to know what concepts should i learn before learning magento 2 so that i can understand the core of magento 2 coding
I have searched about this and found something like

learn psr-4 coding standards
Design patterns

and i am learning them but still i am in great difficulty in understanding things .


texts: How to customize validate-product.js, so it will return message in popup?

texts:
If a customer forgets to choose the product option of the configurable product on the product listing page and click "add to cart" it is redirecting you to the product view page with the message: "You need to choose options for your item."

I just want to show this message in a popup without redirecting on the product view page.

I makes a change on list.phtml file, so if someone click add to cart its shows required field message similar in configurable product view page. I just add validate-product.js in product listing page, but its return message not a popup.

source: Add configurable products to cart display waring message instead of redirecting

Here is my code:

define([
'jquery',
'mage/mage',
'Magento_Catalog/product/view/validation',
'catalogAddToCart',
'Magento_Ui/js/modal/modal'
], function ($) {
'use strict';

$.widget('mage.productValidate', {
    options: {
        bindSubmit: false,
        radioCheckboxClosest: '.nested',
        addToCartButtonSelector: '.action.tocart'
    },

    /**
     * Uses Magento's validation widget for the form object.
     * @private
     */
    _create: function () {
        var bindSubmit = this.options.bindSubmit;

        this.element.validation({
            radioCheckboxClosest: this.options.radioCheckboxClosest,

            /**
             * Uses catalogAddToCart widget as submit handler.
             * @param {Object} form
             * @returns {Boolean}
             */
            submitHandler: function (form) {
                var jqForm = $(form).catalogAddToCart({
                    bindSubmit: bindSubmit
                });

                jqForm.catalogAddToCart('submitForm', jqForm);

                return true;
            }
        });
        $(this.options.addToCartButtonSelector).attr('disabled', false);

        $.widget('vendor.modalForm', {
            options: {
                modalForm: '#modal-form',
                modalButton: '.tocart'
            },
            _create: function () {
                this.options.modalOption = this._getModalOptions();
                this._bind();
            },
            _getModalOptions: function () {
                /**
                 * Modal options
                 */
                var options = {
                    type: 'popup',
                    responsive: true,
                    title: '',
                    innerScroll: true,
                    buttons: false
                };

                return options;
            },
            _bind: function () {
                var modalOption = this.options.modalOption;
                var modalForm = this.options.modalForm;

                $(document).on('click', this.options.modalButton, function () {
                    //Initialize modal
                    $(modalForm).modal(modalOption);
                    //open modal
                    $(modalForm).trigger('openModal');
                });
            }
        });

        return $.vendor.modalForm;
    }
});

// return $.mage.productValidate;
});

I also create div tag with id in list.phtml, but I think I am doing wrong, let me know if anyone have another suggestion or any advice for it.


texts:
I'm trying to add a new less file into an already existing theme, which will turn the price classes descended from the special-price class red, highlighting a 'discount' and making it more obvious

.special-price .price {
    color: red !important;
}

This is in a file called _special_price.less, which is imported into the _extend.less file.

@import '_special_price.less';

It is my understanding that
_extend is compiled last, which means any existing CSS is overwritten, but this doesn't seem to be happening, as the expected change is absent.

Yes, I realize that !important shouldn't be needed, but it didn't even work anyway.

I have flushed and cleaned the cache, compiled, deployed, anything I can think of. Can anyone help?

Edit:

After more experiments, I have concluded that the whole CSS file in the custom theme is not even being compiled. changes to existing (and working) .less files produce no change, as when the webpage is inspected, the previous CSS is still there.


texts: Magento2 mini cart counter not getting updated

texts:
Magento2 I am programmatiacally removing cart items.
$quoteItems = $this->checkoutSession->getQuote()->getItemsCollection();
            foreach($quoteItems as $item)
            {
                $cart->removeItem($item->getId())->save();
            }

My issue is mini cart counter is not getting updated
It just gets reduced by 1. Lets say if I have 3 items it will get reduced by 1 & change to 2.
I have already tried
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
    <action name="inquiry/index/save">
        <section name="cart"/>
    </action>
</config>

And this
var sections = ['cart'];
customerData.reload(sections, true);


texts: Use review form in Product description page

texts:
rather then using magento2  form like this in product description page

<block class="Magento\Review\Block\Form" name="product.review.form" as="review_form">
    <container name="product.review.form.fields.before" as="form_fields_before" label="Review Form Fields Before" htmlTag="div" htmlClass="rewards"/>
</block>

Can I use other way ? as its creating some issues on page.


texts: Export product quantity from Magento 2.3 to CSV file

texts:
What is the proper code to export qty attribute from Magento 2.3 to CSV.

$product->getQty(); - doesn't work.

Thank you!


texts: Update is_required for Existing Attribute Code

texts:
I am thinking to update is_required data to "1" for existing "Region" attribute code.

select * From eav_attribute where attribute_id = '28'

However, I am wondering what is the practice here. Is it simply creating SQL statement and update that specific record in setup script fine? Or perhaps there may be a better way.


texts: Changing color on frontend sets price to zero

texts:
I have a configurable product with a few simple products assigned to it. On the frontend I see the price of the product correctly. In the dropdown box with different colors (underlying simple products) I see

  Black

  Chrome +€5.00

This is exactly what is should be. However when I select one of the colors, the price of the product is changed to €0,00. But when I add the product to cart, the correct price is displayed. It looks like only the calculation (in javascript?) of the price on the product is wrong.

I use Magento 1.9.1.0 with a bought template. I have no idea how to solve this. See here the link where this problem occurs:
http://www.eenwieler.nl/eenwielers/standaard-eenwielers/20-inch/only-one-20-inch-eenwieler.html


texts:
I have a magento 2.1.10 setup running..

Recently made a bulk of change in the categories navigations.

The currently structure is somewhat like below

All > Pillows > Shop All Pillows > Printed Pillows

the currently URL for printed pillows is

/pillows/shop-all-pillows/printed-pillows

How can i omit the shop-all-pillows, so that the url reads the below instead

/pillows/printed-pillows

Is it possible to achieve this without having to the change the navigation structure


texts:
Don't know something has gone wrong. Suddenly on my magento (1.9) site forms which have array fields are not working.

for example :-

<input type="text" name="inputfield['first']" id="inputfieldfirst" value="" />

If I would take it as name="inputfield", it will work.

And secondly (for debugging this issue) , I have created one file on root folder of magento directory which is having two forms 1] one is submitting data on root response file. 2] second is submitting data in app folder's custom module's controller. In these cases , first case is working but second is not working as it is submitting data into magento's controller.

Same code is working on another server.

Any help will be appreciated.
Thanks !


texts:
I have created my package based on rwd magento 1.9. When I click on a category, say, Women I go to page

  frontend/my_package/default/template/page/1column.phtml (template hints)

In the middle of this page there is a block with template hint:

  frontend/base/default/template/catalog/category/view.phtml

and Mage_Catalog_Block_Category_View. I want to place my module which has subcategories with images into this block. I just can't find the name of the block to insert into. In my layout file I want something like:

  <catalog_category_view>
    <reference name="????????">
       <block type="women/subcategories"  name="subcategoriesblock" as="subcategoriesblock"      template="subcats/subcats.phtml"/>
    </reference>
  </catalog_category_view>

I have used

  $blocks = Mage::app()->getLayout()->getAllBlocks();

to get block names in current page and have tried and tested the various block names but nothing seems to work. Could somebody help and give some suggestion as to how I might get the name of the relevant block. All help will be greatly appreciated.


texts: 302 redirect to cart from successAction - why?

texts:
I am running a 1.9.3.7 shop with a custom checkout extension  and whenever I try to make a purchase I am redirected to the cart. A also debugged this and was able to track it down to successAction() in Mage_Checkout_OnepageController.

$session = $this->getOnepage()->getCheckout();
if (!$session->getLastSuccessQuoteId()) {
    $this->_redirect('checkout/cart');
    return;
}

When I use the standard checkout, it works ok. So it must be some sort of error in that extension. Anyone any idea where to sart looking?

Thanks!


texts: how to set unique field in my custom module

texts:
I am using magento 1.9.2.4

I need to one unique and require field in my custom module form

I am using below code for form field

class Test_Brand_Block_Adminhtml_Brand_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
 {
            protected function _prepareForm()
            {
                $model = Mage::registry('test_brand');
                $fieldset->addField('option_identifier', 'text', array(
                'name'      => 'option_identifier',
                'label'     => Mage::helper('checkout')->__('Option Identifier'),
                'title'     => Mage::helper('checkout')->__('Option Identifier'),
                'required'  => true,
                ));
             }

}


texts: How to change the Admin session time in Magento?

texts:
It is possible that sometimes the time that the admin session is active is too short.

How to change the time it takes to auto-logoff the user from the back-end?


texts: How to set product page to 2 columns-left instead of 1 column

texts:
How to set the product page layout to 2 columns-left instead of 1 column.

I've had a look around in catalog.xml but no joy, I've been looking for catalog_product_view


texts: Magento 2 - PHP Error After Saving Any Attribute

texts:
I am working on a Magento 1 to 2 migration and, after migrating data from 1 to 2, I am receiving an error when attempting to save or create an attribute, and when attempting to load the category and product lists in the admin panel.

This is the error trace:

Fatal error: Uncaught Error: Call to a member function isSwatchAttribute() on null in vendor/magento/module-swatches/Helper/Data.php:562
Stack trace:
#0 vendor/magento/module-swatches/Model/Plugin/EavAttribute.php(97): Magento\Swatches\Helper\Data->isSwatchAttribute(Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor))
#1 vendor/magento/framework/Interception/Interceptor.php(121): Magento\Swatches\Model\Plugin\EavAttribute->beforeBeforeSave(Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor))
#2 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->Magento\Framework\Interception\{closure}()
#3 generated/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor. in vendor/magento/module-swatches/Helper/Data.php on line 562

This is the function that's failing;

    public function isSwatchAttribute(Attribute $attribute)
    {
        return $this->swatchTypeChecker->isSwatchAttribute($attribute);
    }

I have removed generated, var/cache, var/page_cache and var/view_preprocessed manually, reset the indexers and ran them, re-run setup:upgrade and setup:di:compile and reset permissions. Still getting this null so it's something with the M1 data, but I'm not sure what.

The version in use is 2.3.3 and I'm using MGS Claue for the theme. I've used this before without any trouble so I'm reasonably sure it's not the theme.


texts: How to upload image to “skin” directory (to use it in theme's CSS)

texts:
In the admin config section we can upload images to the "media" directory (see example below). But is there any way to upload images to the "skin" directory? For example to:

  skin/frontend/my_package/my_theme/images

(So the image would be easily available for CSS files)

This example was copied from app/code/core/Mage/Catalog/etc/system.xml. It loads images to "media":

<config>
    <sections>
        <catalog translate="label" module="catalog">

            <groups>
                <placeholder translate="label">
                    Product Image Placeholders
                    <clone_fields>1</clone_fields>
                    <clone_model>adminhtml/system_config_clone_media_image</clone_model>
                    <sort_order>300</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <placeholder>

                            <frontend_type>image</frontend_type>
                            <backend_model>adminhtml/system_config_backend_image</backend_model>
                            <upload_dir config="system/filesystem/media" scope_info="1">catalog/product/placeholder</upload_dir>
                            <base_url type="media" scope_info="1">catalog/product/placeholder</base_url>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </placeholder>
                    </fields>
                </placeholder>

I tried to use similar code in my custom module, I replaced paths but seems that it is not correct (I don't even know if it is possible a to upload images this way to the "skin" directory):

                <fields>
                    <my_field>
                        My Example Field
                        <frontend_type>image</frontend_type>
                        <backend_model>adminhtml/system_config_backend_image</backend_model>

                        <upload_dir config="system/filesystem/skin" scope_info="1">frontend/my_package/my_theme/images</upload_dir>
                        <base_url type="skin" scope_info="1">frontend/my_package/my_theme/images</base_url>

                        <sort_order>1</sort_order>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </my_field>
                </fields>


texts: Can't seem to get the products showing up on the home page. I keep getting "There are no products matching the selection."

texts:
http://saltyclothing.com/index.php/

I am new to Magento and believe my problem is that we may have deleted or renamed the default or root category. I am basically looking for help in finding how to recreate my root category to the current name so that all my products will show up.

They have all been brought in and made visible and put into their sub categories. I have spent alot of time putting all my products into the catalog with their info and photos and am being very careful not to destroy what I have already built.

I appreciate any advise. Thank you.


texts: Magento doesn't switch to right locale while installing

texts:
I'm trying to deploy a dutch install of magento 1.9.2.3, but i can't seem to get the locale set to dutch.

As far as i can remember, i used to selected 'Nederlands' while installing and then everything in back and frontend would be dutch. Now i do the same but my entire install remains english.

What am i missing? I've tried to remove the files and run the install again like ten times but its not working.

The person that can tell me what i'm doing wrong gets a cookie!


texts: I need to edit print invoice PDF on magento2.4. add some fields on form and also change printed language to arabic. what should I do? Also I need to add barcode to invoice, how can I generate it? need to have sku on my barcode


texts: Magento\Quote\Model\Quote\Address\RateRequest can't get orig countryid

texts:
I want to use DestCountryId and OrigCountryId to calculation shipping price in my customer shipping method.

So I use Magento\Quote\Model\Quote\Address\RateRequest.  $request->getDestCountryId()  I can get country code, but $request->getOrigCountryId() is empty.

  what should I do for get OrigCuntryId?


texts: How to use controller actions with long names?

texts:
I've created a custom module. In controller file the function as bellows.

    /**
     * Load slider images
     */
    public function loadImageAction()
    {
        $this->loadLayout();
        $this->renderLayout();
    }

layout handler declaration is as follows.

<layout version="0.1.0">
    <slider_slider_loadImage>
        <reference name="content">
            <block type="slider/load" name="load_custom_slider" template="slider/slider.phtml" />
        </reference>
    </slider_slider_loadImage>
 </layout>

But this doesn't loads the template file. If I rename the controller action as loadimageAction(){ ...} then it's working.

Can anyone explain how can I use action names with several words?

Eg: loadImageAction()
navNextAction()

Any clarification on this will be appreciated.


texts: File does not exist:/var/www/skin, /var/www/js, /var/www/media

texts:
I installed Debian in our local network and copy Magento to test.
After, I update the table mage_core_config_data in the database.

When I test this link dev-pmc/dev1.pmc.loc, I got this error in the log of apache

  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/js, referer: http://dev-pmc/dev1.pmc.loc/
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: xxxxx
  [Thu Feb 26 10:43:56 2015] [error] [client 192.168.1.141] File does not exist: /var/www/skin, referer: http://dev-pmc/dev1.pmc.loc/skin/frontend/seasons/home/css/styles.css

When I copy the folder skin, js and media in /www/, there are no error.

And I get this error too when I try to go to a store view
The requested URL dev1.pmc.loc/frw was not found on this server.
and in the server: File does not exist: /var/www/dev1.pmc.loc/frw

What can I do to resolve this problem?


texts: magento2 create menu when customer login

texts:
How can i create menu when customer login. My picture

Please help me!


texts:
In magento2.x I am using the helper and the model class files where I need certain functions from helper so I just created the object using DI and similary when I am trying to get the model object from helper , It shows circular dependency Error

Example-Model.php

   use Vendor/ModuleName/helper/Data;

    class Model{}

Example-Helper.php

   use Vendor/ModuleName/Model/Model;

    class Helper{}

Any Suggestions are welcome.


texts: Group prices are cached (Lesti_Fpc) and displayed to all visitors

texts: We realized that the group price are cached and after log out, regular customer can see the discount, till we refresh the cache. How to solve this?


texts:
I want change favicon in multistore configuration:
System > Config > General > Design > HTML Head > Favicon Icon
but when i try to use filetype .ico i receive: Invalid image.
and in tips: Allowed file types: ICO, PNG, GIF, JPG, JPEG, APNG.
And I think it's work in early version because i have custom favicon.ico in other store in this site.


texts: how to hide the page-title / category-title

texts:
is there a way to hide the h1 page-title / category-title which shows on most pages? However, I want to only remove it on some pages.. therefore, a solution using the 'Custom Layout Update' would be best.

Thanks!


texts: Custom Module - How to Link to/access its Template Path File

texts:
I have created and enabled a custom module in my magento store called 'Earnings' to allocate customers loyalty points. I declare the phtml file to use (template/earnings/earnings.phtml) in my earnings.xml as below

earnings.xml

<?xml version="1.0"?>
<layout version="0.1.0">
    <earnings_index_index>
        <reference name="content">
            <block type="earnings/earnings" name="earnings" />
        </reference>
    </earnings_index_index>
</layout>

I want the page that uses this template file to be linked from the customer account navigation when they log in (same place as my addresses/my billing agreements/my orders etc). In my local.xml i use addLink as below:

local.xml

<customer_account>
    <reference name="sidebar">
        <action method="unsetChild"><name>reorder</name></action>
        <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
            <action method="addLink" translate="label" module="earnings"><name>earnings</name><path>earnings/earnings/</path><label>Earnings</label></action>
        </block>
        <remove name="tags_popular"/>
    </reference>
</customer_account>

Now when i log into the customer account the link is there,it goes to the url http://www.mysite.com/earnings/earnings
but this gives my a 404 page not found

I am very new to magento and this is  my first go at creating custom modules. Am i missing something or doing something in the wrong way?


texts: How to include google fonts through url in Magento 2.2

texts:
I have upgraded my project from 2.1.7 to 2.2.2. I am fixing issues and stucked in one font issue.
Earlier I included google fonts in Magento 2.1.7 through below code
default_head_block.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/Module/etc/module.xsd">
  <head>
    <!-- Google Fonts -->
    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,500,700,400italic,700italic|Muli:400,400italic" src_type="url"  />
  </head>
</page>

Please help to implement in Magento 2.2.2


texts: Install Magento 2 on localhost of Wamp at Window System

texts:
As you may be aware about developer beta release of Magento 2. So today I want to install Magento 2 on my WAMP server at Window system, I am failing to install it. I have Googled but I always get reference blog for in Linux and Ubuntu system. So, please help how to install it on Window system

I have follow link.

Please help me.


texts:
I am using Magento 2.4.0 and trying to put a custom log for my custom module by extending the \Monolog\Logger but the log file is not created in the Magentoroot/var/log path. I have attached all the code snippets for your reference, anybody who can help please leave a comment.
Diligent - is my vendor or namespace
CoveoLog - is my module
Handler.php file
<?php
namespace Diligent\CoveoLog\Logger;

use Monolog\Logger;

class Handler extends \Magento\Framework\Logger\Handler\Base
{
    protected $loggerType = Logger::INFO;

    protected $fileName = '/var/log/Diligent.log';
}

Logger.php
<?php
namespace Diligent\CoveoLog\Logger;

class Logger extends \Monolog\Logger
{
}

Model.php
<?php
namespace Diligent\CoveoLog\Model;

class MyModel
{
    protected $_logger;

    public function __construct(
        \Diligent\CoveoLog\Logger\Logger $logger
    ) {
        $this->_logger = $logger;
    }

    public function doSomething()
    {
        $this->_logger->info('Hello');
    }
}

di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
    <type name="Diligent\CoveoLog\Logger\Handler">
        <arguments>
            <argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
        </arguments>
    </type>
    <type name="Diligent\CoveoLog\Logger\Logger">
        <arguments>
            <argument name="name" xsi:type="string">CoveoLog</argument>
            <argument name="handlers" xsi:type="array">
                <item name="system" xsi:type="object">Diligent\CoveoLog\Logger\Handler</item>
            </argument>
        </arguments>
    </type>
</config>

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

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

Note: I have tried by clearing cache and doing reindex.


texts:
in backend there is  module-sales/view/adminhtml/web/order/create/scripts.js, and inside that js there is a function like this :

loadShippingRates : function(){
            this.isShippingMethodReseted = false;
            this.loadArea(['shipping_method', 'totals'], true, {collect_shipping_rates: 1});
        }

i want to change the function, so it will send another data to loadArea function like this:

loadShippingRates : function(){
            this.isShippingMethodReseted = false;
            var yeezy= jQuery('#order-billing_address_yeezy').val();
            this.loadArea(['shipping_method', 'totals'], true, {collect_shipping_rates: 1, yeezy_is_ready_yoo: yeezy});
        }

when i change from pub/static my custom function works fine, but i don't know how to override this function from custom extension


texts: Magento 2.3 update quantity not working in Arabic store view

texts:
Update quantity not working in Arabic store view.
While I am updating the quantity like 2 in the minicart it is updated as 1 qty


texts: How to check all the validations are passed in magento form?

texts:
I want to check if all the validations are passed in magento billing form

what i have tried is

<script type="text/javascript">

    //<![CDATA[
    var billingForm = new VarienForm('co-billing-form', true);
            if (billingForm.validator && billingForm.validator.validate())
            {
              //do the stuff
            }
     //]]>
    </script>

But it always returns true , even if all the validations are not passed ,

When i alerted the billingForm.validator.validate() it returns true .

how to get over it ?


texts: Magento Change Product image while adding product to cart

texts: I want to change product image  after a user added a product in to cart, Because user can change image text and font style. So, I have loaded Quote item using event sales_quote_add_item and I am able to change product price using it but I am not getting how to change product image.


texts: Not able to install 3941 patch for Magento 1.8 via PHP script

texts:
I downloaded the SUPEE-3941 patch file from https://magento.com/tech-resources/download, saved it in the Magento root folder and
created a patch.php file under the root folder.

patch.php

<?php
 print("<PRE>");
 passthru("/bin/bash PATCH_SUPEE-3941_EE_1.14.0.1_v1-2015-02-10-08-32-02.sh");
 print("</PRE>");
 echo "Done";
?>

after hitting the URL mysite/patch.php it shows "done". But when I open the file app/etc/applied.patches.list, the patch SUPEE-3941 is not shown as installed.

What I am doing wrong?


texts: Magento 2 - How to change a label of a field in system.xml of an extension

texts:
I purchased an extension and I want to change the label of a field in the admin to say 'Delivery Cut off Time' instead of 'Cut off Time'. This field is represented in the system.xml file of the extension

File: Bss/OrderDeliveryDate/etc/adminhtml/system.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="bss" translate="label" sortOrder="300">
            Bss Commerce
        </tab>

            Order Delivery Date
            <tab>bss</tab>
            <resource>Bss_OrderDeliveryDate::config_orderdeliverydate</resource>
            <group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                General

                <field id="process_time" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    Processing Time
                    <comment><![CDATA[Delivery will be taken after(x) day(s) upon the date order(s) made.]]></comment>
                </field>

                <field id="cut_off_time" translate="label" type="time" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    Cut Off Time

                    <comment><![CDATA[If customers place order after this time the date when orders made will be counted as the following day.]]></comment>
                </field>
            </group>

    </system>
</config>

I have gone ahead and created my own module to try to make this changes. MyVendor_MyModule. I created a system.xml file, but I am not sure what is the proper way to overwrite the label.


texts: Magento 2 how to have product Advanced Inventory as store level

texts:
How to set product Advanced Inventory as store level. I need this store level for each product

I have two stored one is retail and wholesale, How can I set quantity increment only with wholesale So that user select bulk Quantity.


texts: Magento2 Get Payment Method API Returns Empty

texts:
When i trying get The Payment Methods using REST API , "rest/V1/carts/{cartId}/payment-methods" , it is returning Empty Array as a result.

I'm passing Admin Bearer Token as Authorization.


texts: Get multiple element in join on sql request into collection

texts:
I have a table "test_brand" and a table "test_vehicles". In "test_vehicles" I put a parameter which is "brand_id". Now I want to get in my template a collection with all brand and for each brand all their vehicles.

I found no tutorials about this on the net so I tried myself but I can't found the solution, can you help me please ?

I have the model for brand and vehicles. So I made for each a simple Collection like :

<?php
namespace Test\Vehicles\Model\ResourceModel\Brand;

use \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;

class Collection extends AbstractCollection {

  protected $_idFieldName = \Test\Vehicles\Model\Brand::BRAND_ID;

  /**
  * Define resource model
  *
  * @return void
  */
  protected function _construct() {
    $this->_init('Test\Vehicles\Model\Brand', 'Test\Vehicles\Model\ResourceModel\Brand');
  }

  public function getBrandShowcase($brand, $vehicle) {
    $this->addFieldToSelect('*')
    ->join(
      array('vehicle' => $this->_vehicle->getResource()->getMainTable()),
      'main_table.'.$this->_brand->getIdFieldName().' = vehicle.brand_id',
      array('vehicle_name' => 'name')
    );
    return $this;
  }

}

And in my block I call the function but I get an error :

  Exception #0 (Exception): Item (Test\Vehicles\Model\Brand) with the
  same ID "1" already exists.

Here is my model :

<?php
namespace Test\Vehicles\Model;

use \Magento\Framework\Model\AbstractModel;

class Brand extends AbstractModel {
  const BRAND_ID = 'entity_id'; // We define the id fieldname

  /**
  * Prefix of model events names
  *
  * @var string
  */
  protected $_eventPrefix = 'test'; // parent value is 'core_abstract'

  /**
  * Name of the event object
  *
  * @var string
  */
  protected $_eventObject = 'brand'; // parent value is 'object'

  /**
  * Name of object id field
  *
  * @var string
  */
  protected $_idFieldName = self::BRAND_ID; // parent value is 'id'

  /**
  * Initialize resource model
  *
  * @return void
  */
  protected function _construct() {
    $this->_init('Test\Vehicles\Model\ResourceModel\Brand');
  }
}

And there is the ressource model :

<?php
namespace Test\Vehicles\Model\ResourceModel;

use \Magento\Framework\Model\ResourceModel\Db\AbstractDb;

class Brand extends AbstractDb {

  /**
  * Initialize resource model
  *
  * @return void
  */
  protected function _construct() {
    // Table Name and Primary Key column
    $this->_init('test_brand', 'entity_id');
  }
}

I thinked about a solution and maybe I need to use the collection of vehicle to get all vehicles about a brand_id but I don't know how to build it. Can you help me please ?


texts:
When I am trying to log in to the website admin panel I am receiving this error record number: 1186363524883.

Please provide some solution.


texts: Error while reindexing product attribute

texts:
On re-indexing product attribute I have found below error :

  SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (xxxxxxx.catalog_product_index_eav, CONSTRAINT FK_CAT_PRD_IDX_EAV_ENTT_ID_CAT_PRD_ENTT_ENTT_ID FOREIGN KEY (entity_id) REFERENCES catalog_product_entity (entity_id) ON DELE), query was: INSERT INTO catalog_product_index_eav (entity_id, attribute_id, store_id, value) SELECT catalog_product_index_eav_idx.entity_id, catalog_product_index_eav_idx.attribute_id, catalog_product_index_eav_idx.store_id, catalog_product_index_eav_idx.value FROM catalog_product_index_eav_idx ON DUPLICATE KEY UPDATE entity_id = VALUES(entity_id), attribute_id = VALUES(attribute_id), store_id = VALUES(store_id), value = VALUES(value)There was a problem with reindexing process.

Anyone has any suggestion?


texts: What does this mean in Magmi "wrong column number : 20 found over 38, line skipped"

texts:
I am trying to import this  csv using magmi "wrong column number : 20 found over 38, line skipped". What does this mean?

sku,name,description,short_description,price,qty,is_in_stock,visibility,image,small_image,thumbnail,weight,media_gallery,categories,tax_class_id,status,page_layout,options_container,Size:dropdown:1

"FA0120","Silver Service White Gloves",".","Gloves 100% Cotton. One size. Please scroll down to add to your basket.","7.01","0","0","Catalog, Search","/FA0120L.jpg","/FA0120L.jpg","/FA0120L.jpg","1000",,"","Vat Standard","Enabled","1 column","Product Info Column","One Size"


texts: Magento 2.3.3 Generate New Shippment Then Show Blank White Page

texts: After Upgrade from Magento 2.3.3 then, we save a new shipment then show a white blank page. This blank page comes when we add Tracking Information. When we check the shipment generated successfully.


texts: Adding a (bundle) product to cart programmatically on different websites/stores

texts:
How to add a product to cart is what I have already working, but it seems to be working for the default store only. So when I add a product to cart with the script on the default website/store, the products get added to the cart, but if I do it on another store, the cart remains empty (without any error).

Here's the add to cart script I have so far:

require_once($_SERVER['DOCUMENT_ROOT'] . '/app/Mage.php');
umask(0);
Mage::app()->setCurrentStore(Mage::app()->getStore()->getStoreId());

$session = Mage::getSingleton('core/session', array('name'=>'frontend'));
$cart = Mage::helper('checkout/cart')->getCart();

if( $_REQUEST['params_1'] != '' ) {
    try {
        $params_1 = unserialize($_REQUEST['params_1']);

        $productcart = new Mage_Catalog_Model_Product();
        $productcart = $productcart->load($params_1['product']);
        $cart->addProduct($productcart, $params_1);
        $session->setLastAddedProductId($productcart->getId());
    } catch(Exception $e) {
        echo Mage::helper('catalog')->__($e->getMessage());
    }
}

$cart->save();

Mage::getSingleton('checkout/session')->setCartWasUpdated(true);

$_REQUEST['params_1'] holds the bundle product configuration as an array, which seems correct as it's working on the default store.

Do I need call $cart = Mage::helper('checkout/cart')->getCart(); different in order to reflect another store?


texts: How to add one more state after order status and state  processing. I want to add one custom state like delivery after order status and state  processing in magento 2 Before order get completed (ship). accordingly i want to sent email "Out for delivery"


texts: magento 2.3 cron job from custom module does not run automatically

texts:
I've created a custom module with a cron task. If I call the cron from cli with

php bin/magento cron:run --group="default"

I can see my custom cron in the cron_schedule table and it gets excecuted successfully.

But if I don't run the cron manually, no task is added to the table. Default magento cron are running, so the cron itself is working (installed by magento command cron:install).

What I did:

I created the etc/crontab.xml:

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

I've created the Cron/Test.php cron file:

<?php
namespace Vendor\Module\Cron;
use \Psr\Log\LoggerInterface;

class Test {
    protected $logger;

    public function __construct(LoggerInterface $logger) {
        $this->logger = $logger;
    }

    public function execute() {
        $this->logger->info('Cron Works');
    }

}

I've upgraded and cleaned cache from cli:

$ php bin/magento setup:upgrade
$ php bin/magento cache:flush

I've tested the cron by calling it manually:

$ php bin/magento cron:run

At this point, everything is working: after calling the cron:run a couple of times, I can see my custom cron in the cron table and its status is "success".

So I leave it there for a while, then go and check the table again. I expect to see my custom cron added to the table and run every minute. What I see instead is no further cron job is added.

What's wrong? How can I solve this?


texts: How to safely remove "Register..." phrases from login block in checkout page?

texts:
How to remove the phrases like:

Register and save time!
Register with us for future convenience
etc

from login block in one page checkout? They are located in the login.phtml. Can I just remove the corresponding lines in the login.phtml?


texts: Why some order id are skipping from admin panel Sales > Order

texts:
Why this number jumps from 189 to 191 ?

When i found this issue there were many missing order number.

Even i got solution that some order with status : pending or hold cant be seen in the admin panel order list, and are reserved.

And present in the database, we can see those value in the database with table sales_flat_order and sales_flat_quote.

But there are some missing order number which are not found-able in admin as well as in both the tables  sales_flat_order and sales_flat_quote.

Means to say missing from admin, quote and order.

Why this skipping order issue i am facing with magento 1.9 ? Please help if there is any solution exits. Thank you.


texts: I cannot change from Products only to Static block and products in Display Settings of an existing category

texts:
Working with Magento ver. 2.2.2

I wish to change the design of category pages. Now certain categories are displaying only products, But I want to display a static block and products. I create the static block and choose that block in Category|Content, then choose "Static block and products" in display mode. Nothing changes - the store still only displays products with Description, not the block. It works, but is not the look I want. I can create a new category and it displays properly, with the block and products. But I cannot save it with the original URL key, which is necessary, even after changing the key of the original category. I get a duplicate key error.


texts: Magento 2 Api to generate PayPal client token

texts:
Hi
can anyone help me how to generate the client to PayPal Braintree in megento2. help me great.

Thanks


texts: Adding a language in a dropdown under product information

texts:
How can I add a just a language name in the above shown dropdown? This can be found under catalog > manage products > click on any product > general.

So the purpose of this is to show on website like below,


texts: Hi I have previously working magento site.I just uninstall and reinstalled the php.Now site is giving a blank page but in the magento 1.9 index.php die is working but not showing any error. I have tried display_errors and other things.Please help me to solve the problem ASAP. Also there is not any error log. Can I find some error log. Thanks.


texts: How to add file upload option to Magento2 contact form?

texts: I want to give users option to upload a file in magento2 contact form and recieve it in the email as attachment. How to do that? Please guide.


texts:
This is my observer. Works fine but condition if(h = 20) not working

   <?php

        namespace send\sms\Observer;

        use \Magento\Framework\Event\Observer;
        use Magento\Framework\Event\ObserverInterface;

        class PaymentMethodAvailable implements ObserverInterface
        {

         public function execute(\Magento\Framework\Event\Observer $observer)
            {

         $h =20;

      if($observer->getEvent()->getMethodInstance()->getCode()=="creditss" ){

                    $checkResult = $observer->getEvent()->getResult();

              if($h = 10) {
                       $checkResult->setData('is_available', false);
                        }
                  }

            }
        }


texts: Magento 2 : How to Load a Cms Block and Set Custom Variable Values

texts:
I created cms block with custom variable name 'redemption'. I wanted to load cms block, pass and replace value to custom variable 'redemption'.

Please help, It's Urgent.


texts: styles are not applied Custom theme is copied to rwd/default

texts: I have modified the rwd/default for my custom theme. But I didn't directly modify rwd/default files.I created my own package_name/theme_name and copied the rwd files into it and then modified it in version 1.9.0.1. Now I migrated the theme to magento1.9.2.3. Now I wish to upload my theme in the server but not with my own theme_name/package_name. So I copied only the modified files into rwd/default frontend and changed the package_name=rwd and theme_name=default at the backend. Now the styles are not applying.Can anyone please tell me where I have went wrong. Or is there anything that should be done additionally?


texts: How can I fix block grid reload issues in admin?

texts:
<?php

namespace vendor\module_name\Block\Adminhtml\Statement\Edit\Tab;

class Products extends \Magento\Backend\Block\Widget\Grid\Extended
{

    protected $_productCollectionFactory;

    protected $catalogStatus;

    protected $_coreRegistry;

    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Backend\Helper\Data $backendHelper,
        \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
        \Adolmedia\MerchantCatalog\Model\Product\Attribute\Source\CatalogStatus $catalogStatus,
        \Magento\Framework\Registry $coreRegistry,
        array $data = []
    )
    {
        $this->_coreRegistry = $coreRegistry;
        $this->_productCollectionFactory = $productCollectionFactory;
        $this->catalogStatus = $catalogStatus;
        parent::__construct($context, $backendHelper, $data);
    }

    protected function _construct()
    {
        parent::_construct();
        $this->setId('custom_product_grid');
        $this->setDefaultSort('created_at', 'desc');
        $this->setUseAjax(true);
    }

    protected function _prepareCollection()
    {

        $productCollection = $this->_productCollectionFactory->create()->addFieldToSelect(
            '*'
        );
        $this->setCollection($productCollection);
        return parent::_prepareCollection();
    }

    protected function _prepareColumns()
    {
        $this->addColumn(
            'entity_id',
            [
                'header' => __('ID'),
                'filter_index' => 'entity_id',
                'index' => 'entity_id',
                'header_css_class' => 'col-id',
                'column_css_class' => 'col-id'
            ]
        );
        $this->addColumn(
            'name',
            [
                'header' => __('Name'),
                'filter_index' => 'name',
                'index' => 'name',
                'header_css_class' => 'col-id',
                'column_css_class' => 'col-id'
            ]
        );
        $this->addColumn(
            'type_id',
            [
                'header' => __('Type'),
                'filter_index' => 'type_id',
                'index' => 'type_id',
                'header_css_class' => 'col-id',
                'column_css_class' => 'col-id'
            ]
        );
        $this->addColumn(
            'price',
            [
                'header' => __('Price'),
                'filter_index' => 'price',
                'index' => 'price',
                'header_css_class' => 'col-id',
                'column_css_class' => 'col-id'
            ]
        );
        $this->addColumn(
            'edit',
            [
                'header' => __('Action'),
                'type' => 'action',
                'getter' => 'getId',
                'actions' => [
                    [
                        'caption' => __('Edit'),
                        'url' => [
                            'base' => '*/*/edit',
                            'params' => ['store' => $this->getRequest()->getParam('store')]
                        ],
                        'field' => 'id'
                    ],
                ],
                'filter' => false,
                'sortable' => false,
                'index' => 'stores',
                'header_css_class' => 'col-action',
                'column_css_class' => 'col-action'
            ]
        );

        return parent::_prepareColumns();
    }

    public function getRowUrl($row)
    {
        return $this->getUrl(
            '*/*/edit',
            ['id' => $row->getId()]
        );
    }

    protected function _prepareMassaction()
    {
        $this->setMassactionIdField('id');
        $this->getMassactionBlock()->setFormFieldName('entity_ids');
        return $this;
    }

}

when i am trying to use filter it displays like this


texts:
I am using Magento v1.8.1

My developer (who has now left the team) had implemented custom pagination on my site about a year ago. It was working just fine till recently. Now, clicking on the right arrow button, or on any of the page numbers just returns the first page of results. While we changed our hosting from GoDaddy to AWS recently, there should not have been any code changes that I am aware of.

Here is the codeblock from the phtml page -- for simplicity, I have stripped out all the html formatting related code:

<?php $specialorders = $this->getCollection(); ?>
<?php if(count($specialorders) > 0): ?>
    <?php echo $this->getPagerHtml(); ?>
    <?php foreach($specialorders as $specialorder): ?>
        <?php  echo $specialorder->getData('special_order_num') ;?>
        <?php  echo $this->getStatus($specialorder->getData('status')) ;?>
    <?php endforeach; ?>
<?php else: ?>
    <?php echo "
You don't have any special orders associated with your account
"; ?>
<?php endif; ?>


texts:
How can i write below script in magento 2

class NameSpace_Notification_Model_App extends Mage_Core_Model_Config_Data
 {

   public function save(){ }

 }


texts: Custom System Menu not calling Controller

texts:
I am using Magento 1.9. In the admin panel, I have created a sub menu named Whatsapp Notification inside the System menu.

The sub menu in turns have two children menu, named Template and Configuration.

I created a new module WhatsappNotification, and did all the initial setup for the module.

In the etc/adminhtml.xml my configuration is as follows :

<adminhtml>
<menu>
  <system>
      <children>
          <whatsappnotification translate="title" module="whatsappnotification">
                <title>Whatsapp Notification</title>
                <children>
                    <template>
                        <title>Template</title>
                        <action>whatsappnotification/adminhtml_whatsapptemplate_index</action>
                        <sort_order>10</sort_order>
                    </template>
                    <config>
                        <title>Configuration</title>
                        <action>whatsappnotification/adminhtml_whatsappconfiguration_index</action>
                        <sort_order>20</sort_order>
                    </config>
                </children>
            </whatsappnotification>
        </children>
    </system>
</menu>
</adminhtml>

Here I am calling the index method defined in the controller of the respective children menu.

But when I am clicking on either children menu Template or Configuration, it doesn't redirects to the controller (In the controller I am loading a form, but the call doesn't come to the controller itself).

I am also showing my  etc/config.xml :

<?xml version="1.0"?>
 <config>

<modules>
    <Dbaux_WhatsappNotification>
        <version>0.0.1</version>
    </Dbaux_WhatsappNotification>
</modules>

<global>
    <helpers>
        <whatsappnotification>
            <class>Dbaux_WhatsappNotification_Helper</class>
        </whatsappnotification>
    </helpers>
    <blocks>
        <whatsappnotification>
            <class>Dbuax_WhatsappNotification_Block</class>
        </whatsappnotification>
    </blocks>
</global>

 </config>

And my module structure is as shown :

Is there anything else that I need to do apart from this to get the call to the controller function?


texts: How to get first selected related products in magento2

texts:
I'm working with Magento 2, I have one product in cart and I want to show related products for cart products. I get current product using the quote to get all items.  Once I have fetched current product's ID and object. Now, I want show related products using current product. Below is my code.

$relatedProducts = $currentProduct->getRelatedProducts();

I am able to get related products using above code, but related product showing by created product ID using my above code. I want show related products based on selection of related product. I want show first two selected related products from related 10 products.
Is there any way to get first selected related products not by ID


texts:
We've recently started having issues where transparent PNG's are being cached with semi black backgrounds. Has anyone encountered similar issues? Some of the transparency is maintained, however some is replace by black. We're just using the below, which is pretty standard for bringing product images out onto the page;

<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100); ?>

Thanks,


texts: Catalog_product_index_price too big to reindex

texts:
i have Catalog_product_index_price and Catalog_product_index_price_idx talbles which are 1G large with 10 million rows each. the catalog has ~ 500K products.

I'm trying to reindex the catalog_product_price but to no avail, the mysql server crashes every time even when i increased the timeout.

I know that the size of the tables are the reason why it's unable to complete. What options do i have to solve this issue.


texts: Magento 2 - how to get custom model from custom module

texts: In Magento 2, how can I get a custom model that is created in a custom module (not a Magento 2 native module)? I know I can use object manager for getting and creating, and I know how do this for Magento models, for example, to get the Mage::getModel('sales/order') I can use: $om->get('Magento\Sales\Model\Order') . How can I get a custom model "custommodel" created in module "modulename" ?


texts: WYSIWYG/TinyMCE: how to prevent inserting  tags

texts:
For the homepage of a magento shop I use the following code in the plain text editor:

Some text...

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

When I save this, magento switches to the WYSIWYG editor. When I change back to the plain editor, I see that magento has inserted some code:

Some text...

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

How can I prevent this
 tag to be inserted. Do I need to remove this editor, or can I use another one?


texts: Magento 2 how to check if customer changes his password?

texts:
I'm using an observer that triggers every time customer edit it's account.
I'm using customer_address_save_before for some reason this event also triggers when I modify my email, name, or password from front end customer.
How can I verify if the customer edit it's password?
something like $passwordOld = $customer->getOldPassword(); $passwordNew = $customer->getNewPassword();

Of course this are just examples, the methods does not exist.
Thanks!


texts: How to test magento native Paypal Express recurring profile and order creation in Magento 1?

texts:
I have setup paypal sandbox account in our staging instance.
Also have setup product to order as recurring profile. I am able to addtocart recurring product and complete checkout process with Paypal express payment method as recurring payment engine (magento native). The recurring profiles are being successfully creating in Admin section. However the recurring orders are not creating in Magento. On debugging could find that need to setup IPN url in Paypal sandbox account so that Paypal can call IPN url and update status in Magento.

However i couldn't find any settings to set IPN in Paypal Sandbox account.
I found IPN simulator tool in dashboard section but that also not useful to test recurring orders.

I need to test the complete recurring profile, recurring order creation workflow in Magento1 using paypal sandbox account.

Someone please help me.


texts: Magento 2 Search terms shows Chinese word

texts:
We have developed a Magento 2 site. For last few weeks search term in admin panel shows Chinese words as below

바카라사이트¶ ( ―▷ 79ASK，CoM ◁― )
¶33카지노바카라사이트33카지노바카라사이트33카지노바카라사이트33카지노바카라사이트33카지노바카라사이트33카지노바카라사이트33카지노
大奖娱乐HB老虎机送彩金www.djyl18.com
趣拍娱乐MG老虎机开户 www.qpyl18.com
大奖老虎机优惠红利 Q82019309.com.com

Please, can anyone explain why the Chinese word exists in Magento search term?help me to solve the issue?


texts: When and how clean Magento cache on front server?

texts:
My Magento store front server have no routine to clear cache, what result in slow Magento(cause it take to long to read cache files).
Front server do not run cron.php, all jobs run over backend server.

Today, i am cleaning Magento front server var/cache folder manually to speed up Magento and don`t let cache files grow too much.

How can i automate this routine? Create a cron to rm -rf * from var/cache one time a day? There is a custom module to help with this issue?


texts: Magento 2.3: Inline translation works OK first time, But cannot modify the second time

texts:
In Magento 2.3, I am trying to change text on storefront. As per Magento 2.3 guide, I disable caches(Block HTML Output, Page Cache, Translations). Then in Store->Configuration->Advanced->Developer->Translate Inline.. I switch "Enable for Storefront" to Yes. Clear cache.
On the home page in Storefront, the first time I changed the text, it worked fine after I refresh my page.
Later, the second time when I tried to modify the same text again, It wont change. Tried all things.. Setup/Upgrade, compile, Static-content deploy.. restarted virtual Machine. Checked for js errors (No errors found)..Still, I can't change.


texts: Which event should I catch if I want a "complete" order?

texts: I'm new at Magento's module developing. I'm trying to get data from orders when their status changes to "complete". Acording to this tutorial, orders are complete after shipment. The way I found to do this is catching an event with an observer and, with the observer, send the data. The thing is I'm not really sure which event should I be catching. I checked this list looking for the right event, but I'm still not sure. Does anyone knows which event should I be looking for? Is there an easier way to do what I want?


texts:
I am getting more than 50 spam query form failing on my Magento 1.9.0, website https://www.shubhgems.in, I have tried the robots.txt method and blocked 360 Spider User-agent: 360Spider Disallow: /

But it didn't help me to stop spam queries, Please guide me how I can stop spam queries


texts: Magento PHP Pricing Divide Price by Pack QTY

texts:
I am trying to divide product price by pack to display an each price.

My PHP knowledge is very poor, so any help/direction would be a massive help.

Each product/price is part of a pack, I will be selling by the pack price but I would also like to display an each price.

So far I have the following:

<?php $_packAmount = $_product->getPack(); ?>
                <?php $_productPrice = $_product->getPrice(); ?>
                <?php $_each = $_productPrice / $_packAmount; ?>
                <?php echo (round($_each,2)); ?>

This appears to work ok, but if the product is using a special price it ignores the special price and uses the main product price.

I need to be able to divide by the product price it is using at the time (regular or special price) also needs to display in the correct currency.

I have also setup an additional attribute in back end called "mkt_price" I would like this to override the each price if a value exists.

Thanks in advance (Magento version 1.9.2)


texts: Missing Images with correct url and permissions

texts:
Tried adding images to a header block, it worked the first time but the images had different widths. So I opened them up in photoshop edited the widths, uploaded them back to file server with same filename and extension. Refreshed the web page and the images are not showing?

As shown Here

The images are definetly there and viewable as you can see here (www.pctek.com.au/skin/frontend/rwd/default/images/paypal.png) for example.
The cache has been turned off but I have tried refreshing and tried CTRL+F5 my own browser with no avail.

Anything I'm missing?

Thanks


texts:
If you add any custom category attribute into any default Category Group or any Custom Group using ui_component its working good, but sorting order is mess up.

default general tab comes after on which tab you have added attribute see below screenshot. i have added custom category attribute into content tab so default general tab comes after this.

Thanks


texts:
I am working with a copy of the "new" RWD template and I want to extend the header with a new drop down menu left to the "user account" menu.

How can I do this?


texts:
Strange issue here...

This project has been live for some years, there are about 40k skus, and around 15k of sales & customers. I must say stock management has been used sometimes, but this project has never used stock quantity until now, they have only used stock status feature

I am trying to enable cataloginventory_options_can_subtract (that's the first option, in Catalog Inventory config section), but it seems that web request never ends, even in our local environment (with no timeout limits) it loads eternally

Enabling or disabling the different indexes does not make any change

So, question is: which code, or event, is fired while saving this config change? So I can give a look, and try to patch this, via shell script, or something

I'd try to change the parameter directly in core_config_data database table, and then reindex or something like that... but I'd take a look better to the code I am asking for, to be sure this won't affect in some way the integrity of the store... Any tips?


texts: How to add Qty Input to product list WIDGET

texts:
How can you add Qty Input to product list Widget in Magento 2.
(not the the product list page as described here)

I have added a product list widget to a CMS page like by clicking on the insert widget button and filling in the widget form.

This adds the Product List to the CMS page.

I would like it to include a QTY input so the user cans select how many products they wish to add to the cart...

I'm able to add the QTY input by adding the code below to here.

It appears fine, but the issue is that it does not add the select qty by the user, it only ever adds one item at a time.

This seems to be because of how the button is adding the item to the cart...

<button class="action tocart primary" data-post="{&quot;action&quot;:&quot;https:\/\/example.com\/checkout\/cart\/add\/uenc\/aHR0cHM6Ly9xYS5zYW1tY2NhdWxleS5jb20vdGVzdC1wYWdlMg%2C%2C\/product\/39\/&quot;,&quot;data&quot;:{&quot;product&quot;:&quot;39&quot;,&quot;uenc&quot;:&quot;aHR0cHM6Ly9xYS5zYW1tY2NhdWxleS5jb20vdGVzdC1wYWdlMg,,&quot;}}" type="button" title="Add to Cart">
Add to Cart
</button>

Any idea of how I can update the product list widget so that it can have a qty field which works.


texts: Can I remove products in a batch from category?

texts: I want to remove ~300 skus, a solution might be to remove everything and then add the skus I want, but I was thinking it might be an easier way... Can anyone help?


texts: check uncheck functionality in prototype.js in magento

texts:
There is a label (class=lblnewsletter) and checkbox (id=is_subscribed).
When I click on label and if the checkbox is checked the alert will come 111 other wise it return 222.
I have wrote the following code but not working.
Please help.

$$('.lblnewsletter')[0].observe('click', function () {

    if($$('#is_subscribed').checked){
        alert(111);
   }else{
        alert(222);
   }
});


texts: Remove Pointer and # from admin grid Magento 2

texts:
I am using Magento 2.2.2. I created admin grid using UI Component.
When I hover on the row fields, its showing pointer(Hand Symbol) and # tag.

How to remove it??


texts: How to Fetch / Add a Custom Column in Product List Grid In Admin

texts:
I've created a new module in order to add a column to the product list displayed in the admin section of Magento. The column is displaying an ID and I want it to display the name (from another table) belonging to that ID.

app/code/local/Mypackage/Customgrid/etc/Config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Mypackage_Customgrid>
            <version>0.4.0</version>
        </Mypackage_Customgrid>
    </modules>

    <global>
        <models>
            <mypackage_customgrid>
                <class>Mypackage_Customgrid_Model</class>
            </mypackage_customgrid>
        </models>
    </global>

    <adminhtml>
        <events>
            <core_block_abstract_prepare_layout_before>
                <observers>
                    <customgrid_column_append>
                        <type>model</type>
                        <class>Mypackage_Customgrid_Model_Observer</class>
                        <method>appendCustomColumn</method>
                    </customgrid_column_append>
                </observers>
            </core_block_abstract_prepare_layout_before>
        </events>
    </adminhtml>
</config>

app/code/local/Mypackage/Customgrid/Model/Observer.php

class Mypackage_Customgrid_Model_Observer extends Varien_Event_Observer {

    public function appendCustomColumn(Varien_Event_Observer $observer) {
        $block = $observer->getBlock();
        if (!isset($block)) {
            return $this;
        }

        if ($block->getType() == 'adminhtml/catalog_product_grid') {
            /* @var $block Mage_Adminhtml_Block_Customer_Grid */
            $block->addColumnAfter('udropship_vendor', array(
                'header'    => 'Vendor',
                'index'     => 'udropship_vendor',
                'type'  => 'text',
            ), 'visibility');
        }
    }
}

As you can see in the above code, I'm using the uDropship extension. The above code display the vendor ID related to each product, but I would like this column to display the vendor name related to each product.

I've tried to change the collection fetch in the file app/code/core/Adminhtml/Block/Catalog/Product/Grid.php (only for test purpose, I'll overwrite this file if I find how to do that). But I don't understand how to get the name value from the database.

Btw, the table schema in which the data I want to display is stored looks like something like that

table: magentoudropship_vendor
    vendor_id
    vendor_name
    [...]

Is anyone capable of guiding me through this ? Anything which can help me to understand how to manipulate the database is welcome.


texts: When passing value to render in adminhtml shows blank page - Magento2

texts:
I am trying to fetch the value from a table and display it in adminhtml. But it's showing me the blank page. With this below is my code within

Vendorname/modulename/Block/Adminhtml/Manager/Renderer/

I have placed a file FormMessage.php

 <?php
   namespace Cubet\RMA\Block\Adminhtml\Manager\Edit\Renderer;

   class FormMessage extends \Magento\Framework\Data\Form\Element\AbstractElement
{
    protected $_msgmodel;

    public function __construct(
      \Magento\Framework\Data\Form\Element\Factory $factory,
      \Magento\Framework\Data\Form\Element\CollectionFactory $collectionFactory,
      \Magento\Framework\Escaper $escaper,
      \Psr\Log\LoggerInterface $logger,
      \Vendorname\Modulename\Model\ListMessage $msgmodel,
      \Vendorname\Modulename\Helper\Data $helper,
    $data = []
) {
    parent::__construct($factory, $collectionFactory, $escaper, $data);
    $this->_logger = $logger;
    $this->_helper = $helper;
    $this->_msgmodel = $msgmodel;
}
public function getElementHtml()
{
    // $request_id = $this->getEscapedValue();
    $request_id = 1;
    // $this->_logger->debug($request_id);
    $html = parent::getElementHtml();
    $html = $this->getRMAMessage($request_id);
    return $html;
}

private function getRMAMessage($request_id)
{
    $data = $this->_helper->getRMAMessages($request_id);
    $return = "
";
    foreach ($data->getData() as $row) {
        $this->_logger->debug(print_r($row, 1));
        $return .= "
".$row['message']."
";
    }
     $return .= "
";
    return $return;
 }
}


texts: Certification: Developer or Developer Plus

texts:
I want to apply for magento certification. I can see from the official website: https://magento.com/training/catalog/certified-developer-and-developer-plus#.VrsLuFjhXIU
that i can write developer and developer plus. I have few questions to ask:

Can i take Developer plus without Developer certification?
In my company, we will never use the Magento Enterprise edition. So, can you suggest Developer or Developer plus certification, which one would fit for me?
Normally how much time to complete the study and give a test?


texts: Redo Category Page - Remove images and have attribute grid

texts:
I'm using Magento to sell tickets to events and have a Category for each different event.

I'm using a Grouped product for the Specific date and then simple products in the group for the individual ticket categories.

I'd like to redo the category page on magento to remove images for individual grouped items as i only need on header image per event.

Would it be possible to create a category page similar to this

http://www.stubhub.com/new-york-rangers-tickets/?osid=homepage__module_trending-now_top

Where the date is an attribute, the event is the grouped product name, the location and time is an attribute?


texts: Magento 1.9 Paypal Express Checkout force shipping address on review page for non logged in user

texts:
In the last weeks, Paypal Express is not always importing the address via on the review page and the customer is not able to select shipping methods for non logged in user. The customer just assumes everything is ok and clicks complete order and the order is placed.

However there is no shipping address or billing address in the order/invoice.

Is there a way to force shipping address from Paypal account to Magento? via Paypal API?

Any help is greatly appreciated.


texts: Magento 2 how to update price on quantity change in product detail page using knockout

texts:
I am using magento version 2.3.2

I want update price based on Qty change using Knockout js in Product detail page

anyone help here, thank in advance


texts: How to create import button in system configuration and save import CSV data in magento2?

texts:
I need like Table Rates Shipping Import / Export CSV. I have used this reference:: $_FILES in Magento2 ECG : system configuration.
but it's not working for me. Anyone have idea about it?


texts: Dashboard Grid Block Rewrite not working properly

texts:
I have rewritten admin dashboard block that last most viewed product but it not displaying my collection data.

Thank you In advance

My config.xml is :-

<blocks>
  <adminhtml>
     <rewrite>
       <dashboard_tab_products_viewed>Companyname_Customdashboard_Block_Adminhtml_Dashboard_Tab_Products_Viewed</dashboard_tab_products_viewed>
    </rewrite>
  </adminhtml>
</blocks>

my block code is :-

class Companyname_Customdashboard_Block_Adminhtml_Dashboard_Tab_Products_Viewed extends Mage_Adminhtml_Block_Dashboard_Tab_Products_Viewed
  {

public function _prepareCollection() {

     $categoryIds = array();
        $entityIds = array();
        $userRoleName = Mage::getSingleton('admin/session')->getUser()->getRole()->getRoleName();
        $userRoleId = Mage::getSingleton('admin/session')->getUser()->getId();
        if($userRoleName == 'Administrators') {
            if ($this->getParam('website')) {
                $storeIds = Mage::app()->getWebsite($this->getParam('website'))->getStoreIds();
                $storeId = array_pop($storeIds);
            } else if ($this->getParam('group')) {
                $storeIds = Mage::app()->getGroup($this->getParam('group'))->getStoreIds();
                $storeId = array_pop($storeIds);
            } else {
                $storeId = (int)$this->getParam('store');
            }
            $collection = Mage::getResourceModel('reports/product_collection')
                ->addAttributeToSelect('*')
                ->addViewsCount()
                ->setStoreId($storeId)
                ->addStoreFilter($storeId)
                ->setPageSize($this->getParam($this->getVarNameLimit(), $this->_defaultLimit));
                //var_dump($collection->getSelect()->__toString());
            $this->setCollection($collection);
        } else if($userRoleName == 'salesman') {
            $collections = Mage::getModel('newgenray_adminenquiry/storeaddress')
                    ->getCollection()->getData();
            foreach($collections as $collection) {
                $userIds = $collection['user_id'];
                $userId = explode( ',', $userIds );
                if(count($userId)) {
                    if (in_array($userRoleId, $userId)) {
                        $categoryIds[] = $collection['category_id'];
                    }
                }
            }
            $getEntityIds = Mage::getModel('catalog/product')
                    ->getCollection()
                    ->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
                    ->addAttributeToSelect('*')
                    ->addAttributeToFilter('category_id', array('in' => $categoryIds))
                    ->getData();
            foreach($getEntityIds as $getEntityId) {
                $entityIds[] = $getEntityId['entity_id'];
            }
            $collection = Mage::getResourceModel('reports/product_collection')
                ->addAttributeToSelect('*')
                ->addViewsCount()
                ->setStoreId($storeId)
                ->addStoreFilter($storeId)
                ->addAttributeToFilter('entity_id', array('in' => $entityIds))
                ->setPageSize($this->getParam($this->getVarNameLimit(), $this->_defaultLimit));;
                //var_dump($collection->getSelect()->__toString());
            $this->setCollection($collection);
        }
        return parent::_prepareCollection();
    }

    }

}

My problem is that core function _prepareCollection() is calling after my block function _prepareCollection() , that's why it take data according to Mage collection.


texts: I have been searching for a decent Croatian locale for magento 1.9 but so far nothing. Could you recommend something?


texts: Base table or view not found: 1146 - While importing products from one DB to another DB

texts:
I have a site in magento 1.9.2, I installed a new magento 1.9.2 on my localhost which is blank. I export all products by going into system->dataflow->exports and download file as a csv. Now I am uploading csv file by going through same procedure system->dataflow->imports. I am getting errors

Base table or view not found: 1146 Table 'magento1.premier_prod_priceupdate' doesn't exist, query was: insert into premier_prod_priceupdate (sku,newprice, oldprice, datetime) values('010423','7.38','',Now())

Skip import row, is not valid value "" for field "type"

 Image does not exist.

I have no table 'premier_prod_priceupdate' in both of my exporting and importing DB. What is the issue ? If Anyone has any idea kindly do let me know how I can fix this.


texts: Magento 2 : Separate home page for logged in and guest user

texts:
I want to show different home page for logged in user, Which event/plugin I can use for this ?
Whenever logged in customer clicks on homepage he should be redirected to different url

Logged-in user : example.com/survey
Guest user : example.com

Please Note:
We have integrated wp-cloud for cms pages, we are not using magento cms page.


texts: set always_populate_raw_post_data to -1 doesn't work

texts:
I got a big problem. When I first installed Magento I got the error set always_populate_raw_post_data to -1, which I did and it worked.

Now I am trying to install some sample data into Magento and for that, I need to install the plugin called Magento_CatalogSampleData. So when I am trying to install it I get the same error again that I got during the installation of the Magento application always_populate_raw_post_data to -1.

I have set it to always_populate_raw_post_data -1, both in the php.ini but also added php_value always_populate_raw_post_data -1 in the Apache2 config. But still get the same error during the readiness check.

How to solve this, I have no clue?


texts: total not updated after custom shipping price applied

texts:
I am changing shipping price on the fly but it doesn't update cart total as it should.

Here is my code.

Observer event i m using sales_quote_address_collect_totals_after

code from observer.

public function checkshipping(Varien_Event_Observer $observer){
    //echo Mage::helper('shippingoptions')->getSaturday_delivery(); exit;
    if(/* Mage::helper('shippingoptions')->getSaturday_delivery() */Mage::getSingleton('checkout/session')->getSaturdayDelivery()){
        $event = $observer->getEvent();
        $data = Mage::app()->getRequest()->getParams();
        $price = 20;
        $address = $observer->getQuoteAddress();
        $quote = $address->getQuote();
        $address->setCollectShippingRates(false);
        $rates = $address->collectShippingRates()
        ->getGroupedAllShippingRates();
        foreach ($rates as $carrier) {
            foreach ($carrier as $rate) {
                if($rate->getCode()=='fedex_PRIORITY_OVERNIGHT'){
                    $finalPrice = $rate->getPrice()+$price;
                    /* $rate->setPrice($finalPrice);
                    $rate->save(); */
                }
            }
        }
        $title = $address->getShippingDescription();
        $address->setShippingDescription($title.' - Saturday Delivery');
        $address->setShippingAmount($finalPrice);
        $address->setBaseShippingAmount($finalPrice);
        //$quote->setTotalsCollectedFlag(false)->collectTotals();

        $address->save();
    }

}

when i enable $quote->setTotalsCollectedFlag(false)->collectTotals() it goes to infinite loop. Have also tried before event but no luck.

Please guide.


texts: problem after install of an extension: Mage registry key "_singleton/aw_layerednavigation/observer" already exists

texts:
After intalling this extension, I can not acess to the front-end or admin..

I'm having this error:

    Mage registry key "_singleton/aw_layerednavigation/observer" already exists
Trace:
    #0 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/Mage.php(223): Mage::throwException('Mage registry k...')
    #1 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/Mage.php(481): Mage::register('_singleton/aw_l...', false)
    #2 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Model/App.php(1335): Mage::getSingleton('aw_layerednavig...')
    #3 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
    #4 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Controller/Varien/Action.php(384): Mage::dispatchEvent('controller_acti...')
    #5 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
    #6 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'b-responsive-ho...')
    #7 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'b-responsive-ho...')
    #8 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
    #9 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
    #10 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #11 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
    #12 /Applications/XAMPP/xamppfiles/htdocs/DISTRIBUTION/app/Mage.php(688): Mage_Core_Model_App->run(Array)
    #13 /Applications/XAMPP/xamppfiles/htdocs/distribution/index.php(83): Mage::run('', 'store')
    #14 {main}

This is the path I've been following for this extension ....

http://confluence.aheadworks.com/display/EUDOC/Layered+Navigation#LayeredNavigation-Installation

I've using the b-responsive theme,i took care to delete the cache manually and Disable the Compilation . ..

I really don't know what can i do . .. I'm stuck on this for the two last days .. .

this is the confix.xml of the plugin if it helps .. I can't really see anything wrong( I mean, not the full cod,e just the section related to singleton)

<events>
    <controller_front_init_before>
        <observers>
            <aw_layerednavigation_controller_front_init_before>
                <type>singleton</type>
                <class>aw_layerednavigation/observer</class>
                <method>controllerFrontInitBefore</method>
            </aw_layerednavigation_controller_front_init_before>
        </observers>
    </controller_front_init_before>
    <controller_action_layout_render_before>
        <observers>
            <aw_layerednavigation_layout_render_before>
                <type>singleton</type>
                <class>aw_layerednavigation/observer</class>
                <method>beforeRenderLayout</method>
            </aw_layerednavigation_layout_render_before>
        </observers>
    </controller_action_layout_render_before>
</events>

Any help would be  .. just incredible !!

Thank you for your time !!!


texts: override layout file 3rd party extension in magento 2

texts:
I want to override xml file of 3rd party extension in my custom theme in magento 2.1.13 . Till now i did following steps:-

1) path of the xml which i want to override is app/code/Namespace/ModuleName/view/frontend/layout/layoutfile.xml
2) i had changed layout file and uploaded at app/design/frontend/packageName/themename/Namespace_ModuleName/layout/layoutfile.xml

after step 2. i had deleted pub/static/* and deployed static content again using php bin/magento setup:static-content:deploy . Then i cleared and flushed cache. still my css has not been changed. please help me


texts: magento2 - I want to move this links from default message area to this area, I use luma theme


texts: Chrome Caching breaks checkout after SUPEE-9767

texts:
We're having a strange issue on our client's shops after applying the SUPEE-9767 patch and updating the theme files.

Apparently many of their customers are using Chrome, which is caching the old form, and the form-key is not being submitted. This results in the checkout process halting after entering the CC information.

We're sending the following headers:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

...but it looks like Chrome is ignoring them.

Anyone else experienced this issue?


texts:
Ever since we applied the SUPEE-6788 patch on a client's site, about once a day the site has gone down & the only thing that seems to bring it back is to clear the cache. We've looked at the logs, & a bunch of them seem to include "Front controller reached 100 router match iterations". This problem wasn't occurring before the patch was applied. Anyone have any idea what could be causing this? Some people say it could be a cache bug in magento issue, but I can't tell. Any input would be helpful!

Some additional notes:

There hasn't been any heavy loads on the server right when it goes
down, so that's not a factor.
Yes all previous patches were applied
successfully.
We are using memcache to store the cache.


texts: Error when creating category programmatically

texts:
This is my code saving category:

 $category = $this->_categoryFactory->create();
 $category->setData($this->getCategoryData("Test Test"));
 $category->save();

 protected function getCategoryData($name)
{
    $data = [
        'store_id' => "0",
        'path_ids' => [
            '0' => ""
        ],
        'use_default' => [
            'url_key' => false
        ],
        'use_config' => [
            'available_sort_by' => true,
            'default_sort_by' => true,
            'filter_price_range' => true
        ],
        'id' => "",
        'parent' => "2",
        'path' => "1/2",
        'name' => $name,
        'filter_price_range' => null,
        'url_key' => "",
        'meta_title' => "",
        'is_active' => "1",
        'include_in_menu' => "1",
        'is_anchor' => "1",
        'custom_use_parent_settings' => "0",
        'custom_apply_to_products' => "0",
        'url_key_create_redirect' => "0",
        'description' => "",
        'display_mode' => "PRODUCTS",
        'default_sort_by' => null,
        'meta_keywords' => "",
        'meta_description' => "",
        'custom_layout_update' => "",
        'custom_design_from' => "",
        'custom_design_to' => "",
        'image' => null,
        'parent_id' => "2",
        'available_sort_by' => null,
        'attribute_set_id' => "3",
        'form_key' => 'AUact7MhifCvdSAD'
        ];

    return $data;
}

I get the exac $data from category insert form in admin dashboard, But it still throws the exception:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table catalog_category_flat doesn't exist, query was: SELECT catalog_category_flat.* FROM catalog_category_flat WHERE (catalog_category_flat.entity_id='2')

Is anyone have the solution for fixing this bug ?

Solution: I have found the reason why it thrown error.
It is because i turn the Use Flat Catalog Category and Use Flat Catalog Product to yes.

If you're in the situation like me, turn two configuraions above off, you will be good to go.


texts: Blank White Page after Moving CE 1.8.1.0 to a new server

texts:
I just moved a Magento installation from a staging server to the client's Amazon Web Hosting environment. The store functioned without issue on the staging server. The front end behaves correctly in the AWS environment, and I am able to add and delete products without issue. However when I enter the System > Configuration section of the backend and select "Payment Methods," I receive only a blank white page. No other option in the dashboard produces this issue, only "Payment Methods."

The following error stack appears when I cat var/log/exception.log:

   Stack trace:
#0 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('relatedslider/p...', Array)
#2 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('relatedslider/p...', 'magentothem_rel...')
#3 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('relatedslider/p...', 'magentothem_rel...')
#4 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Cms/Helper/Page.php(113): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'auriga_home')
#9 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'auriga_home')
#10 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#11 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#12 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /home/ubuntu/SITEDOMAIN/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /home/ubuntu/SITEDOMAIN/httpdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /home/ubuntu/SITEDOMAIN/httpdocs/index.php(87): Mage::run('', 'store')
#16 {main}

Noteworthy is that only the "Payment Methods" tab causes this issue to occur. Ideas on what could have broken during the move?


texts: Magento2 How to Show Sepereatly Configurable Product attribute and Product Custom Options

texts:
Into Magento2 Configurable Product I want to add a Customizable Options.

But both the Configurable Product and Customizable option display into the same class.

Please check first size option is configurable option and second size is a product customizable option.

I want to product customizable option into the new div and display both in a sepreatly.


texts: Resolve all less file symlinks with nodejs

texts:
I want to use gulp file with Magento instead of native grunt that Magento provides as a default build system for compilation of less files.Due to very slow nature of grunt, I decided to make own custom gulp workflow.

Gulp has many features and it is super fast then grunt.So far I have installed gulp, gulp-less and gulp-autoprefixer node plugins for ease of use.

This is the initial code for gulpfile.js in the root of the Magento application.

var fs = require('fs'),
    gulp = require('gulp'),
    less = require('gulp-less'),
    autoprefixer = require('gulp-autoprefixer'),
    sourcemaps = require('gulp-sourcemaps'),
    watch = require('gulp-watch'),
    livereload = require('gulp-livereload');

    //browserSync = require('browser-sync').create();

var themeconfig = {
    area: 'frontend',
    name: 'Magento/newtheme',
    locale: 'en_US',
}

var pubdir = 'pub/static/frontend/' + themeconfig.name + '/' + themeconfig.locale + '/**/*.less';
var cssdir = 'pub/static/frontend/' + themeconfig.name + '/' + themeconfig.locale + '/' + 'css/';

var filestowatch = [
        cssdir + 'styles-l.less',
        cssdir + 'styles-m.less',
        cssdir + 'custom.less',
];

var assetstowatch = fs.realpathSync(pubdir);

Now as per the code, I first import all the plugins and then made a custom config object for theme name and locale in Magento.

What I want to do is to resolve all the symlinks inside pub directory for gull watch so that when any of the file changes, I can automate the process and compile less files.
But as gulp not watches for symlinks, I decided to make it as a glob pattern and resolve these all files and tried to make array of those all resolved files so that afterwards I can simply put that array inside gulp.watch function like that.

But because pubdir variable is glob, node filesystem function realpathSync is not accepting it as an argument and throws the error about ** is not a directory.

How to accomplish this task for resolving all of the symlinks to array of actual paths? So that assetstowatch is an array of all the files that needed to be watched.

gulp.task('lesscss', async function(){

    gulp.src(filestowatch)
        .pipe(sourcemaps.init())
        .pipe(less())
        // .pipe(autoprefixer({
        //    cascade: false
        // }))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest(cssdir))
        .pipe(livereload());
        //.pipe(browserSync.stream());
});

gulp.task('watch',function() {
    livereload.listen();
    gulp.watch(assetstowatch,gulp.series('lesscss'));
})


texts:
I'm running 1.9.3.9 and have successfully configured Magento Security Scan. The scan runs and reports no problems, but no report details are available. The "View Report" page on magento.com is empty (except for the page header) The PDF version of the report is empty. The site is behind a WAF.

This isn't correct behavior for a "no-problems" report, is it?