texts: Not able to get shipping details on custom page

texts:
The below code I have created a custom step at checkout. I wanted to display the shipping information on it. I have written the code but it is not working.

<item name="order-summary" xsi:type="array">
    <item name="component" xsi:type="string"><vendor>_ShoppingCart/js/view/summary</item>
    <item name="sortOrder" xsi:type="string">5</item>
    <item name="children" xsi:type="array">
         <item name="shipping-information" xsi:type="array">
                <item name="sortOrder" xsi:type="string">0</item>
                <item name="component" xsi:type="string">Magento_Checkout/js/view/shipping-information</item>
                <item name="config" xsi:type="array">
                    <item name="deps" xsi:type="string">checkout.steps.shipping-step.shippingAddress</item>
                </item>
                <item name="displayArea" xsi:type="string">shipping-information</item>
                <item name="children" xsi:type="array">
                    <item name="ship-to" xsi:type="array">
                        <item name="component" xsi:type="string">Magento_Checkout/js/view/shipping-information/list</item>
                        <item name="displayArea" xsi:type="string">ship-to</item>
                    </item>
                </item>
            </item>
    </item>
</item>

I want this to appear on my custom step.


texts:
I know that uploading this many customer groups would slow down reindexing, and I'm on with slow indexing, but it's taking almost 2 minutes just to load my customers tab now.
It's also killing processes all over the place, and randomly crashing the site.
I need this to implement price per customer, because the plugins that exist don't work for what I need.
Is there anything I can do? Give the indexers more bandwidth somehow?
Thanks


texts: Magento custom extension not showing layout template

texts:
This is my controller

<?php
class Karmick_Refer_IndexController extends Mage_Core_Controller_Front_Action{
    public function indexAction()
    {
        $this->loadLayout();
        $this->getLayout()->getBlock('head')->setTitle($this->__('Earn Money'));
         $this->renderLayout();
    }
    public function getCodeAction(){
        $this->loadLayout();

         $this->renderLayout();

    }
    public function checkAction(){
        die('Hello');
    }

}
?>

This is my layout xml file code

<?xml version="1.0"?>
<layout version="0.0.1">
<default>
    <remove name="left"/>
<reference name="head">
    <action method="addItem"><type>skin_css</type><name>css/karmick/check.css</name></action>
</reference>
<reference name="root">
            <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
</default>
<refer_index_index>
    <reference name="content">
        <block type="refer/refer" name="refer">
            <action method="setTemplate">
               <template>karmick/refer.phtml</template>
            </action>
        </block>
</reference>
</refer_index_index>
</layout>

This is my config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Karmick_Refer>
            <version>0.0.1</version>
        </Karmick_Refer>
    </modules>
    <frontend>
        <routers>
            <karmick_refer>
                <use>standard</use>
                <args>
                    <module>Karmick_Refer</module>
                    <frontName>refer</frontName>
                </args>
            </karmick_refer>
        </routers>

<layout>
<updates>
<karmick_refer>
<file>karmick/refer.xml</file>
</karmick_refer>
</updates>
</layout>
</frontend>
<global>
<models>
<refer>
<class>Karmick_Refer_Model</class>
<resourceModel>refer_mysql4</resourceModel>
</refer>
<refer_mysql4>
<class>Karmick_Refer_Model_Mysql4</class>
<entities>
<refer>

karmick_refer

</refer>
</entities>
</refer_mysql4>
</models>
<resources>
<refer_write>
<connection>
<use>core_write</use>
</connection>
</refer_write>
<refer_read>
<connection>
<use>core_read</use>
</connection>
</refer_read>
<refer_setup>
    <setup>
        <module>Karmick_Refer</module>
        <class>Karmick_Refer_Model_Resource_Mysql4_Setup</class>
    </setup>
</refer_setup>
<connection>
    <use>core_setup</use>
</connection>
</resources>
<helpers>
<refer>
<class>Karmick_Refer_Helper</class>
</refer>
</helpers>
<blocks>
<refer>
<class>Karmick_Refer_Block</class>
</refer>
</blocks>
</global>
</config>

But still my template file is not including..   When i am giving this code in  Then template is coming..

Any idea what i am doing wrong??


texts: Change Tax 19% to 0 Based on Eu countries & VAT number Magento2.2

texts:
Different-2 Tax applied on my website, but I want to change TAX 19% to 0(Zero) for EU countries if customer give us the valid VAT Number,

Product price is configured including TAX, So on the checkout 19% TAX is featuring but not added to Total because price is including tax, i just want to show the TAX=0 there, logic is if country is EU and VAT id is valid then TAX =0.


texts: how to customer can create product in front-end?

texts: I front-end magento 2.1 i created module for special account had create product. I try to extend catalog_produc_form in backend but not success. Any suggestion? thank advance.


texts: Show all includes in a rendered page (Template Path Hints)

texts: What simple method can I use to print then name to the browser of each file being loaded to render a particular page? I'm trying to develop, and it sure would be helpful if there was a method by which to output each file in a debug mode.


texts: Not having the page reload or being redirected if the login credentials are wrong - Magento 2.2

texts:
On the login page, when the end-user enters a wrong password, the page gets refreshed and then returns the error massage, is there a way that I can have the error appears right away after entering the wrong credentials?

The main reason I need this is because of a pop-up login form that I have created, I would like to see if there are possibilities to make the error presents on the page after the user clicked on the "login button", instead of reloading the page, or redirecting to the login page.

Any help is greatly appreciated.

Magento 2.2


texts: Magento Bestselling block shows disabled product

texts: I cannot figure this out, i have magento 1.9 and a bestselling block with 6 items, one of these items is disabled, but still showing as bestselling, how do you remove this item from bestsellerslist?


texts: Use source model to checkboxes in catalog attribute

texts:
I have the code that create new attribute for category

$setup->addAttribute('catalog_category', 'watermark', array(
'group'         => 'Category labels',
'input'         => 'checkboxes',
'type'          => 'int',
'label'         => 'Labels',
'source'        => 'productlabels/source_watermark_category',
'backend'       => '',
'frontend'      => '',
'class'         => '',
'visible'       => true,
'required'      => false,
'user_defined'  => true,
'searchable'    => true,
'filterable'    => true,
'comparable'    => true,
'used_in_product_listing' => true,
'visible_on_front' => true,
'visible_in_advanced_search'  => true,
'is_html_allowed_on_front' => true,
'unique'        => false,
'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,

));

and source model

class Plumrocket_Productlabels_Model_Source_Watermark_Category extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
implements Mage_Eav_Model_Entity_Attribute_Source_Interface
{
public function getAllOptions()
{
    $collection = Mage::getModel('productlabels/block')->getCollection();

    foreach ($collection as $value) {
        $watermark = !empty($value->getCategoryImage()) ? $value->getCategoryImage() : '';
        $result[] = ['value' => $value->getId(), 'label' => $value->getTitle(), 'watermark' => $watermark];
    }

    return $html;
}
}

