texts:
Here is the code which displays all the categories and sub categories.

I would like to display only categories and subcategories of root category with id 7.

<?php $store_categories = $this->toLinearArray($this->getStoreCategories()) ?>
<?php if ($count = count($store_categories)): ?>
        <ul id="vertnav">
<?php endif; ?>
<?php foreach ($store_categories as $i => $_category): ?><?php $class = array() ?>
<?php if ($count == 1): ?>
<?php $class[] = 'only' ?>
<?php elseif (! $i): ?>
<?php $class[] = 'first' ?>
<?php elseif ($i == $count-1): ?>
<?php $class[] = 'last' ?>
<?php endif; ?>
<?php if (isset($store_categories[$i+1]) && $this->isCategoryActive($store_categories[$i+1])) $class[] = 'prev'; ?>
<?php if (isset($store_categories[$i-1]) && $this->isCategoryActive($store_categories[$i-1])) $class[] = 'next'; ?>
<?php echo $this->drawOpenCategoryItem($_category, 0, $class) ?>
<?php endforeach ?>
<?php if ($count): ?>
        </ul>
<?php endif; ?>


texts:
I want to setup PWA with magento 2.3, I have followed magento documentation,

after that I got pwaDevserver frontend url https://magento-venia.local.pwadev:8001 but it can't be reached. Please see attached screenshot

I don't know how to move further, please let me know the further steps.


texts: remove slider and show gallary image as thumbnails in the detail page magento 2

texts:
Remove the slider and show gallery image as thumbnails on the detail page Magento 2.

please anyone can help me how can I solve this??


texts: SOAP fault with default WSDL from Magento Website

texts:
I am using the WSDL (advertised in the Magento Website to be used with Java) in my Android Application.

For simulating the request/response i am using SOAP UI. I deployed Magento on a WAMP server on my local windows machine.

Now when i run any of the SOAP API's I am getting a SOAP fault. Upon analysis found that the below line present in all the internal WSDL files in magento is the cause of this problem -

<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />

When I comment this line, everything seems to work fine.
But I don't think that this is the correct solution ...

Anyone who faced this issue , please help out !!!!!


texts:
I've seen a couple of things about this but I can't seem to get the value
I have
<field id="template" translate="label" type="select" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
      <label>Email Template</label>
      <source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
      <config_path>cron/email/template</config_path>
</field>

I want to get the email selected in that field, so I created a Helper Data.php with
    /*
     * @return string
     */
    public function getTemplate($scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT)
    {
        return $this->scopeConfig->getValue(
            'cron/email/template',
            $scope
        );
    }

Then I have a cron that runs another helper that looks like
<?php
namespace Custom\OrderCancelled\Helper;

use Magento\Framework\App\Helper\Context;
use Magento\Framework\Translate\Inline\StateInterface;
use Magento\Framework\Escaper;
use Magento\Framework\Mail\Template\TransportBuilder;
use Custom\OrderCancelled\Helper\Data;

class Email extends \Magento\Framework\App\Helper\AbstractHelper
{
    protected $inlineTranslation;
    protected $escaper;
    protected $transportBuilder;
    protected $logger;
    protected $helper;

    public function __construct(
        Context $context,
        StateInterface $inlineTranslation,
        Escaper $escaper,
        TransportBuilder $transportBuilder,
        Data $helper
    ) {
        parent::__construct($context);
        $this->inlineTranslation = $inlineTranslation;
        $this->escaper = $escaper;
        $this->transportBuilder = $transportBuilder;
        $this->helper = $helper;
        $this->logger = $context->getLogger();
    }

    public function sendEmail()
    {
      $templatetest = $this->helper->getTemplate();

      $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/OrderCancelled.log');
      $logger = new \Zend\Log\Logger();
      $logger->addWriter($writer);
      $logger->info('||' . $templatetest . '||');
    }
}

But the $templatetest returns empty.
What's wrong here?
Thanks :D


texts: quantity increment button based on _qtyIncrements value

texts:
I have different simple products each one have a Qty Increments .

I want to increment (+/-) each product by its Qty Increments on product page.
my increment code by 1 is :

<script type="text/javascript">
//<![CDATA[
  jQuery(document).ready(function(){
    jQuery('.increment_qty').click(function() {
      var oldVal = jQuery(this).parent().find("input").val();

      if ( parseFloat(oldVal) >= 1 ) {
        var newVal = parseFloat(oldVal) + 1;
        jQuery(this).parent().find("input").val(newVal);
      }
    });

    jQuery('.decrement_qty').click(function() {
      var oldVal = jQuery(this).parent().find("input").val();
      if ( parseFloat(oldVal) >= 2 ) {
        var newVal = parseFloat(oldVal) - 1;
        jQuery(this).parent().find("input").val(newVal);
      }
    });
  });
//]]>
</script>

please help me


texts: How to get category name and url on product template?

texts:
I'm trying to get breadcrumbs working on product page. I need to display current category and url

template file:
catalog/product/view.phtml

I have tried the following:

$categories = $_product->getCategoryIds();
foreach($categories as $categoryId){
    $_category = Mage::getModel('catalog/category')->load($categoryId);
    echo $_category->getName();
    if($_category->getIsActive()){
        echo "yes\n";
    }

}

above code works, but it outputs all categories.

I have tried the following, but it didn't work

$current_cat = $this->getCurrentCategory();
echo "cat:\n";
print_r($current_cat);
//$category = Mage::registry('current_category');
//print_r($category->getName());
$c = Mage::getModel('catalog/layer')->getCurrentCategory();
print_r($c->getName());

can you suggest how to get current category? or is there alternative solution?


texts: magento 2 catalog_product_collection_load_before event

texts:
I am using Magento Enterprise 2.2.10 and I am wanting to show out of stock products and want to have show at the end of the category collection.  I thought I could use the event: catalog_product_collection_load_before but that does not seem to exist in Magento 2 but this event does work: catalog_product_collection_load_after

If I use the catalog_product_collection_load_after event I can add the fields to the collection ordering but they get added the order default category ordering and does not accomplish what I want to do.

Any ideas how I can go ordering products like this since that event does not fire?

Is there a way to replace the order by query instead of add to it?

Using the event catalog_product_collection_load_after I was able to modify the collection query to order the data the way I want but it does not have any affect on the display of the products in the category.

This is what I came up with which does generate the correct query but why does it not change the order of the product on the category?

