texts: Console Errror for minicart in custom theme (Magento 2.1)

texts:
I am developing a custom theme, since I have implemented the custom theme the mini cart doesn't function.

The console error I seem to be getting is as follows:

Uncaught TypeError: Unable to process binding "foreach: function (){return
$parent.getRegion($parent.getItemRenderer(item.product_type)) }"
Message: Cannot read property 'simple' of undefined

I have included all the necessary XML in my default.xml in my theme, but all that seems to happen is the above picture.

Let me know if any more info is required.
The minicart xml in my default.xml is:

<block class="Magento\Checkout\Block\Cart\Sidebar" name="minicart" as="minicart" after="logo" template="cart/minicart.phtml">
                <arguments>
                    <argument name="jsLayout" xsi:type="array">
                        <item name="types" xsi:type="array"/>
                        <item name="components" xsi:type="array">
                            <item name="minicart_content" xsi:type="array">
                                <item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
                                <item name="config" xsi:type="array">
                                    <item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
                                </item>
                                <item name="children" xsi:type="array">
                                    <item name="subtotal.container" xsi:type="array">
                                        <item name="component" xsi:type="string">uiComponent</item>
                                        <item name="config" xsi:type="array">
                                            <item name="displayArea" xsi:type="string">subtotalContainer</item>
                                        </item>
                                        <item name="children" xsi:type="array">
                                            <item name="subtotal" xsi:type="array">
                                                <item name="component" xsi:type="string">uiComponent</item>
                                                <item name="config" xsi:type="array">
                                                    <item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                    <item name="extra_info" xsi:type="array">
                                        <item name="component" xsi:type="string">uiComponent</item>
                                        <item name="config" xsi:type="array">
                                            <item name="displayArea" xsi:type="string">extraInfo</item>
                                        </item>
                                    </item>
                                    <item name="promotion" xsi:type="array">
                                        <item name="component" xsi:type="string">uiComponent</item>
                                        <item name="config" xsi:type="array">
                                            <item name="displayArea" xsi:type="string">promotion</item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </argument>
                </arguments>
                <container name="minicart.addons" label="Mini-cart promotion block"/>
            </block>


texts: Magento2 CI Server Integration for Production

texts: What are steps, guidelines and flows that needs to be followed for a successfully Magento2 Continuous Integration workflow ?


texts: Cannot proceed to checkout from cart after installing 1.8

texts:
i have recently upgraded to magento 1.8.1 and since that point if i have my SSL enabled on the front end my customers cant proceed to the checkout from the cart. When the button is clicked the cart just gets reloaded.

After doing some research some people said it was suhosin php causing the problem. Well i had that disabled by my hosting providers, cleared store and browser cache etc but yet the problem stilll persists.

has anyone else had this problem?

If so how did you solve it?

Thanks

EDIT

When i enter the site using https:// and SSL is turned ON in front end, i can proceed to checkout fine from the cart.

When i enter the site from http:// and SSL is turned OFF i can proceed to checkout fine from the cart.

The problem is occurring when i enter the site via http:// and have SSL turned ON in front end. SO it seems that data isn't being transferred from http and https:// or something


texts:
I am a newbie in magneto I made a Magento custom extension but while uploading this into the Magento Marketplace, I am facing an issue it's Test Fail, Below is the test report

Environment: PHP 7.1.22 Magento 2.2 CE

php bin/magento deploy:mode:set production

Enabling maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.

  Disabling maintenance mode Command returned non-zero exit code:
  /usr/bin/php -f /var/www/html/bin/magento setup:di:compile

can anybody help me in this I am happy to pay as well

Regards


texts: How to add custom button in sales orders grid page in admin magento 2

texts:
I want to add a new custom button to the sales order grid pageactions, i was trying creating Plugin for "Magento\Backend\Block\Widget\Button\Toolbar" but in the grid containers this block is not used, so thats no work.

Instead the pageactions.phtml is used like the image shows.

How can I add the button? with a LayoutProcessorPlugin?

Very Important: I want to restrict the button to users with access to a custom Access Role that I have created.


texts:
My website www.glocalshopper.com based on magento 1.9.2.4 is not working. Please view the screenshot :
http://prntscr.com/kfujg3

Following error is been provided in screenshot.Can somebody guide me how to reolve this error.
Awaiting for the right solution.


texts: include css in magento2 for custom theme

texts:
I am trying to include custom css and js in custom theme and should come on all pages.

I have tried this from the Magento DevDocs, but I can't make it right and it's not showing. Please help me.


texts: call other layout and block in custom phtml

texts:
i want to call other layout and block in my phtml

Block Name:-catalog/product_view

Layout handle:-catalog_product_view

i have used below code but it's not working.

Mage::app()->getLayout()->createBlock('catalog/product_view');

Can any one help me on this problem ?

Any references or suggestions are highly appreciated.


texts: Magento 2 Install extension but not upgrade Magento via composer

texts:
So if I understand it right the php bin/magento setup:upgrade is used for both, upgrading magento 2 and also for installing extensions via composer.

How can I just install the extension without updating the Magento 2 version? Is this even possible?


texts: Magento 2: How to remove the Order Status in admin panel?

texts:
In Magento 2 admin panel, I can see there is an option to unassign the status. But, is there any option to Removes the Default Order Status in the admin panel? If not, suggest the way how I can remove it.
Please guide.
Thank you.


texts:
I want to add the possibility to ask the guest customer to create an account on the success page, after the order has been received in magento.

Update: I think this function name is Register after Checkout.


texts: Implications of changing TAX rate on Live Site

texts:
What would the implications be on changing the TAX rate on a live site environment?

The site has the correct rates setup, and all products are set to the correct tax rate, however the rate is set to 0.00 (unknown reasons why).

All prices on products are added and are the INCLUSIVE of TAX price.

What would happen if the rate is for example, changed to 20.00 (20%)?

Would the price still be correct on the product, as it has the INC TAX price already added and Magento would calculate this correctly?

Or would there be other complications?


texts: Just installed magento ... how do i set language?

texts:
I am new to magento but want to learn all ins and outs ;-)

I have downloaded version 1.9 and installed it on my vps (so i did not use the downloader file as that is 1.7 and no demo content)

I went through the installation and so far so good

During install i have set default country Netherlands etc.. as i am form the netherlands