Why my source model doesn`t working, but if i choose select instead checkboxes it will be good.


texts: We have several admin roles for our product and based on that role they could be redirected to a different section for their initial page. That being said I was curious how to redirect an admin user after authentication to a specific page based on their admin role?


texts: Multi site instance with 2 IP adddresses

texts:
We're adding a second storefront to our existing Magento instance. The two store fronts will be accessed by different domain names and would have to have separate IP address to differentiate the payment charges on the customer's CC (so I am told by Authorize.net) and add SSL certificate to both.

My server support has no idea how to point a different domain name over to the magento instance since it's on a different IP address and the hosting company support team has said it can't be done. I am being told to build a new Magento instance, but I find that hard to believe. There must be other multisite instances on different IP addresses.

What are some best practices to architect multisite Magento from multiple IP addresses?


texts:
I wanted to overrid:

vendor/magento/module-catalog/Model/ResourceModel/Product/Compare/Item/Collection.php

so I copied it to:

app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php

But the override is not working.

Please let me know how I can override it without creating a new module.

Thank you!


texts: Homepage slider disappeared after update

texts:
All I did was update the extensions

Original: http://test.paperdollpartydress.com/
Updated (broken): http://paperdollpartydress.com/

But none of the extensions seem to pertain to a slider


texts:
Magento's index_process* tables (index_process_event and index_event) are getting quite big.

I was looking in Mage_Index (Magento 1.7.0.2) module if there is something in place for cleanup (deleted entries that are not required).

Am I missing something or the information in these tables never get cleaned?

UPDATE:
Looking at Mage_Index_Model_Resource_Event::_afterSave() there is a part that is used for deleting records with the status done:

protected function _afterSave(Mage_Core_Model_Abstract $object)
    {
        $processIds = $object->getProcessIds();

        if (is_array($processIds)) {
            $processTable = $this->getTable('index/process_event');
            if (empty($processIds)) {
                $this->_getWriteAdapter()->delete($processTable);
            } else {
                foreach ($processIds as $processId => $processStatus) {

                    if (is_null($processStatus) || $processStatus == Mage_Index_Model_Process::EVENT_STATUS_DONE) {
                        $this->_getWriteAdapter()->delete($processTable, array(
                            'process_id = ?' => $processId,
                            'event_id = ?'   => $object->getId(),
                        ));

                        continue;
                    }
                    $data = array(
                        'process_id' => $processId,
                        'event_id'   => $object->getId(),
                        'status'     => $processStatus
                    );

                    $this->_getWriteAdapter()->insertOnDuplicate($processTable, $data, array('status'));
                }
            }
        }

$processIds is array('new') when a product is saved (and indexes set to manual update) and when the reindex runs this part doesn't seem to run.


texts:
How to add product link and image on my customer panel, my order, view order tab?
by default it just shows title of product with no link


texts: Apply code changes in module without removing static data

texts:
Every time I change some code when developing a module, I run php bin/magento setup:upgrade. The problem is when executing this command, I end up with the deletion of the static front and admin css file as the command outputs this :

  C:\xampp\htdocs\magento>C:\xampp\php\php.exe bin/magento setup:upgrade
      Cache cleared successfully
      File system cleanup:
      C:/xampp/htdocs/magento/var/generation/Composer
      C:/xampp/htdocs/magento/var/generation/Magento
      C:/xampp/htdocs/magento/var/generation/Symfony
      C:/xampp/htdocs/magento/var/generation/Ves
      The directory 'C:/xampp/htdocs/magento/var/di/' doesn't exist - skipping cleanup
      C:/xampp/htdocs/magento/pub/static/_requirejs //all static files cleared
      C:/xampp/htdocs/magento/pub/static/adminhtml //all static files cleared
      C:/xampp/htdocs/magento/pub/static/deployed_version.txt //all static files cleared
      C:/xampp/htdocs/magento/pub/static/frontend //all static files cleared
      C:/xampp/htdocs/magento/var/view_preprocessed/css
      C:/xampp/htdocs/magento/var/view_preprocessed/source
      Updating modules:
      ...

So I'm every time I have to execute php bin/magento setup:static-content:deploy to have a full functional front and esepcially backend (to create products, update categories, etc ...) .

My question is, is there any other method to apply code changes, or can I tell the script to ignore some directories (/pub/static/*) ?


texts: How to add block html content display in particular div or any particular place by xml file?

texts:
I created customer_account_login.xml to add block.

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Framework\View\Element\Template" name="sociallogin" before="-" template="Lucent_SocialLogin::form/sociallogin.phtml" />
         </referenceContainer>
    </body>
</page>

So, this sociallogin.phtml file load top of the login form.But I need to display that in particular div which have class or id.

Thanks


texts: Magento 2.2.2 - Tablerates not working on Cart Page

texts:
I am using Tablerates as my shipping method and the condition is set to Price vs Destination.

Use case One

Free Shipping over $200

Use case Two

If zip code falls under Zone 1 i.e. 28682-28685, `$20` flat rate shipping fee

Use case Three

If zip code falls under Zone 2 i.e. 28360-28365, `$50` flat rate shipping fee

Below is how my CSV looks like

 Country  Region/State Zip/Postal Code Order Subtotal(and above) Shipping Price
 USA      NC           28682           0                         20
 USA      NC           28682           201                       0
 USA      NC           28360           0                         50
 USA      NC           28360           201                       0

Upload works, as is reflected in the table shipping_tablerate as seen in below image

But when user check shipping price on cart page for zip code whose shipping price should be $20, it always takes $50.  It can be seen in below image. Currently the user is logged in

Although when Subtotal goes beyond $200, it shows shipping price $0 which is correct as per tablerates. Moreover on checkout page, it shows correct shipping price based on zip code selected. It happens only on cart page.

Estimate Shipping and Tax also shows correct shipping price based on zip code entered. But when I click on selected price it throws below exception

/rest/default/V1/carts/mine/totals-information 500 (Internal Server Error)

Below is the response I get

{"messages":{"error":[{"code":500,"message":"Fatal Error: 'Uncaught TypeError: Argument 1 passed to Magento\\Quote\\Model\\Cart\\Totals::setExtensionAttributes()
must be an instance of Magento\\Quote\\Api\\Data\\TotalsExtensionInterface, instance of Magento\\Quote\\Api\\Data\\AddressExtension given, called in \/home\/storeq\/public_html\/vendor\/magento\/framework\/Api\/DataObjectHelper.php on line 125 and defined in \/home\/storeq\/public_html\/vendor\/magento\/module-quote\/Model\/Cart\/Totals.php:592\n
Stack trace:\n#0 \/home\/storeq\/public_html\/vendor\/magento\/framework\/Api\/DataObjectHelper.php(125):
Magento\\Quote\\Model\\Cart\\Totals->setExtensionAttributes(Object(Magento\\Quote\\Api\\Data\\AddressExtension))\n#1 \/home\/storeq\/public_html\/vendor\/magento\/framework\/Api\/DataObjectHelper.php(85):
Magento\\Framework\\Api\\DataObjectHelper->_setDataValues(Object(Magento\\Quote\\Model\\Cart\\Totals), Array, 'Magento\\\\Quote\\\\A...')\n#2 \/home\/storeq\/public_html\/vendor\/magento\/module-quote\/Model\/Cart\/CartTotalRepository.php(103):
Magento\\Framework\\Api\\DataObjectHelper->populateWithArray(Object(Magento\\Quote\\Model\\Cart\\Tota' in '\/home\/storeq\/public_html\/vendor\/magento\/module-quote\/Model\/Cart\/Totals.php' on line 592","trace":"Trace is not available."}]}}

  When user is not logged in, it does not show shipping charges, but
  when user is logged in it always shows in correct shipping price i.e.
  $50

How do I resolve this and display correct shipping price on cart
page?


texts: Customer Managed to create multiple accounts

texts:
A little while ago we had a customer contact us saying that he was unable to complete the checkout and got the error "customer email already exists". Worryingly, he tried a few times and on each attempt his card was charged.

After trying to find a reason for this we discovered that he had somehow managed to create four customer accounts. The accounts were created a week or so before his first purchase so weren't created during the checkout process and, looking in the admin, all four accounts were created within a minute of each other - 09:10:39, 09:11:02, 09:11:23 and 09:11:21

Now, I imagine there are safeguards built into Magento to stop more than one account being created with the same email, so what could have caused these to fail? Where should we be looking first?

I've checked the _exception.log in var/log and there are 3 entries like this:

    2015-11-04T09:14:32+00:00 DEBUG (7): Exception message: This customer email already exists
    Trace: #0 /route/to/site/app/code/core/Mage/Customer/Model/Resource/Customer.php(99): Mage::exception('Mage_Customer', 'This customer e...', 3)
    #1 /route/to/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1122): Mage_Customer_Model_Resource_Customer->_beforeSave(Object(Mage_Customer_Model_Customer))
    #2 /route/to/site/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Customer))
    #3 /route/to/site/app/code/core/Mage/Customer/Model/Resource/Address.php(70): Mage_Core_Model_Abstract->save()
    #4 /route/to/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1124): Mage_Customer_Model_Resource_Address->_afterSave(Object(Mage_Customer_Model_Address))
    #5 /route/to/site/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Address))
    #6 /route/to/site/app/code/core/Mage/Customer/controllers/AddressController.php(142): Mage_Core_Model_Abstract->save()
    #7 /route/to/site/app/code/local/Mage/Core/Controller/Varien/Action.php(417): Mage_Customer_AddressController->formPostAction()
    #8 /route/to/site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('formPost')
    #9 /route/to/site/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #10 /route/to/site/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #11 /route/to/site/app/Mage.php(685): Mage_Core_Model_App->run(Array)
    #12 /route/to/site/index.php(100): Mage::run('base', 'website')
    #13 {main}

I know it's an odd one but has anyone ever encountered anything similar? Are there any likely causes? Any pointers much appreciated.

Thanks


texts:
I'm creating a custom admin module in which i need a form to upload a csv file
Here is the code:
Controller file:
    app/code/Importa/Import/Controller/Adminhtml/Import/Index.php

<?php
namespace Importa\Import\Controller\Adminhtml\Import;
use Magento\Backend\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;

class Index extends \Magento\Backend\App\Action{
protected $resultPageFactory;
public function __construct(
    Context $context,
    PageFactory $resultPageFactory
) {
    $this->resultPageFactory = $resultPageFactory;
            parent::__construct($context);
}

public function execute(){
    $resultPage = $this->resultPageFactory->create();
    return $resultPage;
}
}
?>

Layout file:

app/code/Importa/Import/view/adminhtml/layout

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

        <title>
            Importa
        </title>

 <referenceContainer name="content">
        <block class="Magento\Framework\View\Element\Template" name="Importa" template="Importa_Import::sample/importa.phtml" />
     </referenceContainer>

</page>

Template file:

app/code/Importa/Import/view/adminhtml/templates/sample

<form action="" method=post enctype="multipart/form-data">

Seleziona file

<input type=file name=userfile>

<input type=submit value=Invia name=conferma>
</form>

The problem is that i don't know what the action url to refer the template to the index.php file.


texts: Unset special price for product via magmi

texts: I want to remove the special price from some products that have special price. I've tried to leave the column empty but then the special price was updated to 0 what can I do to simply remove the price from some products via magmi


texts: Reload system config to get last saved values in magento 2

texts:
Mage::app()->getConfig()->reinit();

This method invalidates the config cache and performs a complete reload of the configurations in magento 1.x

How can i do this for magento 2.x

I want to invalidate cache because my custom options not show latest results after save configurations, But need to refresh or flush cache.


texts: Moving magento site to live server results an error

texts:
I am trying to move my magento site from local to live server, but I get this error.

Exception printing is disabled by default for security reasons.

Error log record number: 636829790955

I tried changing local.xml.sample to local.xml to see the problem also. I changed dbname, host, username and password inside app/etc/local.xml also. How to correctly upload the magento site? What are the steps to do so?


texts: Custom Module config.xml not loading layout xml file

texts:
I am creating custom module for practicing.
app/code/local/Amactech/Events/etc/config.xml

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

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

  <global>

    <models>
      <events>
        <class>Amactech_Events_Model</class>
      </events>
    </models>

    <helpers>
      <events>
        <class>Amactech_Events_Helper</class>
      </events>
    </helpers>

    <blocks>
      <Amactech_Events>
        <class>Amactech_Events_Block</class>
      </Amactech_Events>
    </blocks>

  </global>

  <frontend>
    <routers>
      <events>
        <use>standard</use>
        <args>
          <frontName>events12</frontName>
          <module>Amactech_Events</module>
        </args>
      </events>
    </routers>

    <layout>
      <updates>
        <amactech_events>
          <file>events.xml</file>
        </amactech_events>
      </updates>
    </layout>

  </frontend>

</config>

app/design/frontend/base/default/layout/events.xml

<?xml version="1.0"?>
<layout version="0.1.0">
  <events_events12_index>
    <update handle="page_two_columns_left" />
  </events_events12_index>

</layout>

app/code/local/Amactech/Events/controllers/IndexController.php

<?php

    class Amactech_Events_IndexController extends Mage_Core_Controller_Front_Action{
        public function indexAction(){
      $this->loadLayout();
            return $this->renderLayout();
        }
    }

?>

So whatever whatever changes (whether right or wrong) are made into events.xml file does not reflect to frontend page.
The second thing is in events.xml I defined page_two_columns_left but it is showing page with right column.
It seems that config.xml file is not loading events.xml file

Can anyone point out that what I did wrong?


texts:
I need some urgent help in Magento2. I have a live website say abc.com, and there are around 70 stores. This website was created in cake php.
Now i have converted it in Magento2. Everything is done. But i am facing 1 problem that in the live site, store url is configured like this : abc.com/uae/en , but in M2, the store url is coming is xyz.com/en.
How we can create the Store url like the live site?
Please note that i dont want to convert it in MultiWebsite as migration is completly done store wise.
Can someone help here please
Thank you


texts: How to give 10% discount on every new registered customer on magento1

texts:
I am trying to create coupon code from promotion->shopping cart price rule

created with below
Customer Groups without "NOT LOGGED IN".
Uses per Customer = 1
Coupon = Speciit's Coupon

But its not working


texts:
I have created cron in magento 2 but it run by command not run automatically run at every 5 minutes.

file: 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="test">
        <job name="test" instance="Test\Ship\Cron\Observer" method="cronOderSync">
            <schedule>*/5 * * * *</schedule>
        </job>
    </group>
</config>

Cron set on system

*/5 * * * * php /home/var/www/html/magento/bin/magento cron:run | grep -v "R$
*/5 * * * * php /home/var/www/html/magento/update/cron.php >> var/www/html/m$
*/5 * * * * php /home/var/www/html/magento/bin/magento setup:cron:run >> var$

If I execute command on terminal then cron is working

 sudo php bin/magento cron:run --group="test"


texts:
I use below code to show latest products on my homepage as a product carousel but sort function doesn't work.

{{block type="filterproducts/latest_home_list" product_count="6"
 category_id="171" sort_by="position" aspect_ratio="0" image_width="296"
 image_height="395" template="filterproducts/list.phtml"}}

I want to show products on the position that I have given on category page.

List.php file under app/code/local/Smartwave/Filterproducts/Block/Latest/Home has been changed but still doesn't work.

    $category_id = $this->getCategoryId();

    $storeId    = Mage::app()->getStore()->getId();
    $products = Mage::getResourceModel('catalog/product_collection');
    if($category_id) {
        /*$category = Mage::getModel('catalog/category')->load($category_id);

        $products = $this->_addProductAttributesAndPrices($products)
        ->addAttributeToSort('created_at', 'desc')
        ->addCategoryFilter($category)
        ->setStoreId($storeId)
        ->addStoreFilter($storeId);*/

        $products = Mage::getModel('catalog/category')->load($category_id)
            ->getProductCollection()
            ->addAttributeToSort('position')
            ->setStoreId($storeId)
            ->addStoreFilter($storeId);
    }
    else {
        $products = $this->_addProductAttributesAndPrices($products)
        ->addAttributeToSort('created_at', 'desc')
        ->setStoreId($storeId)
        ->addStoreFilter($storeId);
    }

Do I need to change any other file? I'm using Magento 1.9.1.0
Thanks for your help


texts: MAGENTO - How to display the category details for editing?

texts:
Categories

I want to update categories in Magento but the problem is when I click to sub-category (Desktops) the details of that category doesn't show up in the "General Infomation" form.

General Infomation -- doesn't display the details of selected category

Also, the number of products in other categories displays zero (0) but there's data exist when you collapsed one of the sub-category.

In System > Index Management: I didn't do "Reindex Data" action

In System > Configuration > Catalog > Frontend (section):
My Use Flat Catalog Category,Use Flat Catalog Product is set to No

Should I reindex data and set both flat catalog to yes? To solve my problem?

P.S The front-end is working.


texts:
I Have got an online version of my Magento store, and now i have got the files (SQL dump, and the root files)

So, i am trying to localhost my site, so i have a new blank version of Magento (not installed) and i add MySql database to phpmyadmin (imports not errors) then i run Magento installation, point it to the database i created, but nothing is import, it just stays as the stock Magento webpage, and the back-end also has no data, but something is happening because the favicon has changed to that of my website.. Do i need to import my app/design theme? as well as my /media folder?

I can't figure out what i'm doing wrong; its a new version of Magento that is being pointed to my database, but no data is showing?


texts: Magento 2 Uncaught Error: Call to a member function isLoggedIn() on null

texts:
I'm trying to change the order status on Order Detail with a custom controller, but I'm getting this error
Uncaught Error: Call to a member function isLoggedIn() on null

This is my code:
<?php

use Magento\Backend\App\Action;
use Magento\Framework\App\RequestInterface;
use Transom\Pakke\Logger\Logger;
use Magento\Sales\Api\OrderRepositoryInterface;
use Magento\Framework\Controller\ResultFactory;

class Pdf extends Action
{
    /**
     * @var PageFactory
     */
    protected $request;
    protected $logger;
    protected $orderRepository;
    protected $resultRedirectFactory;
    protected $_redirect;
    /**
     * @param Context $context
     * @param PageFactory $resultPageFactory
     */

    public function __construct(
        RequestInterface $request,
        Logger $logger,
        OrderRepositoryInterface $orderRepository,
        ResultFactory $resultRedirectFactory,
        \Magento\Framework\App\Response\RedirectInterface $redirect
    ) {
        $this->request = $request;
        $this->logger = $logger;
        $this->orderRepository = $orderRepository;
        $this->resultRedirectFactory = $resultRedirectFactory;
        $this->_redirect = $redirect;
        $this->execute();
    }

    /**
     * Index action
     *
     * @return \Magento\Backend\Model\View\Result\Page
     */
    public function execute()
    {

        $completeState = \Magento\Sales\Model\Order::STATE_COMPLETE;

        $order_id = $this->request->getParam('order_id');

            $order = $this->orderRepository->get($order_id);
            $order->setStatus($completeState)->setState($completeState);
            $this->orderRepository->save($order);

            $resultRedirect = $this->resultRedirectFactory->create(\Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT);
            $resultRedirect->setUrl($this->_redirect->getRefererUrl());
            return $resultRedirect;

    }

}

I don't have that isLoggedIn() method anywhere.
Wha could it be?
Thanks!


texts:
I am using magento 1.7. I came up with the following issue 'cannot create table column without comments'.I have attached the log

2013-07-26T08:33:24+00:00 DEBUG (7): Exception message: Cannot create table without columns comments
Trace: #0 D:\xampp\htdocs\munch4me\app\code\core
\Mage\Catalog\Model\Resource\Category\Flat.php(604): Varien_Db_Adapter_Pdo_Mysql->         createTable(Object(Varien_Db_Ddl_Table))
#1 app\code\core\Mage\Catalog\Model\Resource\Category\Flat.php(1418): Mage_Catalog_Model_Resource_Category_Flat->_createTable('1')
#2 app\code\core\Mage\Catalog\Model\Resource\Category\Flat.php(1431): Mage_Catalog_Model_Resource_Category_Flat->_createTables()
#3 app\code\core\Mage\Catalog\Model\Category\Indexer\Flat.php(246): Mage_Catalog_Model_Resource_Category_Flat->reindexAll()
#4 app\code\core\Mage\Index\Model\Process.php(209): Mage_Catalog_Model_Category_Indexer_Flat->reindexAll()
#5 app\code\core\Mage\Index\Model\Process.php(255): Mage_Index_Model_Process->reindexAll()
#6 app\code\core\Mage\Index\controllers\Adminhtml\ProcessController.php(124): Mage_Index_Model_Process->reindexEverything()
#7 app\code\core\Mage\Core\Controller\Varien\Action.php(419):    Mage_Index_Adminhtml_ProcessController->reindexProcessAction()
#8 app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('reindexProcess')
#9 app\code\core\Mage\Core\Controller\Varien\Front.php(176):  Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 app\Mage.php(683): Mage_Core_Model_App->run(Array)
#12 index.php(87): Mage::run('', 'store')
#13 {main}


texts: Change logout redirect link to external page

texts:
After logging out from the account the user is redirected to a page that redirects to the CMS home page of magento.
I don't have that page and want to redirect to an external page instead.
But I can't find a clean way to change that redirect url to a page outside of magento.
I want to redirect to my page root whereas magento resides in https://www.mymagento.com/shop/.
The redirect should lead to https://www.mymagento.com/.


texts: Failed to locate the main schema resource

texts:
I tried to upload the product view with my own catalog_product_view.xml in:

app/desing/frontend/{Name}/{theme}/Magento_Catalog/layout/catalog_product_view.xml

And i have the classical start lines:

<?xml version="1.0"?>
<page layout="2columns-right" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="sidebar.additional">

but sublime said that it failed to locate the main schema resource at 'url:magento:framework:View/Layout/etc/page_configuration.xsd'

And i don't know why this hapends


texts: get newsletter subscriber email in magento 2

texts:
I need to collect SubScriber email in Magento 2. So, I tried to inject \Magento\Newsletter\Model\Subscriber $subscriber , I didn't work for me.

  <?php
    namespace Vendor\Module\Cron;

    class NewsLetter
    {
        protected $_logger;
        protected $_subscriber;
        protected $_customerdata;
        public function __construct(
        \Psr\Log\LoggerInterface $logger,
           \Magento\Newsletter\Model\Subscriber $subscriber,
           \Magento\Customer\CustomerData\Customer $customerdata,
           )
        {
        $this->_logger = $logger;
         $this->_subscriber= $subscriber;
        $this->_customerdata= $customerdata;
        }
        public function execute()
        {
           $customer= $this->_customerdata->getSectionData();
          $data=$this->getCustomerEmail($customer)
          foreach($data as $email)
         {
         $customerEmail =$email;

         $checkSubscriber = $this->_subscriber->loadByEmail($customerEmail);
        if ($checkSubscriber->isSubscribed()) {
            // Customer is subscribed
         $this->_logger->addDebug($customerEmail."subscribed Email");
        } else {
           $this->_logger->addDebug($customerEmail."Unsubscribed Email");
        }
         }

        }
    }

Suggest me what I missed.


texts: Magento 2.1.9 - Provided attribute can not be used with configurable product

texts:
Created custom product attribute set Bag Size based on Default
attribute set
Created custom attribute bag_size and added 4 custom swatches i.e.
bag sizes
Created 4 simple products with different size and assigned to
created attribute set
Created configurable product and under Configuration added those
simple products manually

Getting below error and unable to create configurable product.

Following the same process of creating configurable product where simple products are created and assigned to one configurable product.

Attribute Properties

Attribute Advanced Properties


texts: How to write Jquery in .phtml file in Magento

texts:
Here's my code

  list.phtml

<button id="click-me">QTY Estimator</button>

Room Width(ft)
<input type="number" name="rate" id="rate" />
 Room Length(ft)
<input type="number" name="box" id="box" />
Room Area in Sq Ft
<input type="number" name="amount" id="amount"  readonly />
Number of Boxes
<input type="number" name="amount2" id="amount2" readonly />

  another Jquery

$('#rate, #box').keyup(function(){
var rate = parseFloat($('#rate').val());
var box = parseFloat($('#box').val());

$('#amount').val(rate * box);
var amount = rate * box;

if(amount != null || amount != undefined) {
  $('#amount2').val(amount / 20);
 }
 });

I want to write this Jquery in list.phtml file


texts: Items maximum quantity or price do not allow checkout magento1.9?

texts:
Not able to checkout.
Please find attachment and suggest any solution.


texts: Magento 2.3.4 - Disable module for specific store view

texts:
As the headline says I'm trying to disable a specific module for two out of our three store views. The module itself doesn't have an on/off, and all changes happens globally regardless of the store view the change is made in. Can anybody help with this? I cannot find any guides that are up to date and works for Magento 2.3

EDIT:
To be specific it's a module for an online invoicing system, and they just have one module for magento. As it is now the module creates invoices for all orders from all stores, and it should only create invoices for one store, as the other two stores are owned by another company.

I've tried Bryan Bielefeldt's suggestion on: Magento 2 - Disable some modules per store view however, it didn't stop the module from working in the backend.


texts: Locking the system configuration and using local.xml exclusively - good or bad idea?

texts:
I'm proposing an idea of completely locking users out of the system configuration and instead managing all config through local.xml.

Pros

No untracked config changes
Easily manage environment-specific changes (staging vs. production settings)
All config changes must pass development and staging testing

Cons

Slower process for config changes
Potentially large local.xml file
All config changes must pass development and staging testing (yes it's a pro and a con)

I'd like to know how this might affect things like web/unsecure/base_url and if anyone can see any side effects I'm missing. Has anyone done this before?


texts: Adding a .phtml (which includes) javascript into Adminhtml grid

texts:
I have been tasked with creating some custom html ( a drop down with button ) in the adminhtml - grid.php. On button click (or update) an ajax call will then update the record in the database. I have a file called warrantyClaim.phtml that I have placed in the \app\design\adminhtml\default\default\template\myapp\warrantyclaim folder

here is what the html looks like in the grid:

<select name="warrantyStatus" id="warrantyStatus" claim="33329">
<option value="0">Not Submitted</option>
<option value="1">Submitted</option>
<option value="2">Pending Approval</option>
<option value="3">Approved</option>
<option value="4" selected="">Partially Approved</option>
<option value="5">Declined</option>
</select>

<button style="display: inline-block;" onclick="updateTitle(this, 33329); return false">Update</button>

Here is the code for my warrantyClaim.phtm file:

<script type="text/javascript">
function updateTitle(button, fieldId)
{
new Ajax.Request('<?php echo Mage::helper('adminhtml')->getUrl('*/*/updateTitle') ?>', {
    method: 'post',
    parameters: { id: fieldId, title: $(button).previous('warrantyStatus').getValue() }
});
}

On button click, I get a javascript error, stating the function updateTitle is not defined, which tells me that my warrantyClaim.phtml is missing.
Did I miss another step? I just placed the warrantyClaim.phtml file into the folder.


texts: Lesti FPC and Layered Navigation SEO extensions

texts:
I have installed SEO Layered Navigetion (http://www.magentocommerce.com/magento-connect/layered-navigation-seo.html) and Lesti FPC.
To make the SEO Layered Navigetion work with Lesti FPC i added to Lesti FPC settings to Uri Params my filterable attribute codes. After that my filters in layered navigation is work, but when i press "Clear all" to clear filters, there is an error "An error occurred, please try again later" in Layered Navigation SEO (This error appear only when Lesti FPS is enabled).
Help me please.


texts: Change Data in Calling method through Event

texts:
I'm plowing my way through learning Magento, and am struggling with how to use an event to alter data in the method that called said event.

Specifically, I am trying to override how tax rates are determined for an order through the 'tax_rate_data_fetch' event. I'm working on a marketplace site where the tax rate depends on the state the buyer and seller are located in, and the rate is pulled from the sellers account record.

I have a custom module that is plugging in correctly and my method is being called, and I believe I should be able to update data in the calling function through the request, but either I'm wrong and this isn't possible, or I just do not know how that should be done. As a test, the method I have currently to adjust the rate looks something like this, and though it's being called, I'm sure I'm doing something completely wrong as far as how the request should be altered:

    public function getSellerTaxRate($observer)
{
    $request = $observer->getEvent()->getRequest();
    $rateInfo = Mage::getModel('tax/calculation')->getResource()->getRateInfo($request);
    $rateInfo['value'] = 5;
    $rateInfo['process'][0]['rates'][0]['percent'] = 5;
    $rateInfo['process'][0]['percent'] = 5;
    $request->setRateInfo($rateInfo);
            return $this;
}

Any guidance on the correct way to do this would be much appreciated. The core method I'm hooking in to looks like this:

public function getRate($request)
{
    if (!$request->getCountryId() || !$request->getCustomerClassId() || !$request->getProductClassId()) {
        return 0;
    }

    $cacheKey = $this->_getRequestCacheKey($request);
    if (!isset($this->_rateCache[$cacheKey])) {
        $this->unsRateValue();
        $this->unsCalculationProcess();
        $this->unsEventModuleId();
        Mage::dispatchEvent('tax_rate_data_fetch', array(
            'request' => $request));
        if (!$this->hasRateValue()) {
            $rateInfo = $this->_getResource()->getRateInfo($request);
            $this->setCalculationProcess($rateInfo['process']);
            $this->setRateValue($rateInfo['value']);
        } else {
            $this->setCalculationProcess($this->_formCalculationProcess());
        }
        $this->_rateCache[$cacheKey] = $this->getRateValue();
        $this->_rateCalculationProcess[$cacheKey] = $this->getCalculationProcess();
    }
    return $this->_rateCache[$cacheKey];
}


texts: How to change billing address before they save?

texts:
On payment page i have form with new billing address, when i save this form magento first send data to V1/carts/mine/estimate-shipping-methods
But on this page i have telephone field which not exist in request address.
For telephone field i use additional field which i add in layout, so it's display and i can edit it, on checkout page
So the first request in browser is V1/carts/mine/estimate-shipping-methods where in webapi.xml described that estimateByExtendedAddress(). This function already has $address parameter which has no telephone field, how i can get this telephone in $address. Because when i try to make order i get error "telephone field is required".


texts: catalogProductAttributeMediaRemove does not remove Image from the disk in Magento 1.9 CE

texts:
This is how we update product photos via SOAP sequence:

catalogProductAttributeMediaList
catalogProductAttributeMediaRemove
catalogProductAttributeMediaCreate

By calling SOAP catalogProductAttributeMediaRemove Magento does not remove photos from the disk/db .

The deleted photo still can be accessible by url for example:
www.example.com/media/catalog/product/P/A/PAexample.jpg

Also after calling catalogProductAttributeMediaCreate the photo name is changed automatically by Magento to PAexample_1.jpg
and then PAexample_2.jpg ..... in subsequent photo updates (SOAP sequence).

And we can not have the same file name after product photo updates.

Wondering what could be best work around?


texts:
I have a collection/array of ~4000 products(search results) and a category number and need to filter them.

What would be the most efficient way of checking whether a product belongs to a certain category?

Now I use:

foreach($products as $product) {
  $productCategories = $product->getAvailableInCategories();

  if(array_search($category, $productCategories) === false) {
   continue;
  };

  $filteredProducts[] = $product;
}

$products may be an array or collection.

I would appreciate your input :).


texts: Always getting Suspected Fraud status in Paypal transaction - Magento 1.8.0

texts:
I have set up Paypal Payments Standard in Magento 1.8.0 but i am always getting Suspected Fraud status for each transaction/payment i make.
This is quite frustrating since i don't get this error while in Sandbox Mode and i have to do real transactions to test this behavior.

In Magento Paypal configuration i have

Payment Action: Sale
Transfer Cart Line Items: No
Enable SSL verification: No

I have also installed this extension https://github.com/magento-hackathon/PaypalRoundBugfix and disabled Transfer Cart Line Items to avoid differences between the prices sent from Magento and calculated by Paypal. Infact the amounts are exactly the same. I have also tried with the above configurations set to yes and without that extension installed, but with no luck.

In Magento if i go to the Order detail under the Payment Information tab i have

Payer Status: verified
Payer Address Status: unconfirmed

While in the Comments History there is written

Suspected Fraud
Customer Notification Not Applicable
IPN "Completed". Order is suspended as its capture amount € 2,22 is suspected to be fraudulent. Transaction ID: "9FN02..........".

While in the Transaction detail, the transaction data is

Transaction ID: 9FN02..........
Parent Transaction ID: N/A
Order ID: 200000021
Transaction Type: capture
Is Closed: No

What could be the problem?

At the moment i am on a test environment so the website has SSL but it is still not verified since there is no domain pointing to the server yet (this is the reason why i disabled SSL verification for the moment). DNS change will be done before going live.
In Paypal everything is set as its default values/settings, no fees or shipping costs are defined.
I am using Magento for tax calculation, no extensions.

Please i really hope someone can help me out, i have been trying for the last days but found no solution.
Thanks


texts: Magento 2 - Show Special Price on Category Page

texts:
I am trying to show the special price on the category page in the same way it shows on the item page.  I copied final_price.phtml placed this code at the top :
Magento_Catalog/templates/product/price/final_price.phtml
<?php
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */

/** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
$priceModel = $block->getPriceType('regular_price');

/** ex: \Magento\Catalog\Pricing\Price\FinalPrice */
/** @var \Magento\Framework\Pricing\Price\PriceInterface $finalPriceModel */
$finalPriceModel = $block->getPriceType('final_price');
$idSuffix = $block->getIdSuffix() ? $block->getIdSuffix() : '';
$schema = ($block->getZone() == 'item_view') ? true : false;

// New code to show on category page
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$requestInterface = $objectManager->get('Magento\Framework\App\RequestInterface');
$showaction = $requestInterface->getFullActionName();
?>
<?php // new category code ?>
<?php if ($showaction == "catalog_category_view"): ?>
    <?php if ($block->hasSpecialPrice()) :?>

            <?= /* @noEscape */ $block->renderAmount($finalPriceModel->getAmount(), [
                'display_label'     => __('Special Price'),
                'price_id'          => $block->getPriceId('product-price-' . $idSuffix),
                'price_type'        => 'finalPrice',
                'include_container' => true,
                'schema' => $schema
            ]); ?>

            <?= /* @noEscape */ $block->renderAmount($priceModel->getAmount(), [
                'display_label'     => __('Regular Price'),
                'price_id'          => $block->getPriceId('old-price-' . $idSuffix),
                'price_type'        => 'oldPrice',
                'include_container' => true,
                'skip_adjustments'  => true
            ]); ?>

    <?php else :?>
        <?= /* @noEscape */ $block->renderAmount($finalPriceModel->getAmount(), [
            'price_id'          => $block->getPriceId('product-price-' . $idSuffix),
            'price_type'        => 'finalPrice',
            'include_container' => true,
            'schema' => $schema
        ]); ?>
    <?php endif; ?>
<?php endif; ?>

<?php //end category code ?>

The remainder of the code is the code that was there for the item page and it still works as expected. All it does on the category page is show the regular price twice.
Thanks,
Stan


texts: Magento Checkout Page escaping HTML tags

texts:
I've given some HTML in the custom options of Magento, it is working perfectly fine on the product page however in the checkout page, it is showing with HTML code. When I checked the source code, the HTML tags has been converted to entities. For example,  is showing like &lt;span&gt;

    <?php foreach ($_options as $_option) : ?>
    <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>

<?php echo $this->htmlEscape($_option['label']) ?>

    <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
        <?php if (isset($_formatedOptionValue['full_view'])): ?>

<?php echo $this->htmlEscape($_option['label']) ?>

<?php echo $_formatedOptionValue['full_view'] ?>

**

Edit: Here is the ouput of HTML

Customize Your System:

&lt;span id="evo-blue"&gt;Heading: ...

Heading-2

&lt;span id="evo-blue"&gt;Heading-3:&lt;/span&gt; Some text..

**

I'm thinking that $this->htmlEscape has something to do with this mess? Anyone knows how to solve this?


texts:
magento 1.9.3 is not sending email after invoice created but yes order email.
I am also using pdf-invoice plus extension which used to send the invoice to pdf with order email but invoice email not sending to the customer.


texts: html5 animation integration in magento like wordpress

texts:
in wordpress i integrate my adobe edge file (.oam) with a simple plugin

this plugin allow me add .oam file like other image, this plugin is called

https://github.com/ekino/wp-oam-renderer

exist something like this for magento or is possible translate this plugin?


texts: Magento 2: New page is blank except for the content I've added

texts: I've created a new CMS page via the Admin area Content > Pages > Add New Page. I entered some text: Hello, World! but when I go to the page, all I see is "Hello, World!" on a blank page – my template / theme is missing. What am I doing wrong?


texts:
I am trying to just remove the page-wrapper div, but can't seem to find the .phtml file to do so. I have seen that you should edit the default.xml file in your theme, but there has to be some way to edit the container of the page right?

I was digging in container phtml and found this line <?php echo $block->getChildHtml(); ?> and assume that is pulling in the classes such as page-wrapper, page-header and more. Does anyone know how to remove the page-wrapper, page-header, panel, etc classes?


texts: Is it possible to get a direct link to the TAR package file of the latest release of an extension?

texts:
Everytime I need to download a Magento package, I need to do so via the Connect Marketplace and I then have to copy the URL (key) from there. For example, to download the "Log Viewer" extension, I have to go here:

http://www.magentocommerce.com/magento-connect/log-viewer-1.html

after which I have to copy-paste the key http://connect20.magentocommerce.com/community/Rockwells_LogViewer into my Magento Connect Manager.

Is it possible to get a direct HTTP link to the TAR package of an extension.


texts: Magento 2.3 suddenly very slow on developer mode

texts:
I have been developing on a magento2 docker env (warden) environment for weeks with no problems.
Development mainly on the frontend in developer mode, deactivating only the full_page, block_html and layout caches.
Normally the site loaded at an acceptable time (20-30 seconds) while clearing the entire cache it loaded in 50-60 seconds.
Suddenly the environment became extremely slow. Each page loads in about 10-15 minutes, both on frontend and on backend and the CPU usage goes to the max value (there are always at least 5-6 processes php-fpm that consume the maximum available cpu).
The browser loads 10 static files at a time (every 30 sec)
I tried to clean up all files, clear all caches and restart the static-content:deploy and di:compile but the environment continues to be extremely slow.
I have no active external modules and there are no particular errors on the logs.
Is there any particular parameter that can cause these problems?

EDIT: Another strange behavior is that inside the container there are about 20 php-fpm processes running and they all consume a lot of CPU. it is as if the php processes were struggling to generate static files in developer mode but I don't understand why.


texts: Upgrading from 1.9 to 2 - What about the SOAP API?

texts:
we're thinking of moving from 1.9 to magento 2 in the future. I'd like to estimate the mass of work necessary for the upgrade. I cannot though find any information on how much the SOAP API was changed? Do we need to rewrite everything that uses the API in 1.9 (product sync, order import etc)?
And are there significant changes in the data structures:

API operations (names, parameters?) have changed i guess
Objects and fields changed?
Object relations changed?

If you have any hint where to look, would be greatly appreciated. Otherwise i would need to examine each API operation we're using, if its still (remotely) compatible.
(at the moment we're using the SOAP API v2 in Magento 1.9)


texts: Product Category Thumbnail Image Not Working

texts:
I'm running in an issue on Magento EE 2.2.3 with category thumbnail images.  Normal category images seem to upload just fine, and (as shown in the two pictures below, first shows it lets me upload the image, second is after save), I can initiate the thumbnail upload, but on submit, but after refreshing the page its simply gone.  There are no errors and nothing useful in the log that I have found, and no notifications in the interface.

I found a similar issue here Magento2 Category thumbnail image not uploaded? but from what I can tell the fix there is already part of the more recent version that I have (I might be wrong on that, not entirely sure).

Is there anything I can do to debug this effectively?  I would like to have category thumbnails in use in the menu system but can't with this not working.


texts: Magento2.3.5 Ceck when estimate-shipping-methods ajax finishes

texts:
How do I check when the the call to api http://dev.test.com/rest/default/V1/guest-carts/xxxxxxxxxxxxxxxxxx/estimate-shipping-methods  has finished in checkout cart shipping page ?
I could use jquery AjaxComplete but not the right approach I suppose. preferable with ko, mixin etc..
Thanks


texts: Magento 2 : Show captcha at contact us form

texts:
I use the below code in a CMS block to show the default magento contact us form.

<p>{{block
    class="Magento\Contact\Block\ContactForm"
    name="contactForm"
    template="Magento_Contact::form.phtml"}}</p>

Just wondering will there be a core way to enable captcha in the form?


texts: Magento 2- Force Display Full Breadcrumb Path

texts: I found recently that When I go from home to a product description page its breadcrumb not showing full path in Magento 2.1.8  just showing  home -> product . in magento 1.9 there is a fix but In magento 2.1.8 I am still unable to find any. is there any fix available ?


texts: My Categories and search block is not showing in Magento 2.3.0

texts: I only change the name of categories in Magento 2.3.0 and after this changing my search block, add to cart and categories not will show in my website main page.


texts: Deleted the meta keywords tag in head.phtml - but still showing up

texts:
I deleted the meta keyword tag from the head.phtml in both the

app/design/frontend/base/default/template/page/html/head.phtml

AND

app/design/frontend//default/template/page/html/head.phtml

Yet it still shows up on the products page? I want to get rid of the keyword tags on every product. I have deleted the cache both in the back end and manually yet it still shows up.


texts: How do I override tier pricing when using a discount code?

texts:
I need help overriding the tier pricing when a discount code is applied to certain SKUs. For example, when customers buy 5 of a certain item, it automatically adjusts the price of the item in the cart.
I have a promo code set up for 25% off select SKUs. The problem is that these SKUs also have tier pricing. The promo code works perfectly up until a customer adds 5 to their cart. It then applies the tier pricing and the discount.
Example 1: Customer purchases a single product for $349.00. They used a promo code to receive 25% off. They save $87.25, which then reflects the new total as $261.75.
Example 2: Customer purchases the same product ($349.00 each) but they purchase a quantity of 5, which falls into the tier pricing. When added to their cart, the price changes to $332.00 each. They then could apply the promo code to receive 25% off.
We don't want them getting both the tier pricing AND the discount on the promo code. If they use the promo code, the tier pricing should be disabled. Therefore in example 2, it should be $349x5 = $1745 with 25% off, leaving their total at $1308.75.
Is there anyway around this?


texts:
is there a way to add versioning for the product image?
I'm having trouble with image caching in the site, i can't control user browser for caching but maybe i can add a versioning for my images when they are updated
something like images.jpg?1234


texts: Product Image Uploader to Preview Product M2.2.2

texts:
My goal is to have the same functionality as the "Image and Video" uploader to preview my products in a block I created.

As of right now, this is what my module looks like.

If you need any more information, just let me know! Thanks for looking.


texts: How to create custom admin page with a form in magento2 admin side?

texts: I want to create an admin side custom page with a form, also want to save those fields into a custom table


texts:
Attribute A = Attribute B + 10

Is there anyway to create something like the above?  Currently, I have four attributes on which I have to perform the math manually.  I would like to just enter a value into one attribute and have the other attributes update/change/be defined pragmatically.

I don't believe I can be any clearer in my question.


texts: Magento 2.3.2 : How to send email to customer after order cancellation by admin?

texts:
I know the cancel order event order_cancel_after but how can I send cancelation e-mail to the customer when admin cancels their order from admin.

How to write a custom extension for this.

Any help would be appreciated.

Thanks in advance..!


texts: How to Create a field in the UiForm in which the csv file can be uploaded and read on the submit to store its fields in database in magento2?

texts: How to Create a field in the UiForm  in admin panel in which the csv file can be uploaded and read on the submit to store its fields in database  in magento2?


texts: On indexing catalog_product_price its just struck in Magento 2

texts:
On indexing the catalog_product_price it will be in processing mode from 24 hr and still not completed.
On checking show processlist it shows this query
INSERT INTO catalog_product_index_price_replica (entity_id, customer_group_id, website_id, `
But on checking this table catalog_product_index_price_replica there is no insertion there.
So how would i know if it is running or just struck.


