texts:
Magento importing and creating configurable products based on CSV (with children)

We are looking for a way of "scheduled" importing of products in Magento on server level (so no Magmi or other external tools).

I think we have 1 main question and this is: what is the de facto best method of doing this?

Secondly we have have T-shirts in sizes and this makes it a little bit more complex. Would the import file then contain all simple products? all simple products AND configurable products? or all configurable products (where the child relation attribute is concatenated)?

Currently we use a great tool for stock updates. We can learn it how a file works. How to translate certain fields. and it checks a certain folder every X hours.

I think we would be looking for a similar method where one can create "import profiles" that we can

learn how to match headers with attributes
learn how to translate foreign values to our values
that creates configurable and simple products automatically
and imports images from a remote url
it then uploads all into a 'staging' table so we can check and enrich the values
Then we can set it to live

It is probably far too much to ask - otherwise I would probably have found a solution already.

Does such an extension? or script exist?

I don't think default Magento import is the way to go.

Thanks! I appreciate your help


texts: Magento2 missing Street Information instead of having validation

texts:
Magento2 I am facing a strange issue where the customers are missing Street Information in the Shipping address. In the Shipping Address form I have added Street Field as required still shipping address is missing for some orders in admin.
Any suggestion how to debug this issue?


texts:
How to uninstall module ?

I read this  document

But it was not successful, and display below:

php bin/magento module:uninstall SP_Gridthumbs

  SP_Gridthumbs is not an installed composer package


texts: magento pagination with item per page not working

texts:
I am trying to set the pagination with number of items per page. However, it is not working as expected.

Below is the code that I am using. However, every time it gave same output even when the value of $page is 1,2,3

How can it be fixed ?

require_once '../app/Mage.php'; //Path to Magento
umask(0);
Mage::app();

if($_GET['page']){
    $page = $_GET['page'];
}else{
    $page = 1;
}

    echo $page;

    $category_id = $_GET['category_id'];
    $catagory_model = Mage::getModel('catalog/category')->load($category_id);
    $collection = Mage::getResourceModel('catalog/product_collection');
    $collection->addCategoryFilter($catagory_model); //category filter
    $collection->addAttributeToFilter('status',1); //only enabled product
    $collection->addStoreFilter();
    $collection->addAttributeToSelect(array('id','name','small_image','price'))->setCurPage($page)->setPageSize(10); //add product attribute to be fetched

    if(!empty($collection)){
        foreach ($collection as $_product){
        //echo "<pre>".print_r($_product)."</pre>";
            $categoryapi['id']=$_product->getId();
            $categoryapi['name']=$_product->getName();
            $categoryapi['price']=$_product->getPrice();
            $categoryapi['image']=(string)Mage::helper('catalog/image')->init($_product, 'small_image')->resize(250, 250);
            $mcat[] = $categoryapi;
        }
    }
    echo $output = json_encode(array('data' => $mcat));


texts:
Where ,i can change the number of address lines on the checkout page? Next code returns the number but where to set it?

$this->helper('customer/address')->getStreetLines();


texts: how to redirect the URL in magento if i click on category or subcategory it should show page

texts:
how to redirect the URL in Magento if i click on category or subcategory it should show page which i have created because of responsive design i'm doing this

I've created the URL for pages in such a way that the both category and subcategory URL is equal to page URL.


texts: customer register in one website store and how he can place order in another website store?

texts: Generally, if customer register with one store then it's details will not use in another store, for this he must have to register with details in another store. then how he can place order with one store details in another store?


texts: Magento2 : How to set custom meta title & meta description by observer?

texts:
I want to set meta title , description by the help of observer.
But unable to set data here.
please see my code:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_page_config = $objectManager->get('Magento\Framework\View\Page\Config');

echo $_meta_title = strip_tags($_page_config->setTitle("my custom title"));
echo $_meta_description = strip_tags($_page_config->setDescription("my custom description"));

Anyone has an idea would me much appreciated.


texts: Add external javascript file to Magento 2.2

texts:
I've tried the same approach on Magento 2.1.7 and Magento 2.2.1 and it worked in M2.1.7 but not M2.2.1 unless something else is going on...

The approach I used was to edit default_head_blocks.xml in directory
app/design/frontend/<VENDOR_NAME>/<MODULE_NAME>/Magento_Theme/layout which looks like:

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <script src="js/smartlook.js" />
        <!-- Also tried: <script src="Magento_Theme::js/smartlook.js" />  -->
    </head>
</page>

On Magento 2.1.7 I can see this file in the <head> section, but it doesn't seem to show up in Magento 2.2.1 after doing

setup:upgrade
cache:flush
setup:di:compile
setup:static-content:deploy -f

Update

Either js/smartlook.js or Magento_Theme::js/smartlook.js my problem was a silly mistake :/


texts: How to open the popup modal in ajax response (using magento jquery widget) in magento 2

texts:
I need to change my Java script code to jquery widget.Please provvide me a solution

js file

define([
    "jquery",
    "jquery/ui",
    "Magento_Ui/js/modal/modal",
    "slickslider",
    'mage/url'
],
        function ($) {
            "use strict";

            var popup = {
                type: 'slide',
                responsive: true,
                innerScroll: false,
                buttons: false,

                modalClass: "bottom-side-popup",
                clickableOverlay: true

            };

            var popupmodel = $('#wrapper').modal(popup);
            $(".products-btn").click(function () {

                popupmodel.modal("openModal");

            });

            $('.list-product').slick({
                slidesToShow: 8,
                slidesToScroll: 1

            });

        });


texts: Category is not working as well as products won't be displayed

texts:
I'm currently having the problem, that the categories and products are not working. I've added the categories as a sub category to "Default Category". I've checked if they are active or not as well as setting the quantitiy to 1 (or more).

The actual problem is that when I click a category in the navigation menu, nothing happens. The cms page get's refreshed and that's it.

I've added the "New Products" widget. The products are showing up but as soon as I click on them the cms page get's refreshed and nothing happens.

Typing the URL manually results in a 404 Error.

Reindexing has also been done.

Can anyone help me?


texts:
I have looked high and low but I cant seem to find in Magento natively or an extension to enable customers to create a weekly/monthly order of the same products, these would then be deducted from their saved card/bank details at a set recurring time period and the products despatched.

Can anyone advise if this is possible


texts: Installed Google Tag Manager and added Custom HTML in GTM for Facebook Custom Chat but chat window won't show

texts:
Magento 1.9.3.

Installed https://marketplace.magento.com/chapagain-chapagain-googletagmanager.html and it is working properly when viewed source code the GTM tag starts and ends immediately after  tag opens.

I have added Facebook Custom Chat Plugin code as advised https://www.simoahava.com/analytics/add-facebook-messenger-chat-google-tag-manager/ but the chat window still won't show on my website.


texts: Save an order from admin without submitting - quotation

texts:
Can I save an order from admin without submitting? So without triggering the payment logics?