$collection
    ->getSelect()
    ->joinLeft(
        array('_inventory_table' => $c
        "_inventory_table.product_id =
        array('is_in_stock')
    )
    ->reset('order')
    ->order('is_in_stock DESC')
    ->order('cat_index_position ASC');


texts: Magento 2.3 | How to get Website ID in Cron Class

texts:
I tried to retrieve it as:

\Magento\Store\Model\StoreManagerInterface $storeManager

and

$websiteId = (int)$this->storeManager->getWebsite()->getId();

But it returns null in cron class.

How to get website ID there?


texts: How to find config column in core_config_data table?

texts:
I want to add values to this field from "core_config_data" table, how do i identify it ?
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
        <system>

                <group id="catalog_settings" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="1">
                    <field id="product_attributes" translate="label comment" type="multiselect" sortOrder="102" showInDefault="1" showInWebsite="1" showInStore="1">
                        Product attributes to export
                        <source_model>Divante\VsbridgeIndexerCatalog\Model\Config\Source\Product\Attributes</source_model>
                        <backend_model>Divante\VsbridgeIndexerCatalog\Model\Config\Backend\Attributes</backend_model>
                        <can_be_empty>1</can_be_empty>
                        <comment>Select which product attributes should be exported. Some attributes will be always exported: name, sku, price, status, url_path, url_key, visibility.</comment>
                    </field>
            </group>

    </system>
</config>


texts:
I followed this tutorial: https://www.damianculotta.com.ar/magento/bug-en-los-locales-es-en-magento-1-y-2/ which suggested to override this file: src/lib/Zend/Locale/Data/es_419.xml.
I created the new file in this location: features/Multivac_Theme/app/code/local/Zend/Locale/Data/es_419.xml, but it doesn't work. How can I properly override the file? Thanks!


texts: Send multiple attachments via custom PHP form

texts:
We try to send attachments via a custom form. With the sendemailAction() in our IndexController.php we upload the files to a directory on the server and send them with the email.

public function sendemailAction()
{
    $params = $this->getRequest()->getParams();
    $mail = new Zend_Mail();
    $senderemail = $params['email'];
    $bodytext = '

Klachtenformulier Type 1, Over het product

Naam: ' . $params['name'] . '

Telefoon: ' . $params['telephone'] . '

E-mail: ' . $params['email'] . '

Ordernummer: ' . $params['ordernumber'] . '

Klacht: ' . $params['comment'] . '
';
    $mail->setBodyHtml( $bodytext );
    $mail->setFrom('info@sitename.nl', 'Sitename.nl');
    $mail->addTo('michael.van.eijden@gmail.com', 'Michael van Eijden');
    $mail->setSubject('Subject');

    for($i=0; $i<count($_FILES['file']['name']); $i++) {

        $tmpFilePath = $_FILES['file']['tmp_name'][$i];

        if ($tmpFilePath != ""){
            $newFilePath = "./media/complaintsuploads/" . $_FILES['file']['name'][$i];

            if(move_uploaded_file($tmpFilePath, $newFilePath)) {
                $fname = $_FILES['file']['name'][$i];
                $ftempname = $_FILES['file']['tmp_name'][$i];
                $at = $mail->createAttachment(file_get_contents($ftempname));
                $at->disposition = Zend_Mime::DISPOSITION_INLINE;
                $at->encoding = Zend_Mime::ENCODING_BASE64;
                $at->filename = $fname;
            }
        }
    }

    try {
        $mail->send();
    }

    catch(Exception $ex) {
        Mage::getSingleton('core/session')->addError('Unable to send email.');
    }

    $this->_redirect('complaints-type-one-success');
}

Unfortunately this only sends the name of the added files. How we can get the size and type too?


texts: Magento 2.0 - Setting Custom Amount For Shipping Per Programmatically Created Orders

texts:
Does any of you know if this is possible? I am not sure if this can be done on the Flat Rate or if I need to create a custom shipping method.
I need to set the flat rate amount as the orders are imported from another store which already did the initial computation of the shipping.  I only need to set the shipping amount once I save those imported orders into Magento.


texts: Payment method buttons sometimes work sometimes no

texts: I need a little help, sometimes the buttons of the method payment doesn't work, I can't find what is going on, in the most of the cases they work.


texts: I tried to hide the My Account menu from the dropdown when variable in my session is 0. I already could save my variable to the session, but i can't find the phtml to hide the My Account menu in top dropdown. Which file that generate the header?


texts: Admin only version of transactional email?

texts:
Is there a way to create a transactional email based on the customer's order that is sent to admins only? Basically I'm looking for one that I can edit with some other warehouse related empty spaces so when the guys pick the order, they have a place to write in some notes.

And it would send the admin account an email and the customer get's the typical one.

Any ideas?


texts: 1.9.2 image issue - have buttons, uploads successfully, does not attach to product

texts:
I have the upload buttons, the file uploads successfully, but it does not attach to product

Magento 1.9.2.4

I have done the following

Ensure that the app/design/adminhtml/default/default/template/media folder exists and that there are 2 files within it.

editor.phtml
uploader.phtml

Ensure that the skin/adminhtml/default/default/media folder exists and that there are 3 files within it.

flex.swf
uploader.swf
uploaderSingle.swf

I have the "browse files" and "upload files" buttons, and I can browse files, and when I upload the notice goes green with success message.

Media directory, all subfolders are chmod to 777

I get the following json result

{
  "name":"screenshot.png",
  "type":"application/octet-stream",
  "tmp_name":"/tmp/phpsfaygg",
  "error":0,
  "size":59074,
  "path":"/www/domain.com/media/tmp/catalog/product",
  "file":"/s/c/screenshot_3.png.tmp",
  "url":"https://www.domain.com/media/tmp/catalog/product/s/c/screenshot_3.png",
  "cookie": {
    "name":"adminhtml",
    "value":"8dci943bhj8e9941oskmf1ahi1",
    "lifetime":"3600",
    "path":"/",
    "domain":"www.domain.com"
  }
}

When I go to the "url" location the file is there, so it has uploaded successfully, but it is not attaching to the product

Side note
I do not have the upload buttons on CMS pages, so cannot test that, I also need assistance with that


texts: Magento 2: controller preference not working after setup:di:compile

texts:
I need to rewrite a couple of adminhtml controllers in Magento 2. I am using preference and my configuration in etc/di.xml file looks like this:

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

    <preference for="Magento\Widget\Controller\Adminhtml\Widget\LoadOptions"
                type="CustomModule\CustomWidgets\Controller\Widget\Adminhtml\Widget\WidgetLoadOptions" />

    <preference for="Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\OnInsert"
                type="CustomModule\CustomWidgets\Controller\Cms\Adminhtml\Wysiwyg\Images\WidgetOnInsert" />

</config>

After clear all generated folders (var/cache, var/di, var/generation) it works OK. The problem starts once I run magento setup:di:compile command. Compilation is executed successfully (tested in developer and production modes) but preference doesn't work (original Magento method is executed instead of mine).

Can someone help me? thanks in advance!

EDITED:

If someone has same issue, I have reported some time ago the issue in Magento 2 repository and they confirmed there was a bug:

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

I will update the answer once they get it solved.


texts: How to override vendor/Magento/Module-customer/etc/webapi.xml

texts:
To prevent spammers to create accounts in Magento 2.2.4.

I want to change resource ref= in

 vendor/Magento/Module-customer/etc/webapi.xml

How can I override this core xml ??


texts: Product detail page image not loading on front end

texts:
Product detail page images are not loading. The pointer is just spinning. I have read lots of threads. Clear cache, reindexed, change permissions.

Finally, I got a problem. but unable to fix it. :-/ I am using Porto theme.
When I look at the browser console, I see the following error

Uncaught SyntaxError: Unexpected token, in JSON at position 1699
    at JSON.parse (<anonymous>)
    at getNodeData (scripts.js:87)
    at Array.map (<anonymous>)
    at scripts.js:117
    at HTMLDocument.apply (main.js:70)
    at fire (jquery.js:3232)
    at Object.add [as done] (jquery.js:3291)
    at jQuery.fn.init.jQuery.fn.ready (jquery.js:3542)
    at jQuery.fn.init (jquery.js:2967)
    at new jQuery.fn.init (jquery-migrate.js:241)


texts: How to get customer order numbers in one dropdown?

texts: how can i get customer order numbers in one drop-down ?  in magento


texts: Extending Magento's Quote API to Receive New Attribute

texts:
I am trying to add a custom attribute to a quote item via the API, however I am struggling to see how Magento's architecture actually allows for this?

I have created the following files:

extension_attributes.xml:

<config>
    <extension_attributes for="Magento\Quote\Api\Data\CartItemInterface">
        <attribute code="my_custom_field" type="string">
            <resources>
                <resource  ref="anonymous"/>
            </resources>
        </attribute>
    </extension_attributes>
</config>

di.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Quote\Api\GuestCartItemRepositoryInterface">
        <plugin name="example" type="Brideo\Example\Model\GuestCart\GuestCartItemRepository\Plugin" sortOrder="100" disabled="false" />
    </type>
</config>

Brideo\Example\Model\GuestCart\GuestCartItemRepository\Plugin:

/**
     * @param GuestCartItemRepositoryInterface $subject
     * @param CartItemInterface                $entity
     *
     * @return CartItemInterface[]
     */
    public function beforeSave(
        GuestCartItemRepositoryInterface $subject,
        CartItemInterface $entity
    )
    {
            $extensionAttributes = $entity->getExtensionAttributes();

        if ($entity->getData('my_custom_field') || $extensionAttributes == null || $extensionAttributes->getMyCustomField() == null) {
            return [$entity];
        }

        $someEntity = $this->someRepo->get($extensionAttributes->getMyCustomField());

        $extensionAttributes->setMyCustomField($someEntity->getMyCustomField());
        $entity->setExtensionAttributes($extensionAttributes);

        return [$entity];
    }

I can see the extension attribute being added, however when Magento passes the cart item to the CartItemPersister::save() method it runs this code:

$item = $quote->addProduct(
                    $product,
                    $this->cartItemOptionProcessor->getBuyRequest($productType, $item)
                );

This code gives you the opportunity to add to the buy request but not add any custom data and it simply removes the extension attributes.

Any ideas? I think I might just have to create an additional mapping table even though it's not a many to many relationship.


texts:
i need to create a redirect with a multistore

the code for a normal multishop is:

/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';

/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';

switch($_SERVER['HTTP_HOST']) {
    case 'www.pippo.com':
        $mageRunCode = 'pippo';
        $mageRunType = 'website';

            break;
    case 'www.utility.com':
        $mageRunCode = 'utility';
        $mageRunType = 'website';

            break;
}

Mage::run($mageRunCode, $mageRunType);

But i want to go not
www.pippo.com
but
www.pippo.com/en/

maybe I should the run function...

Thanks


texts: How to get Parent SKU for packing slip pdf?

texts:
Basically in my magento store (i am using magento 1.9.2.4) I have configurable product called "Design Dino Tee Shirt" with SKU of DESIGNDINO and the associated products are lets say "Blue Color - S" with SKU of DESIGNDINOBLUES and "Blue Color - M" and DESIGNDINOBLUEM..

Now when someone orders this product and chose Blue Color - S.. everything is fine.. But by default.. the PackingSlips pdf when I print it.. the SKU shown in that PDF is that of the child product ie: DESIGNDINOBLUES.. Now my question is, How can I change that SKU to show the parent product ie: DESIGNDINO?

I know I can edit the template at this location:

/app/code/core/Mage/Sales/Model/Order/Pdf/Items/Shipment/Default.php

And then.. under line 58:

        // draw SKU
        $lines[0][] = array(
            'text'  => Mage::helper('core/string')->str_split($this->getSku($item), 25),
            'feed'  => 565,
            'align' => 'right'
        );

I believe I need to change something along $this->getSku($item) but im not sure how and what is the correct way to do it..

Also my 2nd question is, I run multiple stores on this 1 single magento installation.. So the changes I make here I do not want it to affect other stores.. meaning the change to parent SKU for packingslips pdf should only be for this specific store and other stores should still use the default SKU of child products.. so How can I do this so that only this store is affected and not other stores in this Magento installation?

Thanks for the help! Appreciate any discussion/answers.. :)


texts: Magento2: How to add product description to shopping cart and checkout page?

texts:
For shopping cart, I added the following code to

app/design/frontend/VendorName/custom/Magento_checkout/templates/cart/item/default.phtml

<?php /* @escapeNotVerified */ echo $this->helper('Magento\Catalog\Helper\Output')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>

But it is not displaying the description. How to add product description to shopping cart and checkout page?


texts: Can anyone explain shippingAddress.region this line how workin checkout page in magento2?

texts:
Can anyone please explain below line in magento2 checkout page

  <item name="customEntry" xsi:type="string">shippingAddress.region</item>


texts: Magento 2 plugin not getting called on checkout for shipping

texts:
I am trying to preselect the shipping country based on the user's country code.
I have the code already needed to get the country code which is in my model.
I have tried using the code in accepted answer to this question. It uses an after plugin but I can't get it to work. It still defaults to United States even though I 'm telling it to use use GB.
I have tried logging out in the plugin but get nothing in the logs so I don't think the plugin is getting called.
Here is the code:
di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Checkout\Block\Cart\LayoutProcessor">
        <plugin name="asg_country_list"
                type="Asg\GeoIp\Plugin\Checkout\Block\Cart\LayoutProcessor" sortOrder="1"/>
    </type>
</config>

LayoutProcessor.php
<?php

namespace Asg\GeoIp\Plugin\Checkout\Block\Cart;

class LayoutProcessor
{
    public function beforeProcess(
        \Magento\Checkout\Block\Cart\LayoutProcessor $subject,
        $jsLayout
    ) {
        $path = '/var/www/magento.local/var/log/test.log';

        file_put_contents($path, 'this is a test');
    }