texts: How to properly replace database in Magento 2?

texts:
I want to connect my Magento 2 to a new database, I've updated the /app/etc/env.php
What other steps do I need to take


texts: Why are contact numbers not coming through with orders?

texts:
Im getting a weird error with some of my magento orders, when a customer runs through the checkout they are required to put a contact number when filling out there delivery details, but for some reason on the back end some orders have contact numbers and some orders don't, this can be very frustrating as we require the contact number to help with the delivery of there items, any ideas why this could be happening?

I have guest checkout enabled, but even that requires you to put in a number.


texts: How to resize existing product images backend?

texts:
I am Using third-party extension to Import product images https://www.magebees.com/magento-import-export-simple-products-configurable-products-bundle-products-group-products-downloadable-products.html

It is working But Problem is there is no limit of image size. Any Dimension image uploads(import) successfully.
I have all images around size 22mb and width and height (1132832x21212).

Store frontend gives fetal error memory allocation limit.
Please help me Is there any function of import media images before I change Images dimension and size.
Or what to do with existing products backend import successful Images (Can Resize it).

Thanks;


texts: Gone scripts and skins while installing Magento 1.9.x on Docker

texts:
While I installing magento, all scripts and skins are missing.

If I check logs, I can see this problem:

[error] 6#6: *9 open() "/var/www/skin/install/default/default/favicon.ico" failed (13: Permission denied), client: 172.23.0.1, server: docker.test, request: "GET /skin/install/default/default/favicon.ico HTTP/1.1", host: "docker.test", referrer: "http://docker.test/index.php/install/"

