texts: Magento 2 - Show Subcategories and Images on Category Template

texts:
I want to show subcategories and the images on the category page.  If the user clicks on Apparel the page would show all the subcategories with the subcategory image.

I placed this code in my theme in My/theme/Magento_Catalog/templates/category/products.phtml

<?php
    $category = $block->getCurrentCategory();
    $subcategories = $category->getChildrenCategories();
    $_helper = $this->helper('Magento\Catalog\Helper\Output');
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ?>

    <?php if(count($subcategories) > 0): ?>

                <?php foreach($category->getChildrenCategories() as $subcategory): ?>
                    <?php $subcategory = $objectManager->create('Magento\Catalog\Model\Category')->load($subcategory->getId()); ?>

                            <?php if ($_imgUrl = $subcategory->getImageUrl()): ?>
                                <a href="<?= $subcategory->getUrl() ?>" class="product photo product-item-photo">

                                        <?php $_imgHtml = ''; ?>
                                        <?php echo $_imgHtml = $_helper->categoryAttribute($subcategory, $_imgHtml, 'image'); ?>

                            <?php endif; ?>

                                  <a class="product-item-link" href="<?= $subcategory->getUrl() ?>"><?= $subcategory->getName() ?>

                <?php endforeach; ?>

    <?php else: ?>
        <?php if (!$block->isContentMode() || $block->isMixedMode()): ?>
            <?= $block->getProductListHtml() ?>
        <?php endif; ?>
    <?php endif; ?>

For some reason it doesn't show all the subcategories of the main category.  For example, if I have main category of Apparel and subs of Shirts, Pants and Shoes only Shirts and Pants show even though all the category settings are the same.  I think this must be something with the categories we created and not the code above.  But I just wanted to ask.

Also, I know you are not supposed to use objectManager so is there a way to do this in this template without building a module?

Thanks, Stan


texts: Correct way of getting helper in template of custom block

texts:
What is the correct way of getting a helper in a template file of a custom block?

In Magento_Search module there is a block:

<referenceContainer name="header-wrapper">
    <block class="Magento\Framework\View\Element\Template"
        name="top.search"
        as="topSearch"
        template="Magento_Search::form.mini.phtml"
    />
</referenceContainer>

In the form.mini.phtml template I found this way of getting helper object:

$helper = $this->helper('Magento\Search\Helper\Data');

I read in many tutorials that I should inject an instance of the helper in the constructor __construct() of the block. This can be found in dozens of Magento template files. But in some templates helpers are retrieved with $this->helper(...) method.

Just like in the top.search block from my example. It is an instance of the generic Magento\Framework\View\Element\Template class so probably that's why the helper had to be retrieved this way (because we can't inject it in the constructor).

1.

So can I use this $this->helper(...) method in my custom blocks instead of injecting helpers through constructor? Or is it a bad practice and it should be avoided? It's less code and more convenient.

2.

Where is that helper method implemented? I couldn't find it in the Magento\Framework\View\Element\Template class nor in its parent classes.


texts: Magento 2 : Submitting Order From Admin Silently Fails

texts:
I have a Magento 2.2, which has been migrated from Magento 1.

When I try to create an order from admin, the order submitting does not work. There is not error indicator whatsoever, also nothing in logs.

Searching the web I found a bug report https://github.com/magento/magento2/issues/2675 but this seems to be a different issue.

Looks like form validation fails somewhere but I have not been able to find out where.

I have tried with both Magento 2.2.0 and 2.2.2.

Any insight what might be root cause here?


texts:
I'm trying to uninstall a theme (Ultimo) from my M2 store.
Am I on the right track?

Should I remove both ultimo contents in app/design and app/code?
Remove database data from table "theme", I found "Infortis/base" and "Infortis/ultimo" entry.
Clean and flush.
Done.

Thanks in advance.


texts: How to call a function in PHP file in another folder by a controller in custom module?