    public function afterProcess(
        \Magento\Checkout\Block\Cart\LayoutProcessor $subject,
        $jsLayout
    ) {
        $selectedCountry = 'GB';

        $this->_logger->info($selectedCountry);

        if (isset($jsLayout['components']['checkoutProvider']['dictionaries'])) {

            foreach ($jsLayout['components']['checkoutProvider']['dictionaries']['country_id'] as &$country) {
                if ($country['value'] == $selectedCountry) {
                    $country['is_default'] = 1;
                } else {
                    if (isset($country['is_default'])) {
                        unset($country['is_default']);
                    }
                }
            }
        }
        if (isset($jsLayout['components']['block-summary']['children']['block-shipping']['children']['address-fieldsets'])) {
            $jsLayout['components']['block-summary']['children']['block-shipping']['children']['address-fieldsets']['children']['country_id']['value'] = $selectedCountry;
        }

        return $jsLayout;
    }
}

I'm using Magento 2.3.4. Could the plugin be calling the wrong module since the original question was Magento 2.2?


texts: Sharing Customer login details between two different magento sites (abc.com and xyz.com)

texts:
I am very new to magento and i have two sites abc.com , xyz.com. Now i want the user to sign up in one site (abc.com) and the same credentials should work on xyz.com

Both of them on magento and have their individual inventory and admin panel

Thanks in advance


texts: Query M1 database for ALL images and their expected locations?

texts:
We recently completed a migration from M1.9 to M2.1.9 however, there seems to be the odd missing picture. What I'm hoping to do is run a query to identify ALL images that are listed in Magento 1 DB with the expected file location and file name, and then compare that to a list of images that were successfully copied to our M2 installation, and identify those missing images.

Does anybody know the SQL queries I can run to identify all images in M1.9 database?

Thanks!


texts: Magento 2 : Rest Api for search customer by name

texts: I want to search customer by name. Any options to search customer by name using Rest API in Magento 2


texts: Is it possible to get product price from info by request?


texts: How to get disabled products id's and products price in magento 2 by using SQL Query?

texts:
I want to get disabled products id's and products price in magento 2 by using SQL Query ?
By using this i'm getting disabled product but how to get price for that products.
SELECT entity_id FROM `catalog_product_entity_int`
WHERE attribute_id = (
SELECT attribute_id FROM `eav_attribute`
WHERE `attribute_code` LIKE 'status'
) AND `catalog_product_entity_int`.value = 2


texts: Products appear 'In Stock' only after re-saving

texts:
Certain products are listed as 'Out of Stock' on the front-end till I manually open the product and hit save.
Sometimes it's configurable products, but most often it's one or two simple products. I only find out about this when a customer complains that the size they want is not available. Any suggestions on how I can proactively detect these issues and fix them?
This issue seems to be the same but unsure which version it's referring to: Products only appear when saved in Magento


texts: Magento 2 render google maps on checkout

texts:
I've extended magento 2 checkout page. Added shipping methods and custom fields to shipping method.

Radio buttons are the list of locations. I need to add map for this locations. List of Locations were added to shipping method via extension attributes in plugin.

$extensionAttribute =  ($result->getExtensionAttributes())
        ? $result->getExtensionAttributes()
        : $this->extensionFactory->create();
$extensionAttribute->setStores($this->_getStores());

Than overrided magento/module-checkout/view/frontend/web/template/shipping.html and added code for rendering locations

                    <input type="text">

                            <input type="radio"
                                   data-bind="
                                   value: $data.id,
                                   checked: $parentContext.$parent.selectedStore(),
                                   attr: {
                                       'id': 'store_id_' + $data.id,
                                       'name': 'offline_store'
                                   },
                                   click: $parentContext.$parent.selectStore.bind(this, $data.id)

                                            "
                                   class="radio"/>

I need to insert google map in

I've already included google maps library in separate block in it's phtml file.

And in this template added also js that works with google api


texts: Magento1.9: How to reinstall magento engine without reuploading files?

texts:
I had installed Magento in local server. There is some problem with it.

Now I want to reinstall the Magento engine and database as well from scratch. More specifically I want to access the installation page where I can start again, being on the existing system.


texts: magento 2 how can i get invoice of order placed with rest api

texts:
In Magento 2 how can i get invoice of order placed with rest api,
i tried like as shown in image. 49 was order Id.
but i am getting
"Invoice Document Validation Error(s):\nYou can't create an invoice without products."
How can i get invoice for orders placed.


texts: Global product attribute empty on store view level

texts:
We have a strange situation. A global product attribute that is populated at the default config level is empty on store view level. The attribute scope is ofcourse set to global. See the image below to demonstrate.

Now I must admit that we needed to tweak the database eav_attribute: because we had defined these attributes as text when they should be dropdown.

The problem arises on the frontend where these attributes default to NO,NO NO as their values. And another interesting fact is that this only happens to configurable products that have been with us for some years. The lower SKU's ....

Store set-up

-- Main config
|---- Store view 1 (current)
|---- Store view 2 (new)

For example: Main config has a (global) setting with value A. Store view 2 shows this value A. But Store view 1 shows value "empty".

Question: anyone encountered this before?

Can it be that a value already existed on a store view level? [but manually changing and saving it on the store view level does nothing. They stay empty]

On default config level

On store view level


texts: Invalid login credentails - Magento Connect Manager / downloader

texts:
I have some problem! Invalid login credentails. See http://i.imgur.com/OOBh9ax.png

History:
I transferred a complete archive folder magento of my site (htdocs - magento.tar). Moved from one stack to another identical same.

Bitnami stack Magento 1.8.0.0-1. Installed correctly. Everything is stable. Except for one thing: http://i.imgur.com/OOBh9ax.png

I can not log in MagentoConnect downloader in the back-and on my site. Invalid login credentails.
Maybe the problem connect.cfg or local.xml?

Please help,
Need any decisions and advice.

Thanks


texts:
Hi Whenever i am trying to upload svg image file in products it keeps saying "Disallowed file type". Already added file extension like this:

$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png','svg'));

in:
Mage/Catalog/Model/Product/Attribute/Backend/Media.php Mage/Adminhtml/controllers/Catalog/Product/GalleryController.php

Mage/Catalog/Model/Category/Attribute/Backend/Image.php

Do i need to add 'svg' in other then those 3 core files also?
My Magento ver. is 1.9.2.4

Thanks


texts: 404 not found for plp , pdp, homepage, customer pages, contact us etc... : M2

texts:
only cms pages are working good,  all other pages like homepage, product listing page, product detail page, customer login & register, contact us etc... all pages are showing as 404 not found.

i have try to clear & disable cache, re-indexing and also try to run commands but still other pages are not working.

i have also try to disable "Use Web Server Rewrites" and also with my custom theme.

404 not found error is showing in browser's console and network tab.


texts: Remove "delete product" option for user role

texts:
I have a custom user in my magento store backend.
I want to restrict him from deleting any products, just add/edit what is already there.


texts: cashondelivery.html Override template is not working

texts:
I put some code in below file.

  File path:
  vendor/magento/module-offline-payments/view/frontend/web/template/payment/cashondelivery.html

It is working fine in this file. The same code put here,

  File path:
  app/design/frontend/Magento/xxxx/Magento_OfflinePayments/view/frontend/web/template/payment/cashondelivery.html

But not working. Please help me.


texts:
I have a strange problem in Magento store, some orders come in without email.

As you can see on screen, such orders marked as Guest and group General, which basically refers to registered customers. How could this happen?
This issue happens on the production server and I can't reproduce it myself.

I've tried making orders when logged with a different phone number or when not logged in but with the same email. Nothing works.

We using IWD/OPC plugin on checkout, but I can't figure out what code cause the problem.

Maybe someone has the same problem? Any suggestions?


texts: Checking if the Magento 2 access keys are valid for Enterprise or Community

texts: Here's a weird question, is there a way to check if a given Magento2 access keys (authentication keys) are for the Enterprise edition or Community edition without actually trying a composer installation of a Magento2 Enterprise Edition and waiting for it successfully complete or fail.


texts:
To create form in admin magento is now using the same UI component as it use it for grid.

I have one select which will have its dependent elements.

How can I achieve this in ui component

<field name="is_external_redirect">
    <argument name="data" xsi:type="array">
        <item name="options" xsi:type="object">Namespace\Module\Model\Config\Source\Options</item>
        <item name="config" xsi:type="array">
            <item name="dataType" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">Select One</item>
            <item name="formElement" xsi:type="string">select</item>
            <item name="source" xsi:type="string">geoip</item>
            <item name="dataScope" xsi:type="string">country_codes</item>
            <item name="default" xsi:type="string">0</item>
            <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">true</item>
            </item>
        </item>
    </argument>
</field>


texts: how I can to remove or edit Terms and condition from database because it's not available


texts: Magento 2 : What is the intended use of the integration test functionality?

texts:
I write a lot of integration tests for Magento 2. This helps my local development and they fit nicely in a CI way of working.

However, there are some oddities about the integration test suite of Magento. For example:

It enables all modules by default, and there is no way to disable this. This can have some unwanted side-effects, because on a client project you most likely disable modules you don't need, for example, the Vertex module. However, this module adds a required field to your customer model, so needless to say, if you create a customer in your integration test, this test will fail.
It adds Magento test modules to your codebase. So each time you ran your integration test suite, you end up with having 3 extra modules in your app/code/Magento namespace.

These issues make it hard for an integration test to be used in a local project. Someone once said to me that the integration tests are only created for extension developers to test if your module passes the criteria to make it to the marketplace. Is this true? Because if so: what's then to a proper way to write integration tests for your clients' webshop? I do like the Magento annotations and stuff. Really frustrating this.


texts: How to show Layered Navigation For All Sub Category?

texts:
I am stuck with this, I want show Layered navigation for all sub category.

My "Is Anchor" For all sub category is enabled to Yes. Please suggest me way how I can show this.

