texts: Issues installing quickbooksdesktop integration extension

texts:
I am currently trying to install this extension into my magento 2.1.7 store. I unzipped the file and uploaded in the app/code directory of my site. I went through the steps and ran the following commands:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy.

Then I ran the compile command and am getting the following error:

Errors during compilation:

Magenest\QuickBooksDesktop\Controller\Connection\Start
Incorrect dependency in class Magenest\QuickBooksDesktop\Controller\Connection\Start

in /home/cartcybermarkpro/public_html/app/code/Magenest/QuickBooksDesktop/Controller/Connection/Start.php

\Magento\Framework\Controller\Result\RedirectFactory already exists in context object

Total Errors Count: 1

looks like the same error more than once. The extension partially shows in my backend. I am not sure what I am missing as their support isn't very helpful or responsive. Any ideas how to fix this? I need to get this installed today

<?php
/**
* Copyright Â© 2015 Magenest. All rights reserved.
* See COPYING.txt for license details.
*
* Magenest_QuickBooksDesktop extension
* NOTICE OF LICENSE
 */
namespace Magenest\QuickBooksDesktop\Controller\Connection;

use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\Module\Dir\Reader;
use Magento\Framework\Module\Dir;
use Magenest\QuickBooksDesktop\WebConnector\Handlers\Queue ;
use Zend_Soap_Server as ZendSoapServer;
use Magento\Framework\Webapi\Rest\Request;
use Magento\Framework\Controller\Result\RedirectFactory;

/**
 * Class Start
 * @package Magenest\QuickBooksDesktop\Controller\Connector
 */
abstract class Start extends Action
{
    /**
     * @var RedirectFactory
     */
    protected $redirectFactory;

    /**
     * @var string
     */
    protected $_wsdl;

    /**
     * @var Queue
     */
    protected $_handlers;

    /**
     * @var ZendSoapServer
     */
    protected $_soapServer;

    /**
     * @var Request
     */
    protected $_requestWebapi;

    /**
     * Start constructor.
     * @param Context $context
     * @param Reader $configReader
     * @param Queue $handlers
     * @param ZendSoapServer $soapServer
     * @param RedirectFactory $redirectFactory
     * @param Request $request
     */
    public function __construct(
        Context $context,
        Reader  $configReader,
        Queue $handlers,
        ZendSoapServer $soapServer,
        RedirectFactory $redirectFactory,
        Request $request
    ) {
        $wsdlBasePath = $configReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magenest_QuickBooksDesktop') . '/wsdl/';
        $this->_wsdl = $wsdlBasePath . 'QBWebConnectorSvc.wsdl';
        $this->redirectFactory = $redirectFactory;
        $this->_handlers = $handlers;
        $this->_soapServer = $soapServer;
        $this->_requestWebapi = $request;
        parent::__construct($context);
    }

    /**
     * @return $this
     * @throws \Magento\Framework\Exception\InputException
     * @throws \Zend_Soap_Server_Exception
     */
    public function execute()
    {
        $method = $this->_requestWebapi->getHttpMethod();
        if ($method != Request::HTTP_METHOD_POST) {
            $resultRedirect =$this->redirectFactory->create();

            return $resultRedirect->setPath('/');
        }

        $soapClass = $this->_soapServer;
        $soapClass->setWsdl($this->_wsdl);
        $soapClass->setObject($this->getHandler());
        $soapClass->handle();
    }

    /**
     * @return mixed
     */
    protected function getHandler()
    {
        return $this->_handlers;
    }
}


texts:
I'm trying to create a new page to my module without success. I have created a module with the contents:

  app\code\local\CompanyName\Insignias\etc\config.xml

<config>
    <modules>
        <CompanyName_Insignias>
            <version>0.0.1</version>
        </CompanyName_Insignias>
    </modules>
    <frontend>
        <routers>
            <insignias>
                <use>standard</use>
                <args>
                    <module>CompanyName_Insignias</module>
                    <frontName>insignias</frontName>
                </args>
            </insignias>
        </routers>
        <layout>
            <updates>
                <insignias>
                    <file>insignias.xml</file>
                </insignias>
            </updates>
        </layout>
    </frontend>
  <...>
</config>

  app\code\local\CompanyName\Insignias\controllers\IndexController.php

<?php

class CompanyName_Insignias_IndexController extends Mage_Core_Controller_Front_Action {

    public function indexAction() {
        $this->loadLayout();
        $this->renderLayout();
    }

}

and

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

<?xml version="1.0"?>
<layout>
  <insignias_index_index>
    <reference name="content">
      <block type="insignias/index" name="insignias_index" template="insignias/index.phtml" />
    </reference>
  </insignias_index_index>
</layout>

I have created the index.phtml file at app/design/frontend/base/default/template/insignias/index.phtml with a <?php echo "worked" ?> to test it, but when I try to access domain/index.php/insignias it shows me all the default magento blocks, but without my echo content, just a blank page in the content

Can someone help me?

edit:


texts: "Prefix is a required field" on logged in checkout

texts:
I have a magento with a default onepage checkout.

When a fresh registered, active customer tries to checkout I get the message "Prefix is a  required field" no matter if the customer has already given his prefix or not.

As the prefix is mandatory for the project, setting it to "not required" is not an option.

How do I get magento to use the already given prefix and not throw this error?

See screenshot for the full situation. This happens no matter if the customer already has an address or not.


texts:
I am very new to MAGENTO, I have build a brand new extension. So i have created form now i want to send all details in html to admin as well as guest user.I am using below code for it.

$mail = new Zend_Mail();
$mail->setBodyText($mydata);
$mail->setFrom($guestEmail);
$mail->addTo('test@gmail.com', 'Some Recipient');
$mail->setSubject('Test su');
$mail = Mage::getModel('core/email');

Thanks for help.


texts:
I  have instance of databases based on Magento admin users in AWS server.

I need to load different database after login user based on login.

I have find configuration but not find how to connect another instance after login.

Can any one have better idea how to change database instance after admin user login ?

or any chances to change database name after login.


texts: How to create/store custom order attribute

texts:
I am interested in passing additional order data from Magento to our shipping solution - ShipStation.

I need to calculate the total discount applied and store it as what I believe would be an order attribute. Once it exists, getting it into ShipStation seems relatively straight forward.

My question then would be: How would I begin to calculate and store the total discount applied to an order?


texts:
I found on Stackexchange 1 similar question from feb 2016.
The solution offered then does not work anymore.

Chrome ignores all autocomplete="xxx" tags.
The problem is that all addresses are stored wrong.

Because Magento uses 2 fields for street and number, Chrome Autocompletes it wrong.

It should be:
    Name
Street Number
Zipcode City

But Chrome makes it:
    Name
Street Number Street Number
Zipcode City

So now all variations of autocomplete="xxx" are ignored by Chrome, what can I do to prevent the wrong autocomplete?

Any help is appreciated. Thanks in advance, John


texts:
I have upgraded from 1.7.02 to 1.8.1 - Everything is working fine except when I go into admin and click Catalog>Manager Categories -

I get this:

Source model "ThemeConfig/catcolumncount" not found for attribute "products_column_count"

Any thoughts on how to fix this?


texts:
I am trying to access the logged in customer's data from an observer and a helper

With the following code

 var_dump($customer = Mage::helper('customer')->getCustomer()->getData());

I get the following result

array(1) { ["website_id"]=> string(1) "1" }

Which doesn't give me information like group id or customer id.

Could anyone help


texts: Magento API - Category Create - Default Product Listing Sort by does not exist

texts:
Fatal error: Uncaught SoapFault exception: [1] Default Product Listing
  Sort by does not exist in Available Product Listing Sort By.

I cannot figure out why Magento keeps giving me this error? Using the default sort by position.

    $result = $client->catalogCategoryCreate($session, 2, array(
    'name' => $cat_name,
    'is_active' => 1,
    'available_sort_by' => array('position'),
    'custom_design' => null,
    'custom_apply_to_products' => null,
    'custom_design_from' => null,
    'custom_design_to' => null,
    'custom_layout_update' => null,
    'default_sort_by' => 'position',
    'description' => $cat_name,
    'display_mode' => null,
    'is_anchor' => 0,
    'landing_page' => null,
    'meta_description' => $cat_name,
    'meta_keywords' => $cat_name,
    'meta_title' => $cat_name,
    'page_layout' => 'two_columns_left',
    'url_key' => $cat_url,
    'include_in_menu' => 1,
));

// Print Result = New Category ID
// var_dump ($result);

return $result;

It was working perfectly fine until last Wednesday when the Schema server went down for couple of hours. Any idea how to by pass the error, or fix it?

UPDATED - Problem "Resolved"

I changed from v2 SOAP, to just plain SOAP. Had to modify the API call a bit. It appears there is a problem with v2 SOAP...

$result = $client->call($session, 'catalog_category.create', array(2, array(
    'name' => $cat_name,
    'is_active' => 1,
    'available_sort_by' => 'position',
    'custom_design' => null,
    'custom_apply_to_products' => null,
    'custom_design_from' => null,
    'custom_design_to' => null,
    'custom_layout_update' => null,
    'default_sort_by' => 'position',
    'description' => $cat_name,
    'display_mode' => null,
    'is_anchor' => 1,
    'landing_page' => null,
    'meta_description' => $cat_name,
    'meta_keywords' => $cat_name,
    'meta_title' => $cat_name,
    'page_layout' => 'two_columns_left',
    'url_key' => $cat_url,
    'include_in_menu' => 0,
)));


texts: Configurable Products - how do I get data from the first child product?

texts:
I'm trying to get a SKU from the first child item of a configurable product.

For a simple product, this works fine:

$product_id = Mage::registry('current_product')->getSku();

But on a configurable product I want it to show a SKU from a child product instead (need this for a remarketing add-in).

I'll end up with code something like the following - but this seems overly complex. Can this be simplified down a bit?

if($_product->getTypeId() == "configurable") {
    $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($_product);
    $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
    $_hassku = false
    foreach($simple_collection as $simple_product){
        if($_hassku == "false") {
            echo $simple_product->getSku()
            $_hassku=="true"
        }
    }

} else {
  $product_id = Mage::registry('current_product')->getSku();
};

If configurable, set a variable as 'false.' Do a 'foreach' - on the first one, it'll set the variable to true, and thus return only the one sku for the product.