texts:
I need to call PHP function within my custom module controller. But the relevant PHP file contain in different folder. How I solve this? `

<?php function doLog($text) {
// open log file
$filename = "form_ipn.log";
$fh = fopen($filename, "a") or die("Could not open log file.");
fwrite($fh, date("d-m-Y, H:i")." - $text\n") or die("Could not write
file!");
fclose($fh);
}
doLog("This is test");
?>


texts: Error occur while login admin panel in magento 2.4.2

texts: Install Magento 2.4.2 Generate this error The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later, how to solve it.


texts: Magento 2 failed connecting to Shipworks

texts:
Magento 2.3.1 is failing to connect to Shipworks via REST API. The error it is giving is

  The remote server returned an error: (401) Unauthorized.

When traced with Fiddler the result is

  {"message":"The consumer isn't authorized to access %resources.","parameters":{"resources":"Magento_Sales::actions_view"},"trace":"#0 /home/buyglasswoodstov/public_html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68):

I attempted reading through Magento Docs but I am very unfamiliar with REST API. Any help would be appreciated. Thanks!


texts: order page throws error saying undefined index.

texts:
I work with magento 1.9.2.2 and i get this error on loading page for order.

Notice: Undefined index: mpassignproduct_id  in /var/www/app/design /adminhtml/default/default/template/marketplace/sales/items/column/name.phtml

Iam using webkul marketplace. Even if nobody can help in such custom modules, please tell me what this error means.


texts: View all button not showing all products magento 1.9

texts:
When clicked on 'View All' button, at the bottom of the page, it does not show all products.

My web site : http://dev.essethelabel.com/clothing.html


texts: Rewriting controller vs. adding a new controller to an existing module

texts:
I'm looking at a community extension called Ambassador_Affiliate, and it's doing something that I have not seen before. I'm not sure what it's doing, so I'd like to check with the community.

In config.xml, there is...

<frontend>
    <routers>
        <customer>
            <args>
                <modules>
                    <Ambassador_Affiliate before="Mage_Customer">Ambassador_Affiliate</Ambassador_Affiliate>
                </modules>
            </args>
        </customer>
    </routers>
</frontend>

In Ambassador/Affiliate/controllers/AffiliateController.php, there is…

<?php

class Ambassador_Affiliate_AffiliateController extends Mage_Core_Controller_Front_Action
{
…

}

It looks to me the Ambassador extension is adding a new controller, instead of rewriting, its own controller to the Mage_Customer module.

If it is so, why would you do this as opposed to just defining a entirely new controller under Ambassador_Affiliate (beside wanting to use the customer frontname of Mage_Customer)?

If it's not, what is it doing?


texts: Magento2: In which file gets a response as order entity Id in order API?

texts: I have placed an order using default order APIs in Magento2, In which file gets a response as order entity Id? And need to change the order API response.


texts:
Server:
AMD EPYC 7401P 24-Core
128 GB DDR4 ECC
2 x 960 GB NVMe SSD
I first had PHP7.3 with Magento 2.3.5. This worked well.
Changed to PHP7.4 with Magento 2.4.1. I am getting the following error.: End of script output before headers: index.php
I got the following reply from my provider:
t seems like your website scripts use a lot of RAM. Because of this, they get killed by our process monitoring system:
[processwatch]: Killed pid=7065(php74.fcgi) reason=limits on rssize [used 847 MiB, limit 600 MiB] were exceeded. Matching rule parent is 'FALLBACK'
[processwatch]: Killed pid=7111(php74.fcgi) reason=limits on rssize [used 2799 MiB, limit 600 MiB] were exceeded. Matching rule parent is 'FALLBACK'
[processwatch]: Killed pid=7158(php74.fcgi) reason=limits on rssize [used 1645 MiB, limit 600 MiB] were exceeded. Matching rule parent is 'FALLBACK'
[processwatch]: Killed pid=7165(php74.fcgi) reason=limits on rssize [used 2783 MiB, limit 600 MiB] were exceeded. Matching rule parent is 'FALLBACK'
We can configure this setting for you in our process monitoring system.
Permissions and Memory limit is set correctly. This is a clean Magento 2.4.1 install with no 3rd party extentions.
Can somebody help me with this, and my limit is now 600 MiB, what should it be? I have a LAMP stack with fcgi.
Thanks


texts: Add a catalog/navigation block to the left_first block - products not displaying

texts:
I have a custom navigation layout.

 <?php
     /* Get the categories that are active for the store */
      $_main_categories=$this->getStoreCategories();
      /* Get the current category the user is in */
      $_current_category=$this->getCurrentCategory();
      /* Get the current category path */
      $_categorypath = $this->getCurrentCategoryPath();
      ?>

Product Categories

      <?php
      if ($_main_categories):
          /* This bit cycles through the categories - setting the next one to current */
          foreach ($_main_categories as $_main_category):
            if($_main_category->getIsActive()):
          $cur_category=Mage::getModel('catalog/category')->load($_main_category->getId());
                 $layer = Mage::getSingleton('catalog/layer');
                 $layer->setCurrentCategory($cur_category);
      /* Write the main categories */
      ?>

<a href="<?php echo $this->getCurrentCategory()->getUrl()?>"><?php echo $this->getCurrentCategory()->getName();?>

      <?php
      /* Check the category variable loop against the current category path if it is - print sub categories */
      if (in_array($this->getCurrentCategory()->getId(), $_categorypath)): ?>
      <?php $_maincategorylisting=$this->getCurrentCategory()?>
      <?php $_categories=$this->getCurrentChildCategories()?>
      <?php if($_categories->count()):?>

      <? foreach ($_categories as $_category):?>
         <? if($_category->getIsActive()):
            $cur_subcategory=Mage::getModel('catalog/category')->load($_category->getId());
                 $layer = Mage::getSingleton('catalog/layer');
                 $layer->setCurrentCategory($cur_subcategory);
      ?>

<a href="<?php echo $this->getCategoryUrl($_category)?>"> <?php echo $_category->getName()?>

          <? endif;?>
      <?endforeach?>

      <?php /* This resets the category back to the original pages category
      ****     If this is not done, subsequent calls on the same page will use the last category
      ****    in the foreach loop
      */   ?>
      <?php $layer->setCurrentCategory($_current_category);  ?>
      <?endif;?>
      <?endif;?>
      <?php
      endif;
      endforeach;
      else:
      ?>

$_main_categories array was empty.

This might be because you are referencing this phtml file with a wrong type attribute. You should use <block type="catalog/navigation" ... /> !

      <?php endif; ?>

I am trying to add it to the left_first block.

<reference name="left_first">
<block name="left_categories_nav" template="catalog/navigation/left-navigation.phtml" type="catalog/navigation" before="catalog.leftnav"/>
</reference>

For some reason when I do this it stops the products from showing, it just says "There are no products matching the selection".

I can change the reference name above to footer and then everything works correctly apart from the navigation is in the footer. I really need this navigation above everything in the left side bar including the sort by feature.


texts:
I want to remove one custom value from the product custom option, I've following code for it but it's not working

$obj = Mage::getModel('catalog/product');
$product_id = $obj->getIdBySku("mysku");
$product = $obj->load($product_id);
foreach ($product->getOptions() as $o) {
    $values = $o->getValues();
    foreach ($values as $v) {
      if($v->getData('default_title') == "Something"){
          $optionValue=Mage::getModel('catalog/product_option_value')->load($v->getData('option_id'));
          $optionValue->delete();
      }
    }
}


texts: Checkout Page - Create New Account Checkbox

texts:
I want to add Create new Account (checkbox) under email on checkout page like as attached screenshot.
How to I can add this ? anyone can help regarding this issue ?
Thanks


texts: How To Auto Select Drop Down In magento..If drop downs have only one option

texts:
I want To auto select All Drop Downs On Product Page. Which Have Only One Option.
I used Some  solution But Its Based On Removing Choose An Option.
By This We Can Remove Choose An Option...

But My Need Is Not Removed Choose an Option....
How Can I do this.


texts: Print all PHP variables available in template

texts:
How can I print all the available PHP variables which I can use in a template?

For example all variables which I can access in app\design\adminhtml\default\default\template\wr\catalog\product\edit\options\type\select.phtml

In Laravel for example I could just execute {{ dd(get_defined_vars()) }}
is something similar possible in Magento


texts: Adding Table to Magento 1.8.0.1 Short Description Adds tons of Line Breaks

texts:
This problem is kind of odd for me. Usually errors such as this are easily corrected, but this one is new for me.

My Sub description is simply....

This Kit Includes.

    1x
    Drawstring Carrying Case

    1x
    DeniClean Pipe Cleaning Solution

    1x
    Joufiah Oil Polishing Solution

    1x
    Iron Reaming Rod

    1x
    Stiff Bristle Cleaning Brush

    1x
    Microfiber Cleaning Cloth

However, on the front end, my code ends up displaying like this.

This Kit Includes.

    1x
    Drawstring Carrying Case

    1x
    DeniClean Pipe Cleaning Solution

    1x
    Joufiah Oil Polishing Solution

    1x
    Iron Reaming Rod

    1x
    Stiff Bristle Cleaning Brush

    1x
    Microfiber Cleaning Cloth

As you can see, there are 27 line breaks randomly added to the code on the front end. And I cannot figure out what would cause these lines to be inserted in to the code.

I wonder if anyone has any ideas to this, or if anyone could suggest what information I should supply to make the root of this problem easier to find. Thank you for your time.


texts: Remove some states from dropdown on billing step on magento 2.2

texts:
I need to remove some states/regions from checkout dropdown in the billing step, and different states/regions from shipping step on magento 2.2.
i have used this
How to remove Guam, Palau, and other US Territories from address State dropdown - Magento 2

it works but it removes them from both shipping and billing.


texts: One Page Checkout extension infinite loading

texts:
Anyone having this problem with One Page Checkout Extension?

The onepage/ page doesn't stop loading (shows a "loading circle" in center of page). Using the Chrome Console, it shows the following error:

  checkout.js:805 Uncaught TypeError: Cannot read property 'init' of
  undefined

Circle in the middle of page:


texts: Magento2: Add new top-menu item in customer menu

texts:
How to add a new item in the dropdown of the customer menu on the frontend?

I want to add a new item below my account.


texts: How to get Captcha in customer registration form?

texts:
Lately, we have been having trouble with spammers on our website, we want to resolve this using a captcha function.

I enabled the captcha function in System->Configuration->Customer->Customer-configuration->CAPTCHA

Now, we have a theme in which the captcha-layout/function is not present.

So I have tried to get this into the theme and copied the code from base.
Both captcha.xml and captcha/zend.phtml.

Unfortunately, this did not work, so I just wanted to try adding a reCAPTCHA manually to the register.phtml.

But both in the theme directory and in the base directory, editing the customer/register.phtml or persistent/customer/register.phtml did not change anything.

So my question is, how can I do this? Also, I have no idea what information you guys need to be able to help me. So ask for anything.


texts: Facing an error "Types real is not declared" in Magento 2.3.5 while running setup upgrade

texts:
Whenever tries to run the php bin/magento setup:upgrade but facing an error as follows:

  "Types real is not declared"

I know by getting the type name of the Information schema of data type and triggering alter a table that would not be a good approach.

How can I solve this?

PS. recently got upgraded from 2.2 to 2.3.5

Referred this also - https://magento.stackexchange.com/a/279384


texts: Product image Upload Issue in Magento 1.9.3.2

texts:
When i try to upload product image by clicking "Browse Files" button.
Image selection window is not showing.

In browser console window i can see some errors.

Uncaught SyntaxError: Unexpected token ;
(index):1480 Uncaught SyntaxError: Unexpected token ,
(index):1434 Uncaught ReferenceError: media_gallery_contentJsObject is not defined
    at HTMLInputElement.onclick ((index):1434)

any solution to fix this issue?


texts: Should i keep the default Magento CSS classes when creating a new template?

texts:
i am quite new in magento templating. I am creating a new theme based on Foundation framework.

My question is do i have to leave the default CSS classes of the base template?

If i delete them and create new classes does it occur any problem to any plugins?

Example 1 (Magento Base Template Classes):

<?php echo $this->__('Create an Account') ?>

Example 2 (Magento with my own classes):

<?php echo $this->__('Create an Account') ?>

Example 3 (Magento Classes with my Classes);

<?php echo $this->__('Create an Account') ?>

Which example i should follow 2 or 3?

Thank you!


texts: Recurrent Error when updating products in Magento Db

texts:
Wondering what this error could be in 1.9.3.6 cms:

The db field size is 'nn' bytes to small to save the group permissions. Please enable the configuration setting to dynamicaly grow the field length and try again.

and if it will affect the day to day operation of my Magento store?

It occurs after every product save.

My changes seem to stick and are visible on the front end.

Regards

Jim


texts:
I am trying to set nginx load balance I have planned like Load Balance Nginx + Two Magento Instance + one database, after some search around that topics I have some doubts.

As per this answer, it is stated like

  You can end up with big issues because of different extensions or when saving different config values

As per this blog, the approach was each magento instance have separate database. But I feel it seems to hard sync files and db in all three instance.

Please suggest how to achieve nginx load balance without degrade performance.

Info:  easy for your reference


texts: Is there any way to log in to the frontend without going through the log in page?

texts:
I am trying to implement some UI tests written in selenium.
There are a number of test cases which rely on the user being logged in. If I use the frontend login form to log in, and one day I find the login page is broken, then all other tests that depend on the user being logged in will fail and nothing can be said about whether that functionality actually works or not.
So I would like to find a way to bypass the login form.
I have managed to call the API at /rest/V1/integration/customer/token. This returns a PHPSESSID cookie and a token, however my understanding is that this only authenticates to the REST APIs and does not allow me to log in with a browser - and after setting the cookie I am still logged out.
Is there any way that I can log in (without changing any Magento code) without using the login form?


texts:
After weeks of waiting for the patch today (27.10.2015) it was released: SUPEE-6788

A lot of things were patched and also is encouraged to review installed modules for possible vulnerabilities.

I open this post in order to get some insights about how to apply the patch. What are the steps to apply the patch? To my understanding this are the steps:

Fix modules with admin functionality that is not under the admin URL
Fix modules that use SQL statements as field names or escape fields
White list blocks or directives that uses variables like {{config path=”web/unsecure/base_url”}} and {{bloc type=rss/order_new}}
Addressing potential Exploit with Custom Option File Type (no idea how to do this)
Apply the patch

Is this the correct procedure?


texts:
public function getModel($class){
        $ObjectManager = ObjectManager::getInstance();
        return $ObjectManager->create($class);
    }
    public function updateOrderItemCalculation($item,$orderItem,$product=null,$itemPrice,$itemPrincipalPromo,$itemMainPrice){

        if(isset($product)){
            $item['product_id'] =  $product->getID();
            $item['product_type'] =  $product->getTypeId();
            $item['weight'] =  $product->getWeight();
            $item['is_virtual'] =  $product->getIsVirtual();
            $item['sku'] =  $product->getSku();
            $item['name'] =  $product->getName();
            $item['description'] =  $product->getDescription();
        }
        $item['qty_ordered'] =  $orderItem['Quantity'];
        $item['price'] =  $itemPrice;
        $item['base_price'] =  $itemPrice;
        $item['original_price'] =  $itemPrice;
        $item['base_original_price'] =  $itemPrice;

        $item['base_price_incl_tax'] =  $itemPrice;
        $item['price_incl_tax'] =  $itemPrice;

        $item['discount_amount'] =   $itemPrincipalPromo;
        $item['base_discount_amount'] =   $itemPrincipalPromo;
        $item['row_total'] =   $itemMainPrice;
        $item['base_row_total_incl_tax'] =   $itemMainPrice;
        $item['row_total_incl_tax'] =   $itemMainPrice;

        $item['base_row_total'] =   ( $itemMainPrice) ;

        try {
            $saveItem = $this->getModel('\Magento\Sales\Model\Order\Item')->load($item['item_id']);
            $saveItem->setData($item);
            $saveItem->save();
        } catch (Exception $e) {

        }
        unset($item);

    }

If i break code using die(); then it works. I tried to debug many times but no results.


texts: Ram memory issue on Magento 2.3.4 website

texts:
I have a Magento 2.3.4 website on my server in Production mode.
When I check memory usage with "top" command, I got a very high memory usage like this:

There are so many php-fpm processes
Can I kill php-fpm processes or do something in this situation?
Thank you!


texts: how to get the bundle product prices in the Magento 2 for specific customer group?

texts:
how to get the bundle product prices (Maximum & Minimum) in the Magento 2 for customer group and tax as well?

I tried various functions in the Magento's default code but did not get the exact output with functions.


texts: Delete category attribute from the database

texts:
In Magento 1 when I wanted to delete a category attribute, I could delete theattribute directly in the database in the eav_attribute table. I've done that many times without any problems.

Can I safely delete my custom category attributes this way also in Magento 2?

The table eav_attribute still exists, but there are also other tables with similar names. Would I also need to delete my attribute from other tables, or eav_attribute is enough? And is it safe to delete the attribute directly from the database in Magento 2?


texts:
I'm reading the PHP Developer's Guide and I see this:

  Blocks are used in Magento to reduce the burden on the controller by
  moving most of the logic into blocks.

What problem does this solve?  Controllers can handle all the logic in every other MVC architecture.  What limitation does Magento have that we can't "burden" the controllers with doing exactly what they are designed to do?


texts: How to change store views with its root category in magento 2 from frontend

texts:
i am new to magento as well SO, I am trying to setup an magento website with two different store, 1 store have clothes related category and other one shoes related and I want to switch store view with its root categories.

so if someone switch to store 1 (cloths) he should only see clothes category and if switch to store 2 (shoes) then should display only shoes categories.

I have setup an website with two store and created separate categories for them and did necessary set up following with this link https://www.mageplaza.com/kb/how-to-setup-multiple-stores-magento-2.html

but I don't know how to switch store from front-end.

Create some different Root category for website and view.

Unable to display 2nd view product on home page...!!

Please Help


texts: Insert in admin critical documentation for my module

texts:
My module has an import CSV functionality and I would like to explain in ~10 lines how that csv should be formatted, max size etc.

I am using ui components.

There is this <item name="notice" xsi:type="string" translate="true"> which is usefull, but provides only on line, so it is not enough.

There is also:

  $this->messageManager->addNotice(
            __("Make sure your file is ...")
        );

but it is too much to provide 10 notices like that on the screen.

Ideally I would want a help button and then a modal will appear. Is it possible to build that in my grid using ui components?

Thanks


texts: Enterprise edition gift cards - how to sell physical gift cards

texts:
We want to offer the ability for customers to buy virtual gift cards, and also virtual/physical combined gift cards on our e-commerce site.

My question relates to how we would manage the physical gift cards. One way could be to download a whole gift card pool of codes, so that we can have them printed onto some cards and store them at the warehouse in the same order as they would be sold on the website. I cannot work out how to export the whole gift card pool, however. Is there a way or are we taking the wrong approach to this?


texts: Catalog Product View XML attribute insertion issue

texts:
I've got this code in my catalog_category_view.xml file:

<block class="Magento\Catalog\Block\Product\View\Description" name="product.info.condition" template="product/view/attribute.phtml" before="product.info.sku">
    <arguments>
        <argument name="at_call" xsi:type="string">getCondition</argument>
        <argument name="at_code" xsi:type="string">condition</argument>
        <argument name="css_class" xsi:type="string">condition</argument>
        <argument name="at_label" xsi:type="string">CONDITION:</argument>
        <argument name="add_attribute" xsi:type="string">itemprop="condition"</argument>
    </arguments>
</block>

The Label "Condition" renders but the attribute value only returns the ID number and not the Dropdown value.

May I ask what I am missing?


texts: How to Display child product image for configurable product in Magento2?

texts:
I want to display child product image (which has lowest price) as a configurable product image. So if I go to configurable product view page then by default lowest price product image will display?

Can anyone help me in this? I am struggling a lot in this.


texts: Magento 2.X: Show notification on product added to the cart

texts:
I want to show notification when i add product in cart right now when i add less then the products in the stock then i can see product added to cart but if i add more then the quantity in the stock then i am not seeing any alert or something , how can i do that ?

I have also tried store->configuration->catalog and inventory as well but unable to find out some solution . I have tried backorder option but it is not working as well


texts:
I'm following this guide :

  http://www.mage-world.com/blog/how-to-use-model-and-collection-in-magento-2.html

But at the end i get the error

  Fatal error: Class 'Magento\Framework\Model\Resource\Db\AbstractDb' not found in C:\wamp\www\eurecia-shop\app\code\Local\Providers\Model\Resource\providers.php on line 7

(I follow the tutorial, but i just change News by Providers, but it work the same)

this is my file where i get the error :

<?php
namespace Local\Providers\Model\Resource;
use Magento\Framework\Model\Resource\Db\AbstractDb;

class Providers extends AbstractDb

{
   /**
    * Define main table
    */
   protected function _construct()
   {
       $this->_init('local_providers', 'id');
    }
}

I search on google, and no result for this. I'm new to magento, so i'm not really familiar with it.


texts: How to update Magento 2.1.7 to Magento 2.2 ? Is it possible to upgrade?

texts:
I wanted to know is it possible to update Magento from 2.1.7 to 2.2 ?
Or what is a solution to update all Magento  2.1.7 stores to Magento 2.2 ?
If we will update it then what are the challenges for that we have to be prepared?

Please let me know is there any solution for this or not.


texts: What's the difference between element and elementTmpl

texts:
In UI components, what's the difference between setting template and elementTmpl in a component's <config/> node?

<item name="config" xsi:type="array">
    <item name="template" xsi:type="string">ui/form/field</item>
    <item name="elementTmpl" xsi:type="string">ui/form/element/select</item>
</item>


texts: Magento 2 what is "each" argument and how it works?

texts:
what is "each" argument and how it works ?

<each args="getRegion('address-list')" render="" />
<each args="getRegion('address-list-additional-addresses')" render="" />

If anyone knows please explain.

i know getRegion,need to know how "each" works in magento2


texts: Magento2: Tier price higher than regular(product) price display label ?

texts:
I want to display when Add Tier price higher then regular (product)price display as working lower Tier price.
If Is possible  ?
How Can Do it?


texts: How to enable more shipping methods for Nominal Items/Recurring Profile products

texts:
Magento Documentation notes:
"The list of available shipping methods during the shopping cart checkout is restricted to the fixed only (Fixed, Table Rates, and Free)."

I'm wondering if there is a way to change this? I have an extension that enables "In-store pick up" shipping method and it's not displaying as an option when checking out with a nominal item.

Thanks


texts: How can Select arrays from associate array in php on the basis on element

texts:
I have an array "$arrItems['items']" in which 5 more arrays(associate array) and each array contain 5 element(f_name,l_name,contact,address,seller_id).
Actually I want to get all those arrays(from "$arrItems['items']")  in which element of seller_id is 1 like  "seller_id"=>1
Code given below. Guide me how to use foreach loop or else . . .

array(5)
{
[0] =>
array(5)
{
["f_name"] =>
string(3) "abc"
["l_name"] =>
string(3) "xyz"
["contact"] =>
string(5) "12345"
["address"] =>
string(3) "xyz"
["seller_id"] =>
string(1) => "1"
}
[0]=>
array(5) {
    ["f_name"]=>
string(3) "abc"
    ["l_name"]=>
string(3) "xyz"
    ["contact"]=>
string(5) "12345"
    ["address"]=>
string(3) "xyz"
    ["seller_id"]=>
string(1)=>"1"
}
[1]=>
array(5) {
    ["f_name"]=>
string(3) "abc"
    ["l_name"]=>
string(3) "xyz"
    ["contact"]=>
string(5) "12345"
    ["address"]=>
string(3) "xyz"
    ["seller_id"]=>
string(1)=>"5"
}
[2]=>
array(5) {
    ["f_name"]=>
string(3) "abc"
    ["l_name"]=>
string(3) "xyz"
    ["contact"]=>
string(5) "12345"
    ["address"]=>
string(3) "xyz"
    ["seller_id"]=>
string(1)=>"1"
}
[3]=>
array(5) {
    ["f_name"]=>
string(3) "abc"
    ["l_name"]=>
string(3) "xyz"
    ["contact"]=>
string(5) "12345"
    ["address"]=>
string(3) "xyz"
    ["seller_id"]=>
string(1)=>"1"
}
[4]=>
array(5) {
    ["f_name"]=>
string(3) "abc"
    ["l_name"]=>
string(3) "xyz"
    ["contact"]=>
string(5) "12345"
    ["address"]=>
string(3) "xyz"
    ["seller_id"]=>
string(1)=>"3"
}
}


texts: What is the use of 'all' in Magento 2.3 Rest API URLs?

texts:
For getting customer token following URL works.

https://localhost/magento/rest/V1/integration/customer/token

But following URL do not.

https://localhost/magento/rest/all/V1/integration/customer/token

I have seen this 'all' is used in other API URLs also. What is the use of it?


texts: About the Magento 2 Multivendor Extension

texts:
I want to get the profile of the vendor who created the product on the product detail page.

I think it would be nice if I could get all my profiles.
Please let me know how I can get a profile.


texts: What does `associated_item_id` (Id of the associated item) mean in `sales_order_tax_item`?

texts:
Could someone please explain the difference between associated_item_id (Id of the associated item) and item_id (Item Id) in sales_order_tax_item table?

What does Id of the associated item mean?

Thank you!


texts: Unable to update custom product attribute value programatically

texts:
I have created a few custom product attributes in Magento 2.2.6 and have no problem saving a new product with these new attributes, load this created product, and update the standard Magento attributes. But if I try to update a custom attribute, it just will not update the value. It won't even throw an error, it looks like everything went fine, but the value did not change.

Example custom attribute creation:

$eavSetup = $this->eavSetupFactory->create();
$eavSetup->addAttribute(
    \Magento\Catalog\Model\Product::ENTITY,
    'protein', [
        'group'      => $this->attributeGroupName,
         type'       => 'varchar',
        'label'      => 'Protein',
        'input'      => 'text',
        'required'   => false,
        'visible'    => true,
        'sort_order' => 50,
        'global'     => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE
    ]
);

Creating and updating product:

$this->product = $this->productFactory->create();
$this->product = $this->product->loadByAttribute('sku', $data['sku']) ?: $this->product;

$this->product->setSku($data['sku']);
$this->product->setName($data['name']);
$this->product->setProtein($data['protein']);
// $this->product->setData('protein', $data['protein']);

$this->productRepository->save($this->product);

If anyone has any idea why the value of the custom attributes won't update, I would be grateful!


texts: Add to cart inconsistent after 2.0.2 upgrade

texts:
On my webshop the add to cart using the default Luma theme is inconsistent working / not working.

If  add to cart from frontpage, its not working, if i go to a product page and add to cart then both products will be added to cart, meaning the product i tried adding from frontpage AND the product i add from the product specific page.

I have tried looking in the console log to se if there is any ajax / js errors, but nothing is logged. Also nothing really shows anything in the error log i nginx.

I use redis for object cache, i have tried to disable redis just to rule out redis could be the issue.

I emptied all cache from Cache Management still not solved the issue.

I guess it could somehow be a session / cookie issue, but nothing really shows in the logs.

Any clues on what to look for ?


texts: Magento Newsletter large collection handle

texts:
In my magento application 4lakhs customer have newsletter subscription,when i like to see the subscription grid in magento admin,it show the blank page.

The existing query is

$collection = Mage::getResourceSingleton('newsletter/subscriber_collection')

I also see the large collection handler in Magento, but i don't know how to write the large collection with this subscriber_collection.

Can you share your idea about how to handle the large newsletter collection in magento. thanks in advance for your answer.


texts:
I have a trouble with upload images in Magento backend. I think there is a problem with

<?php echo $this->getJsObjectName() ?>

in app/design/adminhtml/default/default/template/media/uploader.html. I have an JS errors. This scirpt:

<script type="text/javascript">
//<![CDATA[

var maxUploadFileSizeInBytes = <?php echo $this->getDataMaxSizeInBytes() ?>;
var maxUploadFileSize = '<?php echo $this->getDataMaxSize() ?>';

<?php echo $this->getJsObjectName() ?> = new Flex.Uploader('<?php echo $this->getHtmlId() ?>', '<?php echo $this->getUploaderUrl('media/uploader.swf') ?>', <?php echo $this->getConfigJson() ?>);

if (varienGlobalEvents) {
    varienGlobalEvents.attachEventHandler('tabChangeBefore', <?php echo $this->getJsObjectName() ?>.onContainerHideBefore);
}

//]]>
</script>

on my browser looks:

<script type="text/javascript">
//<![CDATA[

var maxUploadFileSizeInBytes = ;
var maxUploadFileSize = '';

 = new Flex.Uploader('id_be78c0de320409a822bfb385331b6473_Uploader', '', );

if (varienGlobalEvents) {
    varienGlobalEvents.attachEventHandler('tabChangeBefore', .onContainerHideBefore);
}

//]]>
</script>

Do you have any ideas what's wrong is this code?


texts:
Via layout.xml you can add the node ifconfig that will allow for the admin to enable/disable parts of an extension. An example is in the sales section:

ifconfig="sales/msrp/enabled"

My question is, without adding a check to all my observer methods in a module, is there a way have a similar flag on observers?

Example is if you had a module that does one thing on an observer but you want to disable this on a store level.


texts: Fixed currency prices, websites, single domain

texts:
We have a client who has an existing Magento website. It is one website, one store, and one store view. The base currency is GBP.

They have recently raised a question about adding the option of offering their products at USD prices as well. They would like to specify the USD prices (ie. not use conversion rates). The background is that they currently have a US distributor of their products which is not currently being utilized on the GBP site, and all US customers are having to pay pricing to ship from UK to US, using the UK-based distributor.

In the past, when we've had clients with the need for multi-currency, we have set up each currency in separate store views, and installed InnoExt Advanced Pricing module  http://innoexts.com/promotion/advanced-pricing/ to allow setting of fixed prices per currency. But we've found issues with Magento reporting and credit memos with orders placed in "other" currencies as Magento still uses its currency rates for these areas and still takes one currency as the "base currency".

Due to these issues, I'd like to rethink what our setup should be. I'd like to stick to Magento's default behaviour as much as possible, with minimum requirement for third party modules. My feeling is that we should build another Website (the US website), set USD as the base currency for that website.

The specs are:

Products should be shared between US and UK distribution.
Customers are shared between the US and UK distribution.
Other content like pages/blog posts (aheadWorks blog) should be shared between US and UK.
The whole environment exists on a single domain (is this possible with multi-website)?
There may be different tax rates for the US and UK distribution.
There may be different shipping methods for the US and UK distribution.
There may be different payment accounts or gateways for the US and UK distribution.

Am I right in thinking baskets cannot be shared between websites? For example, if someone is in the UK store but they want to ship to the US and enter that address on checkout, switching them to US website would not be as simple as switching store views is?

I know of course we need to investigate and test this, but I would like thoughts from the Magento community on the best strategy for how to set this up. Are we right to go down the multi-website route?

Thank you so much for any advice in advance, and for reading this!


texts:
Following that guide

https://devdocs.magento.com/guides/v2.3/migration/migration-tool-configure.html

I choose to configure migration in a separate module as recommended.

But when run

bin/magento migrate:settings -r app/code/Bileamara/Migration/etc/opensource-to-opensource/1.9.4.0/config.xml

I got the following error:

  Invalid map filename:
  /mnt/vdb/vhosts/example.com/subdomains/dev/vendor/magento/data-migration-tool/etc/opensource-to-opensource/settings.xml

but what is expected is that the script looking for files first in the custom module than in the vendor folder.

Any help?


texts: Products not appearing in manage > products in magento

texts:
To sum things up, when I go to Manage > Categories in "All store views" I can see the products in "Category products". When I switch to another store view, no product is showing.

And in Manage > products I can't see these products even if I'm on "All store views"

I checked the stock, many products are in stock.
How can I assign all the category products to a specific store view?
PS. I have a multi-store website.


texts: Magento2 how to get current address data in custom shipping method

texts:
How i can get current shipping address details in custom shipping module,

here my code

   <?php
public function collectRates(RateRequest $request)
{
    if (!$this->getConfigFlag('active')) {
        return false;
    }

    /** @var \Magento\Shipping\Model\Rate\Result $result */
    $result = $this->_rateResultFactory->create();

    //$shippingPrice = $this->getConfigData('price');
    $shippingPrice = "121";
    $method = $this->_rateMethodFactory->create();
    $method->setCarrier($this->_code);
    $method->setCarrierTitle($this->getConfigData('title'));
    $method->setMethod($this->_code);
    $method->setMethodTitle($this->getConfigData('name'));
    $method->setPrice($shippingPrice);
    $method->setCost($shippingPrice);
    $result->append($method);

    return $result;
}

?>

i want get the current shipping address and need to display shipping price  based in shipping address.


texts: 404 redirect for my website using htaccess not working for new pages with "?"

texts: How can I redirect my 404 pages with Magento? I try to change my site


texts:
I have a code to add a list of products to a table in my database, as you can see here.
In my code below, you can see that it shouldn't add the product if id_product's (CODIGO) unique value is already at the table. (getSize == 0)

$collection = Mage::getModel('novapc_allnations/promotion')->getCollection();
$promo = Mage::getModel('novapc_allnations/promotion');

foreach ($ab as $product) {
    # Filtra a collection atual de promoções, se o ID do produto atual ja estiver la, não adiciona
    $collection = $collection->addFieldToFilter('id_product', $product['CODIGO']);
    if ($collection->getSize() == 0) {
        $promo->setData(array(
            'name'             => $product['DESCRICAO'],
            'id_product'       => $product['CODIGO'],
            'promo_price'      => $product['PRECOREVENDA'],
            'descrtec'         => $product['DESCRTEC'],
            'category'         => $product['CATEGORIA'],
            'sub_category'     => $product['SUBCATEGORIA'],
            'manufacturer'     => $product['FABRICANTE'],
            'department'       => $product['DEPARTAMENTO'],
            'partnumber'       => $product['PARTNUMBER'],
            'ean'              => $product['EAN'],
            'warranty'         => $product['GARANTIA'],
            'weight'           => $product['PESOKG'],
            'resale_price'     => $product['PRECOREVENDA'],
            'price_without_st' => $product['PRECOSEMST'],
            'expire_date'      => $product['DATAVALIDADEPRECO'],
            'available'        => $product['DISPONIVEL'],
            'pic'              => $product['URLFOTOPRODUTO'],
            'stock'            => $product['ESTOQUE'],
            'ncm'              => $product['NCM'],
            'width'            => $product['LARGURA'],
            'height'           => $product['ALTURA'],
            'depth'            => $product['PROFUNDIDADE'],
            'active'           => $product['ATIVO'],
            'subst_tributaria' => $product['SUBSTTRIBUTARIA'],
            'product_origin'   => $product['ORIGEMPRODUTO'],
            'available_stock'  => $product['ESTOQUEDISPONIVEL'],
            'updated_at'       => $product['TIMESTAMP']
        ));
        $promo->save();
    }
}

But when I manually delete some rows from the table, it tries to add all products in list again, and throw a duplicate error.
Am I doing something wrong? Is there a better method than getSize to this? Thank you


texts: Magento 2.3 Remove product options wrapper if attribute set to yes

texts:
Could someone guide me how i can Remove product options wrapper if attribute set to yes
Screenshot
https://prnt.sc/uiebh1
I have successfully remove the add to cart button but when i trying to use same code into wrapper.phtml page showing error.
Code i m using
<?php if($_product->getData('remove_addtocart')==1): ?>
YES
<?php else: ?>
NO
<?php endif; ?>


texts: Magento2 How to redirect category url to external link?

texts:
I have a requirement wherein I need to redirect multiple categories to external site's respective category pages.
For the same I have created categories in magento. Whenever we create a category in magento it creates a url rewrite so that you can access category via url_key.
Example:
Category name: Events
Category url_key: events
category url: events.html
category url rewrite target path: catalog/category/view/id/175
Now if I try to create url rewrite for events.html, it gives me error "Request Path for Specified Store already exists."
I know I can delete the existing url rewrite and create new where request path is "catalog/category/view/id/175" and target path is external site url.
(in this case request path can not be events.html as magento will never find events.html as we have deleted the url rewrite)
However, I do not wish to go with category ids as category ids will be different on different environments like dev, stage and production. Plus I do not want to manually delete all those url rewrites that magento has created.


texts: Magento Collection returns 10 records only

texts:
I am attempting to pull records from a table in Magento platform. It always returns only 10 records, no matter how many rows are in the table.

here is my function:

public function getWarrantyClaims(){
    $collection= Mage::getModel('blah/blah')->getCollection()
    ->addFieldToFilter('dealerid', array('in'=>Mage::helper('blah/blah')->getUserIds()));
    $collection->setOrder('ponumber','DESC');
    return $collection;
}

it returns 10 records (there is 13 in database table) Here is the results from

 echo $collection->load()->getSelect();

SELECT main_table.* FROM blah AS main_table WHERE (dealerid IN('6205', '7990')) ORDER BY ponumber DESC

If I add setPageSize(100); I still only get 10 records.


texts: How do I change all the http:// urls to // on my homepage

texts:
I ran into trouble when I enabled SSL on my magento web store, my javascript console throws a mixed content exception since some contents of the pages are still requesting http:// protocol. I would like all my http:// urls to be switched over to // so my site can successfully load content from both protocols. Where in the magento file structure can I find the script that writes the protocal for javascript tags in the header of my homepage ?

Sorry for the noobish question as I am completely new to magento, any help would be appreciated


texts:
Iam working on a Magento project

I have added a single product to many categories.

all those categories have their own discount rates.

for example; Category A - 10%, B - 20%, C - 30%, and D - 40%.

when I add the product to cart which is in all these categories, currently customer get all the discounts. but I want to give only the highest discount rate of all categories the product in that is D - 40%.

How can I do this in Magento?

Thanks!


texts: Adding product SKU into existing Cart Price rule Magento 1.7.0.2

texts:
I want to add/remove applicable product sku to/from already defined price rules programmatically when ever it is needed.

How can I do that?


texts: Get 5 Random Product IDs From Product Collection

texts: I am looking to create a custom product collection using specific product attributes as filters. The product collection I am getting has well over 100 products in which is fine but I need to find a way of choosing 5 products at random from the collection and then load them to display on a page. Has anyone developed anything similar to this or know the best way of implementing this?


texts: Magento 2 : prevent promo rules to be applied

texts:
I don't want any Promo/shopping-cart rules to be applied for some conditions.

  (Eg: When using store credit etc..)


texts:
I am facing below issue in default Magento 1.9.1.1 setup.
I have set Need to Confirm under System->Configuration->Newsletter->Subscription Option option to Yes.
Now when I am trying to subscribe newsletter via newsletter subscription box in footer, Magento is sending newsletter subscription confirmation email.
But when I am trying to subscribe newsletter subscription at the create account page while creating account, magento system is not sending any newsletter subscription confirmation email and directly setting the status as subscribed.


texts: Reload default.phtml when customer clicks add to cart

texts:
catalog/product/view/type/default.phtml shows availablity and some custom code on the product page.

Is there a way to reload/refresh deault.phtml on the page when the user clicks Add To Cart? without reloading the full page.

My website uses AJAX and here is the code I think I need to modify.

function setAjaxData(data, elm) {
if (data.status == 'ERROR') {
    jQuery(elm).find('i').remove();
    jQuery(elm).find('> span').show();
    showCartBox(data.message);
} else {
    var time = 6;
    var url_view_cart = jQuery('.typo-cart-label').attr('href');
    var txt_view_cart = Translator.translate("Go TO Checkout");
    var btn_view_cart = ''+txt_view_cart+' '+time+'';

    $typo('.typo-maincart').html('');
    if ($typo('.typo-maincart')) {
        $typo('.typo-maincart').append(data.output);
    }
    if ($typo('.header .links')) {
        $typo('.header .links').replaceWith(data.toplink);
    }
    // $typo.colorbox.close();
    // showCartBox(data.message, false);
    jQuery(elm).find('.icon_loading').remove();
    jQuery(elm).append('');
    jQuery('.typo-cart-label .print').addClass('animate-bounceIn active');

    setTimeout(function(){
        jQuery(elm).after(btn_view_cart);
        jQuery(elm).hide();

        var counter = jQuery(elm).find('+ .btn-view-cart span.count');
        var countHide = function(){
            var time = counter.attr('data-count');
            if (time<= 0 || time == 'undefined') {
                $typo.colorbox.close();
                return;
            }
            else time-=1;
            counter.html(time).attr('data-count', time);
            setTimeout(function(){ countHide() }, 1000);
        }

        countHide();
    }, 2000);

    setTimeout(function () {
        jQuery(elm).fadeIn('slow').removeClass('pointer-event');
        jQuery(elm).find('.icon_check').remove();
        jQuery(elm).find('> span').show();
        jQuery(elm).find('+ .btn-view-cart').remove();
    }, 7000);

    $typo("#ajaxcart-scrollbar").mCustomScrollbar({
        theme:"dark-2",
        scrollButtons:{
          enable:true
        }
    });
}

Your help is hugely appreciated.


texts: Magento 2: How to upload multiple images to Customer from Admin

texts:
Wanting to upload multiple images to a customer account via the admin. Below I've created a custom customer attribute that allows a single image / file upload, but how can I make this a multiple file upload?
InstallData.php
<?php

namespace MyCompany\MyModule\Setup;

use Magento\Eav\Setup\EavSetupFactory;
use Magento\Customer\Setup\CustomerSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

class InstallData implements InstallDataInterface
{
  private $eavSetupFactory;
  private $customerSetupFactory;

  public function __construct(
    EavSetupFactory $eavSetupFactory,
    CustomerSetupFactory $customerSetupFactory
    )
    {
      $this->eavSetupFactory = $eavSetupFactory;
      $this->customerSetupFactory = $customerSetupFactory;
    }

    public function install(
      ModuleDataSetupInterface $setup,
      ModuleContextInterface $context
    ) {
      $setup->startSetup();

      $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
      $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);

      $attributeCode = 'customer_logos';

      $customerSetup->addAttribute(
        \Magento\Customer\Model\Customer::ENTITY,
        $attributeCode,
        [
          'type' => 'varchar',
          'input' => 'file',
          'label' => 'Customer Logos',
          'source' => '',
          'required' => false,
          'visible' => true,
          'position' => 200,
          'system' => false,
          'backend' => ''
        ]
      );

      // used this attribute in the following forms
      $attribute = $customerSetup->getEavConfig()
      ->getAttribute(\Magento\Customer\Model\Customer::ENTITY, $attributeCode)
      ->addData(
        ['used_in_forms' => [
          'adminhtml_customer'
        ]
      ]);

      $attribute->save();
      $setup->endSetup();
    }
  }


texts: Magento 2 : How to set default value in custom option

texts: Magento2 - How to set a default value for a product custom option, so that default value can be visible in product details page as default value.


texts: How can I change the product image path?

texts:
I would like to add a custom folder when magento creates the path for a product image. If image name is image.jpg the path will be ../media/catalog/product/i/m/image.jpg. What I need is ../media/catalog/product/i/m/CUSTOM_FOLDER/image.jpg.

Basically I need to find the .php that create this image path when the product is created and edit it.

Thanks.


texts:
Just moved a Magento 2 site from a test hosting domain to my local PC.
Everything is ok except Magento logo and icons (cart, envelope inside the email subscribe form, search icon,etc) dont show on frontend.
On backend there are no problems.
Product images in product pages dont load. However, they load ok in catalog pages.

I have already flushed cache, deleted pub/static folders, run deploy:static-content:deploy.

I found that the file var/resource_config.json still points to the test domain url:

{"media_directory":"\/chroot\/home\/test.domain\/html\/pub\/media\/","allowed_resources":["css","css_secure","js","theme","favicon","email","wysiwyg","tmp","catalog","custom_options","dhl","captcha"],"update_time":"3600"}

Is it ok to edit this file manually?


texts: Issue about extension install via composer

texts:
I am facing issue about extension install via composer please give solution

 root@aadmin-HP-15-Notebook-PC:~# apt-get install composer Reading
 package lists... Done Building dependency tree
 Reading state information... Done E: Unable to locate package composer
 root@aadmin-HP-15-Notebook-PC:~#


texts: Magento 2 - where is the template of the payment method renderer

texts:
I am trying to implement a custom payment method inside Magento 2.
I am following this documentation from the official Magento 2 docs: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_payment.html

In the section called "Create the .js component file", I can't figure out what should I put in template:

define(
    [
        'Magento_Checkout/js/view/payment/default'
    ],
    function (Component) {
        'use strict';
        return Component.extend({
            defaults: {
                template: '%path to template%'
            },
            // add required logic here
        });
    }
);

So I tried to see the implementation from Magento's Paypal integration:

//file {magento root dir}/vendor/magento/module-paypal/view/frontend/web/js/view/payment/method-renderer/payflow-express.js
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
/*browser:true*/
/*global define*/
define(
    [
        'Magento_Paypal/js/view/payment/method-renderer/paypal-express-abstract'
    ],
    function (Component) {
        'use strict';

        return Component.extend({
            defaults: {
                template: 'Magento_Paypal/payment/payflow-express'
            }
        });
    }
);

So I tried to find the template mentioned inside the code, but that path just doesn't make any sense to me since there is no such folder payment inside {magento root dir}/vendor/magento/module-paypal/, so, my question is: where is that template?


texts:
Compare Products link or button does not work in Magento 1.9.3.2

  i have added product comparison link doesn't work. This is in Magento
  1.9.3.2 My issues are almost identicalto this post, with the exception that clearing the index did not work. Is there anything else I can
  try?

  Here are the issues: When I click "Add to Compare" on a product, a
  message stating that "such-and-such product successfully added to
  compare list" appears.However the compare products sidebar shows "You
  have no items to compare."but it's not working any more.


texts: Optimize this query selecting associated configurable products

texts:
Given a configurable product ID (45535), I'm getting the IDs of other configurable products that are linked via a simple product. I'm trying to see if this query can be made faster.. Is it possible to make this query any faster?

SELECT l2.`parent_id`
FROM catalog_product_super_link AS l
    INNER JOIN catalog_product_super_link AS l2
        ON l.`product_id` = l2.`product_id`
WHERE l.`parent_id` = 45535 AND l2.`parent_id` != 45535 GROUP BY l2.`parent_id`;

When I run EXPLAIN, I get the following

id  select_type table   type    possible_keys   key key_len ref rows    Extra
1   SIMPLE  l   ref UNQ_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID,IDX_CATALOG_PRODUCT_SUPER_LINK_PARENT_ID,IDX_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID  IDX_CATALOG_PRODUCT_SUPER_LINK_PARENT_ID    4   const   30  Using temporary; Using filesort
1   SIMPLE  l2  ref UNQ_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID,IDX_CATALOG_PRODUCT_SUPER_LINK_PARENT_ID,IDX_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID  UNQ_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID 4   test_db.l.product_id    1   Using where; Using index

Table catalog_product_super_link has about 42K rows.


texts:
I have made 2 example groups, which look like this:

first_group
   first_field_1
   first_field_2
   first_field_3

second_group
   second_field_1
   second_field_2

How can I dynamically get the fields per group (for example, using something like $this->getGroupFields('first_group'))?


texts: After add attribute clearance_price as price, it doesn't be calculated for finalprice on Magento 2.2.3

texts:
I use special_price, tier_price and clearance_price and need to display minimal price of them as final price.
I added clearance_price and custom attribute and put it in Advanced pricing.
But when I do to product details page it doesn't show clearance price as lowest price.
How can I fix this?


texts: Unable to add product to cart: ajax loader image not found

texts:
I am unable to add product to cart my site link: bit.ly/2MtOjTn

By using inspect element I am getting following error

Failed to load resource: the server responded with a status of 404 (Not Found)

I have deployed static content
php bin/magento setup:static-content:deploy -f

and I can see ajax loader in pub/static folder as well

I have cleared all cache including var/cache and browser cache but I am still getting same error and unable to add a product to a cart


texts: Remove DHL Shipping Method If Free Shipping is Available

texts:
I have Magneto 2.2.4 in which I have to hide DHL Shipping Method if Free Shipping is Available.

My Free Shipping is available if minimum order amount is greater than 200 .

Is there any Admin option to do this or I have to create a Module or install an Extension.

My Condition Setting

My Action Setting


texts:
Why may cause this error?
Stop opening page AW blog, and displays this error:

  Fatal error: Call to undefined function mb_detect_encoding() in /var/www/html/mysite/app/code/community/AW/Blog/Helper/Substring.php on line 18


texts:
I want to integrate our Magento website with Inventory management system. for this task we are development 2 ways syncing service which will update Magento db & Inventory system also;

How to update products (Need table structure and db flow)
How to update inventory on purchase and sales


texts: An error occured: 1021 - Cant create transaction: ERR_BADPAR: forwardedip

texts:
Does anyone know what this means?

  An error occured: 1021 - Kan geen transactie aanmaken: ERR_BADPAR: forwardedip

This happens when a customer completed his order and want to place his order.
He should go through to the payment page (Multisafepay)

Any help is very much appreciated.

My hosting just implemented Cloudflare on the site. Can that have something to do with it?


texts: Add Custom Attribute to Credit Memo and Show it at Grid

texts:
In credit memo grid there are some column originally defined

I want to add new column, by adding custom attribute with datetime type to credit memo, is there a way to add this custom attribute to credit memo and show it at  the grid?


texts: Magento 2.1 Navigation is not displaying categories correctly

texts:
Has anyone experienced this issue? There is only one category that will show up in the menu and there are no subcategories that will show up.

I've tried:

*both developer mode and production
*cleared cache
*reindexed
*rebooted
*checked permissions
*using flat categories
*different browsers
*verified max depth
*verified all categories are anchors

Thank you in advance.


texts: Magento 2.3 - Category Products indexer takes so much time although I have little products

texts:
I have just installed Magento 2 a few days ago.

And suddenly when I try to reindex manually I noticed that the Category Products indexer takes much time. more than 8 mins

And I've got this exception in Sentry about 2k time

WARNING: Memory size allocated for the temporary table is more than
20% of innodb_buffer_pool_size. Please update innodb_buffer_pool_size
or decrease batch size value (which decreases memory usages for the
temporary table). Current batch size: 100000; Allocated memory size:
2160000000 bytes; InnoDB buffer pool size: 2281701376 bytes.

from the exception above: I've updated the buffer pool size to max value allowed but the problem didn't solve.

Notes:

I don't have so many products, It's just dummy data.
I've updated to Magento 2.3.2 today but the problem still exists.
I don't have this issue on my localhost domain.


texts: Magento2 - How to add a new section to customer account page

texts:
I want to add a new section with my own links to the customer account page (see pic) This section should be visible based on my custom extension of the customer entity.

How can I do that?


texts: SOME OF THE PRODUCTS BELOW DO NOT HAVE ALL THE REQUIRED OPTIONS

texts:
I have created a bundled product with two product options but both the options are required. When I try to order such a product it redirects me to checkout page showing an error to specify options. But since both the product option is set to required there is nothing to select.
I tried to save the product from Magento Admin and when it gets saved from backed the problem is solved. But I want the product to be created programmatically.


texts: Magento 1.9.x: Tax rates and prices including tax

texts:
I have created Tax Rates for every country, in my case I have 4 type of tax rates:

Europe 23%
Europe 13.5%
Europe 9%
Outside EU 0%

For the non EU country I've created a Tax Rule with the Tax Rate "Outside EU" set and other 3 different Tax Rules for the other 3 Tax Rates for every customer group. In this case we are taking in case only the 23% tax rate.

I've this configuration in the Tax calculation settings:

The Tax shipment origin is set to an EU country (so 23%) and also the default tax destination is set to an EU country.

The problem that I'm facing is very simple, I'm seeing correctly the product prices when I'm not logged or logged with an address that is in the EU country, supposing that a product price is 85 €.
When I'm in a non EU country (so 0% tax rate) I'm seeing the product always with a price of 85 € that is wrong.

What I'm expecting here is that Magento (calculating the shipment origin) calculate the 23% of tax and then, remove it from the product price, so in this case, the product price have to be 69.10 € and not 85 €!

Why the taxes is not removed? I think that what Magento is doing is:

You are in a non EU country so 0% of VAT
The product price is 85 €
Don't apply any tax (but why if the product is including tax!?)
Product price is now show as 85 €

This flow is wrong in my opinion and the correct flow must be:

You are in a non EU country so 0% of VAT
The product price is 85 €
The store shipment origin is in an EU country
The destination is in a non EU country
Remove the 23% of taxes (because the store is located in an EU country)
Product price is now show as 69.11 €

Someone can help me with this annoying issue? Is a Magento bug?

Thanks


texts:
I installed Luma theme with sample data .The icons are corrupted and do not allow click
https://www.magentocommerce.com/download

p / s : I've previously installed a beta in https://github.com/magento/magento2/tree/1.0.0-beta . It worked . Now I set the official version has happened problem


texts: Magento REST API Post Product and Category without "Sorting" parameter

texts:
I need to POST products with their category number, but without their sorting because I dont want to change the sorting via API.

{"product": {
    "id": 1234,
    "sku": "2345",
    "name": "Nice Product",
    "extension_attributes": {
        "website_ids": [1],
        "category_links": [{
            "position": 11,
            "category_id": "123"
        }]
    }}
}

As soon as I take out the sorting position I get an error.

So, how can I post a product including the Category but without changing its sorting within one call?


texts: Magento 2 : Fresh magento 2 API not working?

texts:
I have installed fresh magento 2 and when I hit API of anything it doesn't work for me.

Check this url : visit here

It seems like an permission issue and I can't figure out what? If anyone having knows about this, please let me know.

EDIT :

routes.xml

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

webapi.xml

<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route method="POST" url="/V1/signin/">
    <service class="Vendor\App\Api\LoginManagementInterface" method="setSignin"/>
    <resources>
        <resource ref="anonymous" />
    </resources>
</route>
</routes>


texts: Magento 2 - Dynamic custom pricing for certain accounts

texts:
I am trying to set up custom pricing for certain customer accounts. For example a user may have a 5% discount off a certain product (I don't want to use catalog rules as there will be hundreds of these, all constantly changing).

I have tried using the catalog_product_get_final_price event but it's not working (might be related to this bug):

public function execute( Observer $observer ) {
    $product = $observer->getProduct();
    echo $product->getName(); // this works so I know observer is being called
    $product->setFinalPrice(123.45); // this doesn't work
    return $this;
}

Any ideas how best to achieve this?

In M1 I would simply override the getFinalPrice method of Mage_Catalog_Model_Product_Type_Price

Is the M1 method still the best way to achieve this?


texts:
I used extension login via mobile number:
https://marketplace.magento.com/sparsh-magento-2-login-with-mobile-number-extension.html
Does anyone have any idea how to customize this extension to also allow login via username?


texts: Get entire product page html block from outside Magento

texts:
What I am trying to do is fairly straight forward.  I am basically trying to load the product block based on product ID.  Imagine an empty CMS page, and just fill it with the product block so it looks identical to the product page.  This is what I am trying to accomplish.  It needs to be done outside Magento, so calling a block like: {{block type="catalog/product_single" product_id="1" template="catalog/product/singleproduct.phtml"}} is out of the question.  This is what I have so far .. but I think I am trying to over-simplify this.   I know I am missing something obvious.

require_once '/blah/blah/blah/app/Mage.php';
Mage::app();
$block = new Mage_Catalog_Block_Product_View_Options();
$product = Mage::getModel('catalog/product')->load('22335');
$block->setProduct($product);
$block->getBlock('product');
echo $block->toHtml();

Does anyone have anything to add to this to make it work?


texts: How to add column in orders Excel xml export?

texts:
In magento backend it is possible to export the list of the orders in Excel XML format.

I would like to add columns in this file such as the company name (present in the customer address) and the payment method but I do not find the function exporting the datas...

Thank you for your help,


texts: How to keep the customer custom attribute filled in case of validation error Magento 2

texts: I have created an attribute in customer level from admin and when i submit the form and after validation, if any error occurs then it redirects to same form page with an error but the field is not pre-filled like first name and last name in register page.


texts: Can I move 'Go to checkout' button and  cart subtotal to end of dropdown ?


texts: w3c validator showing<script type="text/javascript"

texts:
I support a Magento store (on version 1.9).  I changed the doctype to HTML 5 using the HTML5 head identifier.

I then removed the 'type ="text/javasscript" from all of my pages, files, scripts etc, since this is no longer necessary for HTML5.

However, when running the W3C validator (https://validator.w3.org) it shows that there is still an instance of a script tag containing "text/javascript" whereas when running a 'view page source' of this page there is no reference to this.

My site is: https://www.edgestickers.co.uk

What is causing the w3c validator to still pick up a reference to "text/javascript"?


texts: Magento 2 : Get values defined in env.php into script

texts: Is their any way we can get env variables values in custom script ?


texts:
I would like add a feature to show a data like the "Welcome username".
So i searched about how it works and i followed this tutorial

I'm blocked because i'm always getting the error unable to process binding company()

I created a model which represent a company, in my class extending SectionSourceInterface in the getSectionData method i return ['name' => 'test'] to test the feature.

I put this in my frontend/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\Customer\CustomerData\SectionPoolInterface">
        <arguments>
            <argument name="sectionSourceMap" xsi:type="array">
                <item name="company" xsi:type="string">Test\Company\CustomerData\Company</item>
            </argument>
        </arguments>
    </type>
</config>

I add this my default.xml module layout :

<referenceContainer name="header.panel">
    <block class="Magento\Framework\View\Element\Template" name="welcome_msg" before="-" template="Test_Company::html/welcome.phtml"/>
</referenceContainer>

I put this in my welcome.phtml :

<?php
/**
 * @var \Magento\Framework\View\Element\Template $block
 */
?>

Hello

        <span data-bind="text: new String('<?=$block->escapeHtml(__('Welcome, %1!', '%1'))?>').replace('%1', company().name)">

and i put this in my company.js :

define([
    'uiComponent',
    'Magento_Customer/js/customer-data'
], function (Component, customerData) {
    'use strict';

    return Component.extend({
        /** @inheritdoc */
        initialize: function () {
            this._super();

            this.company = customerData.get('company');
        }
    });
});

Could you help me please to know what's wrong in my process ?


texts: How can I edit the invoice to include a VAT breakdown?

texts:
Some of our items do not have VAT. So we need a table that shows a breakdown. Such as seen below. Is there any way I can do this in Magento?

%    -- Rate   -----              Net   ----        VAT
20     --Standard          100.00           --20.00
0   -   --Zero        ----     15.00           --- 0.00


texts: 1.9.2.1 CE - Refresh statistics not working

texts:
Please note I did not change anything inside the code. It is an installation of Magento 1.9.2.1 CE + Magento Sample 1.9.

1) Go to Dashboard and you will see Best Viewed Products list.

2) Go to Report - Refresh Statistics. Select All and Submit one of the Actions.

3) Go back to Dashboard and Best Viewed Products shows the same list.

Both Actions are not clearing the database for Best Viewed Products. I deleted manually the database and Dashboard shows no products in the list right now. Please check if the other options like Orders, Tax, Shipping are cleaned up too.


texts: Is there a Magento 2 Membership Extension that offers functionality similar to Amazon Prime Membership?

texts:
I have a grocery store built upon Magento 2. I am looking for a way to incorporate membership functionality that will allow the grocery stores' premium customers to buy products at a discounted rate. (Think of Amazon Prime Membership where Prime members pay an annual fee and enjoy benefits like faster shipping, reduced product prices etc.)

Is there an extension that offers this exact functionality? I have come across a couple of extensions but found out they offer only membership "plans" functionality not what I am looking for.


texts: Unable to Place the Order Error with PayPal Express

texts:
I am hoping someone has seen this error before. I searched and noticed that other people have had a similar issue and posted on job boards to have someone fix it but I can't find a solution.

I am in the USA and using PayPal Payments Pro to take credit card orders and to also use PayPal Express Checkout. My issue is with PayPal Express Checkout.

The customer comes to the site, loads something into the cart, gets to the Checkout page and chooses PayPal Express. The site kicks the person over to PayPal, you log into PayPal and choose your payment option and then you are sent back to the website to choose the shipping options. After choosing the shipping option and clicking on Place Order, I get an error on that page saying "Unable to Place the Order".

However, the transaction appears successfully in my PayPal account and I also get an email from PayPal saying it was successful. The order also appears in the backend of Magento with the customer's information and I am able to ship the order fine.

But the customer is not seeing the success page but instead the error page. I have turned off the cache (both Magento and third party plugins), I deleted all the contents of the var/cache folder but I still have no clue why the error comes up.

The contents of the exception.log inside var/log has:

TIME_STAMP_HERE ERR (3):
exception 'Varien_Exception' with message 'Invalid method Mage_Sales_Model_Order::queueNewOrderEmail(Array
(
)
)' in /server/path/public_html/lib/Varien/Object.php:653
Stack trace:
#0 /server/path/public_html/app/code/core/Mage/Paypal/Model/Express/Checkout.php(634): Varien_Object->__call('queueNewOrderEm...', Array)
#1 /server/path/public_html/app/code/core/Mage/Paypal/Model/Express/Checkout.php(634): Mage_Sales_Model_Order->queueNewOrderEmail()
#2 /server/path/public_html/app/code/core/Mage/Paypal/Controller/Express/Abstract.php(320): Mage_Paypal_Model_Express_Checkout->place('TWO_LETTERS_HERE-TWELVE_CHARACTERS...')
#3 /server/path/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Paypal_Controller_Express_Abstract->placeOrderAction()
#4 /server/path/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('placeOrder')
#5 /server/path/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#6 /server/path/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#7 /server/path/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#8 /server/path/public_html/index.php(87): Mage::run('', 'store')
#9 {main}


texts:
I want to load the topLinks on a page and use this code:

echo $this->getChildHtml('topLinks');

But this does not work.
How can I load the topLinks?

Thanks


texts: Magento 2: sometimes Paypal orders create 2 identical invoices

texts:
I have a strange behaviour in magento 2. Sometimes an order paid via paypal express or paypal plus creates a duplicate invoice. There seems to be no error. Aside from the invoice id they are completely identical and are created in the same second.

I found this inside the PayPal.log file:

[20-03-2019 19:41:34] PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAYID-MYSECRETPAYID
[20-03-2019 19:41:35] PayPal\Core\PayPalHttpConnection : INFO: Response Status  : 200
[20-03-2019 19:41:35] PayPal\Core\PayPalHttpConnection : INFO: PATCH https://api.paypal.com/v1/payments/payment/PAYID-MYSECRETPAYID
[20-03-2019 19:41:36] PayPal\Core\PayPalHttpConnection : INFO: Response Status  : 200
[20-03-2019 19:42:39] PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/oauth2/token
[20-03-2019 19:42:40] PayPal\Core\PayPalHttpConnection : INFO: Response Status  : 200
[20-03-2019 19:42:40] PayPal\Core\PayPalHttpConnection : INFO: GET https://api.paypal.com/v1/payments/payment/PAYID-MYSECRETPAYID
[20-03-2019 19:42:41] PayPal\Core\PayPalHttpConnection : INFO: Response Status  : 200
[20-03-2019 19:42:41] PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/payments/payment/PAYID-MYSECRETPAYID/execute

The ID in those requests refer to a transaction that created those duplicate invoices.

My assumption is that paypal returns some info back to the shop ("webhook"?). And somthing causes paypal to do it twice.

This is from the order comment history:

20.03.2019 20:43:46 Processing Kunde Nicht benachrichtigt
Benachrichtigung über erfassten Betrag von 1.054,00 € erhalten. Transaktions-ID: "MYSECRETTRANSACTIONID"
20.03.2019 20:43:46 Processing Kunde Nicht benachrichtigt
Benachrichtigung über erfassten Betrag von 1.054,00 € erhalten. Transaktions-ID: "MYSECRETTRANSACTIONID"
20.03.2019 20:42:57 Processing Kunde Nicht benachrichtigt
Benachrichtigung über erfassten Betrag von 1.054,00 € erhalten. Transaktions-ID: "MYSECRETTRANSACTIONID"
20.03.2019 20:42:57 Processing Kunde Nicht benachrichtigt
Benachrichtigung über erfassten Betrag von 1.054,00 € erhalten. Transaktions-ID: "MYSECRETTRANSACTIONID"
20.03.2019 20:42:44 Processing Kunde Nicht benachrichtigt
Autorisierter Betrag von 1.054,00 €. Transaktions-ID: "MYSECRETTRANSACTIONID"

I would like to somehow hook into the process to log if paypal actually DOES return anything multiple times.

Does anybody know where to look?

Thank you


texts: Unable to apply patch 3941 or 8788 V2 to 1.9.1.0

texts:
With the recent security updates, I've been unable to apply patch 3941 onto Magento 1.9.1.0.

I did initially install the 8788 V1 patch, but I reverted that patch to install 8788 V2. I've checked and never installed 1533 patch. When I try to apply SUPEE-3941 I get the following:

  sh PATCH_SUPEE-3941_EE_1.14.0.1_v1-2015-02-10-08-32-02.sh

I checked my applied patches log and confirmed patch 1533 has never been applied. Seems to be a different error than what everyone else was referencing. I tried making a blank downloader folder, but I ended up getting a different error related to the files not existing.

Any ideas?

UPDATE: Looks like i didn't remove 8788-V1 Yet. I removed it and 1533. When trying to apply 3941 I get the same error as above.

but when I try to apply 8788-V2, I get a different error almost like it can patch but needs something. Probably showing up since I don't have 3941 installed yet.


texts:
I downgrade php7 to php 5.6,now my magento site not working its getting error

     ( ! ) Fatal error: Call to undefined function curl_setopt_array() in /var/www/html/rmcstore/lib/Varien/Http/Adapter/Curl.php on line 77.

How to solve this


texts: How to retain customer login after switching website in Magento 2.3?

texts:
I have a website switcher button on my Magento 2.3 site (not a store switcher).

When a customer logs in on the website - abc.magento.com, I programmatically switch the website to pqr.magento.com, it redirects to the new website but logs out my customer.

I tried setting "YES" for following Configuration Setting

  General -> Web -> Session Validation Settings -> Used SID on
  storefront

But it didn't work.

Is there any way to prevent logging out and maintain the customer session.


texts: Magento2 send Thankyou email to Customer after filling Contact Us Form

texts:
Magento2 I want to send a thankyou email to customer after filling up the Contact Us form.

In order to achieve this I used below link custom mode

  How to send an Email confirmation after contact us

But I am facing a strange issue, as a customer, I received the thankyou email properly but the admin email id present under Store > Configuration > General > Contacts > Send Emails to  also received the Thankyou email.

In short,

Email 1: Admin received Form data email(mentioned under Send Emails to)

Email 2: Customer received Thankyou mail

Email 3: Admin received Thankyou mail(mentioned under Send Emails to)

Email 3 is incorrect, this should not have being received.

Any suggestions will be appreciated. Thanks in advance.


texts: Remove single category in sidebar in category list page in magento2


texts: How have others imported orders from a CSV file into Magento? Are there any good scripts?


texts: Magento 2.0 contact form not working on page CMS

texts:
We recent;y migrated stores from magento v1, to v2.

We are having a problem getting the contact form to show up on one of the CMS pages.

I have tried a million variations of something like this.

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

However NOTHING shows up on the front end... just disappears. If you go to the www.stores.com/contact page there is the default contact form that shows up.

Whats the deal? How can I get that form on my CMS page, this used to be easy on v1

Thanks!
-O


texts:
I want to include Company field on the shipping-information-content block on the Checkout if a customer fills the field on the previous page.

The relevant block on checkout_index_index.xml is

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

I added a picture that specifies which block I mean:

Can anyone offer their advice?


texts: Product collection problem - incorrect pricing data or not showing out of stock items

texts:
I am retrieving a product collection based on the current category. I need this collection to contain both in and out of stock products, and I also need the pricing data to be displayed correctly.

My store is configured to store product pricing as inclusive of tax, and to show prices as both inclusive and exclusive on the store front.

The code for obtaining the collection is as follows:

$category = Mage::registry('current_category');
$_productCollection = Mage::getModel('catalog/product')->getCollection()
                ->addCategoryFilter($category)
                ->addAttributeToSelect(['sku', 'name', 'price'])
                ->addAttributeToFilter('status', 1)
                ->addAttributeToSort('jump_number', Varien_Data_Collection::SORT_ORDER_ASC);

The issue with the above is that when loading the price block using the getPriceHtml() method, both inclusive and exclusive prices are displayed as the inclusive price.

After some research, I found that adding a addFinalPrice() method to my collection gives me the pricing expected - a correct exclusive and correct inclusive price.

However, if I include the addFinalPrice() method, my collection no longer contains out of stock products.

Is there a way of returning the correct pricing data and having the collection contain both saleable and out of stock products?


texts:
I am a beginner in Magento, and generally at using any CMS, so maybe some of these may seem obvious to you, but are not obvious at all to me.

What I need to do for my shop is create a system where, at checkout, clients can choose between checking out as an

Individual => Normal checkout
Legal Entity => Some new fields appear, such as Company Name, CUI, RO

Also, it would be useful to be able to store these for later use as well

Note I do not expect anyone to give me a full working system on a platter. But I would like some info on where to look to learn more about how to do this maybe?


texts: Magento 2.3.2 upgrade issues (category page, di compile, and cms pages)

texts:
Magento upgraded from 2.2.6 to 2.3.2, and there are issues:
- All category pages are having error,
"Undefined factory mysql".

  Exception #0 (DomainException): Undefined factory mysql

Also di:compile command is having issue of temando shipping module (disabling it doesn't work).

  Fatal error:  Declaration of Temando\Shipping\Model\ResourceModel\CollectionPoint\QuoteCollectionPointRepository::save(Temando\Shipping\Api\Data\CollectionPoint\QuoteCollectionPointInterface $collectionPoint) must be compatible with Temando\Shipping\Model\ResourceModel\Repository\QuoteCollectionPointRepositoryInterface::save(Temando\Shipping\Api\Data\Delivery\QuoteCollectionPointInterface $collectionPoint) in vendor/temando/module-shipping-m2/Model/ResourceModel/CollectionPoint/QuoteCollectionPointRepository.php on line 30

And lastly all cms pages also having issue of page builder template

  Argument 2 passed to Magento\PageBuilder\Plugin\Filter\TemplatePlugin::afterFilter() must be of the type string, null given, called in /vendor/magento/framework/Interception/Interceptor.php on line 146

Any one faced similar issues after upgrade to 2.3?


texts: Magento 2.3.6 Extension Manager Not Working

texts:
This is old image I copy this image same page  I have same problem
magento V 2.3.6 my extension manager is not open  I connected
magento marketplace account success fully but I don't know to solve
this issue please guide me or give me contact number indian customer
care

I am try to solve this issue but I'm not fount this :-
https://i.stack.imgur.com/eth3U.jpg

extension manager not open his showing Please wait only


texts: How can we load js to a custom module created?

texts:
Can you please suggest us how to load js into the custom module created?
We are facing issues in loading the js to our custom module created


texts: How can we set Magento 2.1.1 to store product prices in 3 decimal places?

texts: How can we set Magento 2.1.1 to store product prices in 3 decimal places instead of 2?


texts: How to get order details from DB, using order id in frontend in magento 2

texts: I need to fetch Order details from core table(sale_order_status_history) using order id.


texts:
I have created a custom module with my own db table. My question is; what data is available to me in the block class while I'm editing an entry?

For example, I use the products collection in my block and call it as follows:

$collection = Mage::getModel('catalog/product')
                    ->getCollection()
                    ->addAttributeToSelect('*');

Now, I can use the getters to retrieve info, such as:

$collection->getEmail();
$collection->getFirstname();
... etc, etc

All good.
Now, if my custom model is called test_model/test, and I have an instance like so:

$test = Mage::getModel('test_model/test');

Calling a getter for getMyfield(); produces nothing. Obviously, if I explicitly load an item:

$test = Mage::getModel('test_model/test')->load('1');

Then I do have those getters available.

So... what am I missing? Why do I have to load the row I want first? Shouldn't it be available on edit with $this->getMyfield();.

Help a Mage nooby out, please.


texts: How to unselect shipping address on checkout

texts:
I would like to know, how can I unselect default shipping address that load when I go to the first step on checkout.
My problem is when I'm trying to add new address, I need to unselect any address before click "Add New Address."
I´ll appreciate any help about it.


texts: Cannot upload product images to my web page

texts:
I cannot upload product images to my website and it is doing my head in!!!  I usually can, but it's not showing me the "BROWSE FILE" "UPLOAD FILE".  I am going bananas over this!  I have refreshed the CACHE etc and still no luck.  I'm not a computer programmer or anything and when this has happened in the past, I usually have to ensure ADOBE is running (which it is) and refresh the Cache.

Could someone assist or give me advice as I need to upload product images ASAP.  I'm using Magento 1.8.0.0

Thank you
Tan
(Female in Distress)


texts: Magmi changes attribute options order after 2200 SKUs

texts:
My current version of Magento is 1.9.2.1. I'm using "Easylife Switcher" to make the first option of each attribute selected automatically. I'm also using the "Product attribute order fix" to have all options ordered correctly according to my default settings.

When I import products with Magmi (v0.7.22_git) everything works fine (apparently) until the 10th configurable product. Each configurable product have 220 Simple Products.

This is how the options box looks like up to the 10th configurable product:

Everything is as it should be!

After the 10th configurable product:

After the 10th all the products have the same error.
If i disable the "Product attribute order fix" I can see that the options being automatically selected are the first of each attribute without my default order.

Live examples:

Good: http://www.teelegend.com/catalog/product/view/id/2200

Bad: http://www.teelegend.com/catalog/product/view/id/2860

Can somebody help me? I'm really having a hard time trying to figure this out.


texts: Stripe Error "please insert a valid credit card expiration date"

texts:
I'm using magento 2 and I've managed to install Stripe Payment Gateway , but now when I go on the checkout page and insert the credit card data and try to pay , I get please "insert a valid credit card expiration date".
I have tryed also with other cards, so is not a credit card issue.


texts: Magento2 "must" search (logic AND) and exclude small words

texts:
i managed magento default search to only show products with AND logic instead of OR, which was default, via the following file in custom module.

 vendor/magento/module-catalog-search/etc/search_request.xml

change <queryReference clause="should" ref="search" />
to <queryReference clause="must" ref="search" />

Now everything is pretty fine, and also with my hundred thousands products the search works like a charm.

But...

If a customer searches for small words (here in Italy we are plenty of) of two or even 1 letter the search shows no results.

Example:
product: "Elementi di fisica tecnica - Lorenzini Giulio"
search: "elementi di fisica" shows no result
search: "fisica Lorenzini" show correct product

I asked my service provider to change the following my.ini

[mysqld]
ft_min_word_len=1
innodb_ft_min_token_size=1

He declined because the memory usage will be too heavy for the machine

I was thinking about passing the query without 1-2letter words and I ask for your help to get advice for what to do and if it could be a good idea.

Thanks in advance
Davide www.scontolibri.com


texts: Wrong attributes displaying in layered navigation

texts:
Don't know if anyone can help. Using Magento 2.3.2
We sell plants on our site, and I have set up different attribute groups for different types of plants - shrubs, veg, flowers, fruit, and herbs. Some share attributes, whilst others don't.
This is an example of my issue.
Euphorbia plant has 'shrub' attribute group assigned to it - soil PH, hardiness, height, flower colour, foliage colour.
When on the shrub category 'Ideal for' shows in the layered navigation - this is an attribute in the 'flower' attribute group, not the 'shrub', and when you click on it it brings up options that click through to the Euphorbia, which doesn't even have this attribute in its group and does not have it assigned. What could be causing this? Thank you.


texts: Magento 2 : How to Hide all messages after certain time

texts:
Hi i have extended the messages.js by adding the following code

define([
'jquery',
'uiComponent',
'Magento_Customer/js/customer-data',
'underscore',
'jquery/jquery-storageapi'
], function ($, Component, customerData, _) {
'use strict';

return Component.extend({
    defaults: {
        cookieMessages: [],
        messages: []
    },

    /**
     * Extends Component object by storage observable messages.
     */
    initialize: function () {
        this._super();

        this.cookieMessages = $.cookieStorage.get('mage-messages');
        this.messages = customerData.get('messages').extend({
            disposableCustomerData: 'messages'
        });

        // Force to clean obsolete messages
        if (!_.isEmpty(this.messages().messages)) {
            customerData.set('messages', {});
        }

        $.cookieStorage.set('mage-messages', '');

        setTimeout(function() {
            $(".messages").hide('blind', {}, 900)
        }, 9000);
    }
});

});

No messages are showing up after adding the above jquery in messages.js

Please help me in fixing the above issue.


texts: Requested product doesn't exist Magento 2.1.3

texts:
I have migrated data from magento 1.7 to Magento 2.1.3.
All products working fine as well as all products are displayed in the frontend but when i will edit one product in admin than its showing me "Requested product doesn't exist" error.

Only one product has above error.

Can you please help me to resolve this issue?


texts: Magento 2 : Issue with the custom field on checkout page

texts:
Installed Version of Magento is - 2.1.0

I have added a custom field "Bank Account Number" as you can see red square box in the below image.

The problem I am facing is that it's not getting displayed in the summary as shown in below image.


texts: Tax Class not being applied on Bundled Product Price Range

texts:
I've set up my bundled products in Magento CE 1.9 using Dynamic Pricing. Prices are captured excluding tax, but are supposed to be displayed including tax - for simple products, this works as expects.

For Bundled Products it's a different story ... On the Product display page, the price correctly reflects tax, but when shown in (for example) the category grid, the price will always show excluding tax. So it will display something along the lines of As low as: $10.00 instead of As low as: $11.50.

Does anybody have a clue why this is happening? Is there a setting that perhaps I missed that needs to be configured?


texts: Magento Flat Category Table contains incorrect data (even after reindexing)

texts:
After migrating M1.9 Data to M2.2.5, I've noticed an issue with updating Category Information. I imported both Categories and Products together, but only Categories are affected.

Issue

If I go into an imported category, I can change any of the values. However, the changes aren't reflected on the frontend.

Initial Tests

If I add a new category to an imported category, all changes I make show just fine on the frontend.
I've done the obvious like Clear Cache/Reindex/Enable and Disable Flat Tables but it doesn't make a difference.

What I discovered

I did a deep dive into the DB. I discovered that all of the catalog_category_ tables are being updated correctly. However, the catalog_category_flat_store_1 remains incorrect ever after reindexing. So, I then decided to TRUNCATE the table and reindex Magento. After reindexing, the table truncated table is re-populated with the old values again.

I have no idea where this old data is being pulled from to re-populate the table. Plus, Magento shouldn't even be pulling from the table because 'Use Flat Catalog Category' is set to 'No'.

Thoughts?

Update 1

After some more digging around in the DB, I discovered that the catalog_category_ tables are in-fact incorrect. I'm running a single-store setup. However, there are duplicate entries under both store_id=0 and store_id=1. I can see that the values I change in the backend of Magento affect store_id=1 but Frontend & Flat Category are pulling from store_id=0.

Interestingly enough the Test Category I manually created after the import is showing as store_id=0. So it looks like Magento is looking all the table entries, but prioritising any Category with store_id=1 data if it finds it.

Update 2

Figured I'd try Stores > Configuration > General > General > Single-Store Mode = Yes. No noticable changes.


texts: Security Patch SUPEE-8788 failing at downloader/Maged/View.php (M1 v1.5.1.0)

texts:
On magento v1.5.1.0 patch Supee 8788 fails at downloader/Maged/View.php

I downloaded a fresh install of Magento v1.5.1.0, copied the downloader file over and retried but still fails with the same error:

patching file downloader/Maged/View.php
Hunk #1 FAILED at 154.
1 out of 1 hunk FAILED -- saving rejects to file downloader/Maged/View.php.rej