Code for _getItemsData-->

    protected function _getItemsData() {

    if ($_module = Mage::app()->getRequest()->getModuleName() == "catalogsearch")
        return $this->_getItemsDataSearch();
    $key = $this->getLayer()->getStateKey() . '_SUBCATEGORIES';
    $data = $this->getLayer()->getAggregator()->getCacheData($key);

    if ($data === null) {
        $category = $this->getCategory();
        /** @var $categoty Mage_Catalog_Model_Categeory */
        $categories = $this->_getChildrenCategories($category);
         //$this->getLayer()->getProductCollection()
              // ->addCountToCategories($categories);
        $data = array();
        foreach ($categories as $category) {
            if ($category->getIsActive()) {
                $_count = Mage::getModel('catalog/layer')->setCurrentCategory($category)->getProductCollection()->getSize();
                //$_count = $category->getProductCount() ;
                //Mage::getModel('catalog/layer')->setCurrentCategory($category)->getProductCollection()->getSize();
                if (!Mage::getStoreConfig("ajaxlist/ajaxlist/show_no_count") && !$_count) {
                    continue;
                }
                $data[] = array(
                    'label' => Mage::helper('core')->htmlEscape($category->getName()),
                    'value' => $category->getId(),
                    'count' => $_count,
                );
            }
        }
        $tags = $this->getLayer()->getStateTags();
        $this->getLayer()->getAggregator()->saveCacheData($data, $key, $tags);
    }
    return $data;
}

Image 1- I want to show category as appear on Image 1 to Image 2

Image 2 is coming from dreamscapes.html it is sub sub category from Theme


texts:
How to delete the table record in magento using the foreign key.
I have a two table.

question(table 1)
--------
question_id
question

answer(table 2)
------
answer_id
question_id
answer

When I delete the question that corresponding answer also need to delete. I did the the question(table 1) record delete using the below method.

 $model->load($id)
 $model->setId($model->getQuestionId())->delete()

There have any way to delete the answer(table 2) record in the above method


texts: File type .svg Error in image upload Magento 2.3.1

texts:
How to Allowed  file types svg image upload magento 2

Show in  system.log

main.ERROR: Unsupported image format. File:

/var/www/html/pub/media//logos_1.svg


texts:
I have encountered an interesting problem.
One of the magento shops I support has a spam problem.
A lot of fake customer accounts are created, which I could probably solve easily by adding a honeypot captcha of some sort.
But what makes the problem interesting is the fact that these user accounts already have a standard billing and shipping address (always billing = shipping address).
But the accounts have not been confirmed (email confirmation). So they could not log in to add the addresses.

How can it be that a user has a billing/shipping address without ever being logged in ???

Is there a way to change the default login form and add values to it, which then get added as address ???

Did someone encounter this problem before ???

The store has all latest security patches and we could not find any suspicious files or admin user accounts.

Thanks in advance..


texts: Custom Page Layouts Assigned Only To Top Level Categories Are Being Applied To Subcategories?

texts:
I have created a new template for a custom Page Layout to apply to the top-level categories only, using a custom module.

Here is my module/etc/config.xml file from the module (I am not posting the template or the /etc/module/xml file as I don't believe they are relevant. Let me know if you'd like to see them and I will edit):

<?xml version="1.0"?>
<config>
    <modules>
        <Action_ToplevelcatLayout>
            <version>0.0.1</version>
        </Action_ToplevelcatLayout>
    </modules>
    <global>
        <page>
            <layouts>
                <top_level_category_layout_name translate="label">
                    <label>New Top Level Category Layout</label>
                    <template>page/top-level-category-layout.phtml</template>
                    <layout_handle>top-level-category-layout</layout_handle>
                </top_level_category_layout_name>
            </layouts>
        </page>
    </global>
</config>

I assigned this new page layout to all of the top level categories one by one by changing the option selected in the Page Layout dropdown of the Custom Design tab to the new page template - and that works great...but it seems to work too great actually.

The problem I'm having is the subcategories are also inheriting this new Page Layout, which is have only been assigned to it's parent. Use Parent Category Settings on subcategories are set to No.

I can resolve this issue by saving the child categories. If I save them (even without making any changes) the default page template is then reapplied to the subcategories and then work as expected.

Have I done something incorrect here or am I missing something? Why are the subcategories inheriting the parent category page template if it has not been assigned to it? I have also assigned the default template in the local.xml file:

<catalog_category_layered>
    <reference name="root">
        <action method="setTemplate">
            <template>page/2columns-left.phtml</template>
        </action>
    </reference>
</catalog_category_layered>

<catalog_category_default>
    <reference name="root">
        <action method="setTemplate">
            <template>page/2columns-left.phtml</template>
        </action>
    </reference>
</catalog_category_default>

If this is what I have to work with, how can I iterate through all of the categories and resave them safely without having to do so manually? I have hundreds of second level categories and really hope to avoid having to manually resave them. Thanks for your help!

UPDATE:

If I disable Use Flat Catalog Category, then both the top-level and subcategories use the correct Page Layout template. How can I ensure that the subcategories use the correct Page Layout template when Use Flat Catalog Category is also enabled? Is there an attribute that I need to modify?


texts: Unable to trace when order status for an order is marked complete in Magento

texts:
For an order, when an invoice is created the order status changes to processing. Now, if a shipment is created the order status changes to Complete.

On debugging the code.. I have been able to find out the place where shipment save occurs.

Below is the file path:
app\code\core\Mage\Adminhtml\controllers\Sales\Order\ShipmentController.php

In the following function:

 protected function _saveShipment($shipment)
    {
        $shipment->getOrder()->setIsInProcess(true);
        $transactionSave = Mage::getModel('core/resource_transaction')
            ->addObject($shipment)
            ->addObject($shipment->getOrder())
            ->save();
         return $this;
    }

I tried debugging the shipment variable data, but the status values show up as processing. But after the _saveShipment function is executed the order status changes to Complete

Could anyone tell me at what point the order status changes to Complete.


texts: Magento - For "Manage Categories" Forbidden You do not have permission to access this document

texts:
i have this problem about "Manage Categories" in backend of my Magento 1.7 and 1.9. Now when i go in menu --> manage categories i see white page with only this message:

Forbidden
You do not have permission to access this document.

The Web Server

What is the problem? I try to edit .htaccess but without success...the problem may be a missing file?

Thank you very much for any help

Errors from system.log

2016-05-03T10:06:51+00:00 ERR (3): Warning: Missing argument 1 for lessc::setFormatter(), called in /var/www/vhosts/higift.it/httpdocs/upgrade/app/code/local/Sns/Toronto/Helper/Data.php on line 150 and defined  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1948
2016-05-03T10:06:51+00:00 ERR (3): Notice: Undefined variable: name  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1949
2016-05-03T10:06:51+00:00 ERR (3): Notice: unserialize(): Error at offset 91 of 894 bytes  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 8
2016-05-03T10:06:51+00:00 ERR (3): Warning: Invalid argument supplied for foreach()  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 10
2016-05-03T10:06:51+00:00 ERR (3): Warning: Missing argument 1 for lessc::setFormatter(), called in /var/www/vhosts/higift.it/httpdocs/upgrade/app/code/local/Sns/Toronto/Helper/Data.php on line 150 and defined  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1948
2016-05-03T10:06:51+00:00 ERR (3): Notice: Undefined variable: name  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1949
2016-05-03T10:06:51+00:00 ERR (3): Notice: unserialize(): Error at offset 91 of 894 bytes  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 8
2016-05-03T10:06:51+00:00 ERR (3): Warning: Invalid argument supplied for foreach()  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 10
2016-05-03T10:06:52+00:00 ERR (3): Warning: Missing argument 1 for lessc::setFormatter(), called in /var/www/vhosts/higift.it/httpdocs/upgrade/app/code/local/Sns/Toronto/Helper/Data.php on line 150 and defined  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1948
2016-05-03T10:06:52+00:00 ERR (3): Notice: Undefined variable: name  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/page/sns/lessc.inc.php on line 1949
2016-05-03T10:06:52+00:00 ERR (3): Notice: unserialize(): Error at offset 91 of 894 bytes  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 8
2016-05-03T10:06:52+00:00 ERR (3): Warning: Invalid argument supplied for foreach()  in /var/www/vhosts/higift.it/httpdocs/upgrade/app/design/frontend/sns_toronto/default/template/sns/blocks/sticky.phtml on line 10


texts: Magento 2: Installed product attribute with options is immutable

texts:
My extension I'm working on requires a couple of product attributes to function so I added them to the install scripts. One of the attributes is a select attribute and I thought it'd be a good idea to pre-populate some starting options. Unfortunately doing this seems to make the attribute options immutable and I need to be able to add and remove these options at a later date like you would with a normal select attribute.

The part of the install script in question is this:

if (version_compare($context->getVersion(), '0.0.5') < 0) {
    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

    $eavSetup->removeAttribute(
        \Magento\Catalog\Model\Product::ENTITY,
        'google_shopping_taxonomy'
    );

    $eavSetup->addAttribute(
        \Magento\Catalog\Model\Product::ENTITY,
        'google_shopping_taxonomy',
        [
            'type' => 'int',
            'backend' => 'Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend',
            'frontend' => '',
            'label' => 'Google Shopping Taxonomy',
            'input' => 'select',
            'class' => 'select',
            'source' => 'Tainted\Googleshopping\Model\Entity\Attribute\Source\Taxonomy',
            'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
            'visible' => true,
            'required' => false,
            'user_defined' => true,
            'default' => '',
            'searchable' => false,
            'filterable' => false,
            'comparable' => false,
            'visible_on_front' => false,
            'used_in_product_listing' => false,
            'unique' => false,
            'apply_to' => ''
        ]
    );
};

And the Taxonomy it references in the source looks like this:

namespace Tainted\Googleshopping\Model\Entity\Attribute\Source;

use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;

class Taxonomy extends AbstractSource
{
    public function getAllOptions()
    {
        return [
            '0' => [
                'label' => 'Furniture > Outdoor Furniture > Outdoor Furniture Sets',
                'value' => '0'
            ],
            '1' => [
                'label' => 'Home & Garden > Kitchen & Dining > Kitchen Appliances > Outdoor Grills',
                'value' => '1'
            ]
        ];
    }
}

Is there a way to modify the install script so that it does use the default options but also allows additional options to be added to the attribute in future?