How can I solve this issue?
I installing magento with dokcer-compose.yml (Nginx + MySQL + PHP7.2-fpm)


texts: Adding an image only if tier price is shown

texts:
I have a table which show the associated products. Some of these products have special tier price (buy 10 and get 10% off). I want to display a sale image if a tier price is shown however i am not very experienced with php so i am struggling a bit.

I tried

        <?php if ($this->getCanShowProductPrice($_item)): ?>
        <?php echo $this->getPriceHtml($_item, true) ?>

        <?php echo $this->getTierPriceHtml($_item)?>

        <?php endif; ?>

But that just show the icon on every product even without a tier price. So i figured i would need an IF statement to check if the product has a tier price and if true then display the image. So i tried this.

                <?php if ($this->getCanShowProductPrice($_item)): ?>
                <?php echo $this->getPriceHtml($_item, true) ?>

                <?php echo $this->getTierPriceHtml($_item)?>
                <?php if ($this->getTierPriceHTML = True): ?>
                 <?php endif; ?>
                <?php endif; ?>

But that just had exactly the same outcome (image displayed on all products). I am not sure what else to try so if you could help it would be brilliant.

Thanks!!!


texts: Cannot create credit memo for orders placed by Guests (NON LOGGED IN customer group)

texts:
I am using Magento CE 1.7.0.2. Now the problem I face is that, if I attempt to create a credit memo for an order which is placed by a guest (ie. NON LOGGED IN customer group), it shows an error as follows:

"Customer email is required."

Although I can create an Invoice without any issue. The payment methods are:

Check /Money Order
Express NAB Transact (Authorize and Capture mode)
Paypal Checkout

The only extension I am using that affects the checkout procedure is "Customer Credit Extension" from Magestore.

So is it because of that extension I am using or some other magento problem??

Any help will be appreciated!!


texts: Add "Plus VAT" label but only on products with VAT

texts:
My 1.9.4 site is predominantly Food so does not incur VAT.
I have my Site set to show Prices without VAT.
I do not want to show prices with and without VAT.
I'd like to add a label to the end of the Price reading "+VAT" but only if that product is taxable.

Any suggestions will be gratefully received.
Kevin


texts: Magento 2: Removing Layered Navigation stops filters working

texts:
I am developing a custom theme which does not display the layered navigation filters, so I edited my catalog_category_view.xml adding the instruction:

<referenceBlock name="catalog.leftnav" remove="true" />

Removing the filters stops the layered navigation to work properly. If I visit the URL http://myurl.com/category-url-key?attribute_code=10 the site shows every product belonging to category-url-code, ignoring the filter attribute_code=10.

How do I make the layered navigation work without showing the layered navigation filters?


texts: Refering to this piece of docs: http://devdocs.magento.com/guides/v2.1/config-guide/cache/cache-priv-priv.html, is it possible to put some private content into page which is public and it will not make whole page not cacheable? In other words to reload only PART of page dynamically, not invalidating a cache? Is it the way from docs above?