I want to create an internal management of quotation that could then become orders. An idea is to not use custom entities, because any change to the Magento order entity would mean making a change to the Custom Quotation entity. I need a way to save an order from Admin, with status: "Quotation" that does not trigger all the payment logic (maybe even remove Invoice and Shipping, but maybe that's just a matter of raising the blocks)


texts: Magento admin not working (too many redirects)

texts:
This morning i changed the System Config Custom Admin URL in magento witch resulted in a 404.
I used this: https://stackoverflow.com/questions/7202950/magento-admin-url-not-working-404-after-changing-it-cant-go-back to revert the change i've made.

I got my www.mystore.com/admin back, but when i log in i get this:

  The page isn't redirecting properly

  Firefox has detected that the server is redirecting the request for
  this address in a way that will never complete.

An the URL looks like this:

https://mystore.com/index.php/admin/index/index/key/d27c0da27b776b799fb5f7aa4ebbbda0/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/index.php/admin/dashboard/index/key/57c8085a9d1a09359fc39e478c9588e8/?SID=boks2ippnh47oq87dvt910q4n1

When i then remove the URL and put in: mystore.com/admin, i get the admin dashboard only in HTML

My MySQL tables look like this:

admin/url/custom = NULL
admin/url/use_custom = 0
admin/url/use_custom_path = 0

web/unsecure/base_url = http://mystore.com/
web/secure/base_url = https://mystore.com/

Any fix for this problem?


texts: Magento 2: how to show a message when customer order get free shipping?

texts:
I want to display a message in minicart and / or in other sections of my store when customer order is equals or more than X amount.

I know that when Free shipping option is enabled, this is shown in the cart. However, I would like to display the "Free shipping!" message in other blocks or sections of the store.

This is useful when the option to redirect to cart after clicking the "Add to cart" button is disabled. In this case, since customers stay on the product page, they don't see immediately they got free shipping.


texts: Can't ssh so how to install patch 1533 5344?

texts:
My hosting told me can not ssh, so how to install patch 1533 5344?
thank you!!!!!!!

i upload the patch into my root directory and added a php :

<?php
print("<PRE>");
passthru("/bin/bash PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh");
print("</PRE>");
?>

But :

Error! Some required system tools, that are utilized in this sh script, are not installed:
Tool(s) "patch" is(are) missed, please install it(them).


texts: Magento 2.1 Custom template/div within product page to pull in product data

texts:
I am trying to insert a
 into a product page which does this.

<div class="thisdiv" id="mydiv" data-sku="<?php echo $item->getSku(); ?>">

I am ok with putting the
 into a custom template file and then using the layout XML to display that, but how would I get the product sku of the product to appear in the tag?

I've just got this so far in my template file and just get a blank page.

<?php
    $item = $block->getProduct();
?>
<div class="thisdiv" id="mydiv" data-sku="<?php echo $item->getSku(); ?>">

Thanks


texts:
We want to override Title.php of \vendor\magento\framework\View\Page We tried different ways but none of them are working. If anyone already did this before then please help us to do this.

Below is what we want to achieve.
Want to add static meta title to the entire website. If any other better way to do this then it will be appreciated.

Thank you


texts: Fatal error: Cannot redeclare class in Magento 2

texts:
I am trying to filter the data from my custom table, But it is throwing Error.

  Fatal error: Cannot redeclare class
  Test\Learning\ResourceModel\Learning\Collection
  in
  C:\xampp\htdocs\demo\app\code\Test\Learning\Model\ResourceModel\Learning\Collection.php
  on line 24

Block/Learning.php

<?php
namespace Test\Learning\Block;

class Learning extends \Magento\Framework\View\Element\Template
{

    /**
     * @var \Test\Learning\Model\LearningFactory
     */
    protected  $_learningFactory;

    public function __construct
    (
        \Magento\Framework\View\Element\Template\Context $context,
        \Test\Learning\Model\LearningFactory $learningFactory,
        array $data = []
    )
    {
        parent::__construct($context, $data);
        $this->_learningFactory = $learningFactory;

    }

    public function getFilterData(){

        $customerId = "1";
        $data = $this->_learningFactory->create()->getCollection()->addFieldToFilter(array('customer_id',$customerId));

        foreach ($data as $k => $v) {

        }

        return $data;
    }

}

Model/Learning/ResourceModel/Learning/Collection.php

<?php
namespace Test\Learning\ResourceModel\Learning;

class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{

    /**
     * @var string
     */
    protected $_idFieldName = 'clul_id';

    /**
     * Define resource model
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('Test\Learning\Model\Learning', 'Test\Learning\Model\ResourceModel\Learning');
        $this->_map['fields']['clul_id'] = 'main_table.clul_id';
    }

}

/view/frontend/templates/learning.phtml

<?php echo $block->getFilterData(); ?>

Any help On this?


texts: Magento 2: Abstract Controller class is not being override

texts:
I am trying to override an abstract class vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php using di.xml but it is not working.
I need to do some changes in method protected function _processActionData($action = null).

  /vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php

namespace Magento\Sales\Controller\Adminhtml\Order;
   abstract class Create extends \Magento\Backend\App\Action
   {
      protected function _processActionData($action = null)
      { ....
      }

  /app/code/CustomAPI/Product/etc/di.xml

    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Sales\Controller\Adminhtml\Order\Create" type="CustomAPI\Product\Controller\Adminhtml\Order\Create" />
</config>

  /app/code/CustomAPI/Product/Controller/Adminhtml/Order/Create.php

 namespace CustomAPI\Product\Controller\Adminhtml\Order

     class Create extends Magento\Sales\Controller\Adminhtml\Order\Create
     {


texts: Magento two cannot update sales_order_create_load_block_items.xml

texts:
I need to overwrite
Magento_Sales::order/create/items/grid.phtml
in
sales_order_create_load_block_items.xml
created
My_Module/view/adminhtml/sales_order_create_load_block_items.xml
    <?xml version="1.0"?>
        <referenceBlock name="items_grid" template="My_Module::order/create/items/grid.phtml">

        </referenceBlock>
    </body>
</page>

then copied grid.phtml to
My_Module/view/adminhtml/templates/order/create/items/grid.phtml
but for some reasons my changes doesn't apply.
i think sales_order_create_load_block_items.xml is a block that being called via the addHandle() function in some controller. is the normal overwriting function doesn't apply to these kinds of blocks?
or am i doing something wrong here?


texts:
<field name="page_image">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="dataType" xsi:type="string">image</item>
            <item name="source" xsi:type="string">page</item>
            <item name="label" xsi:type="string" translate="true">Banner Image</item>
            <item name="visible" xsi:type="boolean">true</item>
            <item name="formElement" xsi:type="string">image</item>
            <item name="required" xsi:type="boolean">true</item>
        </item>
    </argument>
</field>

Image uploaded successfully & saved in database also. But I can not preview the image in the edit screen. How to preview the image with delete checkbox?


texts: What I am asking sounds quite drastic, but I want to move the whole mobile menu (toggle icon, actual menu, animation). Is there an easy way to do this? (I want to move it to the header, and make it scrollable)


texts: Does the code after the return statement in configurable.js ever get run?

texts:
In js/varien/configurable.js, Product.config.prototype has this method that changes the displayed price of a configurable item based on the option selected from the dropdown menu:

reloadPrice: function(){
        if (this.config.disablePriceReload) {
            return;
        }
        var price    = 0;
        var oldPrice = 0;
        for(var i=this.settings.length-1;i>=0;i--){
            var selected = this.settings[i].options[this.settings[i].selectedIndex];
            if(selected.config){
                price    += parseFloat(selected.config.price);
                oldPrice += parseFloat(selected.config.oldPrice);
            }
        }

        optionsPrice.changePrice('config', {'price': price, 'oldPrice': oldPrice});
        optionsPrice.reload();

        return price;

        if($('product-price-'+this.config.productId)){
            $('product-price-'+this.config.productId).innerHTML = price;
        }
        this.reloadOldPrice();
    }

What I don't understand here is, why include the if statement and the call to reloadOldPrice() after the return? It seems like this code should never be run, so what's going on?


texts: Which characters are allowed (by default) in a SKU?

texts:
A simple question with no hits on Google.

What are the characters that are allowed in a SKU?  The entire UTF-8 character set?


texts: Magento2 - Reuse gift-options.js in other JS file

texts:
I want to reuse the functionality of module-gift-message/view/frontend/web/js/action/gift-options.js and use it in one of Module_Checkout JS file.

Ex: In update-shopping-cart.js.

How do I do this and how to use it?


texts: Shipping methods are only being shown to logged in customer

texts:
I am using Matrix rates for weight v destination shipping but for some reason the Shipping methods do not show up in the shipping method tab for non logged in customers.

I can calculate shipping from the cart page and update totals but when I checkout I get

"Your order cannot be completed at this time as there is no shipping methods available for it. Please make necessary changes in your shipping address." when I reach the shipping method step.

If I login the message goes away!

Has anyone come across this problem before and know how to fix? Please help me out...

Country Region/State    City    Zip/Postal Code From    Zip/Postal Code To  Weight From Weight To   Shipping Price  Delivery Type
DEU *               0.1 5000    14.99   European delivery
ESP *               0.1 5000    14.99   European delivery
GBR *               0.1 5000    9.99    Priority processing
GBR *               0.1 5000    6.99    Standard Delivery
IRL *           BT% 0.1 5000    14.99   NI Delivery
NLD *               0.1 5000    14.99   European delivery


texts: How to prevent orders being placed based on their shipping address

texts:
We're experiencing a high volume of fraud orders with the same city as the shipping address.

If we could block the city, or a list of zip codes we will avoid all this issues.

Is there a way to prevent orders being placed, based on the value of the shipping address?


texts: Programmatically updating stock in and out Magento 1

texts:
I have a magento 1 store and also a third party, centrally controlled stock system.
Now, I have a script that imports stock from this third party and updates the stock in the magento database which works perfectly.

The code snippet below looks for products which now has a value greater than the out of stock threshold, which in this case is zero, alters the stock status to "in-stock" and saves the collection.
Also in this code snippet is the action to find products which are equal to or less than zero.  This then sets this product to "out-of-stock" and again, saves the collection.
Straight after this, I then grab the index id for the stock status and then I re-index it so that the changes reflect in the front end of the store.

HOWEVER, and this is the issue.  How to I eliminate configurable products from this equation?  I don't want configurable products to be marked as "out-of-stock" as a configurable product always has a stock value of zero????

Can anyone help?  Here's my code so far....

require_once 'app/Mage.php';
Mage::app();
// If stock level is more than zero, set to in-stock and save
$collection = Mage::getResourceModel('cataloginventory/stock_item_collection');
$outQty = Mage::getStoreConfig('cataloginventory/item/options_min_qty');
$collection->addFieldToFilter('qty', array('gt' => $outQty));
$collection->addFieldToFilter('is_in_stock', 0);

foreach($collection as $item) {
    $item->setData('is_in_stock', 1);
}
$collection->save();

// If stock level equals zero, set to out-of-stock and save BUT EXCLUDE CONFIGURABLE PRODUCTS
$collectionOut = Mage::getResourceModel('cataloginventory/stock_item_collection');
$collectionOut->addFieldToFilter('qty', array('lteq' => 0));
$collectionOut->addFieldToFilter('is_in_stock', 1);
foreach($collectionOut as $item) {
      $item->setData('is_in_stock', 0);
}
$collectionOut->save();

//Get Stock Status Index Process ID and reindex to display results on front end
$process = Mage::getModel('index/process')->load(8);
$process->reindexAll();


texts: Programatically clear the cart of a logged-in user

texts:
TL;DR
When a customer is logged in, Mage::getSingleton('checkout/session')->clear(); doesn't clear their cart.  I need something that will.

I've asked this as part of another question, but i discovered it was actually two problems, other other one now fixed.

I'm programatically creating an order in a controller using the items in the cart.  After the order is saved the cart should be cleared.  I do this using

Mage::getSingleton('checkout/session')->clear();

which works fine most of the time.  The problem comes when the customer is logged-in.  If they are logged in the cart doesn't clear.  I've found other solutions (like load the cart items and removed them one at a time in a loop) but they don't meet all my requirements.  WHat I need is something that will:

remove all the items (obviously)
stay on the same page (why loading the cart doesn't seem to work.  I end up redirected to the cart page)
NOT go to another page and then come back (2 redirects won't work in this case)

Is there something different I need to do when they are logged in?  How can I get the cart cleared?  Thanks all for the help.


texts: How can i make sure the css is added to my theme , it is not working

texts:
I have css file design/theme/web/style.css but it is not working or maybe the thing i am adding is not responding . i have tried my own css in header of the theme it is working there but i know it is not a recommended way . how can i make my css run .
setup:upgrade , static-content:deploy , cache:flush everything is done . but still not working .


texts: I want to apply 15% discount on shipping rate that magento get from ups api.is it possible to do?


texts: Category attribute dropdown saying class doesnt exists

texts:
Here is my xml file for my custom category drop down

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="general">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string" translate="true">General Settings</item>
            <item name="collapsible" xsi:type="boolean">true</item>
            <item name="sortOrder" xsi:type="number">0</item>
        </item>
    </argument>

        <field name="cat_front_label">
            <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">XX\XX\Model\CategoryLabelDropdown</item>
                <item name="config" xsi:type="array">
                    <item name="formElement" xsi:type="string">select</item>
                    <item name="label" xsi:type="string" translate="true">Label</item>
                    <item name="options" xsi:type="array">
                        <item name="33" xsi:type="string">33</item>
                        <item name="50" xsi:type="string">50</item>
                    </item>
                    <item name="default" xsi:type="number">50</item>
                </item>
            </argument>
        </field>
</fieldset>
</form>

and here is my CategoryLabelDropdown in

  XX/model/CategoryLabelDropdown.php

namespace XX\XX\Model;

use Magento\Framework\Data\OptionSourceInterface;

class CategoryLabelDropdown implements OptionSourceInterface
{

    /**
     * Get options
     *
     * @return array
     */
    public function toOptionArray()
    {

            $options = [
                [
                'label' => 'Test',
                'value' => '1',
                ],
                [
                'label' => 'Test2',
                'value' => '2',
                ]
            ];
        return $options;
    }
}

I'm getting the error

: Uncaught Error: Call to undefined method XX\XX\Model\CategoryLabelDropdown::setAttribute()


texts: Magento 2 custom child theme add favicons

texts:
I'm trying to add various favicons to a custom theme.

I've added /theme_dir/Magento_Theme/layout/default_head_blocks.xml and within I've tried the following:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <!-- custom favicons -->
        <link rel="apple-touch-icon" sizes="57x57" href="icons/apple-icon-57x57.png"/>
        <link rel="apple-touch-icon" sizes="60x60" href="icons/apple-icon-60x60.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="icons/apple-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="76x76" href="icons/apple-icon-76x76.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="icons/apple-icon-114x114.png"/>
        <link rel="apple-touch-icon" sizes="120x120" href="icons/apple-icon-120x120.png"/>
        <link rel="apple-touch-icon" sizes="144x144" href="icons/apple-icon-144x144.png"/>
        <link rel="apple-touch-icon" sizes="152x152" href="icons/apple-icon-152x152.png"/>
        <link rel="apple-touch-icon" sizes="180x180" href="iconsapple-icon-180x180.png"/>
        <link rel="icon" type="image/png" sizes="192x192"  href="icons/android-icon-192x192.png"/>
        <link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png"/>
        <link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png"/>
        <link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png"/>

        <link rel="manifest" href="icons/manifest.json"/>
        <meta name="msapplication-TileColor" content="#ffffff"/>
        <meta name="msapplication-TileImage" content="icons/ms-icon-144x144.png"/>
        <meta name="theme-color" content="#ffffff"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
    </head>
</page>

But only the meta tags are placed in the frontend html, all <link> items are not rendered apart from the manifest, which doesn't actually give the correct link:

<link  rel="manifest" href="icons/manifest.json" href="http://localhost/pub/static/frontend/Name/theme_dir/de_DE" />


texts: Magento2: how to add extra 2% amount on grand total and how to display final value after grand total?

texts: In magento 2 how to add extra 2% ammount on grand total.


texts: Magento 2.3.0 - Can't set to production mode

texts:
I want to put my store on production mode, I use this command on ssh:

php bin/magento deploy:mode:set production

And I have this output:

Enabling maintenance mode
Config "dev/debug/debug_logging = 0" has been saved.
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Disabling maintenance mode
Command returned non-zero exit code:
`/opt/cpanel/ea-php72/root/usr/bin/php -f /home/store/public_html/m2/bin/magento setup:di:compile`

I check the system.log and there I have this error:

[2019-07-18 08:03:53] main.CRITICAL: Unable to get content for 'frontend/theme/store/en_US/Magento_Swatches/css/swatches.css' {"exception":"[object] (Magento\\Framework\\View\\Asset\\File\\NotFoundException(code: 0): Unable to get content for 'frontend/theme/store/en_US/Magento_Swatches/css/swatches.css' at /home/store/public_html/m2/vendor/magento/framework/View/Asset/File.php:187)"} []

In my custom theme is nothing related to the Magento_Swatches and much more I don't use Swatches.

What can I do to can enable the Production Mode?

Thank you


texts: on checkout page, no shipping address field appearing

texts:
I only see the field to put email address, payment options.
I tried switching to other themes (Luma and Blank), but the checkout page was the same.

Are some settings missing?


texts: SOLVED - Moving Magento 2.2.2 development environment to production environment

texts:
I'm trying create and manage my Magento project with 2 domain on my webserver. I'm using Magento 2.2.2.
1. dev.test.com => for development.
2. test.com => for production.
My idea is using github repo to push my update from development and then pull update to production but I have a problem now. I already created 2 domain on my webserver and tested it. Then I install and start coding on dev.test.com domain. Then I copied all files and folders in dev.test.com to test.com domain and modified env.php file to match with database and database user, then I use php bin/magento setup:rollback to rollback database in dev.test.com to test.com and modify web_unsecure_url to match with test.com. Final step, I clear pub/static/* , var/generated/* ,var/viewpreprocessed/, var/cache/ and do magento cache:clean.

Then I go to test.com to test but it gives me http_errors 500. What should I do to make it work
Does anybody have idea for this issue?
Thanks


texts: Magento 2 : Not loading all the core Api's in swagger

texts:
I have started to work with the swagger tool but there is one problem while interacting with swagger using localhost/magento/2.1/swagger but all the Api's is not loading and at the bottom, the error has been showing

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1/magento/2.1/rest/default/schema?services=all"}]}

I think I need to increase the memory limit to load all the api's. Tell me how can I load all the Api's.


texts: Street Address Cannot Contain more than 0 Lines on Checkout and Customer Registration Magento 2

texts:
Magento 2.2.5 shows Street address cannot contain more than 0 lines error when a registered customer tries to checkout after login. Moreover, when a guest customer after placing an order tries to register on the site. It shows the same error.
A sample screenshot is attached..

Update:
I have edited the customer_eav_attribute table and edited the multiline_count field from 0 to 4 and the street address error is vanished.. But the error is replaced by another that is first name is a required field


texts: How can I download Magento 1.7 CE specifically?

texts:
I need this version specifically for an extension that only supports Magento 1.7.
When I download the '1.7 CE downloader' from the website, it runs and then downloads "the most up-to-date copy of the Magento software.". I don't want the latest.


texts: Magento - Grouping products in one category by other categories they are in

texts:
I'm working on a magento site for a clothes designer and she wants products categorized in "collections". She also wants them categorized in clothing types such as shirts, dresses, pants, etc.

I've created a category called "Everything" with the collections as subcategories ("Spring 2012", "Fall 2012", "Spring 2013"). Every product goes in one of these categories.

I also have Clothing type categories "Shirts", "Pants", "Dresses" to name a few. They are all root categories.

The client requested that when you click on one of the clothing types, the products will be grouped by collection. So if I clicked on shirts, it would show all of the Spring 2012 shirts, then the Fall 2012 shirts, and then the Spring 2013 shirts.

I haven't been able to come up with a solution and can't find anything in the documentation for this and hope someone may have an idea or a direction to point me in. Thanks.


texts: Wysiwyg/editor field as dependent form field. Label stays visible?

texts:
I'm trying to make a wysiwyg editor field depend on a simple enable/disable dropdown. The code I used works for other field types, including textarea, but seems to have an issue with the wysiwyg editor. The editor does hide, but the label remains. Please see below:

The inspector reports this markup:

The editor enabled and working:

My code looks like:
protected function _prepareForm()
    {
        // ...

        $field_use_content = $fieldset->addField(
            'use_content',
            'select',
            ['name' => 'use_content', 'label' => __('Use Content'), 'title' => __('Use Content'),  'options'   => [0 => 'Disable', 1 => 'Enable'], 'required' => true]
        );

        $field_content = $fieldset->addField(
            'content',
            'editor',
            [
                'name' => 'content',
                'label' => __('Content'),
                'title' => __('Content'),
                'style' => 'height:8em;',
                'required' => false,
                'config'    => $this->_wysiwygConfig->getConfig(),
                'wysiwyg' => true
            ]
        );

        $this->setChild(
            'form_after',
            $this->getLayout()->createBlock('\Magento\Backend\Block\Widget\Form\Element\Dependence')
            ->addFieldMap($field_use_content->getHtmlId(), $field_use_content->getName())
            ->addFieldMap($field_content->getHtmlId(), $field_content->getName())
            ->addFieldDependence($field_content->getName(), $field_use_content->getName(), 1)
        );

        // ...
    }

Do I need to manually hook into a javascript event and hide/show the outer field wrapper? Or, am I missing something in the config of the field?


texts: On cart add/remove call the magento2 observer

texts:
I want to apply promorules while adding/removing products from cart in magento2. for that i added like events.xml as follows.

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="sales_quote_item_set_product">
      <observer name="soulof_catalog_checkout_cart_save_after" instance="My\Catalog\Observer\CheckoutCartSaveAfterObserver" />
   </event>
</config>

My observer file is like this..

CheckoutCartSaveAfterObserver.php

<?php

namespace My\Catalog\Observer;

use Magento\Framework\Event\ObserverInterface;
use \Magento\Store\Model\ScopeInterface as ScopeInterface;

Class CheckoutCartSaveAfterObserver implements ObserverInterface
{
    /**
     * @var \Magento\Framework\ObjectManagerInterface
     */
    protected $_objectManager;

    public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager,
        \Magento\Checkout\Model\Cart $cart,
        \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig){
            $this->_objectManager = $objectManager;
            $this->scopeConfig = $scopeConfig;
            $this->cart = $cart;
    }

    /**
     * @param Observer $observer
     * @return $this|void
     */
    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $bunch = $observer->getBunch();
        $writer = new \Zend\Log\Writer\Stream(BP.'/var/log/add_tocart.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);

         $cart = $observer->getCart();
        $allitems =  $cart->getItems();

        foreach($allitems as $item)
        {
            $item->setCustomPrice(10);
            $item->setOriginalCustomPrice(10);
            $item->getProduct()->setIsSuperMode(true);
            $item->save();
        }

        /* Code here */

        $logger->info(json_encode( $items ));
}
}