texts:
I need to upgrade my magento 2.3.2, can i upgrade it directly to latest version 2.4 or should i upgrade first to 2.3.3 then to 2.3.4 then to 2.3.5 and then 2.4 ?
Thank you


texts: Upgrade 2.2 to 2.3 - unique situation, PHP Stuck at 7.2

texts:
So, I'm on shared hosting, which works great for me, until now. My host updated PHP CLI to 7.2.15 My magento is on 2.2.6(doesn't support 7.2.15) so I need to upgrade to Magento 2.3.

My issue is I have no control over PHP CLI. How can I upgrade to 2.3 with PHP CLI at 7.2.15?


texts:
I'm working on a script, I have this code:

Mage::app()->getStore()->setId(20);
$orders = Mage::getModel('sales/order')->getCollection()

everything is working but I don't understand what
 Mage::app()->getStore()->setId(20)
does exactly and why if I delete it the script doesn't work anymore?


texts:
I'm taking my first steps with Magento2 and it's a bit of a struggle.
I want to change the weight unit (Picture: Gewichtseenheid (in Dutch)) but it's grayed out and on the right there is Use Standard (Gebruik Standaard). But where can I find this standard for weight unit (but also for storename etc)


texts: Magento2 : Why I'm redirect to Empty Cart After Checkout?

texts:
I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the data and nothing stands out. It happens to both logged in and logged out customers, 95% of our sales are credit cards so it is almost always credit cards. On my dev site when I test everything goes through fine but it redirects to an empty shopping cart instead of the success page. There is also nothing in the logs.

How can I make it redirect to the success page?


texts: filter product collection by a comma-separated attribute

texts:
this post gives me a good idea of the basic approach of filters:

Filter product collection by custom attribute

However, products have a custom attribute that is actually going to be stored as a multiselect element (which I assume is treated as an array):

$product->setAttribute('schoolid','11,12,13,18'); //the schoolid attribute for a given product
//or perhaps it's stored as an array
$product->setAttribute('schoolid', array(11,12,13,13));

this needs to be compared against a user's value so a this won't really work:

$collection->addFieldToFilter('schoolid', '13');

as this is more of an array comparison.  Is there a standardized way to do this in Magento?  Is there any way in other words to convert the product attribute to an array and do an in-array comparison within the existing model?


texts: Magento 2 - Add Owl Slider in Related Products using requirejs-config.js

texts:
Theme Level

app/design/frontend/<Vendor>/<Theme>/requirejs-config.js

Owl Carousel JS/CSS path

Vendor_Theme/web/owl.carousel/assets/owl.carousel.css
Vendor_Theme/web/owl.carousel/owl.carousel.js

requirejs-config

var config = {

    paths: {
        'owlcarousel': "Vendor_Theme/web/owl.carousel/owl.carousel"

    },
    shim: {
        'owlcarousel': {
            deps: ['jquery']
        },
    }
};

Related Products path - Vendor/Theme/Magento_Catalog/template/product/list/items.phtml

Owl carousel JS is not being called using requirejs-config
How do I add owl carousel to related products ?

The carousel is being added into custom theme and not module.


texts:
all. I'm trying to add custom watermark to product image with next code:

$this->helper('catalog/image')
    ->init($_product, 'small_image')
    ->resize(174)
    ->watermark($imagefile);

but it still displays a product small image resized without any modification. Any ideas?


texts:
my requirement is to add custom columns in sales/order grid in admin.
when i enabled path hints, it gave me the path adminhtml\default\default\template\bl/customgrid/widget/grid/16.phtml

so first of all i wanted to disable that module and see the output .

i disables it in system/configuration/advanced.

and cleared the cache, then logged out and again freshly logged in , but still its giving the same path .

how is it possible?


texts: Magento2 - include possible tier price in getProductPrice() product list

texts:
Our customer would like to display lowest possible price in product list pages. All visible products in website are bundle products

This is the function which displays the price

Magento\Catalog\Block\Product\ListProduct

public function getProductPrice(\Magento\Catalog\Model\Product $product)
{
    $priceRender = $this->getPriceRender();

    $price = '';
    if ($priceRender) {
        $price = $priceRender->render(
            \Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE,
            $product,
            [
                'include_container' => true,
                'display_minimal_price' => true,
                'zone' => \Magento\Framework\Pricing\Render::ZONE_ITEM_LIST,
                'list_category_page' => true
            ]
        );
    }

    return $price;
}

The fast try (changing \Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE to \Magento\Catalog\Pricing\Price\TierPrice::PRICE_CODE) obviously doesn't work, as TierPrice should return an array or some complex data and not a price amount

How to achieve this? Any tips?

update

Missed to comment that products in catalog are bundle


texts: My module doesn´t appear in System->Configuration->Advanced

texts:
I´m following this Magento tutorial:

https://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-3.html

But when I reach "Create Hello World Module", the last point, I can´t see my module in System->Configuration->Advanced.

I have followed correctly the tutorial and I tried some Internet solutions, but I can´t find it yet.

Thanks for your help.


texts: Magento PayPal Recaptcha Module IE11 errors

texts:
I've implement the Magento PayPal Captcha module and everything is working great except for IE11. When I pass the captcha and click Place Order on the billing step I get the following error in the browser:
SCRIPT65535: Argument not optional and links to a minified/bundled file.

After un-bundling my js
(php bin/magento config:set dev/js/enable_js_bundling 1) I see that the error is coming from the list-mixin.min.js file. When I search the codebase for list-mixin, I get the following file:
vendor/magento/module-paypal-captcha/view/frontend/web/js/view/payment/list-mixin.js. This file is declaring a clearTimeout function to override the window.clearTimeout() function. However, there is no parameter for this function. If I throw a junk parameter into this file, the console error goes away, but I can't proceed to the order confirmation step. It just spins and I stay on that page - No console errors or log entries.

Based on some googling, it looks as though most browsers handle the lack of a parameter in clearTimeout() function, but IE11 does not. The parameter is required and is the ID value of the timer returned by the setTimeout() method.

TLDR:

How do I determine what setTimeout() call is referenced in a clearTimeout() call so I can pass the correct parameter?
Has anyone else come across this issue on Magento2?

Thanks!


texts:
I installed a new magento 2 shop and both the front and backend were missing css etc.  I ran php bin/magento setup:static-content:deploy and everything looked correct except for the logo and the icon font in the front end.  I could change the logo, and the backend was showing the icons no problem.  But the front end was not rendering properly:

What am I missing to get these icons showing?


texts: How to make my module available in github (via composer.json) in magento 2

texts: I wish to make my module  available in github repository and then i wish to install it to my local using composer.json. How is this possible? Please provide me a solution, to install my module using composer.json ?


texts: How can i remove product tab in admin magento 2?

texts: I want to remove configuration, design, search engine optimization tab. any have idea how it done?


texts: Specifying /Controller vs. /controllers in config.xml

texts: How do you specify that you want to use the /Controller folder instead of the /controllers folder within config.xml?


texts: Magento 2.3 Change position of "Review & payments" section on checkout page

texts:
I want to change the position of the highlighted section at the "review & payments" section within the checkout so the billing address is before the payment methods. I've created an image to visualize it a bit.

I've already checked a few other posts about this but i cant find the billing.phtml file anywhere inside the vendor/magento/module_checkout folder.

UPDATE
After a ton of research i believe the sort order should be inside the checkout_index_index.xml file which is located under vendor/module-checkout/view/frontend/layout but im unable to find the reference to the billing address.


texts:
I want to remove jQuery from my checkout pages we arent using it there and the checkout button doesn't work because of conflict.

Shouldn't it be something in local.xml like this?

<checkout_cart_index>
    <remove name="js/jquery-1.11.2.min.js"/>
</checkout_cart_index>

Its introduced in local.xml as this:

<action method="addItem">
    <type>skin_js</type>
    <name>js/jquery-1.11.2.min.js</name>
</action>

Or the names here aren't the same as names and aliases used.


texts: collection filtter not working in magento 2

texts:
collection fillter

    $prodColl = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection');
$collection = $prodColl->addAttributeToSelect('*')
                       ->addAttributeToFilter('activity', ['eq'=>'1'])
                       ->load();

echo '<pre>'; print_r($collection->getData());


texts:
I have enabled the admin Captcha feature for admin login and forget password form in admin area.

Captcha is visible in forget password, but not visible in admin login page.

I have cross check this in database also that Captcha is enabled for admin login page as well.


texts: Difference between getSize() and count() on collection

texts:
I have heard many times that they both are the same. But I am facing a weird issue, in the product collection of CatalogSearch module, count() is returning correct product count while getSize() is returning zero.

So, basically this is what I am getting:

$collection->count(); //correct count
$collection->getSize(); //0

But I want the getSize() to have correct count as it decides whether to show pagination and products in the search page or not. I am using Inner Join, Left Join and Where condition only in the collection to be more specific.

Any ideas why I am getting this weird issue?

Thanks

UPDATE:

My previous question, How to clone the collection in Magento? I wanted to perform two different operations on one collection. The first collection shows correct getSize(), but then if the getSize() is zero, I removed the WHERE clause and gave new WHERE condition. After this, I am getting correct raw SQL what I expected, and running it in MySQL also gives a correct set of records, but only getSize() on the collection is giving zero counts.

So basically I may need to reload the collection, as getSize() is taking old count. Makes sense?


texts: How to get column value by another column value?

texts:
I have table called my_table.

In my_table I have got 4 columns:

ID which is primary and auto increment, name, some_text, serial_number(int).

I want to get only those some_text fields which match with serial_number(int).

For example, if serial_number(int) value is '1', I need to get all those some_text fields which are in the same row with serial_number(int) which values are '1'.


texts: Dynamic theme switching on routes that have no layout handle

texts:
The problem

When implementing a dynamic theme switcher using controller_action_layout_load_before it turns out that certain routes do not have layout handles. This is due to how they load layout; in that technically they don't.

Consider checkout/onepage/progress:

public function progressAction()
{
    // previous step should never be null. We always start with billing and go forward
    $prevStep = $this->getRequest()->getParam('prevStep', false);

    if ($this->_expireAjax() || !$prevStep) {
        return null;
    }

    $layout = $this->getLayout();
    $update = $layout->getUpdate();
    /* Load the block belonging to the current step*/
    $update->load('checkout_onepage_progress_' . $prevStep);
    $layout->generateXml();
    $layout->generateBlocks();
    $output = $layout->getOutput();
    $this->getResponse()->setBody($output);
    return $output;
}