texts: Magento Redirect from Observer goes into Infinite Loop

texts:
My event code in config.xml

<events>
          <controller_action_predispatch>
            <observers>
              <Test_Redirect_Model_Observer>
                <type>singleton</type>
                <class>redirect/observer</class>
                <method>redirect</method>
              </Test_Redirect_Model_Observer>
            </observers>
          </controller_action_predispatch>
        </events>

My Observer.php Code

class Test_Redirect_Model_Observer extends Varien_Event_Observer{

    public function redirect($observer){

        $session = Mage::getSingleton("customer/session");

        try{

            if($session->isLoggedIn()){

                $someUrl = "SOME URL";
                Mage::app()->getFrontController()->getResponse()->setRedirect($someUrl)->sendResponse();
                exit;

            }else{

                $someOtherUrl = "SOME OTHER URL";
                Mage::app()->getFrontController()->getResponse()->setRedirect($someOtherUrl)->sendResponse();
                exit;
            }
        }

        catch(Exception $e) {
        Mage::logException($e);
       }

   }

}

Please guide me on why I am stuck in Infinite Loop when redirect from Observer.

Thanks.


texts:
I have enabled Gift Option message in Magento 2. But upon viewing the checkout/cart it seems weird that the Gift Option is not in their correct location. How can I fix this? What xml should I modify? Below is how it looks like

Notice the Gift Option of the first item is located in the second item. While the gift option of the last item is located at the bottom most part. How can I fix this? Is it an xml fix?


texts: Adding custom search term into Search Result

texts:
I have a CMS page called "Store Locator" and I noticed a lot of people use the search functionality to search for this page, but Magento search does not index this page since it's not a product or category.

Is there a way I could add my CMS pages into the search result of Magento?


texts: simple products dynamics price display base on tier pricing and quantity

texts:
Is there any reference that I can follow, so that my magento can update the price base on customer input quantity VS tier pricing.

qty 1 = 10 each
qty 3 = 8 each
qty 10 = 5 each

let say I have above inserted into the advance pricing table
but when customer insert qty, the total amount is base on the base price calculation.
Please help


texts: How to add a custom function to product page (backend)

texts: I created a new tab on product information page, it has 6 text box in it (each one with a different link). My goal is to add a simple button in it that show some additional info to the links through a php post. How can i do it?


texts: How to upgrade Cybersource compatible with SHA-2 Magento 1.6

texts: I have received email notifications from Cybersource saying in order to enhance security between server to server communication. They will move away from SHA-1 to SHA-2, does anyone know what I have to do for this upgrade?


texts: Rogue rows being removed from cataloginventory_stock_status

texts:
We have around 180,000 products and are having issues with salable quantity not matching quantity.

We've narrowed it down to an issue with the table "cataloginventory_stock_status"

When we reindex cataloginventory_stock, this table is populated correctly with 180,000 rows.

However this table is being reduced by about 1,000 rows every 2-3 minutes.

If I wait 10 minutes we are around 172,000 rows.

I've turned off the crons but this is still happening.

I've no clue what would be causing rows to drop off.

Has anyone seen this issue or have any tips on identifying what exactly is happening?


texts: Show layered navigation even when Anchor = NO (magento 1)

texts:
does anybody know a way to show the layered navigation even when set anchor = NO
Tried to find a solution trough google but it looks like no solution is available.


texts:
i want to use one childhtml block to another page, see below screen shot you will get more idea about my question.

            page/1column.phtml

            Free Legal Advice

<flquestion_answer_index>
    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
    <reference name="head">
                <action method="setTitle"><title>Free Legal Advice</title></action>
    </reference>
    <reference name="content">
        <block type="flquestion/question_getadvice" name="answer.post"  template="federallawyer/flquestion/form/answer/advice.phtml">

        </block>
    </reference>
</flquestion_answer_index>


texts:
I need to get shipping price programatically. I thought I'd use something like this (inspiration):
$scopeConfig = $objectManager->get('\Magento\Framework\App\Config\ScopeConfigInterface');
$activeCarriers = $objectManager->create('Magento\Shipping\Model\Config')->getActiveCarriers();

foreach($activeCarriers as $carrierCode => $carrierModel) {
    $options = array();

    if ($carrierMethods = $carrierModel->getAllowedMethods()) {
        foreach ($carrierMethods as $methodCode => $method) {
            $code = $carrierCode.'_'.$methodCode;
            $options[] = array('value'=>$code,'label'=>$method);
        }
        $carrierTitle = $scopeConfig->getValue('carriers/' . $carrierCode . '/title');
    }

    $methods[] = array('value' => $options, 'label' => $carrierTitle);
}

But that does not help much, because I know which shipping methods I'm using. I just need to know details of WebShopApps Matrix Rate which has been saved in webshopapps_matrixrate table. I.E. I need just the content of the SQL:
select * from webshopapps_matrixrate where website_id = ID;

I also see records with path = carriers/matrixrate/import in core_config_data, but that does not help much (value = 1590180257,matrixrates.csv,text/csv,/tmp/php7BEvw0,0,361).


texts: How to set product store view fields to default with use_default[]?

texts:
I see the use_default[] field name used in the product editor page source, and figure it would be a fantastically simple and direct way of achieving precisely what it does via the API, rather than having to do so in the admin UI for each product individually, especially being that Magento is so painfully slow. However that doesn't actually seem to work.

Anyone know how to set which product fields are to inherit default values per store view via the API in PHP?


texts: Why are there no options for this configurable product?

texts:
Im having some trouble with some configurable products, for some reason on the backend this configurable product has 56 associated products attached too it, but when you view it on the front it doesn't show any options at all.

Front End:

Back End:

and before you ask the quantities is set at 0, it is enabled, its in the correct store, and the visibility is set to catalog, search.

Its annoying because its not viewable on the front end when looking through the catalog but its viewable when you put in the url.

Any ideas would be helpful.


texts: How to extend Venia theme rather than overriding it

texts:
In the latest version of PWA Studio most Venia components is separated to UI library.

See the git commit: https://github.com/magento/pwa-studio/commit/fa0a4c9b45757c272f6b745c546e8b61b1da40db

What is the good approach to extend the venia theme ?