texts: Create a Bundle Product via Magento API SOAP V2

texts:
I'm using API SOAP V2 to create products in my store (1.8.1.0) from a custom ERP. Everything is going well when I try it with simple products. But now I need create a bundle product.

I'm doing it with catalogProductCreate method, like this:

$result = $client->catalogProductCreate($session, 'bundle', '11', 'product_sku_b3',
    array(
        'categories' => array(2),
        'websites' => array(1),
        'name' => 'Product ERP b3',
        'description' => 'Product description',
        'weight' => '1.0',
        'status' => '1',
        'visibility' => '4',
        'sky_type' => '1',//It is not necessary for a simple product
        'price' => '100',
        'tax_class_id' => 1,
        'stock_data ' => array(
            'qty' => '49',
            'is_in_stock' => 1
        )
    )
);

The problem: how to create bundle options and associate products to bundle options.
In the method docs there is nothing about bundle options: http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.create.html

The attribute sku_type (dynamic or fixed) does not work too.

Any Ideas?


texts: How to access custom data from a customer session in JS file?

texts:
Is there any way to access custom data stored in a customer session from a JS file ( without Ajax call ).

Here is the code for controller:

<?php

namespace Company\Vendor\Controller\Index;

use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Customer\Model\Session;

class Index extends Action
{
    protected $_customerSession;

    public function __construct(
        Context $context,
        Session $customerSession
    ) {
        parent::__construct($context);
        $this->_customerSession = $customerSession;
    }

    public function execute()
    {
        $this->_customerSession->setMyValue('yes');
    }
}

To access the MyValue value, we can use $this->_customerSession->getMyValue();

How can I get the MyValue value in a JS file?


texts:
I'm absolute newbie at magento2.

My code:

  Block/Index.php

<?php
    namespace Vendor\Module\Block;
    class Index extends \Magento\Framework\View\Element\Template
    {

    }

  Controller/Index.php

<?php
    namespace Vendor\Module\Controller\Index;

    class Index extends \Magento\Framework\App\Action\Action
    {
        protected $_pageFactory;

        public function __construct(
            \Magento\Framework\App\Action\Context $context,
            \Magento\Framework\View\Result\PageFactory $pageFactory)
        {
            $this->_pageFactory = $pageFactory;
            return parent::__construct($context);
        }

        public function execute()
        {
            return $this->_pageFactory->create();
        }
    }

  Vendor/Module/etc/frontend/routes.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
    <route frontName="helloworld" id="helloworld">
        <module name="Vendor_Module"/>
    </route>
</router>
</config>

  etc/module.xml

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

  Vendor/Module/view/frontend/template/index/index.phtml

Helloworld

  Vendor/Module/view/layout/helloworld_index_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="content">
    <block class="Vendor\Module\Block\Index" name="index.index" template="Vendor_Module::index/index.phtml"/>
</referenceContainer>
</page>

Unfortunately Helloworld is not displaying.
Any suggestions?


texts: When we have to call a block in phtml as getBlockHtml('') or getChildHtml('')?

texts:
In this case I suppose that I can call this block in a phtml as getBlockHtml('my.name') right !

To call it as getChilHtml('my.name') what do I have to do in a xml ?

<my_handle_layout>
    <reference name="content">
        <block type="core/template" name="my.name" template="page/custom/my-template.phtml" />
    </reference>
<my_handle_layout>


texts: Show telephone number on customer dashboard

texts:
How do i display the telephonenumber on customer dashboard?

I have extended the original class to add some functions, but I can't find the right way to show customer number. I read that telephonenumber that is related to the address.

This is my class:

<?php
namespace Portail\Customer\Block;
use Magento\Customer\Model\Session;

class Info extends \Magento\Customer\Block\Account\Dashboard\Info
{

    public function testTxt(){
        return 'bonjour';
    }

    public function getTelephoneCustomer(){

        $customerData = $this->getCustomer();
        $telephone = $customerData->getDefaultShippingAddress()->getTelephone();

        return $telephone;

    }

}

When I tried to reload my page, the loading is just stop, there no error.


texts:
I'm new to Magento, with very little coding background to boot. I was hoping for some general direction with CSS customization.

I'm learning to add custom CSS rules that don't affect the default theme I have loaded into Magento. Currently, I understand that process as adding rules, via ftp, to custom.css within the theme's css directory.

Is this considered good practice within Magento?


texts:
Magento 2 in Add to Cart page Remove item not working.

After Login Add to Cart page Remove Item not working?


texts: Getting "Operation does not exist" error when trying to create RMA shipping label for Fedex

texts:
Creating shipping labels through the Enterprise_Rma module using UPS is working fine.  I'm trying to add support for Fedex now.

When I try to create the shipping label, I get an error: An error occurred while creating shipping label..