It generates XML and Blocks, but never actually calls loadLayout or renderlayout.

Because of this we cannot use layout handles to affect change. This is not ideal.

The question

Because of this, when affecting a theme change for Onepage checkout I'm forced to parse the requested Route. I don't like this:

public function controllerActionLayoutLoadBefore()
{
    $request = Mage::app()->getRequest();

    if($request->getModuleName()=='checkout' && $request->getControllerName()=='onepage'){
        //do the theme switching
    }
}

Is there a better way? I've considered at least issuing loadLayout from a rewrite of OnepageController, but that requires a rewrite and I don't like that.


texts:
Recently working on my module i need to filter product collection on the basis of certain attributes and show then on a custom page of my module i have doe this shit..

but problem is that the pagination is not working properly mean it always render the same first 6 product on all pages
another thing is that i want to add layered navigation filter on left side how to do that..

here is the repo link (on dev branch)

https://github.com/gauravnewton/Excellence_ExpressDelivery


texts: Magento CE 2.3.4 - strict mime-type checking

texts:
To whom it may concern:
I installed and run magento CE 2.3.4 on windows 10 pro with wamp. Neither backend nor frontend works properly. Browser console gives the message: Strict Mimetype checking enabled and on account of that too many js files are not loaded in related page. I gather this could be resolved from .htaccess, yet this is Magento , a remarkable content management system, why is it happened at the first place? and what the fixes could be?


texts: Attention Something went wrong. Magento ver. 2.1.0

texts:
I did a fresh intall of Magento ver. 2.1.0. The only thing I changed was that I installed the Porto theme and configured different stores.

Now every time I login and go to something like SALES - ORDERS - I get the following Error:

Attention
Something went wrong.

All in all - everywhere I go is very slow and I see the progress wheel turning a lot...

I also have another version of Magento running on the same server (different domain) - it is version 1.9.1 and it runs very smooth!

The account specs are:

**

Apache Version 2.4.25
PHP Version 5.6.30
MySQL Version 5.6.35

**

I also get this message when I log in to the 2.1.0 version:

Incoming Message

Community Editions 2.1.4 and 2.0.12 Resolve Zend Framework Security Issue & Enhance Product Quality – 2/7/2017
Read Details


texts: Grouped Product can't add any item to cart if any other item is out of stock

texts:
My understanding of Grouped Products is a little limited, but as I understand it, a Grouped Product is simply a listing of products that I want to show to customers on one page.

If one or more items are added to the cart from that Grouped Product, they are added as individual line items.

Why then, would I not be able to add ANY individual line items to my cart from a Grouped Product page if ANY of the listed products are out of stock?

Example: a Grouped Product with 20 individual products listed on the page - one of those listed items is out of stock. This means I am unable to add any item on that page to the cart, with the message "This product is out of stock." displayed if I try.

If I add the out of stock product into stock and then try the same process again, I can add items to the cart just fine.

Is this another bug in Magento 2.1?

Anyone know of a fix, if so?


texts: Fav icon is not displayed when download a pdf

texts:
I set the favicon icon in admin panel. When downloading a file fav icon is not displayed instead default magento icon displaying. I have changed the default magento favicon icon in this path htdocs/media/favicon/default, but it would't help. I put my favicon in the following directory

Root directory
media/favicon/default
skin/frontend/default/default But still that magento icon is displayed.


texts: Magento2 Reindex Issue - MySQL Configuration

texts:
Magento2 Enterprise
After we loaded in about half of our catalog, we started getting this error on re-index:

  SQLSTATE[HY000]: General error: 1114 The table
  'catalog_category_product_index_tmp' is full, query was: INSERT INTO
  catalog_category_product_index_tmp ...

we have

innodb_version..... 5.7.12
innodb_data_file_path..... ibdata1:10M:autoextend
tmp_table_size..... 2097152000
max_tmp_tables..... 32

Our catalog size is sitting around 300k skus right now and we need to get it to about 1mill.


texts: Magento2 - Sample Download for custom Import

texts:
Hi i am trying to add a custom import fucntionality for my module but I got this error:-

  Fatal error: Uncaught Error: Call to a member function getUrl() on
  null in
  E:\xampp\htdocs\m2\vendor\magento\framework\View\Element\AbstractBlock.php:775
  Stack trace: #0
  E:\xampp\htdocs\m2\vendor\magento\module-backend\Block\Widget\Tabs.php(141):
  Magento\Framework\View\Element\AbstractBlock->getUrl() #1 [internal
  function]: Magento\Backend\Block\Widget\Tabs->addTab('importpincode',
  'netsmartz_pinco...') #2
  E:\xampp\htdocs\m2\vendor\magento\framework\View\Layout\Generator\Block.php(298):
  call_user_func_array(Array, Array) #3
  E:\xampp\htdocs\m2\vendor\magento\framework\View\Layout\Generator\Block.php(169):
  Magento\Framework\View\Layout\Generator\Block->generateAction(Object(Netsmartz\PincodeChecker\Block\Adminhtml\Importpincode\Edit\Tabs),
  'addTab', Array) #4
  E:\xampp\htdocs\m2\vendor\magento\framework\View\Layout\GeneratorPool.php(81):
  Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context),
  Object(Magento\Framework\View\Layout\Generator\Context)) #5
  E:\xampp\htdocs\m2\ve in
  E:\xampp\htdocs\m2\vendor\magento\framework\View\Element\AbstractBlock.php
  on line 775

here is my code:-

<?php

namespace vendor\module\Block\Adminhtml\Importpincode\Edit\Tab;

class Importpincode extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface
{

    protected $_assetRepo;

    public function __construct(
       \Magento\Framework\View\Asset\Repository $assetRepo
    ) {
        $this->_assetRepo = $assetRepo;
    }
    /**
     * Prepare form
     *
     * @return $this
     */
    protected function _prepareForm()

    {

        $path = $this->_assetRepo->getUrl("vendor_module::importsample/sample.csv");

        $form = $this->_formFactory->create();
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $storemanager = $objectManager->create('Magento\Store\Model\StoreManagerInterface');

        $fieldset = $form->addFieldset(
            'base_fieldset',
            [
                'legend' => __('Import Pincodes'),
                'class'  => 'fieldset-wide'
            ]
        );

        $importdata_script  = $fieldset->addField(
            'file',
            'file',
            [
                'name'  => 'file',
                'label' => __('Upload File'),
                'title' => __('Upload File'),
                'required' => true,
            ]
        );

        $importdata_script->setAfterElementHtml("
        Download Sample File
        ");

        $this->setForm($form);
        return parent::_prepareForm();
    }

    /**
     * Prepare label for tab
     *
     * @return string
     */
    public function getTabLabel()
    {
        return __('Import Pincodes');
    }

    /**
     * Prepare title for tab
     *
     * @return string
     */
    public function getTabTitle()
    {
        return $this->getTabLabel();
    }

    /**
     * Can show tab in tabs
     *
     * @return boolean
     */
    public function canShowTab()
    {
        return true;
    }

    /**
     * Tab is hidden
     *
     * @return boolean
     */
    public function isHidden()
    {
        return false;
    }
}

any help on this will be great

update:-


texts:
When i tried to start a DB backup via:

php bin/magento setup:backup --db

I got this error:

Enabling maintenance mode
DB backup is starting...
Warning: Division by zero in /var/www/magento/vendor/magento/module-backup/Model/Db.php on line 156
Disabling maintenance mode
PHP Fatal error:  Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /var/www/magento/vendor/magentframework/DB/Adapter/Pdo/Mysql.php on line 3774 in /var/www/magento/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(256, 'Some transactio...', '/var/www/magent...', 3774, Array)
#1 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3774): trigger_error('Some transactio...', 256)
#2 [internal function]: Magento\Framework\DB\Adapter\Pdo\Mysql->__destruct()
#3 {main}
  thrown in /var/www/magento/vendor/magento/framework/App/ErrorHandler.php on line 61

My Magento version: 2.1.1

It's the same via the web interface.


texts: Magento 2: How to change sku dynamically in configurable product view page?

texts: The configurable product based on variation product images are changing, but not SKU, is there any way to change SKU also?


texts: Magento 2 : override configurable product

texts:
Can u tell me which XML file bind all files to create configurable product so, I can override that file in my custom module at front-end side. Exactly, I want to create configurable button and by doing click on that button open side modal perform all steps to create configurable product in my custom module.

Give list of all xml and phtml files used in configurable product


texts: How to redirect simple products to the parent grouped product?

texts:
I have simple products that are part of a grouped product, however, when you click on the simple product in the search it does not take the user to the associated parent grouped product - it goes to the simple product page. I need this to redirect to the parent grouped product page as this site will only have one 'child' simple product to one 'parent' grouped product.

How can I accomplish this?

An example is at the following URL: https://wilberline.com/jacketed-batch-reactors-single-dual-glass.html

If you search for the SKU number JRS10 it will show the simple product. When you click on that simple product it should redirect to the grouped product.


texts: Product name not changing when choosing a simple product from dropdown?

texts:
Could anyone help? I m using Amasty Color Swatches Pro extension. On my product detail page short description and images changing once a color and size are selected.

Can anyone tell me why the product name is not changing from the configurable product name to the simple product name when a color and size are selected?

Help will be much appreciated.


texts: Magento 2: What is the main difference between the Page Layout and Page Configuration layout types?


texts: Magento2.3 How to apply condition for specific country in checkout shipping method?

texts: In the magento2 checkout page, I'm using a free shipping method and I need to hide all shipping methods only for specific country and postal code. Kindly share your custom module or help me with this. Thanks


texts: Can't get widgets to showup on left nav bar with Fishpig

texts:
I am using the newest version of the Fishpig extension. I have followed the instructions listed here

http://fishpig.co.uk/magento/wordpress-integration/docs/widgets/

I have the TwentyTwelve Wordpress theme active and I don't have any of the old wordpress.xml files in my theme or the default theme.


texts: How to add New Custom button in magento 2 product page

texts: How can i add new button on magento 2 product page above add to cart button (as shown in the attached picture)


texts:
How to solve this issue? DOM extension enabled in cPanel.

PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /home/freshvcf/public_html/test/vendor/magento/framework/Config/Dom.php:449

Magento 2 command is not working properly


texts: Image upload in magento not working properly

texts:
I am working on image upload by custom module. In this module if I upload image named