Its not printing any log with all items and not setting item price to 10. What is wrong with my code?


texts:
I tried to get all products sku, that started at $params['sku']
My controller:

<?php

namespace Aty\TestTask\Controller\Index;

use Magento\Framework\App\Action\Context;

class GetProductAjax extends \Magento\Framework\App\Action\Action
{
    /**
     * @var \Magento\Catalog\Model\Product
     */
    private $product;

    public function __construct(
        Context $context,
        \Magento\Catalog\Model\Product $product
    ) {
        $this->product = $product;
        parent::__construct($context);
    }

    public function execute()
    {
        $params = $this->getRequest()->getParams();

        if (!empty($params['sku'])) {
            $collection = $this->product->getCollection();
            $skus = $collection->addFieldToFilter('sku', array(
                'like' => $params['sku'].' %'
                ))
                ->getItems();
            return $skus;
        }
        return false;
    }
}

But it return null. Where is my fault?


texts: Shipping matrix with multiple product vendors (location of product stock)

texts:
We need the following functionality. Could you please recommend a module can 100% fit our needs? I have seen some modules but I'm not able to determine from demos and docs if it really helps us with this problem.

We sell products that are located in the US and EU (2 different vendors). We sell worldwide. We need to calculate the shipping cost but we need to be able to set different shipping for different products. Few examples:

EU customer ordering only EU items -> 5 EUR shipping
US customer ordering only US items -> 5 EUR shipping
EU customer ordering only US items -> 10 EUR shipping
EU customer ordering both US and EU items -> 15 EUR shipping
India customer - if only US, he pays 1 shipping, if he orders EU and US, he pays 2 different shipping combined.

and so on. We have many rules for different countries, but every time there are 3 instances of the shipping matrix, based on the combination of products (precisely the location of products) and the customer location.

We might need weight rules too and free shipping option for some occasions.

Thank you!


texts: Magento 2.2, product image shows in grid and search templates, does not show on detail page

texts:
After Importing products using cart2cart, the product images will show everywhere EXCEPT on the product detail page

Grid view on "new items template"
Grid and List view on "product category page"
Within the admin, during search
during checkout in the mini cart and full cart

Where it DOES NOT show is on the product detail page.  Unless I add a second image.  Once a second image is added, it will display both in a gallery
The theme is a basic template based on "magento blank" with very few modifications (mainly css and a few xml settings to move or add blocks), there is no theme override on the product view page
I have tried
php bin/magento catalog:images:resize


texts: Help needed in creating a custom shipping module

texts:
Good morning all,
I have a little background in php and magento.. I got a store up and running.. but i ran into an issue.. my local shipping company has its own shipping api so i cant use a standard shipping module like fedex or ups or dhl.

I was wondering if anyone can point me in the right direction to a guide that i can read and learn how to make the shipping module i need to interact with the shipping companys API


texts: Magento 2 How to fillter using custom product attribute in searchCriteriaBuilder?

texts:
I am trying to get filter product list by some custom product attribute it gives an error like
TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::getEntityPkName() must be an instance of Magento\Eav\Model\Entity\AbstractEntity, instance of Magento\Catalog\Model\ResourceModel\Product\Flat given, called in /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 1401 and defined in /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:1634 Stack trace: #0 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1401): Magento\Catalog\Model\ResourceModel\Product\Collection->getEntityPkName(Object(Magento\Catalog\Model\ResourceModel\Product\Flat)) #1 /var/www/html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1515): Magento\Eav\Model\Entity\Collection\AbstractCollection->_addAttributeJoin('custom_attribute...', 'left') #2 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1598): Magento\Eav\Model\Entity\Collection\AbstractCollection->_getAttributeConditionSql('custom_attribute...', Array, 'left')

My Code :
$searchCriteria = $this->searchCriteriaBuilder->addFilter('custom_attribute', $custom_attribute, 'eq')->create();

Is there any error in my code?


texts: Magento 2: Override html classes in account dashboard navigation

texts:
I want to change classes nav item with my own classes for customer account dashbaord navigation. What's the best way to do this?

This is the core file which creates the classes.

Magento\Framework\View\Element\Html\Link\Current.php

        if (false != $this->getTemplate()) {
        return parent::_toHtml();
    }

    $highlight = '';

    if ($this->getIsHighlighted()) {
        $highlight = ' current';
    }

    if ($this->isCurrent()) {
        $html = '
';
        $html .= ''
            . $this->escapeHtml((string)new \Magento\Framework\Phrase($this->getLabel()))
            . '';
        $html .= '
';
    } else {
        $html = '
escapeHtml($this->getHref()) . '"';
        $html .= $this->getTitle()
            ? ' title="' . $this->escapeHtml((string)new \Magento\Framework\Phrase($this->getTitle())) . '"'
            : '';
        $html .= $this->getAttributesHtml() . '>';

        if ($this->getIsHighlighted()) {
            $html .= '';
        }

        $html .= $this->escapeHtml((string)new \Magento\Framework\Phrase($this->getLabel()));

        if ($this->getIsHighlighted()) {
            $html .= '';
        }

        $html .= '
';
    }

    return $html;
}


texts: How to move media and var directory to a volume instead of main server disk space?

texts:
I have a small server: 4 vcpu cores, 8 gb ram and 40 gb ssd. And i attached to it a volume that's 1TB in size (i know it is not enough in terms of cpu/ram but i will upgrade to a much better server soon).
Here is how it looks when i run df -h
root@ubuntu-edit:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            953M     0  953M   0% /dev
tmpfs           194M  776K  194M   1% /run
/dev/sda1        38G  1.8G   35G   5% /      <------------ server's ssd space
tmpfs           970M     0  970M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           970M     0  970M   0% /sys/fs/cgroup
/dev/sda15       61M  7.8M   53M  13% /boot/efi
/dev/sdb       1007G   77M  956G   1% /mnt/volume-edit <------- volume's space
tmpfs          194M     0  194M   0% /run/user/0

Question is: how do i move the media(including images) directory, var directory and all other directories that tend to get pretty big to the volume and upload images and make the caching directly to that new location instead of keeping everything on the main server?
Is that even a thing?


texts:
I want to show payment method of an order in My Orders customer page.

I have tried use echo $_order->getPaymentMethod(), it gives NULL variable.

I also tried echo $block->getpaymentsCollection()->getTitle(), it shows messy looks without error.

So, what is correct way to show payment method title of an order?


texts: Multiple options for recipient in contact form

texts:
First off, forgive my lack of knowledge in php, that is a world I have yet to really delve into! So, I am trying to use the contact form while giving the user the opportunity to select which part of the company to contact. Moreover, instead of sending to A@email.com, B@email.com, C@email.com.. I am trying to have them select via a select box to email A@email.com with Form1, B@email.com with Form2, and so on.

I have created a select box that hides and shows different forms within the contact form page, and I have located the indexController.php (Mage/Contacts/controllers/IndexController.php) where the form action is being used. I have also seen where the recipient can be changed, my only confusion is to what exactly I could duplicate to get this desired effect to work all on the same page.

I believe the form is being called via

<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">

Which directs to the indexController.php, and I have found help that would allow me to change and send the email to multiple recipients, but my goal is to send to a single recipient, but have multiple instances of the form.

I imagine I would want to have multiple instances of postAction but unsure where to relabel them/call them in the form.phtml to allow for the different locations.


texts: Magento 2: Reference one Store to multiple Websites

texts:
I'm going to build a Magento 2 webshop. I would like to have multiple websites (one for each country we're shipping to). Each website should contain a single store and multiple store views with all provided languages.

Is it possible to create the store and the store views just once and reference in different Websites to them? As far as I could find out Magento is only allowing that one store belongs to one Website.

Is there some kind of workaround to be able to reference a store to many websites?


texts: Magento admin login session expires untimely when clearing caches by "Flush cache storage"

texts:
Exactly same issue as in the title here in Magento 1.9.2.4 ce running website.

Checked and set the cookie path and domain in database and also checked session timeout, all is ok.

What could be the issue behind this ?


texts: Recover values from a customer attribute