I dug in and inspected the underlying SoapClient object in Mage_Usa_Model_Shipping_Carrier_Fedex::_doShipmentRequest() and I'm seeing that the SOAP error is:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header />
    <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring xml:lang="en">Fault</faultstring>
            <detail>
                <cause>UnrecoverableInternalError</cause>
                OperationNotSupported
                <desc>Operation does not exist: {http://fedex.com/ws/ship/v10}ProcessShipmentRequest</desc>
            </detail>
        </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

What's this all about?  Does something need to be configured in the Fedex account in order to open up access to this particular API method?

UPDATE: It looks like this is because we're not yet certified to print labels in production yet.  A better error message could have saved a lot of time in figuring that out.  Also the fedex tech support email list on their site (websupport@fedex.com) has never replied to any emails I've sent there.  And when you call in, they will tell you that they don't have any access to email.  Very strange.


texts: Magento 2.3 - Validation error on shipping adress street fields

texts: I have a customised checkout that has 3 fields for street address. The first field is required but field 2 & 3 should not be. This is normally fine and the checkout works as expected. However if I return to the basket and then back to the checkout sometimes all three fields are highlighted with errors. The first one with 'this is a required field' but the 2nd and 3rd show 'Please enter less or equal 255 symbols'. How can I remove this validation from these 2 fields?


texts: Magento 2: Add custom category layout to multiple categories

texts:
I am trying to add a custom category layout to my theme. I have the standard catalog_category_view.xml and have got the update for 1 category using catalog_category_view_id_[id].xml.
I want to apply the update to multiple categories (around 30) without having to create multiple catalog_category_view_id_[id].xml for each category. Any further updates would have to be made across every file.
Is there a way to have a layout update in the design section?


texts:
I want to add js before body end tag in magento 2

i am trying this code

<body>
    <referenceContainer name="before_body_end">
        <script src="ABC_Example::js/jquery.js" />
        <script src="ABC_Example::js/custom.js"/>
    </referenceContainer>
</body>

but its not working


texts: Magento 2 handling custom field in Estimate Shipping and Tax block

texts:
I would like to know how to handle custom fields in Estimate Shipping and Tax block with help of this answer. I updated block with custom field(radio button) but I'm not sure how to handle custom field as extension attribute.
I  tried with this stack exchange answer, which shows how to handle custom field in shipping information. but it doesn't help me, as I'm not sure which actions should be used for Estimation and I don't find any documentation on handling new field in Estimate Shipping and Tax block.
Can some one guide me on this ?
Mockup:


texts: Magento 2 : Wish list of customer Using API

texts:
Get wishlist of customer using Magento 2 API.

I refereed Magento Dev but, I'm not able to find wishlist for customer.


texts: Anonymizing Magento 2.3 DB with fake data

texts:
I have tried to anonymize my Magento 2.3 DB with fake data and tried several tools. They are either too complicated or not working ...

Anyone knows of a good tool or way to replace all data with working fake data?

Thanks


texts: item count and subtotal in minicart in magento2

texts:
I want to display cart count and subtotal near Minicart. I have copied Minicart from Module_Checkout to my custom theme. It is displaying but i need use if condition for cart count if it is greater than 1 it should show items and if it is less than 1 it show item.
Here is my code.

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

         **Item**  -

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

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

<?php endif ?>


texts: How to add/delete footer links from magento 2.0.9 admin

texts:
I am new to magento. I want to add a new link to the footer.

In some older versions I could see a menu called CMS through which admin can add footer links. But nothing like that is seen in 2.0.9 version.

I referred many tutorials which says about direct editing of default.xml file.

Is it possible to add a new footer link via admin?

Thanks in advance.


texts: Ho do I stop SLAVA YURTHEV from sending messages to our back end Magento administration page?

texts:
This is something that in 15 years of Magento use we have never encountered.
A developer, (whose extension we PURCHASED), will not stop sending marketing messages to the administration page of our Magento site.

He has found some way to break in to allow his commercial marketing messages and refuses to stop. Additionally, there is no way to delete them as they show up as a banner on the page rather than a message in the messages area.

Needless to say, there is no "unsubscribe" button either. Essentially, he is spamming our Magento 2.3 Administration site and we want it to stop.

Any advice?


texts: Magento 2, Add custom attribute after description field

texts:
I need to add a new custom attribute after description field.

How make it?

Thanks

UPDATE:

I want to show the attributes how this image:


texts:
I've got a collection from the factory method getCollection(). The problem is that when I use get_class_methods($class) to list all the methods that the collection possesses I can't seem to find one which groups the records in the collection.
I found this How to use group by in magento collection with join query
But I don't have the group() method in my collection class. How can I group by in that case ?


texts:
I am trying to create a note on a PDF invoice which is only shown for a specific customer group. I use Magento 1.9.2.4 with the Firegento PDF Extension.

My code so far is:

public function addTaxNotes(Varien_Event_Observer $observer)
    {
     $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
        if($groupId = 6) {
             $page = $observer->getPage();
        $page->drawText('Tax-exempt intra-Community supply according 4 Nr.1b UstG i.V. § 6aUStG ', 0, 120, 'UTF-8');
        return $this;
        }
        }

My problem is, that the "if" function doesn`t work. The note is shown to all customer no matter which customer group they belong to. Can somebody help me?


texts:
i'm trying to make a simple plugin, after method, as simple as that :

 class Plugin {
    public function afterAddUrlRewrite(\Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection $subject, $result)
{
    foreach ($result as $item) {
    var_dump($item);

    }
   return $result;
}
}

But this doesn't work !! the dump are returing the right values but something else is getting wrong. I'm getting 'Illegal state' in my log and no more info. Is there a way to loop over $result object ?


texts:
I have created a configurable product on my magento store and created different simple product so I can associated them under my configurable product.

It has different SKU and it is fine I want that functionality but how can I make the specification different everytime user chooses different variants?

Depends on "Storage" or "Processor"


texts:
I'm trying to get a product attribute on the product listing page, on title.phtml.

I've tried quite a few different methods found through googling but nothing seems to be working.

<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/**
 * @var $block \Magento\Theme\Block\Html\Title
 */
$cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
$title = '';
if (trim($block->getPageHeading())) {
    $title = 'getAddBaseAttribute() . '>'
        . $block->escapeHtml($block->getPageHeading()) . '';
}
?>
<?php if ($title): ?>
    <div class="page-title-wrapper<?php /* @escapeNotVerified */
    echo $cssClass; ?>">
        <h1 class="page-title"
            <?php if ($block->getId()): ?> id="<?php /* @escapeNotVerified */
            echo $block->getId(); ?>" <?php endif; ?>
            <?php if ($block->getAddBaseAttributeAria()): ?>
                aria-labelledby="<?php /* @escapeNotVerified */
                echo $block->getAddBaseAttributeAria(); ?>"
            <?php endif; ?>>
            <?php /* @escapeNotVerified */
            echo $title ?>

        testing:
        <?php
        $attr = $block->getData('style_general');
        echo $attr;
        ?>
        <?php echo $block->getStyle_general(); ?>
        <?php echo $block->getChildHtml(); ?>

<?php endif; ?>

Testing:

$attr = $block->getData('style_general');
echo $attr;

is the current method I'm trying, but it nothing is showing up...


texts: Loading a customer address by a custom attribute

texts: I've added a custom attribute to customer address entity which is a backoffice ID.  I've synced addresses from clients backoffice.  If order maintain a continual sync to check whether address exists I need to load customer address entity by custom attribute.  I can't get a clean working solution.  Currently use a collection to loop through all addresses stored in magento, match on attribute value and return address entity id. But I'm aware this will use more and more resource as addresses are added.  Does anyone have a suggestion?


texts: Magento 2.3 - Modify Qty and also the variation using observer

texts:
ON add to cart option on product detail page . i am listening the event called checkout_cart_product_add_before and i created a custom observer for this.
It is getting called properly but i want to change the qty and variation which is getting passed from the request paramets.
$observer->getEvent()->getInfo();

if i print this i am getting the data properly.But i need to update the values which are in this object, based on some conditions.


texts: how to display product sku in custom admin grid in magento2

texts:
hello everyone I want to display the product SKU in custom admin grid
I have column displaying in it now I want to display the data of it

index.xml

<column name="sku">
        <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
        <item name="visible" xsi:type="boolean">true</item>
        <item name="label" xsi:type="string" translate="true">Products sku</item>
        </item>
        </argument>
        </column>

through this code column is displaying now i want to display the data of product sku any help will be appriacted


texts: How to get custom attributes of a given attribute set ID in Magento 2

texts:
How to retrieve a list of custom attributes of a given attribute set ID in Magento 2,

The idea is like this,

$this->getCustomAttributes(10);

Then the method will return all custom attributes related to attribute set with ID of 10


texts: upgrade from Magento 2.2.6 to 2.3 Invalid or uninitialized Zip object

texts:
I am trying to upgrade from Magento 2.2.6 to 2.3

php bin/magento deploy:mode:set developer
php bin/magento cache:disable
php bin/magento maintenance:enable
composer require magento/product-community-edition 2.3.0 --no-update

and getting this error

  In ArtifactRepository.php line 132: ZipArchive::close(): Invalid or
  uninitialized Zip object


texts: Admin panel url redirect to live site where frontend url works correctly in development site

texts:
There is an issue i have been trying to solve for the past 2 days.

I created devlopment site for a live site.

Frontend url of the development site works properly.

Whereas the backend(Admin Panel) redirects to the live site.

I tried out the following

1) Cleared Cache and session

2) Check the web/unsecure/base_url and web/secure/base_url . Both have been assigned with the development site url

3)Also I have checked the .htaccess. There is no redirection mentioned.

Somebody help me.


texts: Unable to send mail: Unknown error magento 2.3

texts:
for me when i want to save the customer's information I got this error 'Unable to send mail: Unknown error' , this is the method execute
PS : when i change 1 or 2 fields all work fine, but when i make change for 3 fields or more then the error is occurred


texts: Magento unsecure and secure base_url settings in https only

texts:
Magento 1.9 setup for https Only.

When the UNsecure_base_url is set to httpS is it normal behaviour for Magento to ignore the UNsecure_base_url settings for media, skin and js and use the secure_base_url settings for these folders?

For Example:

Base URL => https://mySecureSiteURL/

Base Skin URL => mySecureCDN-URL/skin

Base Media URL => mySecureCDN-URL/media

Base Java URL => mySecureCDN-URL/js

Secure Base URL => https://mySecureSiteURL/

Secure Base Skin URL => {{secure_base_url}}skin

Secure Base Media URL => {{secure_base_url}}media

Secure Base Java URL => {{secure_base_url}}js

Magento only ever uses the Secure Base URL settings for non-sensitive pages (ie catagory, product and CMS) and ignores the Unsecure Base URL settings pointing to CDN. Is this Normal?


texts: MIME type ('text/html') is not executable and strict MIME type checking is enabled

texts:
In magento when I add to cart the product I show below error:

"Refused to execute script from 'http://www.example.com/ajaxcartsuper/ajaxcart/add/uenc/aHR0cDovL215ZmF…r_attribute%5B139%5D=27&qty=1&product=377&related_product=&_=1478249505680' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."


texts: How can show custom discount after shipping row in cart?

texts:
I am giving my customer a extra discount. For that I am using this code

<?php

class Karmick_Refer_Model_Cart_Discount extends Mage_Sales_Model_Quote_Address_Total_Abstract {

    public function collect(Mage_Sales_Model_Quote_Address $address) {
        $referBlock = new Karmick_Refer_Block_Refer();
        if(Mage::getSingleton('customer/session')->isLoggedIn()){
         $customer_data=Mage::getSingleton('customer/session')->getCustomer();
                $referCustomerData = $referBlock->getUserByCode($customer_data->getId());
                $discount = (float)$referCustomerData->getWalletAmount();
                //$subTotal = Mage::helper('checkout/cart')->getQuote()->getSubtotal();
                 $baseTotals = array_sum($address->getAllBaseTotalAmounts());
                if((float)$baseTotals <= $discount){
                    $discount = (float)$baseTotals;
                }
        if($discount != '' && $discount != (float)'0.00')
        {
            if ($address->getData('address_type') == 'billing')
                return $this;
              //your discount percent
                $grandTotal = $address->getGrandTotal();
                $baseGrandTotal = $address->getBaseGrandTotal();
                $totals = array_sum($address->getAllTotalAmounts());
                $baseTotals = array_sum($address->getAllBaseTotalAmounts());

                $formattedPrice = Mage::helper('core')->currency($discount, false, false);
                $discount = $formattedPrice;
                $address->setFeeAmount(- $discount);
                $address->setBaseFeeAmount(- $discount);

                $address->setGrandTotal($grandTotal + $address->getFeeAmount());
                $address->setBaseGrandTotal($baseGrandTotal + $address->getBaseFeeAmount());
        }
        }
        return $this;
    }

    public function fetch(Mage_Sales_Model_Quote_Address $address) {

        $referBlock = new Karmick_Refer_Block_Refer();
          $customer_data=Mage::getSingleton('customer/session')->getCustomer();
                $referCustomerData = $referBlock->getUserByCode($customer_data->getId());
                $discount = (float)$referCustomerData->getWalletAmount();
        if($discount != '' && $discount != (float)'0.00'):
        $amt = $address->getFeeAmount();
        $address->addTotal(array(
                'code'=>$this->getCode(),
                'title'=>Mage::helper('catalog')->__('Successfull Referral Discount'),
                'value'=> $amt
        ));
        endif;
        return $this;
    }

}

?>

And this is working properly.

But the place of viewing the discount is wrong

How can i show it after shipping cost row??


texts:
Magento 2 how to get 2 free shipping setting Amount?

1 is for usa standard
2 is for aus standard

Please help


texts:
We're running CE 1.9.1.0 with all the latest patches and use New Relic, among others, to track site performance.  I've noticed a number of slow queries when customers are checking out, and in every case it is due to CatalogInventory re-index events that are triggered automatically when placing an order.  It seems like the logic and processing item used for re-indexing was put in the wrong place and forces the customer to wait for maintenance tasks in Magento to complete, something that should happen in the background, after the order is done and the customer is happy.  I've looking around for index-improving extensions, but they all seem to focus on improving the indexing processes when saving things in the admin to improve product edit performance.  We don't care about that, we care about the customer experience, which seems to be hurt greatly by bad Magento performance.

Below are some screenshots of a recent trace.  This customer bought 10 individual items.  Each item triggers a re-index for that item, and each time it's taking 2-3 seconds to do the re-indexing.  Multiplied out by 10 products, that's 30 seconds of the customer sitting their wondering if things are going to complete while Magento does what should be background tasks.

My first question is, is this normal Magento performance or does this smell of a bigger problem?  If this is par for the course, any suggestions?  I could disable automatic re-indexing all together and set up a cron job to do it overnight.  That's a doable solution, I just worry about the implications if we sell out of a product and it doesn't re-index right away.  Would someone else be able to buy it?

This picture shows the trace, collapsed down to show only the product save events for each item purchased

This picture shows a single index event, expanded to show that it actually processes 4 different index events in this one event, each one taking 1/2 second or more

This picture shows a single event, expanded out fully, and includes the query

At first glance you might say that 115ms for one DB transaction isn't much.  But, taken with the other slow tasks, and compounded by the number of items the customer buys, you end up with exceptionally long transactions for the most loyal, highest paying customers, and that's exactly what you DON'T want.  Any help anyone can provide would be greatly appreciated!


texts: Magento 1.9 doesn't recognize old password with two characters salt

texts:
After some issues, I've correctly upgraded to magento 1.9.1.1

Now any users (customers and admin) can't anymore login in frontend or backend. They always get the "Invalid User Name or Password" error. Some days ago I've opened a question about the same problem that was marked as duplicate of this one. After some more investigation I can trustily say that it's not.

My current situation is that all the passwords saved before the upgrade from magento 1.6 to magento 1.9 are still registered with two character salt.
Despite from magento 1.8 the salt is made by 32 character, magento should still accepts old password.In my case it doesn't happen and magento trigger the user/password error if the password has a two character salt.

Has I've described this is a totally different scenario from the one of the "duplicated" question (where 2 character salt are accepted but 32 character salt are not correctly created due to db misconfiguration).

I'm pretty sure the issue is due to the salt problem I've described and not relate to cache, cookie and so one. Customers registered after the upgrade have no problem and if I manually regenerate old pw with 32 character salt it works fine...
I really have no idea why my magento install works this way but I can't ask to thousands of clients to reset their passwords. After some days of thinking I'm still without any possible answer. I'll really appreciate any advice.


texts: How can i set ship by weight for various countries. Ship by weight configuration Error.


texts:
When payment fails the following code is called:

if ($order->getId() && Order::STATE_CANCELED !== $order->getState()) {
            $order->cancel();
            $order->addStatusHistoryComment($message);
        }

When I open that order in the back the status is not set and it contains no message in the Comment History


texts: Checkout page: The address failed to save. Verify the address and try again

texts:
In magento 2.3.5, If customer login at checkout page and select any address then a following error message display.
"The address failed to save. Verify the address and try again."
While it works fine if customer login first then go to checkout page after add product in cart.

Please anybody can help me.
Thank you,


texts: I  am using the rwd theme of magento 1.9.0.1,and i want to move the attributes in additional information tab to description tab,how to do it ?


texts: What's wrong with the following rewrite?

texts:
I tried to rewrite the Mage_CatalogRule_Helper_Data.
But somehow my code is not used instead of the original helper.
Can someone please point out the error I have made so I can understand what went wrong, how to do it correct and so I can learn to rewrite more correctly in future.
Btw. as far as I can see the module is activated, so the Test_CatalorRule.xml should be correct.

\app\etc\modules\Test_CatalogRule.xml

<config>
    <modules>
        <Test_CatalogRule>
            <active>true</active>
            <codepool>local</codepool>
        </Test_CatalogRule>
    </modules>
</config>

\app\code\local\Test\CatalogRule\etc\config.xml

<config>
    <modules>
        <Test_CatalogRule>
            <version>1.0.0</version>
        </Test_CatalogRule>
    </modules>
    <global>
        <helpers>
            <catalogrule>
                <rewrite>
                    <data>Test_CatalogRule_Helper_Data</data>
                </rewrite>
            </catalogrule>
        </helpers>
    </global>
</config>

\app\code\local\Test\CatalogRule\Helper\Data.php

class Test_CatalogRule_Helper_Data extends Mage_CatalogRule_Helper_Data
{
    public function calcPriceRule($actionOperator, $ruleAmount, $price)
    {
        return 42;
    }
}

Thanks for any help


texts: Magento register double opt in doesn´t work

texts:
I have set "Require Emails Confirmation" in Customer Configuration to Yes, but it dosen´t work if I register me I´m in my account andI would´t get a Confirmation Link Email !
What can I do?

Thanks!


texts: Split product list in two part by attribute in magento

texts:
I am trying to split product listing page in two part.

I have one attribute without_offer. By default all product have some offers. If any product does not have any offer it should be came in WITHOUT OFFER list.

Let say on product listing page there are 100 product and setting is selected 50 products per page. Out of first 50 products 25 with some offers and 25 without offers.

So product listing on category page like,

WITH OFFER

Product1
Product2
... to Product25

WITHOUT OFFER

Product1
Product2
... to Product25

By default products sorting by name.

Is there any way i can split product collection in two part?


texts:
Site went down after last designer cleared cache.

snappaneldisplays dot com

There has been an error processing your request

The user in the local.xml file is not the one listed there.

Anyone know of how to fix this? or what caused this?

from the var/report

a:4:{i:0;s:98:"SQLSTATE[HY000] [1045] Access denied for user 'snappae_snapn'@'localhost' (using password: YES)";i:1;s:2913:"#0 /home/vegasdi1/public_html/snappaneldisplays.com/lib/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/vegasdi1/public_html/snappaneldisplays.com/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/vegasdi1/public_html/snappaneldisplays.com/lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/vegasdi1/public_html/snappaneldisplays.com/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/vegasdi1/public_html/snappaneldisplays.com/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache->getAllOptions()
#12 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache->_initOptions()
#13 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config')
#14 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App->useCache('config')
#15 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config->_canUseCacheForInit()
#16 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/App.php(413): Mage_Core_Model_Config->loadModulesCache()
#17 /home/vegasdi1/public_html/snappaneldisplays.com/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#18 /home/vegasdi1/public_html/snappaneldisplays.com/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#19 /home/vegasdi1/public_html/snappaneldisplays.com/index.php(87): Mage::run('', 'store')
#20 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


texts:
I am not sure if I need table rates here, but what I need to establish is 3 shipping costs per order, to UK only...

Essentially,

£2.95 (3-5 days)
£4.95 (1-3 days)
Order over £50, free delivery

I have got in the free delivery and a flat rate at £2.95, but how can I add a second flat rate? Do I need to do it as a table rate or something?? I am sure this might help many people, with simple shop setups like mine.


texts: How to show tax and shipping costs in custom popup of jquery in Magento 2?

texts:
I want to display tax amount, shipping amount , and total in custom jquery popup dialog and that should be visible in checkout page. I have added a button in checkout page on click of it a popup shows simple text. i want to display tax and ship amount. How can I do that??
can anyone help me to do that.


texts: How to check indexer reindex progress in Magento 2?

texts:
I have 60 million products in my Magento 2 Store and i have run php bin/magento indexer:reindex query using terminal.
Now the issue is that the indexer running from around 100 hours but it will show processing on catalog_category_product in ID.
Is there any way to check the progress of indexer:reindex.
I have check show processlist and it shows

I have checked in db and there is no table regarding catalog_category_product_index_store1_tmp this name and the two table with catalog_category_product_index_store1 and catalog_category_product_index_store1_replica exist.
So my problem is how do i check the progress of indexer:reindex in Magento 2.
Any help is appreciated.


texts: Magento 2 DateTime picker - Limit time selection range

texts:
I am using a datetimepicker on my frontend form with below code. I want to limit time selection between range 09:00 to 17:30

<input name="datetime_field" id="datetime_field" readonly title="Appointment Date" value="" placeholder="Date & Time" class="input-text" type="text" data-validate="{required:true}">

script for datetimepicker,

<script>
    require([
        "jquery",
        "mage/calendar"
    ], function ($) {
        var minHour = 9;
        var maxHour = 17;
        $("#datetime_field").calendar({
            showsTime: true,
            hideIfNoPrevNext: true,
            buttonText: "<?php echo __('Select Date') ?>",
            hourMin: minHour,
            hourMax: maxHour,
        });
    });
</script>

I used minHour and maxHour which limits time selection between 09:00 to 17:59. How can I limit it to 17:30?


texts:
I want to add product images from external url.. I have created CSV file for image uploading. When I execute the command

php bin\magento catalog:import [csvfilelocation]

it displays

  "image not exist"


texts: how to find phtml file from url in magento 1.9

texts:
I am not able to find order phtml file. I want to modify currency in bellow url:

https://moreideas.ae/magento19/index.php/moreideassupport/index/index/order/MI100010756/mail/ajay.kumar@minerva.in/


texts: Magento 2 : How to Add quantity increment & decrements button on product details page

texts: How to add increment(plus +) and decrements(minus -) qty button on product detail page?


texts: Magento 2 No such entity error during the installation

texts:
I am installing Magento 2 and got one error and was not able to process further.
Error was in Module "Magento_Catalog" step during the installation.
It shows below,
In PatchApplier.php line 167:
No Such entity.

Does Anyone have an idea about this error?


texts: I want to create custom module for "Image Uploader" , and create grid, in this grid , I want to put "Image Title","Image Path", "Image", "Status", "Dropdown (for the selecting image)". once image is uploaded then admin select image from the dropdown for display image on the frontend.


texts:
I have a configurable product which uses two (or even more) attributes - material and size.
Each combination of these attributes has an individual price without any mathematical reason, so I can't use super attributes.

Is there any (most preferably native) way to achieve this?

All posts I found about this issue are pretty old or unanswered and most of them suggest https://github.com/organicinternet/magento-configurable-simple which hasn't been updated for over 4 years now.


texts: FedEx Tracking displays all dates in UTC timezone

texts:
has anyone figured out a way to display the fedex tracking screen in the correct timezones? aka, not UTC.

I've set the Magento timezone and the Server Timezones correctly. It's just the fedex tracking link that gives UTC dates and times, without warning on the frontend and the backend.


texts: Can I link to a specific file from the account sidebar?

texts:
I have the following code in local.xml, but when it is rendered on the frontend, Magento treats it as a directory/path and adds a trailing forward slash to it.  Is there any way I can avoide this?

<customer_account>
    <block type="customer/account_navigation" name="customer_account_navigation" before="-"               template="customer/account/navigation.phtml">
        <action method="addLink" translate="label" module="customer">
            <name>free_returns_label</name>
            <path>media/returns-free-post-label.pdf</path>
            <label>Free Returns Label</label>
        </action>
    </block>
</customer_account>


texts: Layout: moving the stock element in between the qty and addtocart

texts:
My want is to move the "In stock" part in between the "Qty" and "Add to Cart" button; However this is made hard by the fact that these two components are in the same template and not wrapped in a container or block, so I can't use the xml to move the "stock" before or after these elements.

What would be a good approach to get this result?


texts: Automatically Determine Credit Card Type

texts:
I was wondering if there is a way to automatically determine the credit card type for magento credit cards forms instead of having the customer manually pick it.

Thanks in advanced


texts: On customer register got an error message: "Cannot save the customer"

texts:
Couple of hours ago the registration worked well. Suddenly it is not working anymore. Reverted back my code changes and the problem still persists. What I've only done is to clear the cache. To get a concrete error message instead of Cannot save the customer exception, I did the following temporary trick:

#File: app/code/core/Mage/Customer/controllers/AccountController.php
} catch (Exception $e) {
    $session->setCustomerFormData($this->getRequest()->getPost())
        ->addException($e, $this->__('Cannot save the customer.'));
}

Since Magento is masking the raw PHP error, I did the following change to the above code:

->addException($e, $this->__('Cannot save the customer.' . $e->getMessage()));

Now, my complete error message looks like this:

Cannot save the customer.Warning: include(Mage/Eav/Model/Attribute/Data/Checkbox.php): failed to open stream: No such file or directory in /var/www/html/magento/lib/Varien/Autoload.php on line 94

I am not sure what is causing this issue and why happened suddenly.

Couple of other details:

yes, the Mage/Eav/Model/Attribute/Data/Checkbox.php file is missing on my local environment, and I don't know why
the Mage/Eav/Model/Attribute/Data/Checkbox.php file exists on the repo I am gettig the files (Git)
I downloaded a new Git repo, the problem still persists
I don't know if it is some write permission issue or it is due to compilation (I think here must be the problem, but I don't know what to do...)
Only cache deletion was made before the error via the admin panel


texts:
I am facing error Fatal error: Cannot redeclare class Mage_Core_Model_Factory in includes/src/__cms.php when I am enabling the compilation.

Also Compiled Scope Count is showing 10 on live, whereas Compiled Scope Count on my staging is 4.

Is something wrong here? or is it fine?

Has someone face any similar issue before?
And can help me out in fix this?

How can I track this issue?


texts: How can 'dirty playground' use for Order Shippment - Magento 2

texts:
I am using 'Dirty Playground' for external retrieve/update Magento products & order information. It's working fine.
Now, I am trying to update shipment from the same concept, but not able to achieve. It is showing a blank page.
I had tried updating shipment by programmatic, it's also working fine in Magento frontend.

use Magento\Framework\App\Bootstrap;
require __DIR__ . '/../shoppersbay/app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);

$obj = $bootstrap->getObjectManager();

$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');

    // Load the order static ID for testing
    $order = $obj->create('Magento\Sales\Model\Order')
        ->loadByAttribute('increment_id', '000000040');
// Check if order can be shipped or has already shipped
        if (! $order->canShip()) {
            throw new \Magento\Framework\Exception\LocalizedException(
                            __('You can\'t create an shipment.')
                        );
        }

        // Initialize the order shipment object
    $convertOrder = $obj->create('Magento\Sales\Model\Convert\Order');
    $shipment = $convertOrder->toShipment($order);

    // Loop through order items
    foreach ($order->getAllItems() AS $orderItem) {
        // Check if order item has qty to ship or is virtual
        if (! $orderItem->getQtyToShip() || $orderItem->getIsVirtual()) {
            continue;
        }

        $qtyShipped = $orderItem->getQtyToShip();

        // Create shipment item with qty
        $shipmentItem = $convertOrder->itemToShipmentItem($orderItem)->setQty($qtyShipped);

        // Add shipment item to shipment
        $shipment->addItem($shipmentItem);
    }

    // Register shipment
    $shipment->register();

    $shipment->getOrder()->setIsInProcess(true);

    try {
        // Save created shipment and order
        $shipment->save();
        $shipment->getOrder()->save();

        // Send email
        $obj->create('Magento\Shipping\Model\ShipmentNotifier')
            ->notify($shipment);

        $shipment->save();
    } catch (\Exception $e) {
        throw new \Magento\Framework\Exception\LocalizedException(
                        __($e->getMessage())
                    );
    }

How can I achieve this? Am I missing something in the code?

Thanks in Advance.


texts: How to add "Initiate checkout" Facebook pixel Standard events on Magento Proceed to checkout?

texts:
Magento Version 1.7

I want to add the Facebook pixel InitiateCheckout standard events on my website Proceed To Checkout button click.

I tried to add a JavaScript function on link.phtml(\app\design\frontend\default\default\template\checkout\onepage) and remove the onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';"> and call this window location in the function track_fbq()

<button type="button" title="<?php echo $this->__('Proceed to Checkout') ?>" class="button btn-proceed-checkout btn-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="track_fbq()"><?php echo $this->__('Proceed to Checkout') ?></button>

My JavaScript function is below.

<img height="1" width="1" style="display:none"
           src="https://www.facebook.com/tr?id=1677576565828693&ev=InitiateCheckout&value=<?php echo Value ?>&currency=<?php echo $currency ?>&noscript=1"
    />

My checkout is redirect to the checkout page and i can complete the purchase.

My question is, Is my approach is correct? If my method is not correct can you please help me to do this task.This is not a question that ask about Facebook tracking.
Thank you.


texts: Magento 2 :What is the different between invalidate and reload if they both update the sections?

texts:
If some section should be updated then customerData.invalidate(sections)

if you sure, that you really need update some section you can always do something like this: customerData.reload(['cart'], false)

This is taken from the answer Magento 2: how do customer sections / sections.xml work?

What is the different between invalidate and reload if they both update the sections?


texts:
I have give Title suffix in magento system configuration like | Magento site. So this 'll add Title to every page in the store as suffix.

But when i goto home page title shows like Home | Magento site

I would like to remove title suffix only from home page.

So i expect like Home as title in home page.

How to do this


texts:
I need generate image gallery programmatically. I have near 1M products and product images import is too slowly.

I created controller, which return image if it exists and generate images if it not exists.

I'm successfully override getImageUrl() in \Magento\Catalog\Block\Product\Image and view my images in product list (such as a search result).

But I need show custom images in product view too. I'm trying override getMediaGalleryImages in Product.php, but don't know how.

namespace Vendor\ModuleName\Model;
class Product extends \Magento\Catalog\Model\Product
{

     //constructors here

    public function getMediaGalleryImages()
    {
        $images = $this->_collectionFactory->create();
        $image['url'] = "/mycontroller/image/generate/sku_here";
        $images->addItem($image);

        return $images;
    }

Any ideas?


texts:
I am just wondering why my subcategory path not redirect to cms page when i click on any cms page. When i click on cms page the subcategory path redirects to cms with parent category url.
please go through this site click here

EX: www.example.com/category/subcategory... now click on about us page it will redirect to www.example.com/category/aboutus

Any idea would be appreciated.


texts: Magento 2 . Custom vs Extension attributes.

texts:
Let's take the \Magento\Catalog\Api\Data\ProductInterface as an example.

We have the following methods

 $product->getCustomAttributes();
 $product->getExtensionAttributes();

What are custom/extension attributes?
What are the differences between them
How/When to define/use them?
How should one choose between them


texts: EcomDev PHPUnit - test that URL is secure

texts:
I have configured my custom router/controller/frontname to be forced to use SSL using the "secure_url" node in my config.xml. Does anyone know how I can write a test using EcomDev PHPUnit to confirm this is working?

In addition is there a way to test for duplicate xml nodes in my config files?

This all came about because I inadvertently duplicated a node name which caused my route not to be forced to use SSL. Below is an example:

<secure_url><module_one>frontname</module_one></secure_url>
<secure_url><module_one>frontname_two</module_one></secure_url>

The second node overrides the first since module_one is duplicated as the node name. The result is that frontname is not forced to use SSL.The above xml was in two different modules.


texts: when click to add to cart button , product details is not showing up in shoping cart page

texts:
I am facing problem here with my magento site . When i click on add to cart button and add any product first time i am not able to see details of the product like product name , Unit price , Qty, subtotal but i am getting MSG "product was added to your shopping cart."and able to see the grand total for that product . but when i add any other or same product second time i am able to see all the details .

Can any one help me to debug this issue .


texts: How to show Additional charge on COD in invoice pdf magento 2?

texts:
I am using an extension to add additional fee on Cash on Delivery payment gateway.

It is working fine but the COD fee is not showing in invoice pdf.

This issue only for the admin invoice pdf.

How can I add this information in pdf?


texts: Upload Store image through Admin Control panel

texts: How to implement store image uploading functionality in Admin panel?


texts: Is it possible to make a banner add a product to the cart

texts:
Is it possible to make it so when an image is click a product is added to the cart?

At the moment , i have tried the below:

<?php if ($login && Mage::getSingleton('customer/session')->getCustomerGroupId()==5)
{?>

<?php

echo ''; }?>

Which makes sure the correct banner is shown for the group and then displays the image, however i dont know how to make that image add a product tot he cart when it is click or even if it is possible.

I have tried wrapping the image in anchor tags but it just redirects to the cart without doing anything.


texts: Set customer group from customer registration form

texts:
I was trying to let the customer choose the customer group while the customer registration in magento 2.

What i did was, i passed the group id on hidden field like:

<input type="hidden" name="group_id" id="group_id" value="2" />

But it is not working. When i check the customer from admin panel, the default group was chosen.

My question is:

Can I change the customer group this way?
I can see another method of using event observer method on customer register success but I would prefer this method if it works?

Can anyone help on this?

Thanks


texts: Magento 2.2 - Required parameter 'theme_dir' was not passed when uploading image upload

texts:
When I'm going to upload product image I see this error "Required parameter 'theme_dir' was not passed".

I'm using a Theme.


texts: Does anyone have Magento 2.3 ERD database diagram?

texts:
Does anyone have Magento 2.3.x ERD database diagram?

Thanks


texts: how to export large sql file to phpmyadmin in kali linux?

texts:
Hi i know in windows for exporting large sql files to phpmyadmin i run following command:

  mysqldump -u root -p[root_password] [database_name] >
  dumpfilename.sql

in location (C:\xampp\mysql\bin)

i have another virtual Kali Linux system in which Xampp directory is

  (opt/lampp)

but in mysql directory there is no bin folder , what's the accurate command and executable directory to run export sql command in kali linux .

note:(This question is related with magento 2 because i want to export its big sql file to local server so please if you can't answer it , dont mark it as irrelevant , i am so thankful to you :) ...  )


texts: Customize My Account Customer navigation

texts:
I was trying to screenshot like HTML

My questions

1) Can i achieve by Native magento navigation (like can i make acccordian like structure using XML where links are picked)
2) When i tried to replace with it with custom HTML all by links are replaced with current page link , like i am on Wishlist page all the other links will be also be wishlist URLS , How to fix it ?


texts:
I have installed Magento 1.9. when I try to login to the Magento admin panel, I typed username and password, clicked Login button and nothing happens. No error or any other messages.

If I entered wrong username or password, It shows error.


texts:
Right now I have the following default.xml file...

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceContainer name="header">
        <container name="header.panel.wrapper" htmlClass="topbar" htmlTag="div" before="-">
            <block class="Magento\Framework\View\Element\Template" name="top.links" template="Magento_Theme::html/topbar.phtml"/>
        </container>
        <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header">

            <block class="Magento\Framework\View\Element\Template" name="header" template="Magento_Theme::html/header.phtml"/>
        </container>
    </referenceContainer>
</body>

and I'm trying to make it so I can render the minicart inside of the file topbar.phtml. I've tried every combination of...

<move element="minicart" destination="header" />
<move element="minicart" destination="top.links" />
<move element="minicart" destination="header-wrapper" />

...that I can think of. But no where I put it, it'll either error out or just not render it with...

<?php echo $this->getChildHtml('minicart') ?>


texts: Magento 2.0.2 Upgrade: Sorry, we can't take that action right now

texts:
I get this message when I try to upgrade my Magento 2.0.2

Sorry, we can't take that action right now.

Cronjobs works, no migration tool
Repositories already in composer.json file and no data migration tool
Logged in and key saved


texts: How can i get product thumbnail image, sku, name, details, if enter sku on custom page

texts: I need products thumbnail image, SKU, name, details, if the customer enters sku on custom page.


texts: what is the log step in magento2 migration?

texts:
I am migration M1 to M2 using the data migration tool.

what is the Log step actually?

In M1 many log_* exists but in M2 there are no log tables available.
What is actually done in this step?

     [2020-03-02 17:31:20][INFO][mode: data][stage: volume check][step:
     Url Rewrite Step]: started
     100% [============================] Remaining Time: < 1 sec
     [2020-03-02 17:31:21][INFO][mode: data][stage: data migration]
      [step: Log Step]: started
     9% [==>-------------------------] Remaining Time: 4 days


texts: How to preselect first image swatch on Product detail page Magento 2

texts:
I want to preselect first available option for my configurable product on Magento 2(2.2.4) website.

Note: I am not a developer so when you answer plz reply with file path as well, I know i am asking so much but its really urgent and needed.

Thanks in Advance!


texts:
My client forgot admin password.

We use magento 2.1

How can change password in database?

Thank you.


texts: Magento 2: Is there a way to return custom json response from REST API without building a data interface?

texts:
I have a few custom REST API interfaces on my module & they all need to return a standard json response (different on each).
After a little research, I realized that I can't do something like @return object & that echo json_encode($res);die; is discouraged & that I can build a custom data interface with a getter method for every field.
For my specific needs, it'll require very long files with tons of getter methods (I have to return a specific structure of fields as json).
Is there a way to build this data interface without creating a method for every field in the response?
e.g. something that I can load with an array/object or even a json encoded string & it'll just reply with that without any change.
*I know that I can return json_encode(...); & define the return type as a string, but it's wrapping it with quotes ("{...}") & escapes & I don't want it that way.
-- Any Idea?


texts: how to call dynamic URL key in product page?

texts: I only know that getProductUrl() ?> is calling "http://b2b.com/product1/" But how to call a dynamic URL key in the /product/view.phtml, so then in the URL structure only the domain is changed from b2b.com to b2c.com but the product key will stay the same according to which product is being viewed?


texts: Layout Update XML doesn't properly work for the home page

texts:
I'm using magento 2 and I'm trying to add this code into my Layout Update XML.

<reference name="head">
  <action method="addItem">
    <type>skin_js</type><script>jsfilename.js</script>
  </action>
</reference>

But for some reason, my js doesn't get loaded on the home page.

what's wrong with my code ?


texts: restrict coupon codes for only one time use in magento 1.9.0

texts:
For orders above 200, we are giving free shipping on our site.
We would also like to have a "Free Shipping " coupon code applicable to orders below 200
I gave Uses per Coupon : 1 , Uses per Customer : 1
(see attached image) but still for registered customers also, can use coupon codes many times and buy the product.
Where is the problem?


texts: How to change product detail page layout according to product price range?

texts:
I want to change product detail page layout according to product specific  price range I know it is possible for using product_id and product_sku like below.

<catalog_product_view_id_productid>

And

<catalog_product_view_sku_productsku>

But how can I achieve it for specific price range ?


texts:
if adding a product to cart, in my debug.log file there is the following entry:
[2020-10-29 10:48:15] main.DEBUG: cache_invalidate:  {"method":"GET","url":"https://XXXXXXXX.com/checkout/cart/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_78d0a33599c0bfc2fd2e28a3533f143cb8a3513a"}} []'

Any recommendations?


texts: Change order status programmatically not working

texts:
I have two environments, production and development. And I tried to run this code on root of Magento:

<?php

require_once "app/Mage.php";
Mage::app('default');
error_reporting(E_ALL);
ini_set('display_errors', 1);
umask(0);

$order = Mage::getModel("sales/order")->loadByIncrementId(100000672);

$order->setData("state", "pending_recharge");
$order->setStatus("pending_recharge");
$history = $order->addStatusHistoryComment('A ser executada a rotina de recarga.', false);
$history->setIsCustomerNotified(false);
$order->save();

I am just changing the Increment Id from one environment to another. The acctually status and states of order is "complete".

On development the code is working, but on production the status of order does't save.

I don't know how debug to find this error, I believe it to be in the database, maybe some foreign key.

Another thing I noticed that I have two payment methods and this only happening with one.

And I checked who pending_recharge status exist in both environments.


texts: How to get restocked product list in magento frontend

texts:
I'm trying to get latest restocked product list from my Magento . For that i have been used this code, but it reflects nothing.

 $_productCollection = $_productCollection->joinField('is_in_stock',
                        'cataloginventory/stock_item',
                        'is_in_stock',
                        'product_id=entity_id',
                        '{{table}}.stock_id=1',
                        'left')
                    ->addAttributeToSort('updated_at','desc')
                    ->addAttributeToFilter('is_in_stock', array('gt' => 0));


texts: Increase the success/exception message time span in Magento 2

texts:
When product add to cart the success/exception message is hiding rapidly, So I just tried below way to show/increase the time span of the message. But it's not worked for me.
I have modified the messages.js file as below from vendor/magento/Module-Ui/view/frontend/web/js/view/messages.js
/**
         * @param {Boolean} isHidden
         */
        onHiddenChange: function (isHidden) {
            var self = this;
            // Hide message block if needed
             if (isHidden) {
                setTimeout(function () {
                    $(self.selector).hide('blind', {}, 500);
                }, 50000);
            }
        }

The above code is not working for me. Please suggest me increase the time span of the message.


texts: Magento 2, passing data from phtml to observer

texts:
Through sales_quote_item_save_before event I'm trying to fill the custom column added to quote_item table.The value of this field is based on input text field in below file. Using below observer, I could not make it work. How can pass the input value?

in MyVendor/MyModule/view/adminhtml/templates/order/create/items/grid.phtml

<input type="hidden" name="custom-field" id="custom-field" title="custom-field" class="input-text"/>

Observer

$quoteItem = $observer->getEvent()->getItem();
if (isset($_POST['custom-field'])) {
    $value = $_POST['custom-field'];
}else{
    $value = "n/a";
}

$quoteItem->setCustom($value);


texts: Programmatically setting a customers website id

texts:
Could someone please advise why when adding a customer via an external script the website and store values are ignored and the customer is always assigned to "admin" and not to "main website".

I only have 1 website and 1 store within my Magento instance and each has an id of 1

My code is below:

    $customer = Mage::getModel("customer/customer");
    $customer   ->setWebsiteId(1)
                ->setStore(1)
                ->setFirstname('John')
                ->setLastname('Smith')
                ->setEmail('john@smith.com')
                ->setPassword('password')
                ->setGroupId('1');
    try{
        $customer->save();
    }
    catch (Exception $e) {
        Zend_Debug::dump($e->getMessage());
    }


texts: Magento 2: How to crawl custom/dynamic URL's?

texts:
We need to crawl the custom/dynamic URLs. Is there any way?
Suppose we have a URL like https://www.test.com/stores/awt
and it's coming from a custom module and /awt is dynamic it changes as per requirement, is there any way to crawl those URLs.
I have set tags as well:
canonical: https://www.test.com/stores/awt
robots: INDEX,FOLLOW
Thanks in advance.


texts:
I am using Magento 1.9 and the RWD theme. My product images are rectangle, being taller than they are wide, however Magento shows them as square. How do I change this?

My largest image size is 1000x600 (Height x Width)


texts:
I've installed a fresh copy of ce-1.9.0.1 with sample data for 1.9.0.0 for testing purposes.
I'm trying to perform a checkout as a logged in customer (by the way...where is the damn logout button?) and as a guest but I get stuck on the saveBilling action.
The call stops (firebug says the request was aborted) and I cannot continue the checkout.
I tried both "Ship to the same address" and "ship to a different address".

I narrowed it down to crashing when calling $quote->collectTotals().
I will investigate further but I'm curios if someone else is experiencing the same thing and, if so, how can I fix it?


texts: How to add custom frontend input for "catalog input type for store owner"

texts:
I want to add custom frontend_input for “Catalog Input Type for Store Owner” at the creation of  an product attribute.

Like at present magento is providing Text Field,Text Area,Date,Yes/No,Multiple Select,Dropdown,Price,Media Image.
In this list I want to add new attribute like : multiselect_calender.

So it is possible to add new option ? How ?

Just check screen shot for better idea about my query


texts: change cache to Reids and the exception:NOAUTH Authentication required occurred

texts:
My magento version is 2.2.6，It is strange,becuase I can see the data in Reids,that means can write to Reids,and the system knows the password,Why did I mention this error when I visited the website?

'session' => [
    'save' => 'redis',
    [
        'host' => '127.0.0.1',
        'port' => '6379',
        'password' => '123456',

'cache' =>
    array (
        'frontend' =>
            array (
                'default' =>
                    array (
                        'backend' => 'Cm_Cache_Backend_Redis',
                        'backend_options' =>
                            array (
                                'server' => '127.0.0.1',
                                'port' => '6379',
                                'persistent' => '',
                                'database' => 1,
                                'password' => '123456',
'page_cache' =>
    array (
        'backend' => 'Cm_Cache_Backend_Redis',
        'backend_options' =>
            array (
                'server' => '127.0.0.1',
                'port' => '6379',
                'password'=>'123456',


texts:
I enabled to log slow queries for more than 30 seconds, so that I can check what went wrong.
In the log file, I get the following result multiple times.

How can I solve this?

/usr/sbin/mysqld, Version: 10.1.20-MariaDB (MariaDB Server). started with:
Tcp port: 0  Unix socket: (null)
Time                 Id Command    Argument
# Time: 170118 10:15:55
# User@Host: magento[magento] @ localhost []
# Thread_id: 76  Schema: magento  QC_hit: No
# Query_time: 35.514841  Lock_time: 0.000914  Rows_sent: 0  Rows_examined: 346605
# Rows_affected: 346605
use magento;
SET timestamp=1484730955;
DELETE FROM `catalog_product_index_price_idx`;
# Time: 170118 10:17:12
# User@Host: magento[magento] @ localhost []
# Thread_id: 76  Schema: magento  QC_hit: No
# Query_time: 44.621547  Lock_time: 0.000037  Rows_sent: 0  Rows_examined: 346605
# Rows_affected: 346605
SET timestamp=1484731032;
DELETE FROM `catalog_product_index_price`;


texts: Getting Error while calling a block `$_product->$_call()`

texts:
Fatal error: Uncaught Error: Method name must be a string in
  D:\xampp-7.1.23\htdocs\indiahicks\app\design\frontend\Mgs\ethan\Magento_Catalog\templates\product\view\form.phtml:19

<?php
    $_helper = $this->helper('Magento\Catalog\Helper\Output');
    $_product = $block->getProduct();

    $_call = $block->getAtCall();
    $_code = $block->getAtCode();
    $_className = $block->getCssClass();
    $_attributeLabel = $block->getAtLabel();
    $_attributeType = $block->getAtType();
    $_attributeAddAttribute = $block->getAddAttribute();
    $themeHelper = $this->helper('MGS\Mpanel\Helper\Data');

    if ($_attributeLabel && $_attributeLabel == 'default') {
        $_attributeLabel = $_product->getResource()->getAttribute($_code)->getFrontendLabel();
    }
    if ($_attributeType && $_attributeType == 'text') {
        $_attributeValue = ($_helper->productAttribute($_product, $_product->$_call(), $_code)) ? $_product->getAttributeText($_code) : '';
    } else {
        $_attributeValue = $_helper->productAttribute($_product, $_product->$_call(), $_code);
    }
?>


texts:
I set up Solr for my magento site following this guide from magento. The connection works, indexing works, and the search is working well.

The issue is that now my search results have no layered nav. The column just isn't showing up at all. There is a question someone posted who had the same problem here, where they suggested editing a line in catalog.xml. However, their "solution" changed nothing for me. Does anyone have any experience with this issue? Does anyone have a catalog.xml file of a Magento installation working fully with solr that is showing layered nav in the results page?

I am on EE 1.14 with Solr 3.6.2.


texts: Problems with DateTime: failed to parse time string

texts:
I'm getting very confused here. I made a module which has an adminhtml form which contains a date field. I'm adding it like this:

    $quotaFieldset->addField(
        'quota_expiry',
        'date',
        [
          'name' => 'quota_expiry',
          'label' => __('Quota Expiry Date'),
          'title' => __('Quota Expiry Date'),
          'required' => false,
          'date_format' => $this->_localeDate->getDateFormat(),
          'input_format' => \Magento\Framework\Stdlib\DateTime::DATE_INTERNAL_FORMAT,
          'time' => false,
          'disabled' => false
        ]
    );

So far this has worked well. But now I have deployed my application to another server, and suddenly (I know this from debug logs) the string returned from $this->_localeDate->getDateFormat() is now "dd/MM/y" instead of "M/d/yy" like on my development machine.

Because of that, when I use the popup calendar to select a date, it would fill in "29/04/2016" which then gives following exception when I save the model:

DateTime::__construct(): Failed to parse time string (29/04/2016) at position 0 (2): Unexpected character
#0 .../lib/internal/Magento/Framework/Stdlib/DateTime.php(55): DateTime->__construct('29/04/2016')
#1 .../lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(2671): Magento\Framework\Stdlib\DateTime->formatDate('29/04/2016', true)
#2 .../lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(2896): Magento\Framework\DB\Adapter\Pdo\Mysql->formatDate('29/04/2016')
#3 .../lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php(184): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareColumnValue(Array, '29/04/2016')
....

Where do I need to fix this? The locale settings in the Magento config are the same for all my store views (but then again, adminhtml is a different kind of store view and cannot be assigned a locale to my knowledge...?).

Or would this be lower, like the OS locale? But my environment is running in Docker containers and therefore it should be exactly the same, regardless if they run on my local or on the server.

I don't know what to do. Please help.

Edit: I have made some progress. I discovered that the admin store view locale can be set for every admin user in their settings, and one of mine was set to en_US while the other was en_GB.

But the question remains: how do I handle this correctly? I don't want my code to break when the admin user changes their locale.


texts: Magento 2.2 Code is printed in the frontend and the module isn't working

texts:
I have created a module to override a product template file (attribute.phtml) and JavaScript code is printed in the frontend. I have the JavaScript code inside

    Μεγεθολόγιο

    <img src="<?php echo $this->getViewFileUrl($sc); ?>"/>

<?php endif; ?>

And this is how is shown in the frontend.


texts: Magento2: Add modal popup to admin grid column using block approcah

texts:
There is an admin grid created in block method. Now I want to add a new column with a button or link that will open a popup when clicked. So instead of having the edit/view link that redirects to another page I could view the required details inside the popup on the same page. Is there any easy method to achieve this feature?
The existing columns are added in the _prepareColumns function as below,

protected function _prepareColumns()
{
    $this->addColumn(
        'user_id',
        [
            'header' => __('Seller ID'),
            'type' => 'number',
            'index' => 'user_id',
            'header_css_class' => 'col-id',
            'column_css_class' => 'col-id'
        ]
    );
    $this->addColumn(
        'view', [
        'header' => __('Show more'),
        'type' => 'action',
        'actions' => [
            [
                'caption' => __('Show more'),
                'url' => [
                    'base' => '',
                ],
                'field' => ''
            ]
        ],
        'filter' => false,
        'sortable' => false,
        'index' => 'user_id',
        'header_css_class' => 'col-action',
        'column_css_class' => 'col-action'
    ]);
    $this->addColumn(
        'seller_name',
        [
            'header' => __('Seller Name'),
            'index' => 'user_id',
            'filter' => false,
            'renderer' => 'MyVendor\MyModule\Block\Adminhtml\Grid\Column\SellersGridSellerName'
        ]
    );
    $this->addColumn(
        'seller_state',
        [
            'header' => __('State/Province'),
            'index' => 'state',
            'type'   => 'text',
        ]
    );
    $this->addColumn(
        'seller_status',
        [
            'header' => __('Seller Status'),
            'index' => 'userstatus',
            'type' => 'options',
            'options' => array(
                '1'=>'Active',
                '2'=>'Deactivated',
                '0'=>'Pending'
            ),
            'renderer' => 'MyVendor\MyModule\Block\Adminhtml\Grid\Column\SellersGridSellerStatus'
        ]
    );
    $block = $this->getLayout()->getBlock('grid.bottom.links');
    if ($block) {
        $this->setChild('grid.bottom.links', $block);
    }

    return parent::_prepareColumns();
}

Now I would like to open a popup when clicked on 'Show more' link to show more information about the seller. Please let me know if there is a way. Thank you in advance!


texts:
I want to attempt to cancel order for a specific order item through api. Magento get permission to cancel order by increment id of an order through API.As Example :

My order id : 10000001

Order items ids are 23,45

Now I want to cancel order for item id 45.

Its possible or not?? Please any one help me?


texts: Speed : Magento with both APC and Memcached

texts:
We have studied many forums and don't know the answer to the following. We have both APC and Memcache installed on our servers. We are not sure what the correct and best config is.

My question

What are/is the best settings for running Magento using both Memcache + APC at the same time? (Or is this not smart at all)

Background research

Here Memcache and APC are advised as fast and slow cache (but no disk). Sounds like this only works when you have enough RAM (and sure about it)

http://www.coeusblue.com/blog/48-magento/65-magento-caching

And this article is about Memcache or APC - and we have both

http://magebase.com/magento-tutorials/speeding-up-magento-with-apc-or-memcached/

And here it states that Memcache only really works when you also have a slow backend defined

http://www.magentocommerce.com/boards/viewthread/283908/#t393090

And I think this article is saying the same

http://www.byte.nl/blog/speeding-up-magento-the-burden-of-two-level-cache/

This is my ISP's solution for local.xml

<cache>
  <backend>apc</backend>
  <prefix>sitenamehere__</prefix>
</cache>
<cache>
  <backend>memcached</backend>
  <memcached>
    <servers>
      <server>
        <host><![CDATA[127.0.0.1]]></host>
        <port><![CDATA[11211]]></port>
        <persistent><![CDATA[1]]></persistent>
      </server>
    </servers>
    <compression><![CDATA[0]]></compression>
    <cache_dir><![CDATA[]]></cache_dir>
    <hashed_directory_level><![CDATA[]]></hashed_directory_level>
    <hashed_directory_umask><![CDATA[]]></hashed_directory_umask>
    <file_name_prefix><![CDATA[]]></file_name_prefix>
  </memcached>
</cache>

Situation

Shared hosting
Brim FPC installed: http://ecommerce.brimllc.com/full-page-cache-magento.html
(this FPC also has a scaleable file cache to make it more complex)


texts: How to activate EE as plattform for an extension on magentocommerce.com?

texts:
We've a lot of extensions developed, which are available on magentocommerce.com, but only activated for the CE plattform, but most of them work also perfectly in EE.

In the administration panel for the extension it's only possible to activate different CE versions, but non EE versions, even if we have a silver partner account associated. We already tried to contact some guys at Magento and eBay, but didn't get any reply of how to activate a extension also for EE.

Does anyone have experience with acitvating an extension also for the EE plattform on magentocommerce.com? What did you have to do? Who can we contact?

Just to be clear: This question is not about what to change in our code, it's how can we activate EE versions in our magentocommerce.com account, to provide some of our extensions also for EE.


texts: How to logout / close ssh connection after completing session

texts:
I don't have any experience of using ssh / commands, I'm using ssh just for reindexing Magento.

When I finish reindexing then how can I log out? Which command can I use to log out?


texts:
I'm using magento 1.9.3.1 and I'm wondering how I can conditionally remove items when they are sorted by price on a category page.

I have items that contain specific attributes, that when sorted by price I would like those items removed entirely from the results.

Is this possible?


texts: How can i Stop calling event bind with data-mage-init

texts:
I am implementing infinite scroll in a custom collection which is working perfectly but in my case when i filter out this collection and update collection item with ajax response still the previously binded event is calling along with updated bind event

How can i stop the previous event after ajax response?

    <button class="dynamic-pager-lazyload-trigger dynamic-pager-hide-onload action primary" title="See more" type="button" style="display: inline-block;"> See more </button>

Here is my lazyload.js code

define(['domReady!', 'jquery'], function(domReady, $)
{
'use strict';

var Lazyload = function (options)
{
    var that = this;

    /**
    * Lazyload default options.
    * @type {Object}
    */
    that.defaults =
    {
        expires: null,
        path: '/',
        domain: null,
        secure: false,
        lifetime: null
    };

     /**
     * Init options
     * @type {Object}
     */
     that.opt = $.extend(that.default, options);
     console.log(that.opt);

     /**
     * Load new content
     */
     function startLoading()
     {
        if (that.opt.current_page < that.opt.last_page && !that.loading)
        {
            that.loading = true;
            $('.dynamic-pager-show-onload').show();
            $('.dynamic-pager-hide-onload').hide();

            console.log(that.opt.page_url[that.opt.current_page+1]);

            $.ajax(
            {
                "url":that.opt.page_url[that.opt.current_page+1],
                "cache":true
            }).success(function (data)
            {
                var $html = $(data);
                var ws = that.opt.list_wrapper;
                var $nw = $html.find(ws);
                if ($nw.length)
                {
                    $(ws).append($nw.html());
                    that.opt.current_page++;
                }

                endLoading();

            }).fail(function (xhr, ajaxOptions, thrownError)
            {
                console.log(thrownError);
                endLoading();
            });
        }
    }

    /**
     * On loading end
     */
     function endLoading()
     {
        that.loading = false;
        $('.dynamic-pager-show-onload').hide();
        if (that.opt.current_page < that.opt.last_page)
        {
            $('.dynamic-pager-hide-onload').show();
        }
    }

    /* Is not loading now */
    endLoading();

    /* If auto trigger enabled */
    if (that.opt.auto_trigger)
    {
        var $w = $(window);
        $w.scroll(function ()
        {
            if ($w.scrollTop() + $w.height() >= $(that.opt.trigger_element).offset().top - that.opt.padding)
            {
                startLoading();
            }
        });
    }

    /* On trigger element click */
    if (that.opt.trigger_element)
    {
        $(that.opt.trigger_element).click(function ()
        {
            startLoading();
        });
    }
};

return function (options)
{
    new Lazyload(options)
};

});


texts: Credit memo "Return to Stock" not working properly, Configurable Product

texts:
Here is my setup:
Magento 2.4.1
Stores->Configuration->Sales->Payment Methods->Braintree (sandbox)->Payment Action = "Intent Sale" (same as "Authorize and Capture")
Stores->Configuration->Catalog->Inventory->Stock Options->"Decrease Stock When Order is Placed" = Yes
Stores->Configuration->Catalog->Inventory->Product Stock Options->"Automatically Return Credit Memo Item to Stock" = No
Since all Payment Action is "Auth and Capture", the Orders are automatically Invoiced and Order Status is: "Processing"

Customer purchases a quantity of a Product Variation (a child product of the configurable product), in this case the remaining stock.

I issue a Credit Memo to Refund (either before Shipping or after Shipping, it doesn't matter), open the Invoice and click on "Credit Memo" at the top of the window, select "Return to Stock" for all line items.

The Quantity and Salable Quantity for each Simple Product Variation is NOT getting updated, they both show 0.

However, if I manually update product Quantity and Stock Status (to In Stock) for each Simple Product Variation - the Quantity is updated BUT the Salable Quantity/Default Stock now includes the Credited Stock so that the Quantity and Salable Quantity are way out of sync.

Stock status is now all messed up - Salable Quantity / Default Stock is wrong!
It seems like neither the Inventory Reservation table or the product Stock Quantity are being updated properly when an order is returned to stock.
This seems like a serious bug...?
Evelyn


texts: Pay via PayPal step 6 (Order Review) is being skipping

texts: On Magento ver. 1.9.1.0 using the default checkout, when a user selects to pay via PayPal step 6  (Order Review) is being skipping, but this step is essential to me as it has order comments. How can I make sure the user sees this step when selecting to pay via paypal?


texts: Deleting var/cache folder loads the webpage with only category links and always pointing to no route page

texts:
I am using magento 1.8.1 and moved my site from localhost to live site for some reason it was redirecting to my localhost itself so i changed my site url in both web_base_secure and unsecure url from core_config_data table in database with no luck still it was redirecting to my localhost and then i tries deleting contents in var/cache folder my site stopped redirecting but loads as shown in image.

For some reason i couldn't login to my admin page the same page appears if try to load my admin page.

Please help me this problem is killing me.

Thanks in advance......

eb 12 07:27:28 2015] [notice] caught SIGTERM, shutting down
[Thu Feb 12 07:27:28 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.37-1+deb.sury.org~precise+1 configured -- resuming normal operations
[Thu Feb 12 13:44:44 2015] [error] [client 61.240.144.66] File does not exist: /var/www/wildrose
[Thu Feb 12 14:34:14 2015] [error] [client 202.83.25.123] File does not exist: /var/www/wildrose
[Thu Feb 12 14:34:15 2015] [error] [client 202.83.25.123] File does not exist: /var/www/wildrose
[Thu Feb 12 14:34:21 2015] [error] [client 202.83.25.123] File does not exist: /var/www/wildrose
[Thu Feb 12 14:34:25 2015] [error] [client 202.83.25.123] File does not exist: /var/www/wildrose
[Thu Feb 12 14:34:51 2015] [error] [client 202.83.25.123] File does not exist: /var/www/wildrose
[Thu Feb 12 14:37:36 2015] [notice] caught SIGTERM, shutting down
[Thu Feb 12 14:37:37 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.37-1+deb.sury.org~precise+1 configured -- resuming normal operations
[Thu Feb 12 15:24:34 2015] [error] [client 62.210.127.243] File does not exist: /usr/share/phpmyadmin/scripts
[Thu Feb 12 15:38:15 2015] [notice] caught SIGTERM, shutting down
[Thu Feb 12 15:39:05 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.37-1+deb.sury.org~precise+1 configured -- resuming normal operations
[Thu Feb 12 15:46:21 2015] [notice] caught SIGTERM, shutting down
[Thu Feb 12 15:46:21 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.37-1+deb.sury.org~precise+1 configured -- resuming normal operations
[Thu Feb 12 16:14:48 2015] [notice] caught SIGTERM, shutting down
[Thu Feb 12 16:14:49 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.37-1+deb.sury.org~precise+1 configured -- resuming normal operations

Note: I noticed that my site is always pointing towards no route page how to overcome this please help me.


texts: Magento 2.1.6 - File permissions keep resetting some to none

texts: So i run the necessary permission commands for my Magento installation, i then notice the permissions change by them self and some folders all of a sudden have no permissions set, for example in the /var folder, only a few have permissions set. Why would this happen?


texts: how to create a 30% off promotion with flat shipping and exclude one category

texts:
I want to create a promotion that gives flat shipping rate and and 30% discount as well but I want to exclude one sale category from it.

I made one myself for the discount but whenever I add anything from the sale category the code doesn't work (sale category has free shipping to it)


texts: How can you update prices on previous orders?

texts:
I put a Magento (1.9.2.4) site live for a week and took around 30 orders, which I can view in reports. Unfortunately, I had to revert to the client's previous site when some issues came up.

I now need to provide the client with accurate sales and profit margin reports for the 7 days I had the site up. The problem is, some of the product pricing (for the wholesale/cost figures) wasn't correct at the time so the reports I produce don't have the correct figures for margin and profit.

Is there any way I can force Magento to use the current (and correct) product pricing rather than some of the incorrect product pricing at the time the transactions went through?


texts: Upgrade Magento 2 Commerce 2.3.2 to 2.3.4 not working

texts:
I'm trying to upgrade Magento 2 Commerce version from 2.3.2 to 2.3.4 using the following command.

  composer require magento/product-enterprise-edition=2.3.4

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: magento/page-builder-commerce[1.2.0, 1.0.1].
    - Can only install one of: magento/page-builder-commerce[1.2.0, 1.0.1].
    - Can only install one of: magento/page-builder-commerce[1.0.1, 1.2.0].
    - magento/product-enterprise-edition 2.3.4 requires magento/page-builder-commerce 1.2.0 -> satisfiable by magento/page-builder-commerce[1.2.0].
    - Installation request for magento/product-enterprise-edition 2.3.4 -> satisfiable by magento/product-enterprise-edition[2.3.4].
    - Installation request for magento/page-builder-commerce (locked at 1.0.1) -> satisfiable by magento/page-builder-commerce[1.0.1].


texts: How to use two different price templates / list and detail view

texts:
within the following file I can see below shown code:

File:

frontend/default/ves_fashion/template/common/list/default.phtml

Code:

<div class="price">
<?php echo $this->getPriceHtml($_product, true, $price_prefix) ?>
</div>

If I navigate to

frontend/default/ves_fashion/template/catalog/product/price.phtml

and make some changes to the price.phtml file, I can see the changes on two parts:

The price which is shown for each product in the product overview
section.
The price which is shown for one product in the detail view.

How can I change the template that two different price templates are loaded - one for the overview section, and a different one for the detailed section?

I tried to rename

<?php echo $this->getPriceHtml($_product, true, $price_prefix) ?>

to

<?php echo $this->getPricelistHtml($_product, true, $price_prefix) ?>

And clone price.phtml as pricelist.phtml, but this is not working correctly.

Thanks for your help!