  Screenshot (1).jpg

When file get upload it saved with name

  Screenshot_1_.jpg

Because of this image didnt get showed on website. Below is code for uploading image.

if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
            try {
                /* Starting upload */
                $uploader = new Varien_File_Uploader('filename');

                // Any extention would work
                $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
                $uploader->setAllowRenameFiles(false);

                // Set the file upload mode
                // false -> get the file directly in the specified folder
                // true -> get the file in the product like folders
                //  (file.jpg will go in something like /media/f/i/file.jpg)
                $uploader->setFilesDispersion(false);

                // We set media as the upload dir
                $path = Mage::getBaseDir('media')."/home/sectionzero/" ;
                $uploader->save($path, $_FILES['filename']['name'] );

            } catch (Exception $e) {

            }

            //this way the name is saved in DB
            $data['filename']['value'] = "home/sectionzero/".$_FILES['filename']['name'];
        }

Please help me to resolve this.


texts: Best practice for multi country magento store setup

texts:
this is my first magento build and just had some questions on the best method to set the store up.

It's a single business but running out of 2 countries. These are the specifics:

Products to be shared between to two sites - but stock levels and pricing to be different
Tax to be different
Shipping to be different
Static page content (home, about etc..) to be different.

I'd like to run it as mydomain.com/us/ and mydomain.com/aus/ for the two countries

If anyone would have any advices on if this is doable and a good way to go about it, that would be awesome.

Thanks.


texts: How to show success messages on magento 2x home page externally redirect url?

texts:
In Magento 2.x form use in <iframe src="forms.netsuite.com "> after submitting from netsuite return/redirect to home-page-url/?whence=

I need to show success message in home page:

<div class="page messages"> </div>


texts:
i'm looking for a way to create an order pragmatically and on complete  redirect to the payment method url. any help would be appreciated.

I have created an observer that changes the fixed price to price+fee the custom form that creates a user adds addresses and logs in. but i need to be able to go to the payment gateway url.


texts:
My magento site suddenly stopped opening and is throwing an http 500 error. After activating diplay errors in my index.php file the site shows:

Fatal error: Class 'Mage_Core_Model_Session_Abstract' not found in /var/www/html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 35

How can i solve this problem?


texts: How to Recover a Customer Custom Attribute?

texts:
I've deleted a custom attribute on Customer > Customer Attributes > Manage Customer Attributes but I need it back.

Is it possible to recover it? The custom attribute are still on database?


texts:
I want to validate a custom-category-attribute with regex, when I modify it in backend. Therefor I want to customize validation/rules.js

src/vendor/magento/module-ui/view/base/web/js/lib/validation/rules.js

But when i save the category the validation check, won't be executed.

src/app/code/Xyz/Base/view/adminhtml/requirejs-config.js

var config = {
  config: {
    mixins: {
        'Magento_Ui/js/lib/validation/rule': {
            'Xyz/js/rules-mixin': true
        }
    }
  }
}

src/app/code/Xyz/Base/view/adminhtml/web/js/rules-mixin.js

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

  return function (validator) {

    validator.addRule(
        'validate-warehouse-number',
        function (value, params, additionalParams) {
            return /^([0-9]{2}(?:\|[0-9]{2})*)?$/.test(value);
        },
        $.mage.__("Warehouse Number must have two diggest with a | as separtor")
    );

    return validator;
  };
});

Usage:

src/app/code/Xyz/Base/view/adminhtml/ui_component/category_form.xml

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="warehouse">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string" translate="true">Warehouse</item>
            <item name="collapsible" xsi:type="boolean">true</item>
            <item name="sortOrder" xsi:type="number">100</item>
        </item>
    </argument>
    <field name="warehouse_number">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="sortOrder" xsi:type="number">10</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="label" xsi:type="string" translate="true">Warehouse Number</item>
                <item name="required" xsi:type="boolean">false</item>
            </item>
        </argument>
        <settings>
            <scopeLabel>[WEBSITE]</scopeLabel>
            <validation>
                <rule name="validate-warehouse-number" xsi:type="boolean">true</rule>
            </validation>
            <label translate="true">Warehouse Number</label>
            <dataScope>warehouse_number</dataScope>
        </settings>
    </field>
</fieldset>
</form>

Has somebody an idea what is wrong?


texts:
In our store, we are using different units like LB's, OZ's, grams, kgs and etc.,

Right now we are using the configurable product for products for displaying with option weights. But the thing is default weight, how we consider the units for weight?

For suppose we have 5000lbs for Rice and 1000kg for Dals. How to view consider the weight unit for a different product?


texts: How to get total number of products quantity on order success page in Magento 1?

texts:
I am trying to get the quantity of total number of product ordered.
How to implement it in Magento 1?


texts:
Using Magento 2.3.0 with php7.1

I'm trying to use this module to get store information.

I have modified the folder names as such

app/code/Vendor/SiteInfo/Block/SiteInfo.php

And used the following code in SiteInfo.php

<?php
namespace Vendor\SiteInfo\Block;
class SiteInfo extends \Magento\Framework\View\Element\Template
{
    protected $_storeManager;

    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        array $data = []
    )
    {
        $this->_storeManager = $storeManager;
        parent::__construct($context, $data);
    }

    /**
     * Get store identifier
     *
     * @return  int
     */
    public function getStoreId()
    {
        return $this->_storeManager->getStore()->getId();
    }

    /**
     * Get website identifier
     *
     * @return string|int|null
     */
    public function getWebsiteId()
    {
        return $this->_storeManager->getStore()->getWebsiteId();
    }

    /**
     * Get Store code
     *
     * @return string
     */
    public function getStoreCode()
    {
        return $this->_storeManager->getStore()->getCode();
    }

    /**
     * Get Store name
     *
     * @return string
     */
    public function getStoreName()
    {
        return $this->_storeManager->getStore()->getName();
    }

    /**
     * Get current url for store
     *
     * @param bool|string $fromStore Include/Exclude from_store parameter from URL
     * @return string
     */
    public function getStoreUrl($fromStore = true)
    {
        return $this->_storeManager->getStore()->getCurrentUrl($fromStore);
    }

    /**
     * Check if store is active
     *
     * @return boolean
     */
    public function isStoreActive()
    {
        return $this->_storeManager->getStore()->isActive();
    }
}
?>

This is where I need help, it then says

  Using the following script in the .phtml file and print the store
  information.

echo $block->getStoreId() . '
';
echo $block->getStoreCode() . '
';
echo $block->getWebsiteId() . '
';
echo $block->getStoreName() . '
';
echo $block->getStoreUrl() . '
';
echo $block->isStoreActive() . '
';

I tried using it directly in the page using

<?php echo $block->getStoreName() . '
';?>

that just shows

$block->getStoreName() . '';

So how do I go about this, for example if I want to show the "Store name" in a page or a block I've created from the admin panel, how do I go about using the echo script.

Update:

I've created a file

  storename.phtml

in

  app/code/Vendor/Siteinfo/view/frontend/templates

With this code

<?php
/** @var \Vendor\ModuleName\Block\Hello $block */
?>
<?php
echo $block->getStoreName();
?>

and used this block on a page from admin panel

  {{block class="Vendor\SiteInfo\Block\SiteInfo" name="site-info"
  as="site-info" template="Vendor_SiteInfo::storename.phtml" }}

flushed magento cache, and get this error

  "We're sorry, an error has occurred while generating this content."

This is module I have created, that is at this path

  app/code


texts: How to move search box in-line with top links

texts:
Hoping you can help me with an item. Attached are two screenshots.

Number 1 My current header

Number 2 - My desired header

I am still on a Magento 1.3.1 set up. (I know).

Does anyone have a fix?


texts: How to make Magento 2 store multilingual?

texts: I am using magento 2.1.3 and i want to make my store in English and Arabic. Any suggestion to me.


texts: Persistent/Customer/Form/Register not getting overridden Magento 1.9

texts:
I am trying to override the block Mage_Customer_Form_Register

I have written this in my config.xml

<blocks>
        <registration>
            <class>Neo_Registration_Block</class>
        </registration>
        <customer>
            <rewrite>
                <form_register>Neo_Registration_Block_Form_Register</form_register>
            </rewrite>
        </customer>
    </blocks>

And this is not working as the methods I wrote in my local overriden block are not getting called.

And as the register.phtml is written in Persistent module,

So now how I can override this block ?


texts: Enable an option to add new products for comparison on the 'Compare' page itself

texts:
I want an option like 'Add new product' for comparison on the 'Compare' page itself. The idea is that the user should be able to change the products selected for comparison from the 'Compare' page itself.

Lets say if he has selected product A and B for comparison, but now he wants to compare product A and C, he should be able to do this from the 'Compare' page.


texts: Magento 2 - How to remove the price of each bundle product option in the shopping cart, order confirmation, review your cart page, etc

texts:
I would like to remove the price from the bundle product options in the entire site. The place I have noticed that get displayed are:

Shopping Cart
Review Your Cart Page
Mini Cart
Confirmation Emails

Things I have tried:
I created a new module and overrode \Magento\Bundle\Helper\Catalog\Product\Configuration:

ZEndertech\BundleExtended\Helper\Catalog\Product\Configuration.php

    <?php

namespace ZEndertech\BundleExtended\Helper\Catalog\Product;

use Magento\Catalog\Helper\Product\Configuration\ConfigurationInterface;
use Magento\Catalog\Model\Product\Configuration\Item\ItemInterface;
use Magento\Framework\App\Helper\AbstractHelper;

use \Magento\Bundle\Helper\Catalog\Product\Configuration as BaseConfiguration;