So when viewing the store as is, i see dutch language used, but also some english (guess from pre-set cms pages as about us.

When i go to manage stores, i see 1 line

Website naam: Main Website (code base)
Winkel naam: Main Website Store (Wortelcategorie: Default Category)
Zie Winkel Naam: Default Store View (Code: default)

When i check online how to set up multi language i do not see the extra text between the brackets and only see this

Main Website      Main Website Store    Nederlands
Main Website      Main Website Store    English

How do i make sure i set this up correctly? Dutch is the default language and English is for now the only extra language

I hope someone can set me in the right direction as i can't find this in the manual


texts:
I had a nightmare with New Products display on homepage with 1 row to display 5 products (columns) on magento 1.9.3

I have following code:

{{widget type="catalog/product_widget_new" display_type="new_products" products_count="5" template="catalog/product/widget/new/content/new_grid.phtml"}}

I made changes to style to make them look small like width: 19% so they all products fit in 1 row.

3 products appear on 1st row and another 2 went down to 2nd row. There is plenty of space on the right for other 2 products but something is wrong even though I tried everything xml update, css changes, and nothing works!!

I tried to add a widget too under CMS -> Widgets but same results. It seems widget new_grid.phtml is set to display 3 columns irrespective of css (19% I changed to make them smaller).

Anyone could help with this issue please..

None able to give some input?


texts: Magento 2 - Add subcategories images in Top Navigation Menu

texts:
I want to add subcategories images in Top Navigation Menu, I found this module but display only parents categories, I need to be on subcategories.

I want to be like this:


texts: Does anybody know of an extension that allows near real time viewing of where people are viewing your site?

texts:
I know this question may seem vague, however I'm currently unaware of any extensions for Magento 2.1+ that allows the administrator of a website to see what/if there are any currently connected users to your site.

I'm asking because, I periodically need to do upgrades and re-compilation/etc, and I obviously try and wait until there is little/no traffic on the site for a few minutes.  However, I have noticed that the customers > whos online is extremely limited on what you can see in M2.

Any suggestions/links to extensions that offer this type of visibility, is greatly appreciated.


texts: Magento 2: "There was a category move error"/"Something went wrong while saving the category"

texts:
We are experiencing issues when trying to move or save a category in Magento 2.1.8

Trying to move a category results in:

There was a category move error.

Whilst trying to save gives this error:

Something went wrong while saving the category.

The following in the exception log is one clue:

main.CRITICAL: InvalidArgumentException: indexMethod must be one of  in
/home/site/websites/www.xxxxxxxxxx.com/htdocs/vendor/magento/framework/DB/TemporaryTableService.php:103

The only other error being in the console:

VM1871:6 Expected to start loader but did not find one in the dom

I've found people with similar errors on Google, but none with this exception.

I've tried:

Reindexing
Clearing caches
Recompiling
Truncating the url_rewrite table

But nothing has worked.

Any help would be greatly appreciated.


texts: Display only qty for tier price tabel label

texts:
How I can show only qty of tired price in grouped products? For title of my tabel.

This code display all tired prices- qty with price:

<?php foreach ($_associatedProducts as $_item): ?>
    <?php if ($block->getCanShowProductPrice($_product)
    && $block->getCanShowProductPrice($_item)
    && trim($block->getProductPriceHtml(
        $_item,
        \Magento\Catalog\Pricing\Price\TierPrice::PRICE_CODE

    ))): ?>

        <?= $block->getProductPriceHtml(
            $_item,
            \Magento\Catalog\Pricing\Price\TierPrice::PRICE_CODE
        ) ?>

     <?php endif; ?>
     <?php endforeach; ?>

and if I go do tierprices.phtml

<?php /* @escapeNotVerified */ echo ($block->getShowDetailedPrice() !== false)
                    ? __(
                        '%1 for %2',
                        $price['price_qty'],
                        $priceAmountBlock,
                        $index,
                        $tierPriceModel->getSavePercent($price['price'])
                    )
                    : __('Buy %1 for %2 each', $price['price_qty'], $priceAmountBlock);
            ?>

but if I copy this code I have error price not defined


texts: Magento checkout and autofill field unwanted results

texts:
Since a couple of days Magento and Onestepcheckout are behaving in a way which yields unwanted results.

We have a separate housenumber field in the checkout which was working great until last week. Since then we are getting orders with the streetname filled in in the separate housenumber field. So we get:

John Doe
Street Street
Zipcode City

Instead of

John Doe
Street 13
Zipcode City

I think it has to do with the autofill option of a browser. Chrome maybee? I think there must have been an update or something which is responsible for these results. The question is how can I fix this?

Solutions by priority:

Fix it in a way so browsers understand there is a seperate housenumber field and it doesn't replicate the street field. Is this possible? If yes, how can I implement it in Magento since naming of formfields are based on conventions.
Disable autofill for the housenumber field. I looked this up, there are lots of questions about it, but I couldn't  find a recent solution which works for all major browsers.
Disable form filling for the whole form (least/not desirable solution)


texts: Can we fetch all the products using REST API without using limit

texts:
I have found API calls for product listing like

http://xxxxxx.com/api/rest/products?limit=100

and

http://xxxxxx.com/api/rest/products

by default its 10 products and after passing limit its giving specific records, but can we get all the products without using limit and page params?


texts: payment method - authorize.net error Invalid request. Please check your formatting

texts:
I perfectly configured the authorize.net and when I place order I get the error as "Invalid request. Please check your formatting."

I have also checked the currency format in both payment method currency, and accepted currency and both are fine.

I also tried by using other cards like visa, discover ,jcb, etc but I get the same error.

When I see in the unsettled payment reports in the sandbox account no payment transactions are visible.

The above image shows the error when "place order" button is pressed.


texts: Magento 2 How to send HTML in Order Comment Section of Transactional E-Mails

texts:
I am trying to send HTML structure in order comment section, but in email it convert in simple plain text.

Comment:

  Hello, Click Here

Current Output:

  Hello, Click Here

Expected Output:

  Hello, Click Here

I have tried with this code but its not working: https://magento.stackexchange.com/a/186477/62614


texts: convert direct sql to collection in magento 2

texts:
How we can convert direct SQL query to collection ?

SELECT wk_mpauction_winner_data.auction_id, wk_mpauction_winner_data.customer_id, quote_item.created_at AS quote_item_date ,sales_order_item.item_id AS sales_order_item_id , sales_order.state AS order_state
FROM sales_order_item
JOIN sales_order ON sales_order.entity_id= sales_order_item.order_id
JOIN wk_mpauction_winner_data ON wk_mpauction_winner_data.quote_item_id= sales_order_item.quote_item_id
LEFT JOIN quote_item   ON quote_item.item_id= sales_order_item.quote_item_id
LEFT JOIN quote  ON  quote_item.quote_id= quote.entity_id
WHERE quote_item.item_id IS NOT NULL AND quote.customer_id IS NOT NULL


texts: moving price block from catalog/product/view.phtml to catalog/product/view/options/wrapper.phtml

texts:
i am moving this portion from catalog/product/view.phtml

...

            <div class="product-type-data<?php echo $productTypeClasses; ?>"><?php echo $this->getChildHtml('product_type_data'); ?>

        <?php echo $this->getTierPriceHtml(); //tier prices ?>
...

to catalog/product/view/options/wrapper.phtml

....
            <?php
                //CSS classes based on product type
                $productTypeId = $this->getProduct()->getTypeId();
                $productTypeClasses = '';
                if ($productTypeId === 'grouped') {
                    $productTypeClasses .= ' is-type-grouped';
                }
            ?>

                <div class="product-type-data<?php echo $productTypeClasses; ?>"><?php echo $this->getChildHtml('product_type_data'); ?>

            <?php echo $this->getTierPriceHtml(); //tier prices ?>

How to get $this->getChildHtml('product_type_data') working?


texts: cataloginventory_stock_status randomly has missing entries

texts: What could cause cataloginventory_stock_status to have missing entries I have to fix manually?  It makes the product appear out of stock even though it isn't.  I've tried replicating by flushing, cleaning, and re-indexing and running cron but none of these cause the missing entries.  The products will exist for weeks, even months and just randomly have this issue.


texts: magento 2 product custom attribute in Items Ordered Section

texts:
Please find the below requirement which i want.

I have created a product attribute seller_demo dropdown and assigned to a product

This attribute i need at sales order  Items Ordered table like

please help me how to do this.

thanks


texts: Shim config to load angular js and dependencies

texts:
I have an angular js app which I want to integrate into Magento 2 so I created require-js config like below

var config = {
    paths: {
            angular: 'Test_Custom/js/angular',
            angularroute: 'Test_Custom/js/angular-route',
            angularanimate : 'Test_Custom/js/angular-animate',
            app : 'Test_Custom/js/app',
            minecontroller : 'Test_Custom/js/mine-controller',
    },
    shim: {
        'angular': {
            exports: 'angular'
        },
        'angularroute':{
            deps:['angular']
        },
        'angularanimate':{
            deps:['angular']
        },
        'app': {
            deps: ['angular','angularroute']
        },
        'minecontroller': {
            deps: ['angular','app']
        }
    }
};

and added this script in a template file

<script>
  require(['jquery' , 'jquery/ui','app','minecontroller'], function () {
   });
</script>

JS files are getting loaded as per dependencies but I am getting error -

Failed to instantiate module Mine due to Module 'Mine' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

Is there anything I have to change in shim config?


texts: What Classes are "Intercept-able/Plugin-able" in Magento 2

texts:
Date: May 30, 2015 (given the changing nature of Magento 2).

Magento 2 introduced a plugin concept, implemented via an interceptor pattern.

What's not clear from the docs is -- which classes and objects in Magento are "intercept-able"?  That is, you configure a plugin with XML that looks like the following

<config>
    <type name="{ObservedType}">
        <plugin name="{pluginName}" type="{PluginClassName}" sortOrder="1" disabled="true"/>
    </type>
</config>

but it's not clear which classes are valid as an ObservedType.  This older wiki article provides some clues when it says

  Please note that the plugin feature does not apply to
  - Classes created without dependency injection, that is, created with operator new directly, -Final methods, -Final classes

Is any object created via dependency injection available to be intercepted? Does the ObservedType need to be the type hint provided in the a __construct method, or can it (should it?) be something else?

Mainly trying to get my head around what can and can't be done with a Magento 2 interceptor before I start using them.


texts: What mode should I be in for different tasks?

texts:
The most common tasks I perform after deploying my webshop to production mode are css updates/changes, product updates/changes, and small admin panel changes (i.e. catalog/cart price rules, page mods through the admin panel).

Of course, the manual states the necessary actions needed after each change, i.e. Reindexing after a catalog change, or content deployment after a css change.

But I've never seen anything stating whether I should be in production mode, or developer mode.  Which mode is necessary for which type if task, because changing permissions each time, clearing directories each time, re compiling and re deploying each time are a headache.


texts:
If this is a dumb question, apologies - but I'm putting related products on a product, I've moved it from the side bar to the main content area.

All is going well, but its displaying 4 products, I want to show 5.

I found this:

https://stackoverflow.com/questions/16482486/how-to-display-only-3-related-product-on-product-view-page-magento

And none of the options in there work.

Not sure if I'm missing anything hilariously simple, but wondering if anyone had any ideas. Incidentally I don't want to install a plugin/module or whatever for this. Just call 5 products rather than 4.

Thanks, help would be immensely appreciated.


texts: How can I edit files like frontend/.../category/view.phtml?

texts:
I have been trying to edit some files from the frontend folder.
On this folder I have the following folders:
base, default, rwd and typologancee.

I have to create a specific filter which is going to be used on specific categories.
I have thought in developing this one to append the code on
category/view.phtml and products/list.phtml
even though I also have thought in doing it by developing a module.

I do not know which one is the correct way but my real doubt is how to edit these files, because I have done it and the page continues showing the old code.
I edited every category/view.phtml files from every frontend subfolder
but there are no results.

I deleted the cache folder, reindex some data, deleted cache and cookies from chrome, as well as giving permissions to these files but nothing is happening.
I would like some urgent support because I can not do any test.

**EDIT 1:
I have achieved modify the file with results, but I am using visual studio code, and I did not modifying the correct file because when I find by word, some folders are being hidden when search and these folders have a diffent colour and I have not idea about why is happening this.

I only have results if I modify the file under base folder, but I have read that this is a bad practice, so, what should I do?
The template typologancee is active, but when I modify their files nothing happens.
Thanks.


texts: Magento2.2 Emails not sending with guest orders

texts:
So I've been searching the internet for a couple of days now, and I can't seem to find something that is relevant for me.

When a customer places an order with an account everything is fine. But when a customer chooses to continue without an account no invoice email is being send. The backend profides a "The order confirmation email is not sent" message, but I can't seem to find any errors in the var/log directory.

Things that i've tried:

Resetting the guest order email template
Changing it to the same email template as the default order
Turning some odd options on/off (people claimed that if you'd disable x it would work)

Here is an image of the current setup (Stores > Configuration > Sales > Sales Emails in the Default Config)

I don't know where the error lays, because all emails are not sending to non registered users. Track and trace, invoice, order, newsletter ect.

Server info: Ubuntu 18.04 with Nginx and php 7.1 running Magento 2.2.2

Any help / thoughts / hints would be appreciated.

Stephan


texts: Restrict Deletion of Customers/Products to Specific Users Based on Roles?

texts:
Is there a way to easily through an extension or some magical code that my developer can implement for us to restrict or at least provide a confirmation pop up before deleting a customer or a product from the database?

Barring that is there a way for us to restrict the delete button from appearing from certain users through admin defined roles?


texts: Magento 2.1 Invalid method Block\Adminhtml\Articles\Edit\Form::_initAction

texts:
I am getting the following error while trying to create admin form with an editor(wysiwyg editor). Can someone please let me know what might be the issue?

  Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Company\MyModule\Block\Adminhtml\Article\Edit\Form::_initAction

* Updated with class Edit *

<?php
namespace MyCompany\MyModule\Block\Adminhtml\Article;

class Edit extends \Magento\Backend\Block\Widget\Form\Container   {
   protected $_registry;
   public function __construct(
      \Magento\Backend\Block\Widget\Context $context,
      \Magento\Framework\Registry $registry
   )  {
      $this->_registry = $registry;
      parent::__construct($context);
   }

   protected function _construct()  {
      $this->_objectId = 'id';
      $this->_controller = 'adminhtml_article';
      $this->_blockGroup = 'MyCompany_MyModule';
      parent::_construct();
      $this->buttonList->update('save', 'label', __('Save'));
      $this->buttonList->add(
          "saveandcontinue",
          [
          'label' => __('Save & Continue Edit'),
          'class' => 'save',
          'data_attribute' => [
             'mage-init' => [
                'button' => [
                   'event' => 'saveAndContinueEdit',
                   'target' => '#edit_form'
                ]
             ]
          ]
          ],
          -100
      );
      $this->buttonList->update('delete', 'label', __('Delete'));
   }
   public function getHeaderText()  {
      $registry = $this->_registry->registry('mymodulearticle');
      if ($registry->getId()) {
         $title = $this->escapeHtml($registry->getTitle());
         return __("Edit Article: '%1'", $title);
      } else {
         return __("New Article");
      }
   }
}


texts: API -> add image with external url instead of base64

texts: Is there any extension that give us the possibility to add external url instead of a base64 string when I adding/update product via magento 2 api?


texts: Magento doesn't support camelCase in URL/route?

texts:
If you are declaring your router in etc/adminhtml/routes.xml with similar way

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="admin">
        <route id="myModule" frontName="myModule">
            <module name="My_Module" before="Magento_Backend"/>
        </route>
    </router>
</config>

it doesn't work. In my case my base url will be /admin/myModule/index/index.

I was pushed to replace myModule with my_module (in URL in XML, at least in frontName attribute, and rename layout/handle filename).


texts: How to get round Price Value in Grand Total Magento 1.9.2?

texts: How can I achieve round price value in Grand Total?


texts:
I am trying to experiment creating a magento theme. I copied the base files and put them into my theme. What file can you change the path in a header meta tag for a stylesheet for example.

This is because my style-sheet currently points to:

skin/frontend/base/default/css/styles.css

but the theme needs changing in that tag.


texts: Magento2 : How to join table with where condition using getSelect()?

texts:
I am new Magento 2.2.3.

I am trying to fetch data from custom table and display the same in UI components.
Everything will work but If I use where clause with getSelect then UI component will show "We could not fetch any records". If I use only getselect then it will work.

But for my requirement I have to use where clause.

protected function _initSelect()
{
    parent::_initSelect();
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $seller_id = $objectManager->get('Magento\Framework\Registry')->registry('seller_id');

  $this->getSelect()->join(
        ['sales_order' => $this->getTable('sales_order')],
        'main_table.order_mage_id = sales_order.entity_id',
        '*'
    )->join(
        ['bo' => $this->getTable('sales_order_item')],
        "bo.order_id = main_table.order_mage_id",
        '*'
    )->where('seller_id = ?', $seller_id)->group('main_table.id');;

}

This code I am using in

  model\Resourcemodel\Mymodelname

Any solution for this please.


texts: Error: Call to undefined method [Vendor]\[Module]\Ui\DataProvider\DriverDataProvider::addField()

texts:
I have override product collection for url key filter by below code
File
 [Vendor]\[Module]/view/adminhtml/ui_component/product_listing.xml

Code
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <dataSource name="driver_listing_data_source">
        <argument name="dataProvider" xsi:type="configurableObject">
            <argument name="class" xsi:type="string">[Vendor]\[Module]\Ui\DataProvider\DriverDataProvider</argument>
            <argument name="name" xsi:type="string">driver_listing_data_source</argument>
            <argument name="primaryFieldName" xsi:type="string">id</argument>
            <argument name="requestFieldName" xsi:type="string">id</argument>
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
                    <item name="add_field" xsi:type="boolean">false</item>
                    <item name="sortOrder" xsi:type="number">999</item>
                    <item name="update_url" xsi:type="url" path="mui/index/render"/>
                    <item name="storageConfig" xsi:type="array">
                        <item name="indexField" xsi:type="string">id</item>
                        <item name="dataScope" xsi:type="string">store_id</item>
                    </item>
                    <item name="filter_url_params" xsi:type="array">
                        <item name="es" xsi:type="string">*</item>
                    </item>
                </item>
            </argument>
        </argument>
    </dataSource>
</listing>

File
[Vendor]\[Module]/Ui/DataProvider/DriverDataProvider.php

Code
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace [Vendor]\[Module]\Ui\DataProvider;

use \Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider;

/**
 * Class DataProvider
 */
class DriverDataProvider extends DataProvider
{
    protected function prepareUpdateUrl()
    {

        if (!isset($this->data['config']['filter_url_params'])) {
            return;
        }
        foreach ($this->data['config']['filter_url_params'] as $paramName => $paramValue) {
            if ('*' == $paramValue) {
                $paramValue = $this->request->getParam($paramName);
            }
            if ($paramValue) {
                $this->data['config']['update_url'] = sprintf(
                    '%s%s/%s/',
                    $this->data['config']['update_url'],
                    $paramName,
                    $paramValue
                );
                $this->addFilter(
                    $this->filterBuilder->setField($paramName)->setValue($paramValue)->setConditionType('eq')->create()
                );
            }
        }
    }
}

it's showing me this error

Where am I doing wrong here?


texts: How to track suspicious login activity in magento 2 admin panel

texts: How i can get notifications when unauthenticated user try to login in admin panel. How i can check history of failed login with IP details?


texts: Filter is not working on Custom Values in Magento 2 Order?

texts:
I have save my custom data in quote and sales_order table and show data in Admin grid but filter is not working in this as it is search in sales_order_grid table in Magento 2.
I have found out a solution using virtualType in di.xml but still it doesn't work.
my di.xml file
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Reg\Checkout\Api\Data\CustomFieldsInterface" type="Reg\Checkout\Model\Data\CustomFields" />
<preference for="Reg\Checkout\Api\CustomFieldsRepositoryInterface" type="Reg\Checkout\Model\CustomFieldsRepository" />
<preference for="Reg\Checkout\Api\CustomFieldsGuestRepositoryInterface" type="Reg\Checkout\Model\CustomFieldsGuestRepository" />
<virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid">
    <arguments>
        <argument name="columns">
            <item name="custom_value" xsi:type="string">sales_order.custom_value</item>
        </argument>
    </arguments>
</virtualType>
</config>

Still it doesn't work can anyone point out what's the issue.
Any help is appreciated.
Error
Column not found: 1054 Unknown column 'custom_value' in 'where clause', query was: SELECT COUNT(*) FROM `sales_order_grid` AS `main_table` WHERE (`custom_value` = 'facebook') AND (`custom_value` LIKE '%facebook%') {"exception":"[object] (Zend_Db_Statement_Exception(code: 42): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'custom_value' in 'where clause', query was: SELECT COUNT(*) FROM `sales_order_grid` AS `main_table` WHERE (`custom_value` = 'facebook') AND (`custom_value` LIKE '%facebook%') at /var/www/html/mag/vendor/magento/framework/DB/Statement/Pdo/Mysql.php:110, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'custom_value' in 'where clause' at /var/www/html/mag/vendor/magento/framework/DB/Statement/Pdo/Mysql.php:91)"} []


texts: Magento 2: Moving the logo of my storefront to the center

texts: How can I move the logo of my storefront to the center by using the move tag in the xml file?


texts:
I want to resize swatch images

See this http://awesomescreenshot.com/0d466soja3

We will change this color swatches to product images and

i want to resize this & if we can remove this resize code

it will also good.


texts: How do I know all the available attributes?

texts:
I'm looking at this code:

$eavSetup->addAttribute(
            Product::ENTITY,
            $code,
            [
                'group'     => 'General',
                'label'     => $code,
                'required'  => false,
                'global'    => ScopedAttributeInterface::SCOPE_GLOBAL,
                'visible'   => true,
            ]
        );

At least the first two parameter make sense, but the third one takes in an array of $attr? How do I know what to put into the array? What's the accepted key/value here?


texts: Acl problem in my custom module (Access denied)

texts:
I created a custom module and i placed the list of subscribers under catalog and configuration under system tab and i added acl for this but the tab subscribers under catalog is not accessible but the configuration can access . my acl code is

<adminhtml>
    <menu>
    <catalog>
        <children>
        <outofstocksubscription translate="title" module="outofstocksubscription">
            <title> Subscribers</title>
            <sort_order>190</sort_order>
            <action>outofstocksubscription/adminhtml_subscriber</action>
        </outofstocksubscription>

     </children>
    </catalog>
       </menu>
    <acl>
        <resources>
        <all>
                <title>Allow Everything</title>
            </all>
            <admin translate="title" module="adminhtml">
                 <children>
                  <catalog>
                   <children>
                    <outofstocksubscription translate="title"  module="outofstocksubscription">
                        <title> Subscribers</title>
                    </outofstocksubscription>

             </children>
             </catalog>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <outofstocksubscription translate="title">
                                        <title>Out of Stock Subscription</title>
                                        <sort_order>200</sort_order>
                                    </outofstocksubscription>
                                </children>
                            </config>
                        </children>
                    </system>
                 </children>
            </admin>
        </resources>
    </acl>
</adminhtml>

please help me.


texts: Programmatically assign customer to a quote

texts:
I have created a custom api for login and addtocart operations.
When the user is not logged in and add products to a cart that quote id is saved and when a user logged in using the my api then i want to assign this customer to the quote that i have saved before.The code ihave used to assign the customer to the quote is below.

$quoteId = '1720';
$customer = Mage::getModel('customer/customer');
$customer->loadByEmail($email);
$quote          =    Mage::getModel('sales/quote')->load($quoteId);
$quote->assignCustomer($customer);

But when this not working.When the customer is get logged in then a new quote is created against the user.But i want the customer to be assigned to the above quote that he has added before logged in.


texts:
See picture

No css and or no filter are available. We have installed Magento 2.0 with all filter working (Grid) and after upgrade to 2.1.8, the filter or grid have disapear, not only for the product but all page that have this type of filter.

I have search and found Nothing about it. Does someone have seem this problem before?

We use plesk, PHP 7.0.22 & Mariadb 10


texts: Update child product's "Manage Stock" when parent is changed

texts: I’m looking for a way to update “Manage Stock” on all child products of a Configurable Product when the parent is updated.  ie When a parent is toggled to “No” for “Manage Stock”, I would like it to set all the Associated Simple Products to “No” as well.  Currently, Magento (EE 1.13) does not do this for us, and we have to change all the children individually.  Not much of an issue when there is just a couple of children, but we have many configurable products with 50 or more associated products.  Hopefully, someone knows of a quick and easy way to do this (like an extension or setting), and can save us a lot of clicking.  TIA


texts: Add custom info to product list magento 1

texts:
I want to achieve something (probably) simple.

What I need is to add a simple short text (25 characters max) between reviews count and product price. The text is different for every product. I've attached a picture so you can see where exactly I need this to be.


texts: display mobile number in create an account page in magento 2

texts:
I want to display mobile number in create an account page in Magento 2.

Iam editing below page with following code but it include address also in my create an account page, I just want telephone number attribute.

  /vendor/magento/module-customer/view/frontend/layout/customer_account_create.xml

<referenceBlock name="customer_form_register">
    <action method="setShowAddressFields">
        <argument name="show.address.fields" xsi:type="boolean">true</argument>
    </action>
</referenceBlock>


texts: How to create custom Ajax Tabs using jquery in magento 2

texts:
I have to do this in custom module. How can we achieve this in phtml file.?
You can click here for detail part. I need this kind of function in my custom module.


texts: Why is /media/preview.png a required file of a M2 theme?

texts:
The Magento 2 documentation states that the /media is a required directory for a theme.

  /media         required         This directory contains a theme preview (a screenshot
  of your theme).

But is this really the case and why?  I have created many theme's which don't have this directory, so why is it required?


texts: How to show in product listing page the downloadable link title and price?

texts:
I am a newbee in this forum. Thanks for evrybody for your help.

I have a probem. In Catalog Product List , I want to modify the template/catalog/product/list.phtml . In that page I want to show for each product if it is 'downloadable' type, the Link Title and the Link Price.

Thanks


texts: How to customize the custom options in magento?

texts:
For example

In magento have added two custom options as Size(S,L,XL) and Color(RED,BLUE).

But in frontend i have to show the size as

And color as

Ideas welcome.


texts: import custom options from another product does not work

texts:
In product one i have an option from type radio buttons.

In product two i will the same custom options like in product one.

I click on import options in Customizable Options.

The following window show me a product list to chose one:

After i select one Product and click on import, i see an empty option in product 2:

What is wrong?

How can i import custom options from product one?


texts: Catalog price rules vs. shopping cart price rules

texts:
I'm setting up price rules, but cannot get it to work like I want.

I want to give all logged in customers 5% discount (preferably shown in the catalog with catalog price rules), but if one of these logged in customers get a discount code with 35% discount, the discount code should overwrite the "standard" discount, not stack.

As I understand, Catalog price rules and Shopping Cart price rules run seperate priorities, right?

I have tried setting up 2 Shopping Cart price rules:
Priority 0, 35% discount, Stop Further Rules Processing = yes
Priority 1, 5% discount, Stop Further Rules Processing = no

My problem is now, that when adding different products to the cart, the system only gives 35% discount to the first product...

How to get these rules running as described in the top?


texts:
How can I use TAB as Field separator in Magento 2 csv product import settings?
I have try with /t and TAB but i get error (with comma Field separator it works fine)


texts: How to remove  tag if the device is mobile ? M1

texts:
I am trying to remove certain dynamic script tags if the device is mobile. I have something like this to start with:

Vendor/MobileDetect/Helper/Data.php :

<?php

class Vendor_MobileDetect_Helper_Data
{
    public function isMobile() {
        $isMobile = Zend_Http_UserAgent_Mobile::match(
            Mage::helper('core/http')->getHttpUserAgent(),
            $_SERVER
        );
        return $isMobile;
    }
}

app/design/frontend/rwd/company/layout/local.xml :

<cms_index_index>
    <reference name="head">
        <action method="removeItem"><type>skin_js</type><name>nwdthemes/revslider/public/assets/js/jquery.themepunch.revolution.min.js</name><url helper="vendor_mobiledetect/isMobile"/></action>
</reference>
</cms_index_index>

The problem is that the function is removing the script tag for all devices (desktop, tablet, mobile). I just want it removed for mobile.

Thanks for any help!


texts: Magento attributes in seperate phtml files

texts:
I have 4 attributes inside my Magento for two of my products. In order to make jquery tabs on product page with attributes values, I need to seperate thoose values in phtml files.

Is there a way to retreive attributes value for a specific product inside newly created phtml file?


texts:
I'm getting an error on the checkout page. Magento (2.3.1), PHP (7.1). If I'm activating the default theme (Luma) then working correctly. that error showing on my custom theme only. I need urgently help.

Error:--

  [2019-07-08 03:58:32] [ERROR] Failed to load the
  "Magento_Checkout/js/view/cart/totals" component.
  console-output-handler.js:34:25 [2019-07-08 03:58:32] [ERROR] Failed
  to load the "Magento_Tax/js/view/checkout/cart/totals/tax" component.
  console-output-handler.js:34:25 [2019-07-08 03:58:32] [ERROR] Failed
  to load the "Vertex_Tax/js/view/checkout/summary/tax-messages"
  component. console-output-handler.js:34:25 [2019-07-08 03:58:32]
  [ERROR] Failed to load the
  "Magento_Tax/js/view/checkout/summary/subtotal" component.
  console-output-handler.js:34:25 [2019-07-08 03:58:32] [ERROR] Failed
  to load the "Magento_Tax/js/view/checkout/cart/totals/grand-total"
  component. console-output-handler.js:34:25 [2019-07-08 03:58:32]
  [ERROR] Failed to load the "Magento_Weee/js/view/cart/totals/weee"
  component. console-output-handler.js:34:25 [2019-07-08 03:58:33]
  [ERROR] Failed to load the
  "Magento_Checkout/js/view/cart/shipping-estimation" component.


texts: How to change the price used for price filter and sorting?

texts:
I have a problem with the Layered Navigation and sorting in the categories.

For both Magento seems not to use the normal price of the product (see examples below).

Product "Test 2" has an option which adds 100 € to the price

Product "Test 1" has no option.

The sort order in the image should be descending (price). As you see it is not. Also there is a price-range 0-99.99 and one from 100.00 to higher. Which is obviously not correct.

Category with filter and sort order:
http://www.directupload.net/file/d/4062/orx5ynpx_png.htm

It seems that magento adds options in the product to the price and use it for filter and sorting. But I want magento to use the price shown in category instead.

Can anyone help me were I can find the calculation-method for the price and how I can change it so it uses the normal price without options for filter and sorting?

(Magento 1.9.2.0)


texts: Sale price fall back to higher sale price on sale finish

texts:
I am trying to achieve a very different scenario for my few items.

What I need

Have product with 3 prices (org price, sale price, and higher sale price) with sale price expiry date.

How it should work

When sale price expires then it should fall back to higher sale price.

Example

Let's say product has price of $100 and sale price is $60 and expiry date is tomorrow.

When sale expires tomorrow, by default magento rule it will fall back to rrp but I want it to fall back to another user defined sale price (i.e. higher sale price: $70).
I can create a new price attribute to have new price field for each item.

Is this possible?


texts: Backend listing grid view page not opening order listing cms page & block listing etc.. Admin panel not able to load multiselect.html, text.html, html.html, actions.html and js file as per console log.


texts: What is the best way to versoining in install/ upgrade scripts?

texts:
Sometimes I use any of the following mentioned names to name the install/upgrade scripts in custom modules.

install-0.1.0.0.php
upgrade-0.1.0.0-0.1.1.0.php
upgrade-0.1.1.0-0.1.2.0.php

----------------------------

install-0.1.0.php
upgrade-0.1.0.0-0.1.1.php
upgrade-0.1.1-0.1.2.php

Is there a standard way to follow for this naming conventions for install/upgrade scripts?

Any suggestions will be appreciated.
Thanks in advanced.


texts: Edit order programmatically without canceling

texts:
I want to edit any order programmatically.

The tutorials that I am getting is canceling current order and creating new one. But I need something different, I want to edit it without canceling or creating new one.

There is a similar post here Magento 2: How to edit existing Order without cancel? But there is not accepted answer on that post.

Please help me find solution on this.


texts: How to write to the database from the head file?

texts:
I am a WordPress developer / SEO specialist who has been thrown into the Magento framework and I dont really know how to proceed in the following case.

I am trying to track my visitors by assigning them with a unique user id, and a unique voucher id. I'll then use that data for custom reporting in Google Analytics.

Without knowing the first thing about modules, I need to able to write to a custom table that I will create in PhpMyAdmin.

Is there an easy way to do this and to do it all from /templates/page/html/head.phtml?

It would have to be secure against SQL injection as I will be inserting a COOKIE value into the database.


texts: How to create actions column use layout block magento2

texts:
I use layout block to create grid page, but it does't inclue actions column
so can I create dropdown actions edit and delete use layout block
file Grid.php

$this->addColumn(
        'actions',
        [
            'header'=>__('Action'),
            'index'=>'actions'
        ]
    );

My grid page

the grid page i want


texts:
1 exception(s):
Exception #0 (InvalidArgumentException): Unable to unserialize value when i add new customer and open existing customer In Admin side, Error is mention in above screenshot.


texts: How to get custom e-mail template by name?

texts:
I have following custom e-mail templates and want to send them to particular customer.

My magento function as follows but fails to get relevant e-mail template.

$emailTemplate = Mage::getModel('core/email_template')->loadDefault('Newsletter subscription success new');

        $mail = Mage::getModel('core/email');
        $mail->setToName('John Customer');
        $mail->setToEmail('exa@gmail.com');
        $mail->setBody($emailTemplate);
        $mail->setSubject('The Subject');
        $mail->setFromEmail('my@my.com');
        $mail->setFromName("Your Name");
        $mail->setType('text');// You can use 'html' or 'text'

        try {
            $mail->send();
            Mage::getSingleton('core/session')->addSuccess('Your request has been sent');
            $this->_redirect('');
        }
        catch (Exception $e) {
            Mage::getSingleton('core/session')->addError('Unable to send.');
            $this->_redirect('');
        }

How I get the relevant e-mail template by name?


texts:
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="view.addto.wishlist">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Vendor_Module::catalog/product/view/addto/wishlist.phtml</argument>
            </action>
   </referenceBlock>
    </body>
</page>

I have creae same folder structure but file is not override.I have also tried with the block name "product.info.addto" but not changes.


texts: home page goes back to default when changing store

texts:
I have setup a website with 2 stores (english and welsh). I am usng a custom built layout,template and skin.

When I attempt to change language (home page only) the home page reverts to the base fallback and just displays "home page" and the paypal image, my header and footer remain intact.

Through troubleshooting I have checked the backend config and both stores for all aspects of config refer to the "use website" fallback and my default setup points to my custom template.

It only the home page it seems to be happening on so i know its a fallback issue with the template but i cant figure it out, any help will be much appreciated, if you need more info please ask.


texts: Some products are missing in table catalog_product_index_price!

texts:
Anyone can help me clarify the Price Indexing in Magento? I'm using version 1.9.
My task: Rendering the featured products into home page.
My Solution: Instead of creating the category called "Featured product". I created an attribute "is_featured", so I just filter the product with that attribute is true to get the expected result.
Base on the built in widget Mage_Catalog_Block_Product_Widget_New, my function to get the product collection as defined:

protected function _getProductCollection()
    {
        /** @var $collection Mage_Catalog_Model_Resource_Product_Collection */
        $collection = Mage::getResourceModel('catalog/product_collection');
        $collection->setVisibility(Mage::getSingleton('catalog/product_visibility')->getVisibleInCatalogIds());
        $collection = $this->_addProductAttributesAndPrices($collection)
            ->addStoreFilter()
            ->addAttributeToFilter('is_featured', array('eq' => true))
            ->setPageSize($this->getProductsCount())
            ->setCurPage(1);
        return $collection;
    }

Result: Some products are appeared, but some others is missing. When SQL debugging, I see:

SELECT
    `e`.*,
    `cat_index`.`position` AS `cat_index_position`,
    `price_index`.`price`,
    `price_index`.`tax_class_id`,
    `price_index`.`final_price`,
    IF(price_index.tier_price IS NOT NULL,
        LEAST(price_index.min_price,
                price_index.tier_price),
        price_index.min_price) AS `minimal_price`,
    `price_index`.`min_price`,
    `price_index`.`max_price`,
    `price_index`.`tier_price`,
    `at_is_featured`.`value` AS `is_featured`
FROM
    `catalog_product_entity` AS `e`
        INNER JOIN
    `catalog_category_product_index` AS `cat_index` ON cat_index.product_id = e.entity_id
        AND cat_index.store_id = '1'
        AND cat_index.visibility IN (2 , 4)
        AND cat_index.category_id = '2'
        INNER JOIN
    `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id
        AND price_index.website_id = '1'
        AND price_index.customer_group_id = 0
        INNER JOIN
    `catalog_product_entity_int` AS `at_is_featured` ON (`at_is_featured`.`entity_id` = `e`.`entity_id`)
        AND (`at_is_featured`.`attribute_id` = '210')
        AND (`at_is_featured`.`store_id` = 0)
WHERE
    (at_is_featured.value = '1')
LIMIT 6

The problem is here, catalog_category_product_index, some product disappear is missing in this table? But I don't know, why the index of some products are being miss? I have tried Re-Index so many times without the expected results! Any one can help me? Thanks alot!


texts: Modify pagination limit in admin (Custom options)

texts: I want to modify Customizable options pagination. Currently on 1 page by default we can see 20 options and the 21st will be on next page i.e. page 2. I need to see 100 options on page 1 & 101 on page 2. Any help will be appreciable.


texts:
Is there any method to delete files in magento? I have a custom module using which I can upload images to the folder media. Now I am planning to provide a delete option under each uploaded images(uploaded images will display in my module). When delete option clicked, it should delete images from media folder and its name from the custom table

custom table name : banner
custom field name for storing image names :  images
         (names are separated by commas)
module : custom admin module use to upload multiple images
module model name : banner/banner

Is it really necessary to delete images from media folder. Please provide your suggestions. Thanks in advance


texts: Magento 2 checkout page not working with error of SSL

texts:
plz advice any one how we can force https

when i add product it work fine.. cart page also work fine .. but checkout page says loading and loading.. and error https

my website

http://muzikhausberlin.de


texts: (NOT USERNAME?) in the toplinks section, cookie issue?

texts:
Sometimes I will see in the top header (NOT MYUSERNAME?) and items that I’ve added in the past in my cart, even know I’m not logged in anymore.  This is extremely annoying and I haven’t seen a fix for this and I’ve experienced this in the past in several shops. It’s mind-boggling how this is happening…

The link goes to something like /unsetCookies/


texts:
How to get wishlist items collection using customer id ?
Thanks
 public function removeWishlistForCustomer($customerId, $productId)
    {
        $wish = $this->wishlist->loadByCustomerId($customerId);
        $items = $wish->getItemCollection();
        foreach ($items as $item)
        {
            if ($item->getProductId() == $productId)
            {
                $item->delete();
                $wish->save();
                return "You have successfully remove item from wishlist";
            }
        }

    }

I am getting no data in  $items = $wish->getItemCollection();


texts: How to add custom top menu navigation link not category

texts:
How to add custom navigation link in top menu of magento. I have two controller actions which I need to add the top menu of the frontend.

http://127.0.0.1/tandem/oenologist/index/login/ -> Login

http://127.0.0.1/tandem/oenologist/index/list/ -> List

Its sounds easy but its not in terms of magento. Please, help. Thanks


texts: Redirecting to homepage after add to cart

texts:
I'm having issues that when you add a product to the cart, it automatically redirects to the homepage. I have tried switching it to redirect to cart as well, but it still redirects to the homepage.

I would like it to just add to cart and stay on the same page. Any ideas how to resolve this

For example if you add any of these products to the cart you will see

https://mellcrest.com/bathroom/accessories/bath-mats.html


texts: magento2 js change dropdown select option

texts:
I have write in form.phtml of Magento_Contact. when I choose the option in the first dropdown if there is information, the second dropdown will be displayed

        <?php /* @escapeNotVerified */ echo __('Dropdown') ?>

            <select name="dropdown" id="dropdown" title="<?php /* @escapeNotVerified */ echo __('Dropdown') ?>" value="" class="options-dropdown" type="options" data-validate="{required:true}">
                <option value=""><?= __('--Please choose an option--') ?></option>
                <?php
                    for($i=1;$i<=5;$i++){
                        $rsStr = $this->helper('Mageplaza\ContactOptions\Helper\Data')->getConfig('contactoptions/contactoptions/first_dropdown_'.$i);
                ?>
                    <option value="<?php echo 'secend_dropdown_'.$i ?>"><?php echo $rsStr ?></option>
                <?php } ?>
            </select>
            <select name="dropdown2" id="dropdown2" title="<?php /* @escapeNotVerified */ echo __('Dropdown') ?>" value="" class="options-dropdown-2 no-display" type="options" data-validate="{required:true}">
                <option value="" class="no-display"><?= __('--Please choose an option--') ?></option>
                <?php
                    for($i=1;$i<=5;$i++){
                        $rsStr2 = $this->helper('Mageplaza\ContactOptions\Helper\Data')->getConfig('contactoptions/contactoptions/secend_dropdown_'.$i);
                        $attr1 = explode(",",$rsStr2);
                ?>
                    <?php for($j = 0;$j<count($attr1);$j++){ ?>
                        <option value="<?php echo $attr1[$j] ?>" class="<?= 'secend_dropdown_'.$i ?> no-display"><?php echo $attr1[$j] ?></option>
                    <?php } ?>
                <?php } ?>
            </select>


texts: Specific Category with Subcategories on sidebar/footer - can't pull category name

texts:
Now I feel stupid asking this, I had this answer 3 days ago, changed a part of my code and now have completely forgotten how to pull the main category name which should be easy enough.

I have

<?php $categoryId =3; ?>

    <?php echo "
Scotch Whisky
" ;?>

<?php $children = Mage::getModel('catalog/category')->load($categoryId)->getChildrenCategories(); ?>

    <?php foreach ($children as $subCategory){
            echo '
getUrl() . '">' . $subCategory->getName() . '
';
        }
    ?>

&nbsp;

What is it I do again to pull the actual category name? I tried echo $categoryId->getName(); but that seemed to throw me an error.


texts:
I'm getting the following issue since today, i'm not able to find out what is going on. It was all working fine for the past few months, and no files was modified recently. What could be the problem? ( Unfortunately, the support from the extension provider is expired, i'm trying to resolve the problem myself.)
checked:  cron jobs are running fine.
checked:  ticket.php was not modified.
checked:  mysql is running
error from exception log
[2020-09-14 14:15:09] main.CRITICAL: One or more input exceptions have occurred. {"exception":"[object] (Magento\\Framework\\Validator\\Exception(code: 0): One or more input exceptions have occurred. at /home/-----/public_html/app/code/Aheadworks/Helpdesk/Model/Ticket.php:246)"} []

this is the partial from ticket.php, starting from line 230
/**
 * Add cc_recepients validation to regular validation
 *
 * @return $this
 * @throws \Magento\Framework\Validator\Exception
 */
public function validateBeforeSave()
{
    try {
        parent::validateBeforeSave();
    } catch (ValidatorException $catchedException) {
    }

    if (!empty($catchedException)) {
        $validateException = $catchedException;
    } else {
        $validateException = new ValidatorException();
    }

    $this->fillFromAdminData();
    $emailRule = new \Zend_Validate_EmailAddress();
    $ccRecipients = $this->getCcRecipients() ? $this->getCcRecipients() : [];
    $emailsToValidate = array_merge([$this->getCustomerEmail()], $ccRecipients);

    foreach ($emailsToValidate as $email) {
        if (!$emailRule->isValid($email)) {
            foreach ($emailRule->getMessages() as $message) {
                $validateException->addMessage(new Error($message));
            }
        }
    }

    if (count($validateException->getMessages())) {
        throw $validateException;
    }

    return $this;
}


texts: Magento 2 different languages for website

texts:
so I'm new to Magento and I'm making an online store for a client using Magento 2 CE.

Their company is based in Canada so they want to have a language selector for English and French.

I normally make websites in Wordpress, and have no idea where to start for Magento.. Would I need to make multiple stores, or what? Also how do I add the french translation content into the store?

Sorry if this is super simple, I'm trying to learn but don't want to learn the wrong way... if that makes any sense


texts:
i'm using soap C#

in magento 1 we could get the store info my passing in the store id

what is the method called in magento 2?


texts: How to extends downloadable product type?

texts:
I am learning Magento and I am trying to create a Custom Product Type which can be download and provide some other features. I think I must start by extending the Downloadable product type. However I don't know how to do it. Where should I start and what I should do?

Please help. Thank you a lot!!


texts: HTTP 500 error because setup:upgrade doesn't work

texts:
I created a class and I can't understand why when I pass a second parameter give a error HTTP 500.

I'm trying to do a simple code, like this:

  namespace Ahimsa\FooterLinks\Block;

  use \Magento\Framework\View\Element\Template as Template;

class FooterLinks extends Template
{
 protected $_storeManager;
 protected $categoryRepository;
 protected $_categoryHelper;

 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Category $categoryHelper)
 {

    $this->_categoryHelper = $categoryHelper;
    parent::__construct($context);
 }
}

Anyone knows what I'm doing wrong?


texts: product images are not being displayed in magento

texts:
I'm using TatvaSoft's "7 in one" catalog extension for display new products on home page. its working fine on home page. But after clicking on "view all" link it redirecting me to
catalogextensions/index/newproduct/ page where all new products listed out. But On the same page there is no product image is showing up, instead of that magento placeholder empty image is appearing. I don't know whats going wrong in that.
there is only this much of code been written

<?php
$store = Mage::app()->getStore();
$code  = $store->getCode();
$enable = Mage::getStoreConfig('catalogextensions/config4/active',$code);
?>
 <?php if($enable == 1) { ?>

<?php echo Mage::getStoreConfig('catalogextensions/config4/title',$code); ?>

<a href="<?php echo $this->getUrl('catalogextensions/index/newproduct'); ?>"><?php echo $this->__('View All') ?>

   <?php echo  $this->getLayout()->createBlock('catalogextensions/newproduct_home_list')->setTemplate('catalog/product/list.phtml')->toHtml(); ?>
   <?php }  ?>

and one more thing I have noticed that each product images have same source i.e

media/catalog/product/cache/1/small_image/160x/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/small_image.jpg

automatically it create a directory named as cache inside media/catalog/product.

Here is list.php

 class Tatva_Catalogextensions_Block_Newproduct_Home_List extends Tatva_Catalogextensions_Block_Newproduct_List
  {

 protected function _getProductCollection()
   {
    parent::__construct();
    $storeId    = Mage::app()->getStore()->getId();
    $todayDate  = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);

    $products = Mage::getModel('catalog/product')->getCollection()
        ->addAttributeToSelect('*')
        ->addAttributeToSort("entity_id","DESC")
        ->addAttributeToSelect(array('name', 'price', 'small_image'))
        ->setVisibility(Mage::getSingleton('catalog/product_visibility')->getVisibleInSiteIds())
        ->setOrder($this->get_order(), $this->get_order_dir());
    if(Mage::getStoreConfig('catalogextensions/config4/max_product'))
    {
        $products->setPageSize(Mage::getStoreConfig('catalogextensions/config4/max_product'));
    }

    Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
    Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
    Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);

    $this->_productCollection = $products;

    return $this->_productCollection;
}

function get_prod_count()
{
    //unset any saved limits
    Mage::getSingleton('catalog/session')->unsLimitPage();
    return (isset($_REQUEST['limit'])) ? intval($_REQUEST['limit']) : 9;
}// get_prod_count

function get_cur_page()
{
    return (isset($_REQUEST['p'])) ? intval($_REQUEST['p']) : 1;
}// get_cur_page

function get_order()
{
    return (isset($_REQUEST['order'])) ? ($_REQUEST['order']) : 'position';
}// get_order

function get_order_dir()
{
    return (isset($_REQUEST['dir'])) ? ($_REQUEST['dir']) : 'desc';
}// get_direction

    public function getToolbarHtml()
    {

    }
    }

! please someone help me !


texts: For each add white pace while featching media image

texts:
This My Code

$IsCustomizableColor =  $_product->getResource()->getAttribute('customizecolor')->getFrontend()->getValue($_product);
   <?php
$SplitColor = explode (',', $IsCustomizableColor);
foreach($SplitColor as $color){?>
 <?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'Custom/'.$color.'.png'; ?>
<?php } ?>

it will print with space for second time first time it's fine

my output

http://localhost/Test/media/Custom/Black.png
http://localhost/Test/media/Custom/ Green.png
http://localhost/Test/media/Custom/ Yellow.png

what is the problem? How to fix this


texts: How can I move the swatches on a product page?

texts:
For my Magento store design the client wants the swatches (just the swatch images, not the attribute value in a separate area below the image gallery and above the content. I have created a div to contain this and on load use jQuery to move the element that contains the swatches like so in view.phtml

...

This has the desired effect of moving the swatch images, and when hovered over the value next to the attribute name is updated accordingly.

However, when I click on the swatch, the product image does not updated and the active swatch does not get updated in the #product-options-wrapper. (Correction:the attribute value does update in the #product-options-wrapper. It's just the product image that is not updating)

As far as I can tell in swatches-product.js the onOptionClick event is getting called as expected, but the code that updates the image and the attribute value just isn't working, and I can't figure out why.


texts: Magento 2 system configuration state multiselect dropdown

texts:
First i have created country drop-down in back-end system configuration, using source model as

<source_model>Magento\Directory\Model\Config\Source\Country</source_model>

Next based on country selected, I need to populate states of that country in a multi-select field below country field.

Currently, there is option for loading state a single select drop-down. But I need it as multi-select attribute..

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

            <group id="general">
                 <field id="address_country_id" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    Applicable Countries
                    <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
                    <frontend_class>countries</frontend_class>
                </field>
                <field id="address_region_id" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    Applicable Region/State
                </field>
            </group>

    </system>
</config>

Here is the screenshot


texts: What is this Big File in public_html - zikIq8Eq 19.65 GB - text/x-generic 0600

texts:
Hello I have this Text Generic with 0600 permissions and it takes too much space . File is zikIq8Eq 19.65 GB - text/x-generic 0600
What is it and can i delete it ?
Thanks


texts:
This is default class header content and footer content

<header class="page-header">
     <div class="header content">

how to remove them? I cannot find any way to do that and also don't want to use js quick fix for that. any suggestion is welcome.


texts: Rebuild Customer grid index not working - Getting Error

texts:
anyone can help me about this issues, i'm getting this error. I'm trying to fix it, But i could not found any solution.

  {"0":"Notice: Undefined index: PK_CUSTOMER_ENTITY in
  /vendor/magento/module-eav/Model/Entity/AbstractEntity.php on
  line 769"

and Please check below screenshot.

Thanks


texts:
I'm working on a new online shop for a customer. I'm using 1.9.2.1 version of Magento. Everything is working just fine, but not if I use a different browser. I usually use Firefox, everything is running, I see the landingpage, can move all over the shop and have access to the backend. But if I use chrome, Edge, IE, Firefox Developer I only receive the default 404 Magento Page.
On my other System I sometimes work on, I used chrome more. I have access over chrome to everything like in FF. But with all the other browsers, also FF on that System I just receive 404.
I edited the index.php for showing me errors. On my normal working System I get the one error message for one extension beloning to the Theme I use. A missing variable. But on the other browser I just receive the default 404 page.
It's weird.
And I dont know what to do, except starting all over again.

Happy about any help.
Thanks in advance


texts: Migration : Incompatibility in data. Source document: eav_attribute_group

texts:
I face issue when migrate from Magento 1 to Magento 2.3

  Incompatibility in data. Source document: eav_attribute_group. Field: attribute_group_name. Error: The product attribute set "Testing" does not contain all required attribute group names "General, Prices, Design, Images"

Note : I created Testing Attribute set and add above 4 attribute group names in that attribute set. Still, it's not solve.

How to solve this issue?


texts:
I need to create a rule on our site where two different products are linked in the same discount.

The rule I need is: Buy product x for £35 or product x and y for £55.

Not sure what the best way to do this is.


texts:
I'm writing an extension. I hooked into event 'sales_order_place_before':

if (#condition) {
    //redirect to cart
  $session = Mage::getSingleton('checkout/session');
  $session->addError(Mage::helper('checkout')->__('error'));
  Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('checkout/cart'));
  Mage::app()->getResponse()->sendResponse();
  exit;
}

When using firefox, in Network -> Response tab, I get shopping cart page with above message. But checkout page actually stays the same and the number of items in inventory are decreased.


texts: Customer getting logged out on redirecting to other pages. Is the browser flushing the local storage data on every page request?

texts:
I have a custom module index page where I'm creating a session for a particular user and redirecting to the home page.
/app/code/Login/Sso/Controller/Index/Index.php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customer = $objectManager->create('Magento\Customer\Model\Customer')->load(8857);
$createCustomerSession = $objectManager->create('Magento\Customer\Model\Session');
$createCustomerSession->setCustomerAsLoggedIn($customer);

if ($createCustomerSession->isLoggedIn()) {
    print_r($createCustomerSession->getCustomerId());
}

print_r(' Logged in? ' . $createCustomerSession->isLoggedIn());exit;
$this->_redirect('/');

When I hit {BASE_URL}/index.php/login,
It returns me the customerId and Logged in? 1 (i.e. the customer is logged in) but if I remove exit from the print statement, its redirecting to home page but the user is not logged in. I could see the Sign In and Create an Account buttons.
Customer is not logged in on any other pages too. How is the session getting cleared?


texts: Change wording on post checkout account offer

texts:
I need to change the wording on the post checkout page where it offers the user a chance to create an acount and it says "You can track your order status by creating an account." because they wont be able to track the order there, only view it as history. We still want to give them a chance to create an account so I dont want to just turn off the box.
Developer hints point me at:
 magento/module-checkout/view/frontend/templates/registration.phtml
But this file is just a js call and I dont know where that line is generated.


texts: Custom product collection on list.phtml do not outputs price and product name

texts:
I pass to catalogs list.phtml a custom product collection as

    public function getCurrentProduct()
    {
        return $this->_coreRegistry->registry('current_product');
    }

    public function _getProductCollection()
    {
        $product = $this->getCurrentProduct();
        if ($product->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE) {
            $variants = $this->getProduct()->getTypeInstance()->getUsedProductIds($product);

            $collection = $this->_productsFactory->create();
            $collection->addIdFilter($variants);

            return $collection;
        }

        return null;
    }

but on output I do not have price and product name. Can somebody help with this issue?


texts: Magento | How to send order email copy to the Customer Group email

texts:
I added a field to set email address for each Customer Group No  need when the customer place an order send order email copy to his Group email.

Thanks to help me in this point...


texts: How rendering of price.phtml in catalog product listing page is happening?

texts:
Catalog Product listing page's template file is list.phtml. Where the rendering of all the products in category happens using foreach loop.

I am confused about the rendering of the price.phtml. Because there is no block for it in handle <catalog_category_default>

Now, <?php echo $this->getPriceHtml($_product, true) ?> returns price of the product.

How this method is linked to price.phtml ?


texts: File or folder access in bitnami magento

texts:
Installed Magento Application in WMware from bitnami.

Initial setup is working fine and access with IP 192.168.0.113.

I am wondering, How can I access files/folder from local machine.

Is this possible to open folder in Editor for smooth theme building?

Any Help Would be appreciated.


texts:
How to Create custom router page content?
What I've tried added Route to routes.js:
import React, { Suspense } from 'react';
import { Route, Switch, useLocation } from 'react-router-dom';

import { fullPageLoadingIndicator } from '../LoadingIndicator';
import HomePage from '../HomePage';
import MagentoRoute from '../MagentoRoute';
import { useScrollTopOnChange } from '@magento/peregrine/lib/hooks/useScrollTopOnChange';
import MyPage from '../MyPage/index'; //@location ../pwa-studio/packages/venia-ui/lib/components

const Routes = () => {
    const { pathname } = useLocation();
    useScrollTopOnChange(pathname);

    return (
        <Suspense fallback={fullPageLoadingIndicator}>
            <Switch>
                <Route>
                    <MagentoRoute />
                    <Route exact path="/venia-new-home">
                        <HomePage />
                    </Route>
                </Route>
                <Route exact name="MyPage" staticName={true} path="/my-page" component={MyPage}/>
            </Switch>
        </Suspense>
    );
};

../pwa-studio/packages/venia-ui/lib/components/MyPage/index.js:
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'src/drivers';
import { compose } from 'redux';

class MyPage extends Component {
    static propTypes = {
        initialValues: PropTypes.shape({}),
        history: PropTypes.shape({})
    };

    customPage = () => {
        const { history } = this.props;
    };

    render() {
        return
This is my Custom Page
;
    }
}

export default compose(withRouter, MyPage);

yarn run build  //run with no errors
yarn run stage:venia  //run with no errors
When I load the https://localhost:1200/my-page i get:

What am I missing ?


texts: Magento 2.2 admin grid does not show data

texts:
I try to make simple module, where customer send posts and admin can show these in the backend.

I tried do this like here:
http://techjeffyu.com/blog/magento-2-a-full-magento-2-module?tag=Magento2
or here:
http://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-1.html

I make everything like in instruction, but it doesn't work. It should works.

There is my module code:
https://github.com/dominik04u/MagentoSimpleModule

I can't find what I do wrong.


texts: Magento 1.9 Add Backorder status of a product to the product grid in backend

texts:
I'd like to add the status of the back-order in the main manage product grid as an column so I can see it in 1 instance.

the status is visible when you click on a product and go to inventory and you see 'back-order', I'd like that field to be in product grid.

Is this possible?

Thanks in advance.


texts: Magento 2 - show product attribute labels

texts:
I'm able to display product attributes values as follow:

app/design/frontend/Vendor_name/theme_name/Magento_Catalog/layout/catalog_product_view.xml

...

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

...

The code above will print the value (e.g, 64). How can I print the associated manufacturer's name (e.g, Ferrari)?

edit

My attribute.phtml is as follow:

<?php
$_helper = $this->helper('Magento\Catalog\Helper\Output');
$_product = $block->getProduct();
$_call = $block->getAtCall();
$_code = $block->getAtCode();
$_className = $block->getCssClass();
$_attributeLabel = $block->getAtLabel();
$_attributeType = $block->getAtType();
$_attributeAddAttribute = $block->getAddAttribute();

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

<?php if ($_attributeValue): ?>
    <div class="product attribute <?php echo $_className?>">
        <?php if ($_attributeLabel != 'none'): ?><?php echo $_attributeLabel?>:<?php endif; ?>
        <span class="value" <?php echo $_attributeAddAttribute;?>><?php echo $_attributeValue; ?>

<?php endif; ?>


texts: Installed cron scheduler but I see now that cron is having issues

texts:
I'm looking at the timeline & I see that cron keeps stopping & the cron jobs are not running.

I get this message "Last heartbeat is older than one hour. Please check your settings and your configuration!"

Can anyone help?


texts: How to use different hosting account for one magento engine with several webstores?

texts:
I have a task to create upto ten different webstores with general admin panel. Each webstore has own account and own prices. But catalog and product are almost the same.

If I would use one server, it should be very expensive one. I would like to create one server for magento DB and each webstore must has own server and domain name.

100 store views
Each store has 1000 visitors per day
Each store has 1000 categories
Each store has 2000 products

But I'm not clear enough how to do it? We should sync files somehow then...or not?


texts: Filling Shipping address fields with values using Jquery or Knockout Js

texts:
Is it possible to just fill the shipping address fields with my own
  values?

For example: I want city field to be filled with My City when an event occurs on the checkout page. I know the checkout page uses Knockout JS that but I haven't figured out how to pass values to the fields themselves.

So far I have jquery running on the checkout page but writing code like:

  $('input[name="shippingAddress.city"]').val("My city");

This does not work.

I appreciate any help that anyone can give.

Thanks.


texts:
The product im having problems with has the url: 1-troy-ounce-silver-maple-leaf-6

in the backend the product has the URL key: 1-troy-ounce-palladium-maple-leaf

The product needs to have the URL key from the backend.

There are no custom redirects made in the magento backend, only the redirects magento has made from product category to URL.

I have indexed the site multiple times, refreshed the Redis cache and refreshed the Magento cache.

Am i missing something?


texts: Magento 2.3.1 Change city in checkout process from text to dropdown

texts:
I want to install this module to change city field in checkout process from text to dropdown using composer base on https://magento.stackexchange.com/a/248984/81017.

I have tried to:

composer require eadesgin/magento2-city-dropdown:* --no-update
composer update

But unfortunately, composer return

  package could not be found in any version

Any help will be appreciated.

Thank you in advance.


texts: Magento 2 - Magento 2 - Why is less file loading first? Need it to load after css files

texts:
I am using grunt/M2 & I noticed my less files are loading before my css files in my Magento 2 website. Any ideas? I need the less file to load last so it overwrites classes.

Here is what's in my theme/layout/default_head_blocks.xml:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/Module/etc/module.xsd">
<head>
<css src="css/local-m.css" />
<css src="css/local-l.css" media="screen and (min-width: 768px)"/>
<css src="css/source/_custom.css" /> <!-- This is the less file -->
</head>
</page>


texts: Can I store Payment Reference Number of an order,which are generated by CCAVENUE in Magento-2.1?

texts:
I want to add Payment reference number for particular order. I will use Magento-2.1 and frontend is in Angular. Suppose CCAVENUE sending payment link to customer for placed order.

CCAVENUE generate payment reference number [transaction_id].

Can I store this payment reference number to  Magento order?


texts: Magento 2 Check a customer attribute is changed during save

texts:
I have created user Approve module which lets admin to approve user after registration.

I want to send a email on activation and deactivation of a user, How can I find that the admin has changed the status during save.


texts:
I want to add freeshipping on subtotal but after discount i already have tried with

if ($request->getFreeShipping()
|| $request->getPackageValueWithDiscount() >= $this->getConfigData('free_shipping_subtotal')) {
    ...
}

But this only takes subtotal not and discount did anyone know how can I get subtotal after discount.

Thanks


texts: magento 2 - Product Tax Class and Taxable Goods

texts:
New in Magento 2, Trying to assign tax zones and rates to Taxable Goods I cannot find in admin the place to do that.

Anyone knows where I can find Product Tax Class (like in Magento 1) to assign tax zones and rates to taxable goods?.


texts: Product Listing Ui Component xml file not overriding in custom module

texts: I need to override module-catalog\view\adminhtml\ui_component\product_listing.xml file in my custom module. I have copy the core magento file in my module at view\adminhtml\ui_component but its not working. is there anything else i have to do.


texts:
I am doing a project in magento, i just wanted to rewrite the URL for landing page.

For example:

http://release.contus.us/services/SVEP1663/airhotels/property/country/?country=Vietnam
this is my current url , i just wanted to make it as

http://release.contus.us/services/SVEP1663/Vietnam.
How can i do this i referred many site but i didn't get what i expected.

Note: Country is added dynamically by the user at the back end. Waiting for your answers thank you!!


texts: I need to integrate a back end application (i.e. without a GUI) with Magento 2 REST APIs. As such I believe I need to use OAuth for authentication. However, as it is a back end service, there will be no users to process any redirects to third party urls. Is it possible to authenticate via OAuth in Magento2 without going to a callback URL? I note when you register an integration the callbacks are optional, and if you leave them blank the access token and access token secret are generated. Many thanks.


texts: Auto Order Confirmation Not Sending - 1.9.2.2 Hostgator

texts:
I recently upgraded my Magento installation to 1.9.2.2 and Customers are not getting an auto notification upon placing an order all of the sudden. I Read up on cron for these emails. I believe everything is set up correctly - Is there some configuration that I am missing? Any help will be appreciated.

I installed AOE Scheduler to test and verify cron - that seems to be working fine.

The only way I can get an email to the customer is by hitting the send email on the order - I WANT THIS TO BE AUTOMATED - USED TO BE:

I check my settings in Configuration - they seem to work.


texts: How to handle required constructor parameters

texts:
Constructors in magento are a little ugly, required the values to be passed as array elements like this:

public function __construct($parameters) {
   $param = $parameters['param'];
}

additionally, to be safe this then becomes:

public function __construct($parameters) {
   if (isset($parameters['param'])) {
       $param = $parameters['param'];
   }
}

Now that isnt ideal, but what about the situation where you could normally use typehinting to enforce a specific type:

public function __construct(MyObject $myObject) {
   $this->_myObject = $myObject;
}

how do you magento developers out there handle this?

public function __construct($parameters) {
   if (isset($parameters['myObject'])) {
       if ($parameters['myObject'] instanceof MyObject) {
           $this->_myObject = $myObject;
       } else {
           throw new InvalidArgumentException('myObject parameter was not an instance of MyObject');
       }
   }
}

this is very ugly but is there an alternative?

Keeping in mind that this is for only 1 single paramter!


texts: please share your idea to handle magento2 cache with sublime IDE.


texts: Magento 1.7.0.2 Patch sequence as of sep. 2015

texts:
I have a Magento CE 1.7.0.2 installation, and I want to install these Patches:

SUPEE-6482: SUPEE-6482 for CE 1.7.x - 1.8.0.0 (0.01 MB)
SUPEE-6285: SUPEE-6285 for CE 1.7.0.0 - 1.7.0.2 (0.05 MB)
SUPEE-6237: USPS API Patch - CE 1.6.x-1.9.x (0.01 MB)
SUPEE-5994: SUPEE-5994 for CE 1.6.0.0 - 1.9.1.1 (0.04 MB)
SUPEE-5344: Magento-CE-v1.7.x (0.01 MB)
SUPEE-1533: Magento-CE-v1.7.x (0.01 MB)
SUPEE-4291/4334: Magento-CE-v1.7.x-1.8.x (0.01 MB)
SUPEE-1868: Magento-CE-v1.7.x (0.01 MB)
SUPEE-2725: Magento-CE-v1.7.0.0-1.8.1.0 (0.01 MB)
PHP 5.4: Magento-CE-v1.7.0.0-1.7.0.2 (0.01 MB)
APPSEC-212: Magento-CE-v1.6.0.0-1.7.0.2 (0.01 MB)

This is the Error i get:

$ ./PATCH_SUPEE-1868_EE_1.12.x_v1-2015-02-10-08-29-37.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

checking file app/code/core/Mage/Paypal/Model/Express/Checkout.php
checking file app/code/core/Mage/Usa/Helper/Data.php
checking file app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
Hunk #5 succeeded at 406 (offset 3 lines).
Hunk #6 FAILED at 444.
Hunk #7 succeeded at 528 (offset 6 lines).
Hunk #8 succeeded at 554 (offset 6 lines).
Hunk #9 succeeded at 668 (offset 6 lines).
Hunk #10 succeeded at 680 (offset 6 lines).
Hunk #11 succeeded at 735 (offset 6 lines).
Hunk #12 succeeded at 755 (offset 6 lines).
Hunk #13 succeeded at 780 (offset 6 lines).
Hunk #14 succeeded at 803 (offset 6 lines).
Hunk #15 succeeded at 839 (offset 6 lines).
Hunk #16 succeeded at 855 (offset 6 lines).
Hunk #17 succeeded at 876 (offset 6 lines).
Hunk #18 succeeded at 889 (offset 6 lines).
Hunk #19 succeeded at 933 (offset 6 lines).
Hunk #20 succeeded at 968 (offset 6 lines).
Hunk #21 succeeded at 995 (offset 6 lines).
Hunk #22 succeeded at 1023 (offset 6 lines).
Hunk #23 succeeded at 1356 (offset 6 lines).
Hunk #24 succeeded at 1702 (offset 6 lines).
Hunk #25 succeeded at 1712 (offset 6 lines).
Hunk #26 succeeded at 1745 (offset 6 lines).
Hunk #27 succeeded at 1883 (offset 6 lines).
1 out of 27 hunks FAILED
checking file app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Method.php
checking file app/code/core/Mage/Usa/etc/config.xml
checking file app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1.1.1-1.6.0.1.1.2.php

Whats the correct order to install the patches?


texts: Magento 2: How can i disable Queue feature for update product attribute in bulk

texts:
I don't want to Queue feature when update the bulk products attribute from the admin.I have tried to disable this AMQP & WebAApiAsync module but its still going into queue.
so is there any option to stop this queue feature?
any idea please share.
Thanks


texts: Admin config value not updating to match database value

texts:
When I save a config value, it updates the database but does not change the content in the configuration > admin section. When I get the value, its the unchanged one from the admin, not the value in the database.

Updating value with configWriterInterface updates values in the database but does not carry the value to the admin. When trying to call the value later with scopeConfigInterface it returns the value from the admin field, not the database.

What am I doing wrong?

 /**
 * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
 */

 public function __construct(
    \Magento\Framework\App\Config\Storage\WriterInterface $configWriter
) {
    $this->_configWriter = $configWriter;
  }

  $value = 'newvalue';
  $this->_configWriter->save('carriers/testship/name', $value);

Value in the database:

Value in the admin:

If I call the value from scopeconfiginterface, I get the Admin value.

// get the Object Manager
$objectManager = $bootstrap->getObjectManager();
$scopeConfig = $objectManager->create('Magento\Framework\App\Config\ScopeConfigInterface');
$value =  $scopeConfig->getValue('carriers/testship/name',  \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
echo "value: ".$value."\n";

value: oldvalue


texts:
I need to show Company Name in customers grid. I followed exemple here: Add Company column to Customers Admin Grid with Observer and these are the files I created

Config file:

<?xml version="1.0"?>
<config>
    <modules>
        <Ram_CustomGrid>
            <version>0.4.0</version>
        </Ram_CustomGrid>
    </modules>
    <global>
        <models>
            <ram_customgrid>
                <class>Ram_CustomGrid_Model</class>
            </ram_customgrid>
        </models>
    </global>
<adminhtml>
    <events>
        <core_block_abstract_to_html_before>
            <observers>
                <beforeBlockToHtml>
                    <class>Ram_CustomGrid_Model_Observer</class>
                    <method>beforeBlockToHtml</method>
                </beforeBlockToHtml>
            </observers>
        </core_block_abstract_to_html_before>
        <eav_collection_abstract_load_before>
            <observers>
                <beforeBlockToHtml>
                    <class>Ram_CustomGrid_Model_Observer</class>
                    <method>beforeCollectionLoad</method>
                </beforeBlockToHtml>
            </observers>
        </eav_collection_abstract_load_before>
    </events>
</adminhtml>
</config>

Observer file:

class Ram_CustomGrid_Model_Observer
{
    public function beforeBlockToHtml(Varien_Event_Observer $observer)
    {
        $grid = $observer->getBlock();

        if ($grid instanceof Mage_Adminhtml_Block_Customer_Grid) {
            $grid->addColumnAfter('company', array(
                'header'    => 'Company Name',
                'index'     => 'company',
            ), 'email');
        }
    }

    public function beforeCollectionLoad(Varien_Event_Observer $observer)
    {
        $collection = $observer->getCollection();
        if (!isset($collection)) {
            return;
        }

        /**
         * Mage_Customer_Model_Resource_Customer_Collection
         */
        if ($collection instanceof Mage_Customer_Model_Resource_Customer_Collection) {
            /* @var $collection Mage_Customer_Model_Resource_Customer_Collection */
            $collection->addAttributeToSelect('company');
        }
}

}

While I can see Company column added to the grid, I cannot get Company Name to be displayed in table. What am I missing?


texts:
Run the upgrade command, and the issue should be face

sudo bin/magento setup:upgrade

Return during the process:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-General' for key 'EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME', query was: UPDATE eav_attribute_group SET attribute_set_id = ?, attribute_group_name = ?, default_id = ? WHERE (attribute_group_id='7')

I try this link but it's not working
https://cybersolutions-llc.com/blog/integrity-constraint-violation-1062-duplicate-entry-4-images-key-magento-2/


texts: Cron status is always missed in Magento 1.9

texts:
I have set a cron in magento 1.9. Cron scheduled as per on time but never execute and complete with status of missed

Here's the cron configuration in system->configuration->Advanced->System

config.xml

<?xml version="1.0"?>
<config>
  <crontab>
    <jobs>
        <meanbee_vipmembership>
            <schedule>
                <cron_expr>0 0 * * *</cron_expr>
            </schedule>
            <run>
                <model>meanbee_vipmembership/observer::checkVIPMemberships</model>
            </run>
        </meanbee_vipmembership>
    </jobs>
  </crontab>
</config>

Why this is happening please suggest me right answer.