texts:
hi I use this code to retrieve data from a customer's attribute called "pagamento"

if(Mage::getSingleton('customer/session')->isLoggedIn())
{
$customerId = Mage::getModel('customer/session')->getCustomer()->getId();
}
$customer = Mage::getModel('customer/customer')->load($customerId);
echo $customer->getpayment();

until now the attribute was a text box and returned the correct value to me.
now I have to change the attribute which will be multiple choice

if I leave the code so I get a number and not the text of the multiple choice
How can I get the text?
Furthermore, if multiple values are selected, how can I get all the results?
Thank you


texts: How can I use a custom source model for a multiselect product attribute in Magento 2

texts:
I've created an attribute in Magento 2 of the type multiselect and now I want to have it populated by a custom source model.

Now I remember from Magento 1 that when you want to do this, you had to manually edit the attribute in the database and set the source_model to the path of the source model.

However, when I do this in Magento 2, I get an error. I changed source_model in eav_attribute to Vendor\Module\Model\Config\Source\Product\Attributes, but when I want to edit the product in the admin, I get the following error:

Fatal error: Uncaught Error: Call to undefined method Vendor\Module\Model\Config\Source\Product\Attributes::setAttribute() in .../vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:547

Stack trace: #0 .../var/generation/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php(1129): Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource()
#1 .../vendor/magento/module-backend/Block/Widget/Form.php(232): Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getSource()
#2 .../vendor/magento/module-backend/Block/Widget/Form.php(201): Magento\Backend\Block\Widget\Form->_applyTypeSpecificConfig('multiselect', Object(Magento\Framework\Data\Form\Element\Multiselect), Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor))
#3 .../vendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Tab/Attributes.php(51): Magento\Backend\Block\Widget\Form->_setFieldset(Array, Object(Magento\Framework\Data\Form\El in .../vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php on line 547

Does anyone know how I can create a product attribute with a custom source model?

Edit:

Current Source Model:

use Vendor\Module\Model\Config\Source\AbstractSource;
use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory;
use Magento\Eav\Model\Entity\Attribute;
use Magento\Eav\Model\Entity\TypeFactory;

/**
 * Class Attributes
 */
class Attributes extends AbstractSource
{
    /**
     * @var AttributeFactory
     */
    protected $attributeFactory;

    /**
     * @var TypeFactory
     */
    protected $eavTypeFactory;

    /**
     * Attributes constructor.
     * @param AttributeFactory $attributeFactory
      @param TypeFactory $typeFactory
     */
    public function __construct(
        AttributeFactory $attributeFactory,
        TypeFactory $typeFactory
    )
    {
        $this->attributeFactory = $attributeFactory;
        $this->eavTypeFactory = $typeFactory;
    }

    /**
     * @return array
     */
    public function toArray()
    {
        $arr = [];

        $entityType = $this->eavTypeFactory->create()->loadByCode('catalog_product');
        $collection = $this->attributeFactory->create()->getCollection();
        $collection->addFieldToFilter('entity_type_id', $entityType->getId());
        $collection->setOrder('attribute_code');

        /** @var Attribute $attribute */
        foreach ($collection as $attribute) {
            $arr[$attribute->getAttributeId()] = $attribute->getFrontendLabel();
        }

        return $arr;
    }
}

Class Vendor\Module\Model\Config\Source\AbstractSource:

namespace Vendor\Module\Model\Config\Source;

abstract class AbstractSource implements \Magento\Framework\Option\ArrayInterface
{
    /**
     * Options getter
     * @return array
     */
    final public function toOptionArray()
    {
        $arr = $this->toArray();
        $ret = [];

        foreach ($arr as $key => $value) {
            $ret[] = [
                'value' => $key,
                'label' => $value
            ];
        }

        return $ret;
    }

    /**
     * Get options in "key-value" format
     * @return array
     */
    public function toArray()
    {
        return [];
    }
}


texts:
Our Magento staging environment has been upgraded from 1.9.1.0 to 1.9.3.3 to meet all security purpose through Magento connect.

Once the upgrade process is done through Magento connect, it seems product category and view page elements are missing.

Please advise me to upgrade Magento without theme conflict.


texts: My Magento 2 admin login page has broken... its url rewrite problem. Also before this when it was working page and product were not loading & it is also not loading js css in back-end. Please check the image below . I have tried all possible solution but still getting this problem.


texts: "Font has not been set" error when printing invoices

texts:
Trying to print invoices.

I get the error "Font has not been set" and it refuses to generate PDFs.

This error seems to be linked to certain orders, though there is no rhyme or reason.  The next order could have the same items in the cart, but not have the error.

Is there a way to set the font or correct this error?

PS Magento newb so please be gentle.


texts: Magento: Admin Content Configuration gives error handle not registered design_config_listing_data_source

texts:
When I opens the Magento 2 Admin-> Content -> Configuration it through an error Not registered handle design_config_listing_data_source
And it exists in both etc/di.xml and also added in design_config_listing.xml


texts:
I've written a custom module and this module has to run every day at 12:30 AM. I've written a cron job and in the schedule I've update as follows:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="default">
        <job name="daily_report" instance="mymodule\Mail\Cron\SendEmail" method="execute">
            <schedule>30 00 * * *</schedule>
        </job>
    </group>
</config>

Apparently this job is not running. I can't see any entries in cron_schedule schedule table as well.

When I change the schedule to every minute, this job is working fine. What am I doing wrong?


texts: Trying to extend a 3rd party extension_attribute

texts:
I'm having a hard time wrapping my brain around how these extension attributes works. I sorta get how they work for an extension, but what I'm trying to do is extend a 3rd party  extension's model to include a new database field that I've added to a table that the extension uses.
I have an extension that has the following in its etc/extension_attributes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
    <extension_attributes for="Magento\Quote\Api\Data\CartInterface">
        <attribute code="aw_ctq_quote" type="Aheadworks\Ctq\Api\Data\QuoteInterface">
            <join reference_table="aw_ctq_quote" reference_field="id" join_on_field="entity_id">
                <field>id</field>
                <field>customer_id</field>
                <field>name</field>
                <field>created_at</field>
                <field>last_updated_at</field>
                <field>status</field>
                <field>expiration_date</field>
                <field>cart</field>
                <field>store_id</field>
                <field>base_quote_total</field>
                <field>quote_total</field>
                <field>base_quote_total_negotiated</field>
                <field>quote_total_negotiated</field>
            </join>
        </attribute>
    </extension_attributes>
</config>

Like I said, I added a column to the the "aw_ctq_quote" table via an upgrade schema script in my custom module, and that added just fine. I have changed the PHTML template where this data gets entered by the backend user, and it does POST just fine. I'm trying to have the model update the data set now, but I have no idea how to tell Magento to also include this other field. I can't update the example XML because it's a composer extension.
How can I update the model to include this other field? I'm not sure how I can tell Magento to also include this other column. I started looking into extending interfaces but I'm not sure if I have to specify a new model or what exactly I need to be looking for. Every search I do turns up how to make your own interface with new extension attributes but no mention of extending/overriding an existing one.
Any pointers here would be fantastic. Thanks so much


texts: Magento2: Image Upload with Preview and Delete checkbox in Edit Admin Form

texts:
I am learning Magento2 and while developing module i got stuck and need help in below 2 points.

1) I have created admin form with Image upload functionality and its working perfectly.
but i want to display image  in edit form when image is saved.
So how to achieve that.

2) Also i want to know how to show image delete checkbox in edit form.

Note: please note that i have created admin form using layout method not
ui-component.

code screen shots are attached. any help would be very appreciable.

[1]: https://i.stack.imgur.com/Dlga2.png [code snippet ]

[1]: https://i.stack.imgur.com/T5nDH.png [expecting result like this, or any alternate way to achieve this]


texts:
I am using Magento 2.2.7. From Admin panel product page shows more than 70k records. But when I try to get product count in a block by

$collection = $this->_productFactory->create()->getCollection()->count();

it shows only 10k count. Why the missmatch come?


texts:
How can I check for duplicate user accounts using SQL? The back office is not robust enough to show me what I want and I shouldn't really need to get a plugin to do this.

I just want to check to see if there are accounts with the same email address.