class Configuration extends BaseConfiguration
{
    /**
     * Get bundled selections (slections-products collection)
     *
     * Returns array of options objects.
     * Each option object will contain array of selections objects
     *
     * @param ItemInterface $item
     * @return array
     */
    public function getBundleOptions(ItemInterface $item)
    {
        $options = [];
        $product = $item->getProduct();

        /** @var \Magento\Bundle\Model\Product\Type $typeInstance */
        $typeInstance = $product->getTypeInstance();

        // get bundle options
        $optionsQuoteItemOption = $item->getOptionByCode('bundle_option_ids');
        $bundleOptionsIds = $optionsQuoteItemOption ? unserialize($optionsQuoteItemOption->getValue()) : [];
        if ($bundleOptionsIds) {
            /** @var \Magento\Bundle\Model\ResourceModel\Option\Collection $optionsCollection */
            $optionsCollection = $typeInstance->getOptionsByIds($bundleOptionsIds, $product);

            // get and add bundle selections collection
            $selectionsQuoteItemOption = $item->getOptionByCode('bundle_selection_ids');

            $bundleSelectionIds = unserialize($selectionsQuoteItemOption->getValue());

            if (!empty($bundleSelectionIds)) {
                $selectionsCollection = $typeInstance->getSelectionsByIds($bundleSelectionIds, $product);

                $bundleOptions = $optionsCollection->appendSelections($selectionsCollection, true);
                foreach ($bundleOptions as $bundleOption) {
                    if ($bundleOption->getSelections()) {
                        $option = ['label' => $bundleOption->getTitle(), 'value' => []];

                        $bundleSelections = $bundleOption->getSelections();

                        foreach ($bundleSelections as $bundleSelection) {
                            $qty = $this->getSelectionQty($product, $bundleSelection->getSelectionId()) * 1;
                            if ($qty) {
                                $option['value'][] = $qty . ' x '
                                    . $this->escaper->escapeHtml($bundleSelection->getName());
                            }
                        }

                        if ($option['value']) {
                            $options[] = $option;
                        }
                    }
                }
            }
        }

        return $options;
    }

}

I cleared the cache, but the price still appears next to the bundle options.


texts: Error while installing the sample data in Magento 2: "Class Magento\Sales\Model\Service\OrderFactory does not exist"

texts:
While installing the sample data for Magento 2, I encounter this error.

  [Magento\Setup\SampleDataException] Error during sample data installation: Class Magento\Sales\Model\Service\OrderFactory does not exist

Can anyone guide me in proper direction?
Any help will be appreciated.


texts: Website URL Redirects using mod_rewrite in htaccess for Magento2.1 Bitnami LAMP Stack Not Working

texts:
I wanted to write redirect rules to remove index.php from incoming urls in htaccess.conf file(in my app folder) and replace it with the query params.

I ensured my rewrite rule to be working perfectly in locahost,when it comes to bitnami,no changes.
Even simple rewrite rules are not getting done here.
And No records in error.log.

Steps:

1) I ensured in apache2\conf\httpd.conf mod_rewrite module is enabled.

2) I changed in opt\bitnami\apps\magento\conf\httpd-app.conf for my particular Directory AllowOverride all.

3) In bitnami\apps\magento\conf\htaccess.conf

I have added my rewrite rule

  Options +FollowSymLinks

  RewriteEngine on

  RewriteCond %{QUERY_STRING} ^index.php?route=.+$ [NC]

  RewriteRule ^(.*)$ /%{QUERY_STRING}\? [R=301,L]

Do suggest and Help me with this issue if I am doing something wrong..I have been spending more than 2 days to solve this issue..


texts: What are the reflects of core files changed?

texts:
I'm using different versions of the Magento 1.* and Magento 2.*, and I'd like to know how to explain to my clients what are the impacts of the core files changed.

For example these bad points below, I know these are possible yet but with many time more:

No more updates.
No more security patches.
Third-party modules not working well.

Please tell me more points and official links.


texts: Is Magento Claiming Ownership of All Magento Markplace Extensions?

texts:
The customer agreement for Magento Marketplace (the new replacement for Magento Connect) contains the following

  You acknowledge and agree that Magento or its licensors own all legal right, title and interest in and to Magento Marketplace, and any Magento Software provided to you as a part of and/or in connection with Magento Marketplace (the “Software”), including any and all intellectual property rights that exist therein, whether registered or not, and wherever in the world they may exist. Such Software will be subject to the terms of the license agreement that accompanies the Software. Subject to the limited licenses set forth in this Agreement, nothing in this Agreement transfers or assigns to you any of our intellectual property rights in our Extensions or our other technology, products or services, including, without limitation, any source code to any Extensions (collectively, "our Intellectual Property").

This legal agreement appears to imply that Magento Inc. claims IP rights for all the extensions they're providing.   i.e., even if the extension was written by a partner agency, Magento's claiming IP rights for it.  As written, if an extension author signs up for a customer account, they may be agreeing the hand over IP rights to any extensions already in Marketplace, or open source extensions Magento may add to Marketplace in the future.

I'm not familiar with the agreements an extension author needs to sign to get into Magento Marketplace. Is this the actual intent of this section of the agreement, or is this an oversight in initial drafting of this agreement?

i.e. It's clear this part of the agreement is there to ensure customers don't claim IP for anything they're downloading and using.  That's right and proper.  It's less clear if assigning Magento IP rights to anything you might add to Marketplace in the future is a condition for using marketplace, or if the use-case of an independent extension author using Magento Marketplace as a user wasn't on the legal team's radar.


texts: Cannot initialize the indexer process after changing the price scope in catalog configuration

texts:
I'm getting the famous "cannot initialize indexer process" while indexing the prices.
In the log I get the below error.
This error appeared after that I changed in System->Configuration->Catalog->Price the scope to website and then back to global.

What I tryed so far:
- flush cache
- removing all the products in catalog
- readding the products in catalog

Have no idea how to solve this.

014-03-08T00:10:43+00:00 DEBUG (7): Exception message: SQLSTATE[21S01]: Insert value   list does not match column list: 1136 Column count doesn't match value count at row 1
Trace: #0 /u01/www/cellxpressions.net/lib/Varien/Db/Statement/Pdo/Mysql.php(110):  Zend_Db_Statement_Pdo->_execute(Array)
#1 /u01/www/cellxpressions.net/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /u01/www/cellxpressions.net/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /u01/www/cellxpressions.net/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `sm...', Array)
#4 /u01/www/cellxpressions.net/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `sm...', Array)
5 /u01/www/cellxpressions.net/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(455): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `sm...')
#6 /u01/www/cellxpressions.net/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(379): Mage_Catalog_Model_Resource_Product_Indexer_Price->_prepareTierPriceIndex()
#7 /u01/www/cellxpressions.net/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()
#8 /u01/www/cellxpressions.net/app/code/core/Mage/Index/Model/Process.php(210): Mage_Index_Model_Indexer_Abstract->reindexAll()
#9 /u01/www/cellxpressions.net/app/code/core/Mage/Index/Model/Process.php(258): Mage_Index_Model_Process->reindexAll()
#10 /u01/www/cellxpressions.net/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(182): Mage_Index_Model_Process->reindexEverything()
#11 /u01/www/cellxpressions.net/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Index_Adminhtml_ProcessController->massReindexAction()
#12 /u01/www/cellxpressions.net/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('massReindex')
#13 /u01/www/cellxpressions.net/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 /u01/www/cellxpressions.net/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#15 /u01/www/cellxpressions.net/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#16 /u01/www/cellxpressions.net/index.php(87): Mage::run('', 'store')
#17 {main}

The query which is causing the crash is:

INSERT INTO `sm_catalog_product_index_tier_price` SELECT `tp`.`entity_id`, `cg`.`customer_group_id`, `cw`.`website_id`, MIN(IF(tp.website_id = 0, ROUND(tp.value * cwd.rate, 4), tp.value)) FROM `sm_catalog_product_entity_tier_price` AS `tp` INNER JOIN `sm_customer_group` AS `cg` ON tp.all_groups = 1 OR (tp.all_groups = 0 AND tp.customer_group_id = cg.customer_group_id) INNER JOIN `sm_core_website` AS `cw` ON tp.website_id = 0 OR tp.website_id = cw.website_id INNER JOIN `sm_catalog_product_index_website` AS `cwd` ON cw.website_id = cwd.website_id WHERE (cw.website_id != 0) GROUP BY `tp`.`entity_id`, `cg`.`customer_group_id`, `cw`.`website_id` ON DUPLICATE KEY UPDATE `min_price` = VALUES(`min_price`)


texts: 2.2.3 Elastic Search option missing in Admin console

texts:
Magento CE 2.2.3 release notes says Support has been added for Elasticsearch 5.x

After installing and configuring Elastic Search I cannot work out how to have this option available in the admin console.

It should show up under Stores > Catalog > Catalog > Catalog Search > Search Engine

At the moment only MySQL is available.


texts: How does $customer->save() actually work?

texts:
So ,i am developing some extension for the company I work for on Magento (enterprise) and I was testing some code in an Observer going like this:

$_customer=Mage::getModel("customer/customer")->load($_order->getCustomerId());
$_customer->setData("blah_attribute","blah_value");
$_customer->save();
die();

And while I was calling $_customer->save() and that seemed like the correct way to save my customer object the data was never getting saved! So I dug into that save() function and down the road ended up realizing that this function was not actually saving but just building an array of things to update in the database. So I figured maybe it just builds all that big array of things to update (there seems to be also an array of things to insert, an array of things to delete and so on..) and at some point later it must go through those arrays and actually do it. I can understand how that can improve performance but that can also make testing pretty confusing! So anyways at some point I just removed the

die();

and suddenly my data was actually getting saved. (hours wasted! :/ )

I was wondering if anyone would be able to provide a little more insight on how that save() process actually works?

Which classes are called? When? By what processes?
How come it saves afterwards? At which point?
Can this sometimes cause problems?
Is there a way to force the save to happen right away?


texts: magento 2 data migration tool ignore table by mask

texts:
I'm creating map.xml file to ignore some tables in DB. And I have a lot of tables with prefix 'old'. Can I create one rule for all this tables and don't create one by one? Something like

<ignore>
    <document>old*</document>
</ignore>

Thanks.