I have had a look at fallback studio but it seems out of date with the latest version
https://github.com/Jordaneisenburger/fallback-studio


texts: Magento 2.2.2 - Change Cart page design as per Luma Theme

texts:
My custom theme inherits from Blank and the cart page is seen as below

Tried below code and placed under Vendor/Themename/Magento_Checkout/layout/checkout_cart_index.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="checkout.cart.container">
            <container name="cart.discount" label="Cart Discount Container" htmlTag="div" htmlClass="cart-discount" after="-" />
        </referenceContainer>
        <move element="checkout.cart.crosssell" destination="checkout.cart.container" after="-" />
        <move element="checkout.cart.coupon" destination="cart.discount" />
        <move element="checkout.cart.shortcut.buttons" destination="checkout.cart.methods" after="checkout.cart.methods.onepage.bottom"/>
    </body>
</page>

How do I achieve below like Luma theme

Changing edit button to icon as per luma theme
Change remove item button to icon as per luma theme
Remove continue shopping button
Remove Clear shopping cart button


texts:
we are using MAgento 2.1 and elastic suite ,rediss cache and varnish cache 4

so we have 60 K products in our site and recently we updated attribute in magento2 admin from that day onwords we are getting error like

  Error 503 Backend fetch failed
  Backend fetch failed
  Guru Meditation:
  XID: 45654
  Varnish cache server

so we updated varnish config with below :

-p http_resp_hdr_len=65536 \
 -p http_resp_size=98304 \

then also same error trigger so please do the needful


texts: What is best practice for inheriting less files from a custom theme?

texts: I have two themes (theme1, theme2). theme1 inherits from luma, theme2 inherits from theme1. What is best practice for theme2 to inherit theme1's custom less styles? Currently I am naming my custom less files _theme1.less and _them2.less and for theme2 to inherit _theme1.less, I've added @import '_theme1.less' to the _sources.less file for theme1 which overrides the luma _sources.less file, then theme2 then inherits the _sources.less file from theme1 which imports _theme1.less. This is a solution that works and is infinitely extensible but I feel like it's not exactly best practice.


texts: Magento 2: Intercept controller's JSON response

texts:
I'm trying to intercept a controller returning a JSON object of Magento\Framework\Controller\Result\Json class. The problem is that no matter if I use a plugin or a preference to "catch" the controller response right after it's created to do what I want with it, I always end up with this Json object, and its only public method inherited from Magento\Framework\Controller\AbstractResult is the renderResult method (apart from some setters, which won't help me at all).The JSON string is also a protected property, so I can't access it directly.

So, how can I get the JSON string from the response object? Of course, I could just replicate some of the controller's logic that creates it and use that instead, but I'm trying to avoid this method if possible.

I'm using the develop branch. I based my code on the 0be91a5 commit (Merge pull request #14 from magento-vanilla/PR), but I checked the latest commit (currently it's 74f9337 Merge pull request #81 from magento-firedrakes/MAGETWO-44741) and there are no changes in the Json and AbstractResult classes.


texts: Customer model file override issue in Magento2

texts:
I am trying to override customer model file below is the code of my di.xml

 <preference for = "Magento\Customer\Model\AccountManagement" type = "Vendor\Module\Model\Rewrite\Customer\AccountManagement" />

Below is code for my model file

 <?php
 namespace Vendor\Module\Model\Rewrite\Customer;

 use Magento\Customer\Api\Data\CustomerInterface;

class AccountManagement extends \Magento\Customer\Model\AccountManagement
{

public function createAccountWithPasswordHash(CustomerInterface $customer, $hash, $redirectUrl = '')
{
    // This logic allows an existing customer to be added to a different store.  No new account is created.
    // The plan is to move this logic into a new method called something like 'registerAccountWithStore'
    if ($customer->getId()) {
        $customer = $this->customerRepository->get($customer->getEmail());
        $websiteId = $customer->getWebsiteId();

        if ($this->isCustomerInStore($websiteId, $customer->getStoreId())) {
            throw new InputException(__('This customer already exists in this store.'));
        }
        // Existing password hash will be used from secured customer data registry when saving customer
    }

    // Make sure we have a storeId to associate this customer with.
    if (!$customer->getStoreId()) {
        if ($customer->getWebsiteId()) {
            $storeId = $this->storeManager->getWebsite($customer->getWebsiteId())->getDefaultStore()->getId();
        } else {
            $storeId = $this->storeManager->getStore()->getId();
        }
        $customer->setStoreId($storeId);
    }

    // Associate website_id with customer
    if (!$customer->getWebsiteId()) {
        $websiteId = $this->storeManager->getStore($customer->getStoreId())->getWebsiteId();
        $customer->setWebsiteId($websiteId);
    }

    // Update 'created_in' value with actual store name
    if ($customer->getId() === null) {
        $storeName = $this->storeManager->getStore($customer->getStoreId())->getName();
        $customer->setCreatedIn($storeName);
    }

    $customerAddresses = $customer->getAddresses() ?: [];
    $customer->setAddresses(null);
    try {
        // If customer exists existing hash will be used by Repository
        $customer = $this->customerRepository->save($customer, $hash);
    } catch (AlreadyExistsException $e) {
        throw new InputMismatchException(
            __('CHANGE THIS TEXT FROM DEFAULT TO CUSTOM ONE.')
        );
    } catch (LocalizedException $e) {
        throw $e;
    }
    try {
        foreach ($customerAddresses as $address) {
             if ($address->getId()) {
                $newAddress = clone $address;
                $newAddress->setId(null);
                $newAddress->setCustomerId($customer->getId());
                $this->addressRepository->save($newAddress);
             } else {
                $address->setCustomerId($customer->getId());
                $this->addressRepository->save($address);
            }
        }
    } catch (InputException $e) {
        $this->customerRepository->delete($customer);
        throw $e;
    }
    $customer = $this->customerRepository->getById($customer->getId());
    $newLinkToken = $this->mathRandom->getUniqueHash();
    $this->changeResetPasswordLinkToken($customer, $newLinkToken);
    //$this->sendEmailConfirmation($customer, $redirectUrl);

    return $customer;
    }
 }

Above code is not working for me, thrwoing below error.

  Notice: Undefined property: Vendor\Module\Model\Rewrite\Customer\AccountManagement\Interceptor::$storeManager in app/code/Vendor/Module/Model/Rewrite/Customer/AccountManagement.php on line 42

All i need to do is i should stop sending emails for new customer registrations. so i have commented out this line

  $this->sendEmailConfirmation($customer, $redirectUrl);

Please anyone suggest on this. Thanks in Advance.


texts: Add store view column to Attribute Grid in admin panel

texts:
to list the attribute of a specific store view, I added below code to .../Attribute/Grid.php to _prepareColumns function, but did not work.

if (!Mage::app()->isSingleStoreMode()) {
            $this->addColumn('store_id', array(
                'header'        => Mage::helper('cms')->__('Store View'),
                'index'         => 'store_id',
                'type'          => 'store',
                'store_all'     => true,
                'store_view'    => true,
                'sortable'      => false,
                'filter_condition_callback'
                                => array($this, '_filterStoreCondition'),
            ));
        }


texts: What are the main tables that updated when we creating new product in magento?

texts: I need to know SQL Table Structure for adding new product.I don't want to any sql queries only want to know effecting tables names.


texts: Customize information in sales order email

texts:
I have a custom customer/address attribute store_id, I want to add it in my  Shipping Information: in sales email template, I know that currently it gets shipping address from

app/code/core/Mage/Sales/Model/Order.php

in function

 public function getShippingAddress()
{
    foreach ($this->getAddressesCollection() as $address) {
        if ($address->getAddressType()=='shipping' && !$address->isDeleted()) {
            return $address;
        }
    }
    return false;
}

Currently my Address look like this

Abdul Ghaffar, Street 10
Islamabad, Punjab, 44000
Pakistan
T: 123456789

I am unable to find where this format is being created, I want to look address like

store_id -
Abdul Ghaffar, Street 10
Islamabad, Punjab, 44000
Pakistan
T: 123456789

where store_id is my custom attribute.


texts: Magento 1.9.2.2 Upgrade from Magento Downloader returned conflict error

texts:
What can be the reason for the following error when upgrading through Magento Connect Manager? I was upgrading from 1.9.2.1 to 1.9.2.2

Package community/Interface_Adminhtml_Default 1.9.2.2 conflicts with: community/Mage_All_Latest 1.9.2.1
Package community/Interface_Frontend_Default 1.9.2.2 conflicts with: community/Mage_All_Latest 1.9.2.1
Package community/Interface_Install_Default 1.9.2.2 conflicts with: community/Mage_All_Latest 1.9.2.1

and so on.

I've tried via ssh like this

chmod +x mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage sync
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall

It returned several errors like

scandir(): (errorno 2) No such file or directory in /pat/to/the/server/downloader/lib/Mage/Connect/Packager.php on line 243

and then it is finished with success.

What experience did you have?


texts: Magento 2 Order Collection + Customer Collection

texts:
I want to make a PHP file to get Orders and Customers from a Magento 2 based webshop (like exporting). I have a full code for Magento 1, but for M2 I have tried a lot of things.

I also needed this function for Products but now I have this.

If anybody can add a full code for Orders and Customers I would be glad, if I found one I will paste it.

Here is the code to get products, base on this answer: https://magento.stackexchange.com/a/91193/34384

$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
\Magento\Framework\Profiler::start('session_start');
use \Magento\Framework\AppInterface as AppInterface;
use Magento\Framework\App\State as State;
use \Magento\Framework\App\Http as Http;
use Magento\Framework\ObjectManager\ConfigLoaderInterface;
use Magento\Framework\App\Request\Http as RequestHttp;
use Magento\Framework\App\Response\Http as ResponseHttp;
use Magento\Framework\Event;
use Magento\Framework\Filesystem;
use Magento\Framework\App\AreaList as AreaList;

abstract class Magento_ClearAdmin_Abstract_getProducts implements AppInterface
{
    public function __construct(
        State $state,
        \Magento\Framework\ObjectManagerInterface $objectManager,
        Event\Manager $eventManager,
        AreaList $areaList,
        RequestHttp $request,
        ResponseHttp $response,
        ConfigLoaderInterface $configLoader,
        Filesystem $filesystem,
        \Magento\Framework\Registry $registry
    ) {
        $state->setAreaCode('frontend');
        $this->_state = $state;
        $this->_objectManager = $objectManager;
        $this->_objectManager->get('Magento\Framework\Registry')->register('isSecureArea', true);
        $this->_eventManager = $eventManager;
        $this->_areaList = $areaList;
        $this->_request = $request;
        $this->_response = $response;
        $this->_configLoader = $configLoader;
        $this->_filesystem = $filesystem;
        $this->registry = $registry;
    }
    public function launch()
    {
        $this->run();
        return $this->_response;
    }
    public function catchException(\Magento\Framework\App\Bootstrap $bootstrap, \Exception $exception)
    {
        return false;
    }
    abstract public function run();
}

class getProducts extends Magento_ClearAdmin_Abstract_getProducts
{

    public function run()
    {
        return $this->getProductsXML();
    }
    private function getProductsXML()
    {
        $products = $this->_objectManager->create('\Magento\Catalog\Model\Product');
        $products = $products->getCollection()->addAttributeToSelect('name');
        foreach($products as $product)
        {

            ....

        }
    }
}


texts: Magento 2 - Add a new field in checkout address form js error

texts:
Magento version: 2.2.2

I need to add a custom field in address form on checkout page. So i did what is described on magento documentation:
http://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_new_field.html

Everything works ok, but when i complete all informations and press the next button to go to payment methods, an error ocurred in js:

"Cannot read property 'items' of undefined" on Magento_Checkout/js/model/totals.js

Any idea why ?


texts: Multiple attributes with same (identic) values - inheritable?

texts:
I am about to set up an online store and I am kinda "testing" if magento (1.7., Community Edition) fits my needs. I think I got the idea behind categorizing and attributing products. But I have a question to the attributes concerning products - or in detail: for configurable products.

Is it possible to "inherit" attribute values (options) from another existing attribute?

I'll give you an example to visualize my question:

Let's say we sell boxes. We would have three different types of boxes:

uni-color boxes ("box-color")
boxes with a seperate "top-color"
boxes with a special printing on it, which has its own color ("highlight color")

To assign colors to box type #1, I would have the possible values

black,
white,
orange.

Box type #2 might come as

black box / black top (it might seem redundant, but there is a difference to uni-colored boxes),
black box / white top,
black box / orange top,
white box / black top,
white box / white top,
white box / orange top,
and so on.

And finally, box type #3 might come as

black box / black top / black highlight,
black / white / orange,
black / black / white,
etc.

I think you get the idea.

I would like to have one attribute of color-options which I would maintain (like add new colors, delete old ones, etc.) - and use it as all three different types of configurable color sets.

To be able to create configurable products I would add the color-attribute to my special "boxes" attribute set(s). But when it comes to the two-colored-boxes, I am not able to add the color attribute a second time.

Is there any other (simple) way to achieve this? Since I am new to Magento I would not like to dig too deep into the code or even want to develop a module (?).

Thanks in advance, I appreciate your answers :-)