Magento 1.4.0.1 (Yes I know it's old but I cannot upgrade due to contractor making core mods)


texts: Looking to use handheld scanning device to update Magento product data

texts:
Hello and thanks for taking a look.  I am fairly new to Magento but have a high level question.  The problem is I have a warehouse full of products that are assigned locations.  I have a custom attribute for Bin Locations that each child/simple product have a unique location throughout the warehouse. Right now we have to write the SKU and location down and add them to products individually so they can print out on order invoices.  Is there any way to have a handheld scanning device or even a smartphone be able to scan a SKU and a product location and have it assigned to the simple products in a specific custom attribute field?  Basically taking out the manualness of going to each product and adding it.   An app of some sort or a fairly easy interface where I can scan an item and the location barcode and it's assigned to the product in Magento?

Thank you in advance for any direction!

-Rob


texts: I'm newbie, with low expertise in Magento. The shipping extension I use is provided by the shipping company. I work with and installed by them. The price calculated in the front end doubles the shipping cost. May it be due to the fact that also in the Sales section - Tax - Product tax classes I have the class Shipping? Should I delete this class, once I have the module installed by the shipment company?


texts: How to add captcha in product review form in magento2?

texts:
I am trying to add Captcha inside product review form. For that i add

<referenceContainer name="form.additional.info">
            <block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false">
                <action method="setFormId">
                    <argument name="formId" xsi:type="string">user_login</argument>
                </action>
                <action method="setImgWidth">
                    <argument name="width" xsi:type="string">230</argument>
                </action>
                <action method="setImgHeight">
                    <argument name="width" xsi:type="string">50</argument>
                </action>
            </block>
        </referenceContainer>
        <referenceBlock name="head.components">
            <block class="Magento\Framework\View\Element\Js\Components" name="captcha_page_head_components" template="Magento_Captcha::js/components.phtml"/>
        </referenceBlock>

in theme/Magento_Review/layout/catalog_product_view.xml file. and after that i am calling it in /theme/Magento_review/template/form.phtml file like

<?php echo $block->getLayout()->getBlock('form.additional.info')->toHtml(); ?> But after that no captcha is showing in the review form. Please help me to do it. Thanks


texts:
I was getting an error while trying to process credit cards through BrainTree.  The error was was getting back was:

[VALIDATION ERRORS] 92201 (Company name/DBA section must be either 3, 7 or 12 characters and the product descriptor can be up to 18, 14, or 9 characters respectively (with an * in between for a total descriptor name of 22 characters).), 92202 (Phone must contain exactly 10 digits, and can only contain numbers, dashes, parentheses and periods.) [MERCHANT: pzr9p32sxcpck4mv]",

[VALIDATION ERRORS] \"(779) 601-0340\" failed to match phone regex

I take this error as the phone number must be digits only.  But Magento formats the number and/or allows all characters.  Is there anyway to change the phone number to only and max 10 digits?

Or someone else have an idea how to get around this BrainTree error?


texts: Magento Cloud Too many mysql connection error

texts:
I'm getting error on the Magento Cloud,

ERROR 1040 (HY000): Too many connections

Doesn any one now how i can restart the mysql or just know the reason of that, like where i can find the mysql logs on ssh.


texts: How do I add in jump marks (bookmarks) into a CMS page on Magento 1.9?

texts: I am trying to create an FAQ page for our website on Magento 1.9 and I want to list the questions at the top and then jump link them to the answers. I am using the CMS creator. Does anyone know how/if I can do this on a CMS page?


texts:
Note: I'm aware of the existing question. This is a different, more specific question.

A bigger multi-store setup recently stopped to show new products unless I run
bin/magento indexer:reindex.

After investing I came across this bug report. It turned out that the cron-job does actually properly index the new product (it shows up in the corresponding index tables). So the problem shouldn't lie with the indexer. When I set indexing to Update on save by running
bin/magento indexer:set-mode realtime
everything works as expected. Of course that's not a permanent solution. Neither is reindexing for every added product.

I assume that indexer:reindex also clears cache tags so I figured it might actually be a cache problem. Flushing or deactivating the cache didn't do anything, though.

I would appreciate any pointers on fixing this.


texts:
At the moment most of our customers are guests (we do no require accounts)

Very often when customers returns to our website they see empty cart page (verified by testing and screen recording tools)

What settings control how long the products stay in cart for guests?

UPDATE: The question was marked as duplicate. But increasing sessions are not the only way to control how long the products stay in the cart.

Did some researching and find out couple of things that might be helpful to your guys.

DEFAULT magento persistent cart works a little bit different from what we would expect:

"persistent_shopping_cart cookie is only set on login and logout, and used for the "remember me" feature to automatically log in customers."
Here is more on that:

What does "Persistent Shopping Cart" do?
Does Persistent Shopping Cart work for guest (unlogged) visitors?

Like here was suggested you can control how long products stay in cart with sessions, but there are cons to that.
There is solution which helps you control this with cookies.

https://www.magentocommerce.com/magento-connect/persistent-guest-cart.html
https://github.com/clockworkgeek/Magento-Guest-Cookies

The create of the solution, Daniel, was kind enough to reply my email and commented on pros and cons in achieving higher ‘cart time’ for guests by increasing sessions time vs using your guest persistent cart extension.

Here is what he wrote:

  "If session times are increased then all sorts of extra data about a
  user is stored, like the last product they looked at and what filters
  are used on category pages, and probably much more besides that.
  Unfortunately each session is another file on the server and a busy
  server with millions/billions of files could exceed it's "inode
  limit". In a worse case scenario someone could use this to DDOS a
  server gradually until it is unable to create new files and all sorts
  of things break.

  If my extension is used less information is stored (which might be
  less useful) and no extra files are required. The hypothetical server
  wouldn't "fill up" as quickly. Furthermore, if only the 'recently
  viewed products' feature is used then nothing more is stored on the
  server and there is no limit to the number of guests. Lastly my
  extension only adds a cookie if there is something in the cart whereas
  a session cookie is added for every user regardless."


texts: I am integrating third party api in magento 1.9, they given x-api-key, authentication key, and type. How can i add x-api-key, authentication key in magento to work rest api.


texts: Magento 2: How to add additional % to all products

texts:
I want to add catalog rule example: add +10% to all products.

Any solution?


texts: Magento 2 module not installing via composer correctly

texts:
Currently trying to get a staging instance up and running. I have run ./composer install and it starts installing fine. I added my keys when it asks for me to authenticate with repo.magento.com and it installs all the core modules fine, however when it gets to amzn/amazon-pay-and-login-with-amazon-core-module. I get this error and I'm stuck. Any suggestions?

 - Installing amzn/amazon-pay-and-login-with-amazon-core-module (1.1.1): Downloading (connecting...)

  [Composer\Downloader\TransportException]
   Invalid credentials for 'https://repo.magento.com/archives/amzn/amazon-pay-and-login-with-amazon-core-module/amzn-amazon-pay-and-login-with-amazon-core-module- 1.1.1.0.zip', aborting.

Thanks.


texts: How to ask to magento team about my extension status?

texts:
I have submitted my extension on http://marketplace.magento.com for Magento 1.
It's been 31 days in technical review but still not any response from Magento team.
It's still in technical review. Is there any email where I can email them and ask for my extension?

Please suggest me, give me email id where I can contact them, what do I do?


texts:
I have imported images using a 3rd party import tool.

I'm importing several files and one sets the small_image flag the tool does not allow me to flag exclude.

The problem is we don't want the small image to show on the product page as in about 50% of our products it will be a duplication.

Is there a way either in the database or via a script that will allow me to set all images that are small images to exclude ?

Any help would be welcome


texts: Magento Multiple frontName for routers adminhtml

texts:
Is there any way to assign multiple frontName name for routers adminhtml ?

Basically i have 3 admin role

Administrators (default)
Salesadmin
Sabadmin

now i want to enable admin panel by 3 url

/admin (default)
/salesadmin
/sabadmin

and after login all url should be by whatever user is logged in.

I have below config which is working fine for login but after login url is changed to admin

<admin>
        <routers>
            <adminhtml>
                <use>admin</use>
                <args>
                    <module>Mage_Adminhtml</module>
                    <frontName>admin</frontName>
                </args>
            </adminhtml>
            <salesadmin>
                <use>admin</use>
                <args>
                    <module>Mage_Adminhtml</module>
                    <frontName>salesadmin</frontName>
                </args>
            </salesadmin>
            <sabadmin>
                <use>admin</use>
                <args>
                    <module>Mage_Adminhtml</module>
                    <frontName>sabadmin</frontName>
                </args>
            </sabadmin>
        </routers>
 </admin>


texts: include custom Javascript file in catalog search frontend Magento 2

texts:
i have a custom module with frontend custom js located in app/code/Namespace/Module/view/frontend/web/js/preorder.js that i need to include it in catalogsearch frontend, for now my requirejs-config.js look like this:

var config = {
    config: {
        mixins: {
            'Magento_Swatches/js/swatch-renderer': {
                'Namespace_Module/js/swatch-renderer-mixin': true
            }
        }
    },
    map: {
        '*': {
            preorder: 'Namespace_Module/js/preorder',,
        catalogAddToCart: "Namespace_Module/js/catalog-add-to-cart",
        "Magento_Catalog/js/catalog-add-to-cart": "Namespace_Module/js/catalog-add-to-cart"
        }
    }
};

i need to add that preorder in catalogsearch frontend, how can i add it to catalog search layout?


texts: Failed to load resource: the server responded with a status of 403 (Forbidden)

texts:
I'm trying to install a module and I'm getting the following error when I navigate to the page to load it. As you can see it is saying 403 error

Everything I have seen says that it is a permissions issue however as you can see the permissions are set correctly

Where do I go from here? What do I need to do to fix this?


texts: Magento 2 - OWL Carousel 2 in related products issue

texts:
I try to setup OWL Carousel for Related Products in Magento 2.

I overwrite this file: Magento_Catalog/templates/product/list/items.phtml

this is my custom code:

            <div  id="owlslider" class="products wrapper grid products-grid products-<?= /* @escapeNotVerified */ $type ?>">

                     ...............

But my owl carousel it not display well, I mean inline. My owl carousel items are now one under the other.

What I do wrong there?

Thank you in advance.


texts: Where is the ListProduct.php under Magento\CatalogSearch\Block\SearchResult? I can't find it under the source code folder.


texts: How can I get entered tracking number on Admin Back-End Shipments grid?

texts:
I need the tracking number on the Shipments grid in the Back-End,

from here:

to here:

How can I do this?


texts: Magento 2 : How to add new section in product page

texts:
In the above image, I want to add a section like content, configuration, product reviews etc. How can i do it?

And I also want to add my custom drop drop attribute inside the section


texts: Magento 2 - Get attribute label by id in controller

texts:
I am passing attribute id in my controller's URL and I am taking that id as below in my controller,

$colorparam =$this->getRequest()->getParams('color');

This returns me the id present in the controller. Now, I want the label or say it's an option from this id without using any product instance.

For example: I have attribute id -50 but I want it's label as Red.

I want to get this without loading any specific product in my controller.


texts:
I am running a suite of tests (integration tests) with Magento 2.
One test passes when it runs on its own and fails when it runs as part of the whole testsuite

the test uses a local fixture: @magentoDataFixture getMenuFixture

public static function getMenuFixture()
{
   require __DIR__.'/../_files/menu.php';
}

success:     php ../../../vendor/bin/phpunit ../../../app/code/Vendor/Module/Test/Integration/Controller/TopMenuTest.php

failed:    php ../../../vendor/bin/phpunit --testsuite VendorCode

without great amount of experience with integration tests, I am hoping I can conclude the test I run requires being isolated to give same outcome when being ran on its own or as part of a suite.

To this end, I have attempted to add the following annotations:

@magentoDbIsolation enabled
@magentoAppIsolation enabled
@magentoCache all disabled

I have also tried to debugged the data in the test database: I cannot see the fixture data in the database whilst the test runs and I understand that is because the integration test runs its fixture in a transaction operation that happens all in memory. Any ideas to debug this issue is welcome if it is not possible to diagnose the problem as the test codebase is obviously broad


texts: Magento 2 : showing price difference not working when configurable options clicked

texts:
I have override app/design/vendor_name/themename/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file but It doesn't change while click on configurable options.
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

?>

<?php
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */

$productId = $block->getSaleableItem()->getId();

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

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

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

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

    <?php
        $old = $priceModel->getValue();
        $special = $block->getSaleableItem()->getMinimalPrice();
        if(!$special)
            $special = $block->getSaleableItem()->getFinalPrice();
    ?>

        <?php
            $priceHelper = $this->helper('Magento\Framework\Pricing\Helper\Data');
            $percent = (($old-$special)*100/$old);
            $finalSave = $old-$special;
            $formattedPrice = $priceHelper->currency($finalSave, true, false);
            echo __('You Save: '). $formattedPrice . "&nbsp;&nbsp;" . "(" . round($percent).'%)';
        ?>

This Product Qualifies for
Free Shipping

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

<?php if ($block->showMinimalPrice()): ?>
    <?php if ($block->getUseLinkForAsLowAs()):?>
        <a href="<?= /* @escapeNotVerified */ $block->getSaleableItem()->getProductUrl() ?>" class="minimal-price-link">
            <?= /* @escapeNotVerified */ $block->renderAmountMinimal() ?>

    <?php else:?>

            <?= /* @escapeNotVerified */ $block->renderAmountMinimal() ?>

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

Output of this code: (Without click of any configurable option)

But after click on any configurable option Price changed but saved price didn't change.

I want to change you save value. Can anyone help?


texts: Simple type products collection - wrong count

texts:
Here's a collection that should include all simple products in my magento store:

$collectionSimple = Mage::getModel('catalog/product')->getCollection()
                ->addAttributeToFilter('type_id', 'simple');

This collection has 6750 items, while my magento has 9892 simple products.

Any ideas why is this happening?


texts: Forgot your Passowrd Email Authentication Required

texts:
I am using magento 1.9.2.3 version. Is it possible can we make a email address authentication in Forgot Your Password Page.

Currently some one enter the wrong email address and system send an email. My client required if someone enter the email address for password reset first system check the email exist or not. If email exist than send email if not than error message your email is not registered.


texts: Magento 2 Algolia connection time out issue

texts:
I have algolia integrated with magento 2 site , suddenly algolia is throwing error on product listing page and search page.

Error is about Server connection time out !


texts: When and how recurring profile status changes into "EXPIRED" while reaching maximum billing cycles. Can any one explain it briefly.


texts: How to change the scope of product Quantity from Global to Website level?

texts: I am using Magento 2.2.6 Open Source Edition, a single product has been selected for 3 websites in Product in Websites section, I would like to have different quantities of the product for each website.


texts:
I'm new on Magento.

How to export orders with code SKU price etc.

I read the link below but didn't get where to add this code and how this code works please help.

  Programmatically Export Sales order customer details to excel format


texts: How to disable all products from specific category?

texts:
I am using CE 1.7.0.2, I want to disable all products from one specific category.

How I can disable all products from category? (SQL is fine)


texts: Magento 2: Redirect to specific page on customer registration fail

texts:
I have made custom registration form which uses Magento's createPost for creating a new customer. On registration fail it is redirecting to customer/account/create
I would like it to redirect it to the custom form page again. How to achieve this?
There is no event in Magento for customer registration fail. Also if I want to create a preference of CreatePost controller I don't know how to achieve this functionality


texts: magento 2 - need to change text and remove items from wishlist

texts:
Hi i'm not developer so please help. i'm trying to change 'My Wish List'   to   'wishlist' and wanna remove 'items'

My Wish List 2 items  - wishlist 2


texts: Magento 2 - Enabled show/hide functionality on header search

texts:
I've currently got the following phtml file in my theme:

  Vender/Theme/Magento_Search/templates/form.mini.phtml

and the following js file inside of my theme as well:

  Vender/Theme/Magento_Search/web/form-mini.js

I've done some changes to the form-mini.js trying to show and hide the search on a desktop site as well as the mobile side.

mediaCheck({
    //media: '(max-width: 768px)',
     entry: function () {
         this.isExpandable = true;
     }.bind(this),
         exit: function () {
         this.isExpandable = false;
         this.element.removeAttr('aria-expanded');
    }.bind(this)
});

So i commented out the media query to stop the script running on anything less than 768px but, nothing. On clicking the label the aria-expanded still doesn't toggle.

This is my first time looking at the search functionality, any help would be awesome.

Thanks


texts:
Has anyone ben able to get a Shipstation plugin or integration working with Magento 2.4?
Was just told directly by Shipstation that they do not support 2.4 and have no eta for when they would start supporting it.
Has anyone been successful with modifying the plugin they offer that works with 2.3 to get it to work with 2.4 and if so how?


texts: Magento 2 admin, add new 'Text Field' into order information page?

texts: Using magento 2.2 Admin, I want to add textField into Sale > Order > Information > Order & Account Information like image. How to do?


texts: Category / sub category "view all" display

texts:
I have just been testing CE 1.9 using the rwd theme.

I have set up a simple category tree as follows"

Default Category
- Cat 1
--- Sub cat 1
--- Sub cat 2
--- Sub cat 3
--- Sub cat 4
- Cat 2
- Cat 3

On the front end main Navigation I'm getting an additional "View All Cat 1" link as follows:

Cat 1
- View all Cat 1
- Sub cat 1
- Sub cat 2
- Sub cat 3
- Sub cat 4

Where is the "view all" link coming form (it simply redirects to Cat1)?

Thanks.


texts: Sort products in frontend catalog view based on which attribute set they belong to

texts:
Using Magento CE 1.9.0.1.

We're trying to find a way to sort products on our site based on which attribute set they were created with. We sells clothes on our site so we have a number of attribute sets such as hats, pants, tees, accessories, etc..

I have the means to sort by attribute:

$_productCollection = Mage::getModel('catalog/product')->getCollection();
$_productCollection->addAttributeToSelect('*');
$_productCollection->addAttributeToSort('display_order', 'ASC');
$_helper = $this->helper('catalog/output');

But this covers attributes within an attribute set. Is there a way to include an "attribute set" field into the catalog template for sorting? I'm currently working with app/design/frontend/mypackage/mytheme/template/catalog/product/list.phtml.

Example: We have a "New" page where products from all the various categories will show. You'll see a new hat, new t-shirt, new pants, etc. but we would like all the new hats to be grouped together (which would be done by sorting attribute set), pants to be together, t-shirts, and so.

**EDIT: ** I found a way to access the product object's attribute set... https://stackoverflow.com/questions/2091375/how-do-i-get-attribute-set-name
Now I just to know how to sort by that piece of data.


texts:
Does anyone know a way to not display the tier price in the backend of Magento @product page?

Due to the large list of Tier pice loading a product takes a long time, in de backbend.

when i try to remove the attribute from the Management attributes sets default I get a message I can not remove it.


texts: Lost Clear Catalog Images and Javascript/CSS Cache button in Backend. Magento CE 1.9.0.1

texts:
The other day I was just restoring a backup on my website hosting servivce when I accedintally deleted a magento folder via SSH.

Everything started working after the backup was restored, the store was functioning properly until I noticed a thing.

The Clear CSS/JS Cache button was not there, and neither was the Clear Catalog Images Cache button present.
Please help!


texts: Customer specific product offering - Best practice

texts:
To build an e-commerce site that offers a specific set of products for each state of a country, what would be the best practice to be followed from below listed approaches (or another approach) to create the product catalog.

Approaches

Define each state as root category and then create products under desired subcategories
Define a single root category and then create products under desired subcategories. Define a custom multi-select "Available State" attribute and tag the product to respective state.
Create a multi-store site where each state is represented as a store and then create desired products for each store.


texts: Ajax custom cart not applying shopping rule

texts:
In my ajax custom cart after applying a coupon code, adding a free gift product to cart programmatically. That new product is not detected for shopping rule validation. But the product is available in quote table without having applied rule ids.

But in default cart after saving the new product to cart functions like collectTotals() is called which detects the new product.

Please advise me how to fix this or how to trigger checkout_cart_index event programmatically.

2018-06-05T11:51:25+00:00 DEBUG (7): DEFAULT CART:  FREE GIFT ADDED TO CART
2018-06-05T11:51:30+00:00 DEBUG (7): Event Triggered: checkout_cart_index
2018-06-05T11:51:30+00:00 DEBUG (7): predispatch() called....
2018-06-05T11:51:30+00:00 DEBUG (7): _getCart() called...
2018-06-05T11:51:30+00:00 DEBUG (7): _getCart() called...
2018-06-05T11:51:30+00:00 DEBUG (7): save()...called in Cart.php
2018-06-05T11:51:31+00:00 DEBUG (7): called by Mage_Checkout_CartController :: indexAction

Using the below code:

$cart->addProduct($product,$request);
$cart->save();
$this->_getQuote()->setTotalsCollectedFlag(false)->collectTotals()->save();


texts: Migrate Magento1 Email templates to Magento2

texts:
I have done a data migration from magento1(M1) to Magento2(M2), so that the email templates that were stores in M1 are also migrated to M2 DB, Now when I try to preview these migrated templates it throw me some errors like,

Email template '' is not defined.

The solution that comes up in my mind is to copy template files from M1 to M2.

I do not have some expertise in Magento, Can someone please guide if this is even possible to use the M1 templates in M2 or I need to created those templates in M2 from scratch?

or any other idea to get M1 template work in M2 in term of overriding or so?


texts: Magento 1.8.0.0 Shows all Product in Category regardless of limit.

texts:
I'm trying to fix some nasty thing that happened to our store. We currently using Grid only display mode. Category has 192 products and settings are these:
- List Mode: Grid Only;
- Products per Page on Grid Allowed Values: 9,15,18,24,27,30;
- Products per Page on Grid Default Value: 15;
- Allow All Products per Page: No
- Product listing Sort By: Best Value

It suppose to render 15 product and make all others available on other pages that should be selected through pagination.

Toolbar renders correct, It shows Grid Allowed Values in Dropdown. Pagination is also calculating number of pages correct (13 pages for 15 products per page options), but page rendered with all products from this category at once.

I've tried limit them by adding ?limit=30 to URL, but no reaction.

I've google it and found out that it could happen if collection is loaded before it is limited. Theme is customized, but mostly styles and html.

I even replaced customized /catalog/product/list.phtml with original one (from base), but it is still outputs all products at once.

local.xml is also not changing standard layout.
Backend -> Catalog -> Manage Categories - > This Category -> Custom Design Tab is also with no customization.

Here what I have in list.phtml

Beginning:

<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_helper = $this->helper('catalog/output');
?>

Grid mode loop:

<?php // Grid Mode ?>
<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = $this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
    <?php if ($i++%$_columnCount==0): ?>
    <ul class="products-grid text-center row">
    <?php endif ?>

/* here is product image, name, price code */

<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
    </ul>
    <?php endif ?>
    <?php endforeach ?>
    <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>

Any help will be appreciated.

Thanks


texts:
I am using magento 2.1.7. I have enable the Flat rate shipping but still it is nit showing.

Kindly can somebody help me for that


texts:
From the Magento admin panel, user can update the status of an order to On Hold. Is there a way out for authorized admins to mark the order
as hold from frontend.
if ($order->canHold()) {
    $order->setState("holded")->setStatus("holded");
    $order->save();
}

Reference
protected $orderManagement;
public  function __construct(
    \Magento\Sales\Api\OrderManagementInterface $orderManagement
)
{
    $this->orderManagement = $orderManagement;
}
public function canChangetoHold()
{

    try {
        $this->orderManagement->hold(10); //10 is order id

    } catch (\Magento\Framework\Exception\LocalizedException $e) {
        // some error
        $e->getMessage();
    } catch (\Exception $e) {
        //You have not put the order on hold
    }
}

For example - An authorized admin could login as customer and mark orders as on hold so that it can't be stopped for further processing.


texts: Magento 2 - How i can add customer group in webshop matrix shipping module?

texts:
I am using Webshop Matrix Module but not able to add customer group i have tried a lot by doing changes in csv and database too but no luck!

Shipping method should work only based on customer group logged & imported csv file


texts: Totals Block does not show in Order Summary in Checkout Page;Magento2

texts:
In Order Summary block(Checkout Page), totals block is missing. In the Cart Page, totals block is displayed.

I have to override checkout_cart_index.xml in my theme for Cart
 Page. The code in checkout_cart_index.xml is:

My console has Js errors. I have jquery.min.js version 1.12.4(Default one) in my theme.
1. Are these JS errors responsible for my issue?

Why do I get totals block in Cart Page but not in Checkout Page?

Can you please guide me to bring back my Totals block. Thanks in advance.


texts: Magento 1.9.3.X: Get all related products of a product

texts:
I need to retrieve related products from a particular product with id.

I tried using the getRelatedProductCollection method unsuccessfully, not sure if this method is.

I need to get these related products to apply to other products programmatically. Anyone help me please?

try {

    $configProductIds = [1663]; //configurable product ids to update images

    foreach ($configProductIds as $product_id) {

        $configProduct = Mage::getModel('catalog/product')->load($product_id);

        $relatedProducts = $configProduct->getRelatedProductCollection()
            ->addAttributeToFilter('entity_id', array('in' => $product_id));

        echo "<pre>";
        print_r($relatedProducts->getData('product_id'));exit;


texts: Visibility,Name,Price fields missing after configurable product import - magento 2

texts: After importing configurable products, few of them's visibility, name ,price fields shows empty. Why it is happening, due to this indexing not work successfully and products not displaying on front end


texts:
I am trying to setup a multi store with different products on each site. Just one install. All my domains are pointing to the magento install directory.

When following the step by step guide on the magento community it doesnt donanything all sites goto the base site.

I have no access to the vhost or to restart appache.

I have added the text in the .htaccess file.

I have 4 different domains that will all have there iwn store. Eg uniformsatconsomme.co.uk should goto base Kidsatconsomme.co.uk should show kids_consomme website sportsatconsomme.co.uk should show sports_shop website Fashionatconsomme.co.uk should show fashion_shop website

But the all show base. Please help.


texts: Magento 2 : WebAPI gives error: Class "array" does not exist


texts: why won't my photos upload on the website?

texts: When I add a new product or review an older one as part of managing products, my photos do upload but don't show up in the thumbnail (even though thumbnail view is enabled). What am I missing?


texts: Magento2: How can I get the query sent from Magento to SQL

texts:
I'm trying to update a customer from Magento.

I have some issues with the data that actually is modified in the database.

The code that saves the user is :

$this->customerRepository->save($customer);

Is there a way to get the actual SQL query sent from Magento to SQL?


texts: How to hide a specfic tab at product detail page on page load

texts:
How to set product page-information-tab-content needs to be hidden when page load.
When i click title only need to be display content.

Please let me know how to set.


texts: Please give a look on the save method of vendor\magento\framework\Model\ResourceModel\Db\AbstractDb.php. beginTransaction() method is called before checking isModified(). In this case, if no data is modified, it calls commit() method. Would it not need to call commit() if isModified() was checked before calling beginTransaction()? If this way is perfect, what are the underlying causes of calling beginTransaction() before checking isModified()?


texts: How do I Sell my downloadable file on Magento through URL link

texts: I am failing to upload my downloadable file through the usual upload file. I am now deciding to upload my downloadable product to the directory of my site and then type their URL in the spaces provided for the "URL". Is that enough if I want to sell my product using the links? If not so what should I do?


texts: want to write php validation for customer registration form before save

texts: I have written js validation in PHTML file and added that validation in form using data validate. But I want to do the same validation using the event customer_before_save. I will be happy to read your suggestion.


texts:
Can I somehow get role of an image from here:

E.g. check if image has role Base, Thumbnail or a custom one that I added.


texts: Magento 1.9 strategery infinite scroll not working

texts:
Am using Magento 1.9 theme coolbaby. In list page creating a load more product, so here am using strategery infinite scroll link enter link description here

Am configure every thing in selector section

But i got some error in console, and also products not loaded

  Note: already strategery infinite scroll question asked but am not get result till now.

Thanks in advance


texts: Magento2: set credit card as default payment method

texts:
How to set default payment method as authorize.net credit card for that I have tired to override

Magento\Checkout\view\frontend\web\js\view\payment\default.js

below is the code
define(['Magento_Checkout/js/view/payment/default'], function(Component) {
    initObservable: function () {
        this._super();
        this.selectPaymentMethod();
    }
});

but got stuck how to override the particular method


texts: How to disable Configurable products and Downloadable products in Magento 2

texts:
There are two sections when I add a simple product and I'd like to disable or at least hide those.
"Configurations" and "Downloadable Information".

I know about Magento module:disable command and I'm aware of dependencies but I can't disable due I have a custom module and it breaks when I try to do.

Is there any other way to disable or hide as those aren't required fields?

Thank you


texts: How can I get all email which are all under condition back in stock email alert?

texts: I need to get all email at once which are all click notify about back in stock condition. How can I get that?


texts: Change from frontend area to adminhtml area

texts:
I try to use an email template which located in adminhtml area from frontend, the problem is i dont know if changing the state area code is the right way because i alway got an error by doing like this:

      $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
      $area = $objectManager->get('Magento\Framework\App\State');
      $currentAreaCode = $area->getAreaCode();
      $area->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML);

  1 exception(s): Exception #0
  (Magento\Framework\Exception\LocalizedException): Area code is already
  set


texts:
How Magento creates app/etc/local.xml?
Where should I look into to get the procedure of this local.xml creation?


texts: Magento2: How to customzie tax in shopping cart page

texts:
How to customize tax in shopping cart page. If the customer have some certification**(eav_attr)** then not showing tax in all pages.

We already tried sales_quote_collect_totals_before


texts:
when i am trying to purchase whole bundle of products i get this

  The maximum quantity allowed for purchase is 1.

but not get this error when i try to add multiple simple product