texts:
I have  updated the logo  of the website and it is not working on the mobile.
I have searched a lot on the web but i didn't got any solution. Please help me in resolving this.


texts:
Need help configuring Magento2 to use memcached for session storage on Ubuntu 16.04 running PHP7.0.4 FPM with php7.0-memcached build from php-memcached-dev github. I wonder what went wrong this time. :D

From phpinfo:

memcached support enabled
Version 3.0.0b1

My env.php:

'session' =>
   array (
      'save' => 'memcached’,
      'save_path' => 'localhost:11211',
),

I always get this error when following Magento2 docs to configure Magento2 to use memcached in app/etc/env.php:

stderr: "NOTICE: PHP message: PHP Parse error:  syntax error, unexpected 'save_path' (T_STRING), expecting ')'

References:

http://devdocs.magento.com/guides/v2.0/config-guide/memcache/memcache_magento.html
https://github.com/php-memcached-dev/php-memcached


texts: Disallowing Free Shipping Rule if promo reduces cost to below minimum amount

texts: We have a free shipping promo on international orders $100 and over.  We also have free shipping on all domestic orders.  My question being, on international orders how can I set up the rule so that if the total is under $100 after the discount, they don't get free shipping?  Ex:  We run a Holiday Promo for 20% off store wide, item is regularly $100, with the promo the new total is $80.  Since that new total is under $100, I would like the free shipping rule to be unavailable to this customer.


texts: magento backend not access of After installation

texts:
I install magento on window with Xampp and when I access backend it show black window can any body help me thanks in advance.

https://i.stack.imgur.com/ZGFs2.png


texts: DI compile step fails after update to 2.3.5

texts:
Using Magento Cloud, the DI compile step keeps failing after upgrading from 2.3.3 to 2.3.5 via composer and pushing the changes up.

The error is the same every time I've tried, which is:

PHP Fatal error:  Declaration of Magento\PageBuilder\Model\Dom\NodeList::item($index) : ?Magento\PageBuilder\Model\Dom\Adapter\ElementInterface must be compatible with Magento\PageBuilder\Model\Dom\Adapter\NodeListInterface::item(int $index): ?Magento\PageBuilder\Model\Dom\Adapter\ElementInterface in /app/vendor/magento/module-page-builder/Model/Dom/NodeList.php on line 19

The only difference in declaration seems to be the "int" type declared for the $index parameter in the adapter interface. But both of the referenced files seem to exist in the same composer package (magento/module-page-builder) so I am a bit confused about how to solve it.

The version of module-page-builder that composer installed is 1.3.1.


texts:
I was working on a user authentication within an App i'm building. The idea is that I will have customers login via the OAuth of Magento and afterwards it must get the Customer_id of that user.

But the problem now is that after the login the browser redirects me to /customer/account/ instead of the callback URL I defined.

The reason I need the customer_id is that I have to get the orders of that customer with a SoapClient I wrote (which works but the ID is hard coded now).

I used the example for Retrieve the list of products for Customer user with OAuth authentication on: http://devdocs.magento.com/guides/m1x/api/rest/authentication/oauth_authentication.html


texts:
How can i filter getStoreCategories() collection by array of categories id?

this is my code

$category_list = array(764,765,766,768,779,767,772,769);
$obj = new Mage_Catalog_Block_Navigation();
$storeCategories = $obj->getStoreCategories();

I need to loop only categories witch id is in $category_list array


texts: Magento Extension for vendor verification

texts:
I'm developing an extension for vendor verification. What i want to develop is to get input from vendor i-e token and validate that input through curl response if the response matches the token then save the token in database.My extension structure.

When i clicked save config button the api token field is getting saved in core_config_data table.
I want to know what steps should i take now to develop this extension. where should i write the validation code in model or controller.


texts: Magento 2: Change per page option for customer, Order & product Admin Grid

texts:
As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid.

I override the below files:

vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml
vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml

And Changed content inside tag:

From:

<paging name="listing_paging">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="storageConfig" xsi:type="array">
                    <item name="provider" xsi:type="string">sales_order_grid.sales_order_grid.listing_top.bookmarks</item>
                    <item name="namespace" xsi:type="string">current.paging</item>
                </item>
                <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>
            </item>
        </argument>
    </paging>

To:

<paging name="listing_paging">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="storageConfig" xsi:type="array">
                        <item name="provider" xsi:type="string">customer_listing.customer_listing.listing_top.bookmarks</item>
                        <item name="namespace" xsi:type="string">current.paging</item>
                    </item>
                    <item name="selectProvider" xsi:type="string">customer_listing.customer_listing.customer_columns.ids</item>

                    <item name="sizesConfig" xsi:type="array">
                        <item name="value" xsi:type="string">25</item>
                        <item name="minSize" xsi:type="string">1</item>
                        <item name="maxSize" xsi:type="string">100</item>
                        <item name="options" xsi:type="array">
                            <item name="25" xsi:type="array">
                                <item name="value" xsi:type="string">25</item>
                                <item name="label" xsi:type="string">25</item>
                            </item>
                            <item name="30" xsi:type="array">
                                <item name="value" xsi:type="string">30</item>
                                <item name="label" xsi:type="string">30</item>
                            </item>
                            <item name="50" xsi:type="array">
                                <item name="value" xsi:type="string">50</item>
                                <item name="label" xsi:type="string">50</item>
                            </item>
                            <item name="100" xsi:type="array">
                                <item name="value" xsi:type="string">100</item>
                                <item name="label" xsi:type="string">100</item>
                            </item>
                        </item>
                    </item>
                </item>
            </argument>
        </paging>

But it's not helpful. What am I doing wrong here?


texts: Magento 2 add custom filter to grid for date

texts: We have a requirement to add a custom filter for date field. So that we can filter using dateRange filter and also by selecting from a dropdown which has these values (today, this week, tommorow) etc. In Magento 1 we did this by creating custom class but in Magento 2 I am not getting how can I filter my date in such a manner. Below is the image for same. Can anybody suggest me on the same?


texts: Magento 2 Email Template If Shipping Method Then Do Something

texts:
I have a custom shipping module and I am trying to execute some information in an email template based on the shipping method chosen.  I have tried things like:
{{if order.getShippingDescription() == 'Shipping Method - Shipping Title'}}

{{trans "Works!"}}

{{/if}}

How can I target the shipping method and show information based on that method in the email template?
UPDATE
I have tried creating a plugin in Vendor/Module/Plugin/Order/Email/Container/EmailCode.php:
class EmailCode
{
    public function beforeSetTemplateVars(\Magento\Sales\Model\Order\Email\Container\Template $subject, array $vars)
    {
        /** @var Order $order */
        $order = $vars['order'];
        $method = $order->getShippingMethod();

        $vars['shipping_code'] = $method === 'freedelivery_freedelivery';

        return [$vars];
    }
}

and I added in etc/frontend di.xml:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Sales\Model\Order\Email\Container\Template">
        <plugin name="email.shipping.code" type="Vendor\Module\Plugin\Order\Email\Container\Template\EmailCode" sortOrder="100"/>
    </type>
</config>

and then this in my email template:
{{if shipping_code}}

{{trans "Email Code Works"}}

{{/if}}

And it didn't work.  Any help is appreciated!
Thanks,
Stan


texts:
For Magento 1.9.1 Color Swatches, I wonder if it support
Multiple Swatches that both lead to an image change?

For example, my product is a "Pen with a rubber attached", can i make 2 color swatch one for the pen color and the second swatch for the rubber color.
And user can see the correct color combination after the 2 swatches are selected?

many thanks!