texts:
In newer versions of Enterprise Magento ships with change log tables (See Mechanics of the new Changelog Tables (ex: catalog_category_product_cat_cl) for more information on how they work). Now these tables can become large over time, for example my most recent dump from a client has the following:

+------------------------------------+------------+
| Table                              | Size in MB |
+------------------------------------+------------+
| catalogsearch_fulltext_cl          |     911.00 |
| catalog_product_index_price_cl     |     728.00 |
| cataloginventory_stock_status_cl   |     709.00 |
| catalog_product_flat_cl            |     208.75 |
| catalog_category_product_index_cl  |      59.59 |
| catalog_category_flat_cl           |      53.59 |
| enterprise_url_rewrite_category_cl |      48.58 |
| catalog_category_product_cat_cl    |      48.58 |
| enterprise_url_rewrite_product_cl  |       2.52 |
| enterprise_url_rewrite_redirect_cl |       0.09 |
+------------------------------------+------------+

Now there is a cron that can be enabled to clean these tables up. This can be done via the System > Configuration > (ADVANCED section) > Index Management. After running this cron I would expect to see these tables shrink in size but running the same query after returns the following:

+------------------------------------+------------+
| Table                              | Size in MB |
+------------------------------------+------------+
| catalogsearch_fulltext_cl          |     996.00 |
| catalog_product_index_price_cl     |     728.00 |
| cataloginventory_stock_status_cl   |     723.48 |
| catalog_product_flat_cl            |     208.75 |
| catalog_category_product_index_cl  |      59.59 |
| catalog_category_flat_cl           |      53.59 |
| enterprise_url_rewrite_category_cl |      48.58 |
| catalog_category_product_cat_cl    |      48.58 |
| enterprise_url_rewrite_product_cl  |       2.52 |
| enterprise_url_rewrite_redirect_cl |       0.02 |
+------------------------------------+------------+

What the heck is happening? For example catalogsearch_fulltext_cl has increased from 911MB to 996MB after cleaning the table?


texts: Bulk disable products without a category in SQL

texts:
Can anyone provide me with a good SQL query I can run to disable products that have no category?

I have been trying to use extensions to do this and have yet to get a reliable program.


texts: Magento2 how to modify admin grid collection using ui component

texts:
You guys would be knowing that usually, we are using core Magento DataProvider while creating admin grid using UI component.

Sometimes, we need to add some filter or modify the basic grid collection data which brings all records stored in the respective table by default. For this, we need to create custom DataProvider to return our modified collection.

Can someone please provide some details or good reference regarding how can we make such DataProvider in the custom module for admin grid page?

That would be really helpful.

Thanks,


texts: How to translate products for multiple stores in Magento 2

texts:
I'm trying to set up Magento 2 to handle several stores, and each store in two languages.

Structure is something like this:

Website1
  Store1
    Danish
    English
  Store2
    Danish
    English
  ...
WebSite2
...

How do I translate a product. Most of the documentation I have found on this topic, says I should open the product (the product is in danish as default) change store view to Store1/English and translate the product.

Now this is easy if I have one store. But if I have several stores then I have to translate same product several times.

Is there a better way to do it?

Same problem when translating categories.


texts: Magento2 Custom Option Select field Dropdown Loading

texts:
Can any one help me to When i select second time dropdown Custom options Its Loading continuously not stopping in Magento2 Product Custom options admin

Please find the Screenshot below.

Magento2.1.3 no console.log errors


texts: How to add a custom content type in Magento?

texts:
I am very new to Magento. My requirement is to add a Pro Staff section. Pro staff content would have some attribute fields and references to products. In front-end there will be a category wise display of all contents, which leads to its own pages.

I am planning to done this using a custom type, like custom content type in Drupal or custom post type in WordPress. How can I create a custom content type?

OR

Is there any other methods, modules or connectors, to achieve this?


texts: Magento 2 - Custom Head PHTML showing in body

texts:
I am trying to create dynamic head using phtml on Magento 2.3.5 p1.
I am inserting in default.xml the following:
<page>
<body>
...
 <referenceContainer name="head.additional">
        <block class="Magento\Framework\View\Element\Template" name="custom_head_file" template="Magento_Theme::custom_head.phtml"/>
    </referenceContainer>
...
</body>
</page>

The output of custom_head.phtml is showing inside the BODY and not inside the HEAD.
Any ideas on how can this be debugged and corrected? I also tried refereceBlock and the result is the same.


texts: Iam getting decimal points  please help me in removing those decimal points.


texts: Remove required validation from address checkout - Magento 1.9

texts:
I have a magento website that is going to be used solely for free digital downloads.  I want people to register to keep track of who is taking the software but I only really want them to give their name, email, basic geo location, and their phone number.  Their address ,zip ect. I do not need.  Is there an easy way I can remove the required field jquery call from the onepage checkout?

Thanks


texts: magento 1.9.2 - apply layer filter to custom product collection

texts:
I want to apply layer navigation filter in custom product collection.

Ex:- http://domain.com/seller/collection/test/?condition=new&brand=xyz

Now I have collection of products of particular seller as per below code.

  $layer = Mage::getModel('catalog/layer');
  $category = Mage::getModel('catalog/category')->load(Mage::app()-  >getStore()->getRootCategoryId());
  $layer->setCurrentCategory($category);
  $collection = $layer->getProductCollection();
  $collection->addAttributeToSelect('*');

  $collection->addAttributeToFilter('entity_id', array('in' => '339,340,345,356'));
  $collection->addAttributeToFilter('visibility', array('in' => array(4)));

  $this->setCollection($collection);

Now before set collection ($this->setCollection($collection)), I want to apply layered filter to collection as per query string.

Means apply condition and brand filter.

Please help me as soon as possible. I have waste almost one day in this customization.

Or give me some alternative solution.


texts:
I'm trying to set an $order object to the session_quote. However, when I get the $order object after setting it, the data and other information are null yet the object remains. How can I set the order object to the session_quote correctly so that the data is still within the order object?

Example:

$order= Mage::getModel('sales/order')->load($orderId);
Mage::getSingleton('adminhtml/session_quote')->setOrder($order);

Getting order from session:

$session = Mage::getSingleton('adminhtml/session_quote');
$sessionOrder = $session->getOrder();

Results in order object with no data or payment information.

$orderId = $sessionOrder->getId(); /* is null */
$orderData = $sessionOrder->getData(); /* is null */


texts: Shipping method pick up in store (Free) - Magento 2.3.1

texts: I need to be able to offer my customers a shipping method like pick up in store (free). How can I do this in Magento 2.3.1? Also, I have table rates configured with a CSV and I need to be able to offer both shipping methods, the pick up in the store and sending the order at the price agreed with the CSV (depending on the country where it is sent, the price will be one or the other)


texts: Magento 2: Stable way to Get a the Base Directory of a Module

texts:
In Magento 1, the static getModuleDir method of the Mage class

Mage::getModuleDir('', 'Mage_Core')

provided a stable, "works across versions" way of getting the base folder of a Magento module.

Does Magento 2 have something similar?  I found the Magento\Framework\Module\Dir\Reader class that has a getModuleDir method.

#File: vendor/magento/framework/Module/Dir/Reader.php
/**
 * Get module directory by directory type
 *
 * @param string $type
 * @param string $moduleName
 * @return string
 */
public function getModuleDir($type, $moduleName)
{
    if (isset($this->customModuleDirs[$moduleName][$type])) {
        return $this->customModuleDirs[$moduleName][$type];
    }
    return $this->moduleDirs->getDir($moduleName, $type);
}

I could inject this class as a dependency in my own class and call this method. However, this method is not marked with any sort of @api flag, which means it might change unexpectedly.

Is there a safe/stable way for extension developers to determine which folder their module is in (in order to load extra configuration or data files that ship with the module)?  Or do we need to roll the dice the the above class, and/or do directory traversing tricks with __FILE__ and __DIR__?


texts: What is the equilent of Mage::app()->getResponse()->setHeader('HTTP/1.1','503 Service Unavailable') ->sendResponse(); in Magento 2

texts:
What is the equivalent of Magento 1 to Magento 2?

Mage::app()->getResponse()
        ->setHeader('HTTP/1.1','503 Service Unavailable')
        ->sendResponse();


texts: Request does not match any route, when try save order in cron job

texts:
I have a problem when trying to modify an order through a cronjob this code works perfectly, but when executing it inside the cronjob it indicates that error "Request does not match any route"
<?php
    namespace Vendor\Module\Cron;
    use Magento\Sales\Model\Order;
    class cronTest
    {
        public function __construct(
        ) {

        }
        public function execute()
        {
            $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
            $orderId = 8;
            $order = $objectManager->get('\Magento\Sales\Model\Order')->load($orderId);
            $orderState = Order::STATE_PROCESSING;
            $order->setState($orderState)->setStatus(Order::STATE_PROCESSING);
            $order->save();
        }
    }

if I use this same code in an observer for example, it works without any problem
My crontab.xml is
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="default">
        <job instance="Vendor\Module\Cron\cronTest" method="execute" name="testCronJob">
            <schedule>* * * * *</schedule>
        </job>
    </group>
</config>

I have found a temporary solution, create an api and consume it from the cronjob to get the desired behavior


texts:
I need a bundle product that works as follows:

The bundle together is €650,- with Item 1 being €500,- and Item 2 being €150 ( Discounted, because it's bundled. )

Without the bundle, Item 2 would be €200,-.

If I remove Item 1 from my cart, I now have the option to have the Item 2 for cheaper than it should be. This should not happen.

Is there any reliable solution to this? I've been thinking about detecting if it's bundled, and cheaper if bundled(?) and remove that corresponding item from the cart aswell, is there any tips on how I would go about and do that?

I'm currently using Simple Bundle extension, this does what we need but it doesn't allow my question here,  If there is a functioning extension that does what I mentioned, please refer me to that, I can't find one myself so I've been trying to go about it another way.


texts:
I have a need of creating more than 5000 stores in a month.
How many stores can we create in Magento 1.9? Is there any limit?


texts:
We are having a problem whereby two cronjobs are using the adminhtml/session_quote to save order information (both jobs are generating orders, one is related to subscriptions and the other importing CSV orders from another site).

At times, we are finding that order items from one job are appearing in the other. We also have a case whereby items from one instance of the job come up in a subsequent instance of the same job.

We have tried clearing adminhtml/session_quote but the problem has not been eliminated.

Can instances of cronjobs run on different sessions?

Any input would be appreciated!


texts:
I know this has been asked before, but I haven't been able to find a solution. I'm using the latest version of Magento 2 with the Porto theme. Occasionally things will load ok (especially in Firefox), but $fotorama doesn't load consistently, and as a result, images don't look right.
What I've tried:

disabling lazyload for product images
disabling the old media gallery
running the resize command for all images
removing gallery from my attribute sets and only leaving image_gallery
Clearing all caches (server and browser)
reindexing
calling the fotorama library in requirejs-config.js like this

var config = {
    paths: {
        'fotorama/fotorama': 'fotorama/fotorama',
    },
    shim: {
        'fotorama/fotorama': {
            deps: ['jquery']
        },
    }
}


texts: Magento 2: Call a Widget in a .phtml file

texts:
I have a widget:

{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="all_products" products_count="5" template="product/widget/new/content/new_grid.phtml"}}

So it works in the content of the CMS block or CMS page. I want to show it in a .phtml file, how can I do it?


texts: Magento2: How to remove default sort option from category page?

texts:
I want to remove the default sort option from the category page.

I have tried the below code but is not working.

unset($options['position']);
unset($options['name']);
unset($options['price']);

Position sort option is removed but name and price is not removing.


texts: How to modify category tree in Magento admin?

texts: I want to add custom icon/text in category at selected place in screenshot. I don't know which file I need to edit to modify the category tree. Can anyone help me in getting out of this?


texts:
So I have a custom discount applied the following way:

on vendor\module\etc\sales.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Sales:etc/sales.xsd">
    <section name="quote">
        <group name="totals">
            <item name="testdiscount" instance="vendor\module\Model\Quote\Discount" sort_order="500"/>
        </group>
    </section>
</config>

On my vendor\module\Model\Quote\Discount.php

class Discount extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal
{
    public function __construct(
        \Magento\Framework\Event\ManagerInterface $eventManager,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        \Magento\SalesRule\Model\Validator $validator,
        \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
    )
    {
        $this->setCode('testdiscount');
        $this->eventManager  = $eventManager;
        $this->calculator    = $validator;
        $this->storeManager  = $storeManager;
        $this->priceCurrency = $priceCurrency;
    }

    public function collect(
        \Magento\Quote\Model\Quote $quote,
        \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment,
        \Magento\Quote\Model\Quote\Address\Total $total
    )
    {

    parent::collect($quote, $shippingAssignment, $total);

    $totalDiscount = //Get discount here
    if($totalDiscount > 0)
    {
        $total->setDiscountAmount(          - $totalDiscount);
        $total->setBaseDiscountAmount(      - $totalDiscount);
        $total->setSubtotalWithDiscount($total->getSubtotal()         - $totalDiscount);
        $total->setBaseSubtotalWithDiscount($total->getBaseSubtotal() - $totalDiscount);

        $total->addTotalAmount($this->getCode(),     - $totalDiscount);
        $total->addBaseTotalAmount($this->getCode(), - $totalDiscount);

    }

    return $this;

    }
}

My problem is that the taxes are being calculated using the total cart value without the discount applied. Any help on how to make the tax prices being applied to the total price including the discount?


texts: ProductList.phtml split up by one category and sorted by another category

texts:
I am wanting to display products by sub categories on the list.phtml view.  Currenty I have 4-5 categories where I want to be able iterate through them display their category name and then the products underneath them sorted by the 2nd category name.

Shown in the picture below if you were showing all the products on the list.phtml:

If you were on the Caspases you would be showing the category names of Caspases.  I understand that this is just not something I can do easily.  Any Guidance would work because most of the directions I'm finding online are in regards to attributes not categories.


texts:
Mage::log(print_r($filename, true));

is not working in Update.php..
and my homepage cpu100% .... what problem?

2016-02-03T04:11:53+00:00 ERR (3): Warning: simplexml_load_string(): &lt;reference name=&quot;left&quot;&gt;  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
2016-02-03T04:11:53+00:00 ERR (3): Warning: simplexml_load_string(): ^  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
2016-02-03T07:32:04+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Extra content at the end of the document  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
2016-02-03T07:32:04+00:00 ERR (3): Warning: simplexml_load_string(): &lt;reference name=&quot;left&quot;&gt;  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
2016-02-03T07:32:04+00:00 ERR (3): Warning: simplexml_load_string(): ^  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
2016-02-03T10:22:35+00:00 ERR (3): Notice: Undefined variable: filename  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 460
2016-02-03T10:22:35+00:00 DEBUG (7):
2016-02-03T10:22:49+00:00 ERR (3): Notice: Undefined variable: filename  in /var/www/html/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 460


texts: Magento 2.4.1 Exception #0 (ReflectionException): Class media_image does not exist

texts:
I have migrated the website from Magento 2.1.0 version to the Magento 2.4.2 version.
When I open the product edit section then I got the following errors:
Exception #0 (ReflectionException): Class media_image does not exist
For more reference please check the following screenshot:

Can you please help me sort out these issues?
Thanks in advance


texts: catalog search engine is mysql and database engine is mariadb

texts:
I've recently migrated database from EC2 to RDS.

On EC2 Database engine was MySQL version 15 distribution MariaDB version 10.0.37.

On RDS Database engine is MariaDB version 10.1.14.

And magento catalog search on Stores > Configuration > Catalog > Catalog > Catalog Search Search engine is MySQL.

The problem is when I try to import products through CSV I get Asymmetric transaction rollback and during search I found this Answer.

The question is, Should I choose MySQL engine for my RDS?

Update:

I've performed this Answerbut in category class instead of product and get that error

Recoverable Error: Object of class Smile\ElasticsuiteCatalogRule\Model\Rule could not be converted to string in /part2/www/html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228

I cannot understand that error, specially because this module is disabled and deleted


texts: Create configurable product in Magento 2 using REST API

texts: How can create configurable product using REST API?


texts:
We have a long date format in the transitional emails, such as "2015/12/01 00:00..." and I would like to show the date in a short format, like dd/mm/YYYY only. The email variable is:

{{var order.getCreatedAtFormated('long')}}

If I put "short" instead of "long", does it work?


texts: How to join custom table with order grid collection in magento 1

texts:
I’m trying to join a custom table with order_grid_collection to add new column in admin sales order grid page, its working but the collection loads so slow.
how can I join this table correctly to avoid the slow loading Thanks!
  protected function _prepareCollection()
    {
        $collection = Mage::getResourceModel($this->_getCollectionClass());
        $collection->getSelect()->joinLeft('custompayment_nestpay', 'main_table.increment_id = custompayment_nestpay.paymentID', 'card_name');
        $this->setCollection($collection);
        return parent::_prepareCollection();
    }
    protected function _prepareColumns()
    {
         $this->addColumn('card_name', array(
             'header' => Mage::helper('sales')->__('Card Name'),
             'index' => 'card_name'
         ));
….


texts: How to override this block and template in my module?

texts:
I want to override these two files in a module:

Block:

  /magento/vendor/magento/module-sales/Block/Adminhtml/Order/Create/Shipping/Method/Form.php

Template:

  /magento/vendor/magento/module-sales/view/adminhtml/templates/order/create/shipping/method/form.phtml

How can I do that?

Thanks!


texts: How to show credit card details, address and cart items before placing order?

texts: Is there any way to accomplish this at checkout in magento 2?


texts: Multiple Checkout Payment Gateway Redirection Issue

texts:
I am using the payment gateway InnovatePayments which is working fine for single checkout & redirected me to Payment Gateway page after clicking place order button where i entered credit card info but for Checkout with Multiple Addresses (Even with same address but in multiple checkout option) magento is not able to redirected me to gateway page after clicking on place order below message is shown with order number.

  "Thank you for your purchase!

  We are processing your order and you will soon receive an email with
  details of the order. Once the order has shipped you will receive
  another email with a link to track its progress."

Thanks


texts: Magento 1.9 : Add custom css file to head

texts:
I need to add a custom CSS file to Magento that then is used site-wide. I know you have to add this to a local.xml file, however, the stylesheet I add is just not loaded.

Anyone that can help?

Here is what I've added to my local.xml file:

<?xml version="1.0">
<layout>
    <default>
        <reference name="head">
            <action method="addCss”><type>skin_css</type><file>css/javcustom.css</file></action>
        </reference>
    </default>
</layout>

I know there are a lot of topics on this here, but I've tried all of them and I just can't get it to work...


texts: How to add a product to the cart using a URL or query string?

texts:
I'm using Magento Enterprise 1.13; there appears to be some documentation around for adding a product using the URL & query string but those do not appear to be working for me.

For example:

Add Configurable Product To Cart Via Query String In 1.7

Is there a different or documented methodology for doing this now?

Thank you


texts:
I have tried this
Magento2/vendor/magento/module-quote-graph-ql/etc/schema.graphqls
type Mutation {
placeOrder(input: PlaceOrderInput): PlaceOrderOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\PlaceOrder")
}

input PlaceOrderInput {
    cart_id: String!
    anonymousId: String
}

Request:
mutation {
  placeOrder(
    input: {
      cart_id: "6tGj0vqL9VZ5FhyIySaHSIUaqmEFbyHm",
      anonymousId: "6tGj0vqL9VZ5FhyIySaHSIUaqmEFbyHm"
    }
  ) {
    order {
      order_number
    }
  }
}

But its not working with error Unknown argument "anonymousId" on field "placeOrder" of type "Mutation


texts: Configurable swatch image changes back to default image after selecting attribute

texts:
I am experiencing some problems with my configurable swatches. I have set up a configurable product with 2 different attributes(color & size) with 1 configurable swatch being the color.

EXAMPLE

The base image is a red shirt. When I select a blue shirt it changes the image from red to blue as it is supposed to, but when I select a different size it changes back to the base image..

I've found a way to resolve this by adding a picture for every simple Item, but I have over 200 simple items and I would like to know if there is a faster way to fix this.


texts: CSV Export missing the custom column field added by renderer magento

texts:
Because my grid has a problem when join table, so I used renderer to show data like this

'brand' => array(
            'header' => Mage::helper('advr')->__('Brand'),
            'column_css_class' => 'nobr',
            'renderer' => 'Mirasvit_Advr_Block_Adminhtml_Renderer_Brand',
        ),

Renderer/Brand.php

<?php
class Vendor_Module_Block_Adminhtml_Renderer_Brand extends
Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
public function render(Varien_Object $row)
{

    $order = Mage::getModel('sales/order')->loadByIncrementId($row->getIncrementId());
    $items = $order->getAllVisibleItems();
    $brand = array();
    foreach ($items as $i){
        $productId = $i->getProductId();
        $product = Mage::getModel('catalog/product')->load($productId);
        $brand[] = $product->getAttributeText('brand');
    }
    return implode(',', $brand);
}

public function renderExport(Varien_Object $row) {
    return $this->render($row);
}
}
?>

but it can not get this column in csv file. Anyone know how to fix it? Help me please, thanks


texts: Unable to delete the update product from minicart through ajax

texts:
I am unable to delete the updated product from the mini cart.
this is the code:
path : app/code/core/Mage/Checkout/controllers/CartController.php

public function ajaxUpdateAction()
    {
        if (!$this->_validateFormKey()) {
            Mage::throwException('Invalid form key');
        }
        $id = (int)$this->getRequest()->getParam('id');
        $qty = $this->getRequest()->getParam('qty');
        $result = array();
        if ($id) {
            try {
                $cart = $this->_getCart();
                if (isset($qty)) {
                    $filter = new Zend_Filter_LocalizedToNormalized(
                        array('locale' => Mage::app()->getLocale()->getLocaleCode())
                    );
                    $qty = $filter->filter($qty);
                }

                $quoteItem = $cart->getQuote()->getItemById($id);
                if (!$quoteItem) {
                    Mage::throwException($this->__('Quote item is not found.'));
                }
                if ($qty == 0) {
                    $cart->removeItem($id);
                } else {
                    $quoteItem->setQty($qty)->save();
                }
                $this->_getCart()->save();

                $this->loadLayout();
                $result['content'] = $this->getLayout()->getBlock('minicart_content')->toHtml();

                $result['qty'] = $this->_getCart()->getSummaryQty();

                if (!$quoteItem->getHasError()) {
                    $result['message'] = $this->__('Item was updated successfully.');
                } else {
                    $result['notice'] = $quoteItem->getMessage();
                }
                $result['success'] = 1;
            } catch (Exception $e) {
                $result['success'] = 0;
                $result['error'] = $this->__('Can not save item.');
            }
        }

        $this->getResponse()->setHeader('Content-type', 'application/json');
        $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
    }
}

Getting below error:

There has been an error processing your request
Invalid form key

Trace:
#0 app/code/core/Mage/Checkout/controllers/CartController.php(636): Mage::throwException('Invalid form ke...')
#1 app/code/local/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->ajaxUpdateAction()
#2 app/code/local/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('ajaxUpdate')
#3 app/code/local/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#4 app/code/local/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#5 app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 index.php(86): Mage::run('', 'store')
#7 {main}

What I am getting in the URL:
  http://example.com/checkout/cart/ajaxUpdate/id/11487/uenc/aHR0cDovL3dlYmRlbW8ubGV0c2NoYmFuZy5jby5pbi9yYXdwcmVzc2VyeS9hamF4Y2FydC9pbmRleC9hZGQvdWVuYy9hSFIwY0RvdkwzZGxZbVJsYlc4dWJHVjBjMk5vWW1GdVp5NWpieTVwYmk5eVlYZHdjbVZ6YzJWeWVTOWlkVzVrYkdWekxtaDBiV3csL3Byb2R1Y3QvODAvZm9ybV9rZXkvdkJkTUJtN3FBaHRsWDl3NS8,/

Can I know what was the problem


texts: Customer Login, Registration, Forgot password on single page

texts:
By using this link  , I have displayed customer login, registration and forgot password on a single page i.e. on login page (/index.php/customer/account/login/)

But now, for login and registration fields, validations are not working. When I click on Login or Registration button with improper input, page reloads and then error messages are displaying.


texts: Magento 2 : Currency Symbol missing when exporting Saler Order Grid

texts:
I am exporting Magento 2.1.9 Saler Order Grid to CSV and XML formats using the provided buttons. But when I open the file in Excel the currency symbol is missing in Grand Total (Base) and Grand Total (Purchased) columns.

I need the currency symbols in all price colums when exporting.


texts: Magento errors not writing errors to var/report after migration

texts:
My last error was on : Sep  5 11:31 947043863198

I just noticed it and have no clue why it's not working. I checked the admin panel in system > configuration > developer and made sure the log settings were set to "enabled" YES

system log file name = system.log

exceptions log file name = exception.log

Why can't i see my errors in the var/report?

permissions on that report folder:
rwxrwx---+  2 user user 4096 Sep  5 11:35 report


texts:
I have tried to save the category and getting below error in Magento2 admin.

  Error: URL key for specified store already exists

Please help me to fix this issue.


texts: ReCaptcha problem after migrating 1.9.4.0 > 2.3.3

texts:
We've been trying to migrate our current M1.9.4.0 to M2.3.3 but we ran into an exception we can't seem to solve/ get rid of. This occurs wherever we go on the website; we cannot access the storefront or admin. The errors says:

Exception #0 (ReflectionException): Class Magento\Captcha\Model\Recaptcha does not exist

The full message: https://pastebin.com/nGqMtnKJ

We tried all the solutions we could find and already posted on the official Magento forum but so far the suggested solutions did not have any effect. For reference: https://community.magento.com/t5/Magento-2-x-Programming/Migration-M1-to-M2-but-ReflectionException-Class-Magento-Captcha/td-p/325657

Anyone got an idea what might cause this? Thank you!


texts: How to save customer's custom field(eg. "is-subscriber") value in customer table from checkout?

texts:
I have created a custom customer attribute in Magento ver. 1.9.1.0.

Now during checkout I want to update it's value depending on type of product added in checkout.

Please anybody guide me about, how can I achieve this.

This is only for already registered customers(also logged in at that time) or users who choose to create account during checkout, not for guests ofcourse.


texts: Including additional CC fields in Order Confirmation emails

texts:
Google hasn't been able to solve this one for me and I'm surprised it hasn't been brought up in Magento forums...

I would like to include the credit card type and last 4 of credit card as stored in Magento's Payment Information area for each order. Trying to alleviate confusion for our end-users and make the emails more informative. How would I begin to include these two fields? Thank you.


texts: How to change the position of the block in magento2.2.2

texts:
I just installed a buy-now plugin, But it affects the display of other features.

How should I change it so that the buynow-button is displayed on top of product-addto-links.Please help me!!!!
I don't know much about magento.

  app/code/Prince/Buynow/view/frontend/layout/catalog_product_view.xml

    <?xml version="1.0"?>
    <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
    <css src="Prince_Buynow::css/buynow.css"/>
</head>
<body>
    <referenceBlock name="product.info.addtocart">
        <block class="Magento\Catalog\Block\Product\View"
               name="product.buynow"
               template="Prince_Buynow::buynow-view.phtml"
               before="-" ifconfig="buynow/general/enable_view"/>
    </referenceBlock>
    <referenceBlock name="product.info.addtocart.additional">
        <block class="Magento\Catalog\Block\Product\View"
               name="product.buynow.config"
               template="Prince_Buynow::buynow-view.phtml"
               before="-" ifconfig="buynow/general/enable_view"/>
    </referenceBlock>
    <referenceBlock name="related.product.addto">
        <block class="Prince\Buynow\Block\Product\ListProduct"
               ifconfig="buynow/general/enable_related"
               name="product.buynow.related"
               before="-" template="Prince_Buynow::buynow-list.phtml"/>
    </referenceBlock>
</body>


texts: How to display recently viewed products in Porto Theme?

texts:
i want to display recently viewed products in porto theme
i have created one widget for recently viewed products but it is not reflecting in home page.


texts: layout.xml : change item renderer in checkout_onepage_review

texts:
I would like to change the item listing presentation in the checkout page.

I then made a custom checkout/onepage/review/item.phtml file and in my module layout file I defined it based on the original magento declaration:

<checkout_onepage_review translate="label">
    One Page Checkout Overview

    <remove name="right"/>
    <remove name="left"/>

    <block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
        <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
        <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
        <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
        <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
        <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
            Items Before
        </block>
        <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
            Items After
        </block>
        <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
        <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
    </block>
    <block type="core/text_list" name="additional.product.info" translate="label">
        Additional Product Info
    </block>
</checkout_onepage_review>

It works, but is it mandatory to re-define all that ?

I have tried :

<checkout_onepage_review>
        <reference name="root">
            <action method="setTemplate"><value>checkout/onepage/review/info.phtml</value></action>
            <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
            <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>quotemodule/checkout/onepage/review/item.phtml</template></action>
        </reference>
    </checkout_onepage_review>

But that does not work..?

Thank you for your help


texts: Colors aren't showing in the "Shop By Color" area

texts:
I'm using color swatches for version 1.9.1

I got everything working up until the point that it changes the color of the product by clicking one of the images, so that's fine. However, when I go to say a category, let's say "Decorations" and I notice that some of the colors aren't present.

By this I mean that on the Left Hand Side under Colors some of them will actually be a picture of the color and others will be the name e.g. "Green" instead of the green swatches image.

I added all images under the main product (not the configurable)


texts: How to change order status after payment

texts:
I need to change order status to custom status if payment fails.

I tried to get order via $payment->getOrder(), and tried to set state and status. I called save() also. However It looks like not working. It is always saving order with 'processing' status. However, It saves comments when I run following functions using same method; addStatusToHistory, addStatusHistoryComment. Any idea how can I implement this?

class Payment extends \Magento\Payment\Model\Method\Cc {
...
fn(){
$payment->getOrder()->setState( 'holded' )->setStatus( 'custom_new_status' )->save();

Thank you.


texts:
We only charge sales tax to states where we have a physical store.  Some states in the US require us to charge tax on shipping (a service, not a product) and some do not.

How can I specify which states Magento should charge tax for shipping to, and which not to charge shipping tax to?

I haven't been able to find an extension that does this, and all my searching results in Magento Go knowledgebase articles.

Does anyone else have a way to do this, or do you just charge tax on all or none of the shipping, regardless of state/region?


texts: How can I override a Collection.php file from a 3rd party plugin?

texts:
I have 2 plugins that are clashing with each other. I figured out a fix, and I have to change a collection.php file, and I don't want it to get overwritten in a future plugin update. How can I get this done?
Thanks


texts: Unable to apply data patch: elasticsearch6

texts:
Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch. Original exception message: Indexer handler is not available: elasticsearch6

What is the best way to get either around this or fix this?

Note: I cannot get into my admin, I cannot run the setup: upgrade command as the message above halts the upgrade process. I have access to the config files and the database.

Version: Magento EE 2.3.3


texts: How to hide  in Magento REST API xml response?

texts:
Magento CE-1.9.2.4

I am trying to use the REST API and when accessing (for example) http://my-domain.com/api/rest/customers the response is the following:

<?xml version="1.0"?>
<magento_api>
  <messages>
    <error>
      <data_item>
        403
        <message>Access denied</message>
        <trace>#0 /var/www/html/my-domain.com/app/code/core/Mage/Api2/Model/Server.php(106): Mage_Api2_Model_Server-&gt;_allow(Object(Mage_Api2_Model_Request), Object(Mage_Api2_Model_Auth_User_Guest))
#1 /var/www/html/my-domain.com/api.php(73): Mage_Api2_Model_Server-&gt;run()
#2 {main}</trace>
      </data_item>
    </error>
  </messages>
</magento_api>

which is good, I mean the message is Access denied.

Is there a way not to print (hide) the <trace> tag?


texts:
I'm having issues getting a layout update to be picked up for a custom page in the admin.  I did a handle dump on the page, and found the handle I expected:

adminhtml_salestracking_scripts_edit

I also have the following in my config.xml, to define the layout file:

<adminhtml>
    <layout>
        <updates>
            <salestracking>
                <file>company/salestracking.xml</file>
            </salestracking>
        </updates>
    </layout>
</adminhtml>

Then in app/design/adminhtml/default/default/layout/company/salestracking.xml:

<layout>
    <adminhtml_salestracking_scripts_edit>
        <reference name="head">
            <action method="addItem"><type>skin_js</type><name>company/js/base64.js</name></action>
        </reference>
    </adminhtml_salestracking_scripts_edit>
</layout>

The file exists in skin/adminhtml/default/default/company/js/base64.js.

I've done similar things in other modules before (and compared to find the same structure), but for some reason my admin page seems to just refuse to pick up the addition.  It's also not trying to include a 404'd file or anything like that - there's simply no head line for it.  Is there anything I'm missing?


texts: Magento 2.2.2 return only 3 items from wishlist

texts:
When inspecting the bellow

  console.log(JSON.parse(localStorage.getItem('mage-cache-storage')).wishlist);

I get the count of 7 but items only returns 3 :

How Can one get all items ? in my case 7 ? Appreciate any help.


texts: How to add simple account|login links where login changes to logout when signed in?

texts:
I deleted the default RWD account icon with dropdown as I didn't want it.

Instead I want two simple links in my header: one which says account that simply takes you to the account page, then one that says login which changes to log out when the customer is logged in.

For a better idea of what I am looking to do see the attached image.

Any ideas how I can do this?


texts: Magento 2 checkout stuck on loading after filling billing information

texts:
Uncaught Error: Unable to process binding "foreach: function(){return $parent.elems() }"
Message: Unable to process binding "template: function(){return getTemplate() }"
Message: Unable to process binding "if: function(){return (JSON.parse($parent.options).length > 0) }"
Message: Unable to process binding "mageInit: function(){return {'collapsible':{'openedState':'active'}} }"


texts:
So when u go to My Account -> My Orders  and click on view order and then click Print Order then u see a PDF of the order that u just placed. Mine looks all messy :

So I want to edit this.
Does someone know how to? It's not in the email templates section as far as I can see.

Thanks!


texts: how can I hide sub sub headings from main menu?

texts:
I am using ultimo theme. I have a main menu that has a main heading, with sub sub headings. I added the sub sub headings in the category tab of the admin panel.

Basically...

Apparel (heading)
Womens Clothing (sub heading)
t shirts (sub sub heading)
pants (sub sub heading)
skirts (sub sub heading)
etc....

I would like to hide the sub sub headings (tshirts, pants, skirts) from main menu so that it is not too clustered when a customer is hovering over headings. I Don't want to de-activate those headings because I need them inorder for the sidebar navigation to display them under the womens clothing page. Is there a way for me to just hide them from the main menu?


texts: Set at custom tax class for a quote item

texts:
I'm developing av B2B shop, where prices/discounts are fetched from an API when adding to basket. This is done by overriding Mage_Sales_Model_Quote_Item::calcRowTotal.

Now, based on a variable returned from the API, a quote item price may or may not include tax (25%).

Is there any way to apply a tax on a quote item when adding to basket, even when the product itself does not have a tax class in Magento?

I hope this was properly explained. Many thanks!


texts: How to check admin user logged on front side in Magento 2?

texts:
Like title, I want check admin user logged in front end.

In a browser, if admin user logged then customer can't login.

All help would be much appreciated. Thanks in advance.


texts:
I have a Romanian translation witch is incomplete. How can i finish it? How to edit that lang file? I tried to open that cvs file but i'm clueless. It is what i have to do or there's other steps in order to finish the translation?

Thanks


texts:
I am integrating a local payment gateway and the payment gateway is providing 60+ error codes with description.

So I would like to save default error codes in a table and get the description based on the error code received.

My installer script as below,

<?php
$installer = $this;
$installer->startSetup();
$installer->run("DROP TABLE IF EXISTS {$installer->getTable('ucs_i2c_errors')};
CREATE TABLE {$installer->getTable('ucs_i2c_errors')} (
  `id` int(11) unsigned NOT NULL auto_increment,
  `middleware_code` int(11) NOT NULL,
  `i2c_code` int(11) NOT NULL,
  `response_description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
");
$installer->endSetup();

And my config.xml as below

<global>
    <resources>
        <i2c>
            <setup>
                <module>Ucs_Mtom</module>
                <class>Mage_Sales_Model_Mysql4_Setup</class>
            </setup>
            <connection>
                <use>core_setup</use>
            </connection>
        </i2c>
    </resources>
    <models>
        <mtom>
            <class>Ucs_Mtom_Model</class>
        </mtom>
    </models>
</global>

I have to insert those 60+ data into my table.

How can I add those records in my installer script?


texts: Error during configurable product save in Magento 2 | Notice: Undefined variable: product in /module-catalog/Controller/Adminhtml/Product/Save.php

texts:
I am unable to save a configurable product. This is the error I am getting:

  Notice: Undefined variable: product in
  /domains/devportal.flavourwarehouse.co.uk/http/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php
  on line 156

Saving simple products seems to work as expected.

Working on Magento ver. 2.2.6 with products migrated from Magento ver. 1.9.

If you need more information, please let me know.

UPDATE:

In the exception logs, I got:

  [2019-01-29 11:28:18] main.CRITICAL: Warning: array_filter() expects
  parameter 1 to be array, string given in
  /domains/mydomain.com/http/vendor/magento/module-configurable-product/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php
  on line 145 {"exception":"[object] (Exception(code: 0): Warning:
  array_filter() expects parameter 1 to be array, string given in
  /domains/mydomain.com/http/vendor/magento/module-configurable-product/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php
  on line 145 at
  /domains/mydomain.com/http/vendor/magento/framework/App/ErrorHandler.php:61)"}
  []


texts: Magento Blocks HTML output keeps invalidating - any downside to disabling?

texts:
My Blocks HTML output Cache keeps invalidating almost as quickly as I am refreshing it.

I have come across 3rd party modules that allow you to refresh this with a regular cron job, but I don't want to add unnecessary modules to my installation.

Is there any negative effect of disabling this particular cache?


texts: Migration from Magento 1.x EE to Magento 2.1.x CE

texts:
I have a project on Magento 1.14.3.1 EE and meed to migrate it to Magento 2.1.5 CE to test out the performance improvement the Magento 2.1.x version has to offer.

I was hoping to use the Magento's Data Migration Tool

Currently I see there are only 3 migration flows available:

Magento 1.x CE - Magento 2.x CE
Magento 1.x EE - Magento 2.x EE
Magento 1.x CE - Magento 2.x EE

I was wondering if Magento 1.x EE - Magento 2.x CE is possible with this tool. If yes, is there any configuration we need adjust for this to work


texts: Observer to only display products if price greater than 0

texts:
im trying to create an observer to only show products if the price is greater than 0, this is my code, I'm using it for this event "catalog_block_product_list_collection"

<?php

namespace Vendor\Module\Observer;

use Magento\Framework\Event\ObserverInterface;

class HideProductsNoPrice implements ObserverInterface
    {
        public function execute(\Magento\Framework\Event\Observer $observer)
        {
            $collection = $observer->getData('collection');
            $collection->addAttributeToFilter('price',['gt'=>0]);
            return $this;
        }
    }

In my events.xml I have the following

<?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="catalog_block_product_list_collection">
        <observer name="hide_products_no_price" instance="Vendor\Module\Observer\HideProductsNoPrice" />
    </event>
</config>

Yet when I list the products I still see all of them, even if their price is 0.00. Am I missing something else? or am I using the wrong event to list the products? Any help would be really appreciated.


texts:
buddy:
I want to know how to modify the code that can show product's image when i search products?
Like this!

Thank you very for your help!


texts: Magento 2 Custom error Landing pages (500, 401 and etc)

texts:
I have a question on how to display those error pages except for 404 error page. because it can be created using cms page. I wonder why on how to create error pages like 500 and etc. I hope someone can help me. Correct me if I'm wrong.

Thanks


texts: how- to pass dynamic variable-between blocks in magento

texts:
how- to pass dynamic variable-from a parent block to childchild block.
Is there a method like this?    getChildChild(), so that I can setData .

$this->getChildChild('container2')->setData('pro_id',$var);
echo $this->getChildChildHtml('container2', '', false, true) ;


texts: I can't find any help how to make menu like mobile also for desktop. How I can change breakpoint or something to have one menu style.


texts: Renameing categories didn't change URL Key and old names of categories still the same in product-catalog page

texts:
I renamed the categories name in admin panel.

It is successfully changed after fixing a bug related to URL rewrites, then I faced another problem that URL Keys of each category map to the old category name.

Also when I open Products catalog page (/product-catalog.html) in front-end the old name of categories didn't change.


texts: Magento 2 : How to set Price in bundle Products

texts:
I'm having this issue when i am making an order programatically and i am setting them to 0 the price, this  can be made with simple, virtual and even configurable products with this code:

$cartItem = $cart->addProduct($product, $objParam);
$cartItem->setCustomPrice(0.0);
$cartItem->setOriginalCustomPrice(0.0);
$cartItem->getProduct()->setIsSuperMode(true);
$cartItem->save();

The issue is that from here i can't  have with bundles the subtotals with 0:

As i was saying... the subtotal sets normally with 0 with simples, virtuals and configurables, but with Bundles is not happening :(
But when I do that with Bundle Products is not setting to 0... Does anyone can help me with this issue please ? I'll appreciated it

Thanks,


texts:
A store uses Fishpig Wordpress module for blog functionality in Magento. I want to redirect one post url to another one. How can I achieve using standard Magento url redirection rule on admin->Catalog->Url Redirections.

request url: /blog/some-category/post-slug
target url: /blog/another-category/post-slug


texts: Full page cache causes checkout POST request to fail, only when logged in!

texts:
I'm using Magento Enterprise v1.14.2 with SagePaySuite and Idev Onestepcheckout, on multiple servers via a load balancer, shared Redis instances for cache storage.

I'm seeing a very strange issue where the main checkout "place order" POST request is not receiving a response from the server.

In Firefox, the POST request is marked as "Aborted".
    In Chrome, the request is "Failed" with a Chrome-specific error of "net::ERR_CONNECTION_RESET".

The maddening thing is, I've combed the code, and if I log (or echo) the response data just before it's sent to the browser, I can see the data fine. The controller code is not the problem... the response is being generated properly - it's just not being sent!

Here's a brief walkthrough of the code:

The checkout page makes an AJAX POST request to the URL: https://www.example.com/uk/sgps/payment/onepageSaveOrder/?SID=[some_unique_session_id]
The Magento PHP controller function (onepageSaveOrderAction) then internally forwards the request to the appropriate payment controller (using Mage_Core_Controller_Front_Action::_forward()).
That controller (Ebizmarts_SagePaySuite_DirectPaymentController) finally processes the order and prepares a response using the standard Zend framework response construct:

// Logging Zend_Json::encode($resultData) is as expected, well formed
// but the following line simply does not send the response:
return $this->getResponse()->setBody(Zend_Json::encode($resultData));

Just before this point, if I write the response to a log file, I'm able to see it is well-formed and as expected ("SUCCESS") so the content/code execution is not a problem.

• I have tried increasing the AJAX timeout, which does not help.
• There are no exceptions thrown or errors in the Magento or httpd logs.
• The issue does not happen when the Enterprise Full Page Cache is turned off.
• Only other similar issue I could find was this.

Any ideas?

(P.S. I've tried writing to the various parties support teams, without success.)


texts: Get produсt by category ids passed as query parameter

texts:
I want to use the URL http://mydomain.test/category-name.html?cat=9,10,40
I need to get all products from category "category-name" and categories with ids 9, 10 and 40.

How can I do this. Maybe there is such an extension?


texts: Magento 2.3.1, where's tinymce setup.js?

texts:
In magento 2.3.1, installed on aws lightsail using bitnami. I'm trying to disable tinymce from inserting <p> tags, and the solution that many agree with is

https://stackoverflow.com/a/26396255/1920003

forced_root_block : '', /* <-- Add this setting */

to

js/mage/adminhtml/wysiwyg/tiny_mce/setup.js

But there are many setup.js files and none look like the standard setup.js file. I really want to apply this solution because

I can't upgrade to newer version off magento, I have 50 extensions that will break
I can't disable the wysiwyg, there are none technical users editing the site
I believe this will work, when I used to create my own hand written CMSes, I used to face a similar problem and fix it like that.


texts:
As i browse through categories and subcategories

i can see the full breadcrumb. [Home > Electronics > Smartphone]

But as i enter the product listing page (After i selected apple)

i can't see that full breadcrumb. It only shows parent categories. [Home > Electronics]

Problem : how to get full categories and subcategories breadcrumb in my case [Home > Electronics > Smartphone > Apple]


texts:
I'm working on magneto 2.3 EE.

Hi have integrated afterpay payment method using plugin

Previously I have afterpay version 3.0.0. But it returns some afterpay refund issue. So I have upgraded the afterpay module with a 3.0.6 version.

Now the afterpay payment keeps loading.
I have checked the log file it throws the below request and response.

Request

{
   "type":"Request",
   "method":"POST",
   "url":"https:\/\/test.com\/",
   "body":{
      "paymentType":"PAY_BY_INSTALLMENT",
      "consumer":{
         "email":"************",
         "givenNames":"****",
         "surname":"****",
         "mobile":"**********"
      },
      "merchantReference":"merchant-data",
      "merchant":{
         "redirectConfirmUrl":"https:\/\/test.com\/afterpay\/payment\/response",
         "redirectCancelUrl":"https:\/\/test.com.\/afterpay\/payment\/response"
      },
      "items":[
         {
            "name":"Test",
            "sku":"test",
            "quantity":1,
            "price":{
               "amount":99.95,
               "currency":"AUD"
            }
         }
      ],
      "taxAmount":{
         "amount":0,
         "currency":"AUD"
      },
      "shipping":{
         "name":"*********",
         "line1":"***************",
         "line2":"",
         "suburb":"**************",
         "postcode":"****",
         "state":"**********",
         "countryCode":"**",
         "phoneNumber":"**********"
      },
      "billing":{
         "name":"*********",
         "line1":"***************",
         "line2":"",
         "suburb":"**************",
         "postcode":"****",
         "state":"**********",
         "countryCode":"**",
         "phoneNumber":"**********"
      },
      "totalAmount":{
         "amount":104.9,
         "currency":"AUD"
      }
   }
}

Response

{
   "type":"Response",
   "method":"POST",
   "url":"https:\/\/test.com\/",
   "httpStatusCode":201,
   "body":{
      "token":"7ud3d39bhq3dskquqakuldssssssssssssssssssssssssssssssssssssdsdsdsd",
      "expires":"2019-12-04T03:21:18.547Z"
   }
}

And I have refereed the afterpay docs. The create order throws this response. But I'm not sure why it's loading so far.

Anybody, please help me to solve the problem.

Note: I have modified my token, site URL and some confidential data.


texts:
I created a custom grid list to show more information about orders but I am failing to limit access to it. My adminhtml.xml is like this:

<?xml version="1.0"?>

<config>
    <menu>
        <sales>
            <children>
                <comprandoforareports translate="title">
                    <title>Venda Detalhada</title>
                    <sort_order>100</sort_order>
                    <action>adminhtml/order/</action>
                </comprandoforareports>
            </children>
        </sales>
    </menu>
    <acl>
        <resources>
            <admin>
                <children>
                    <sales>
                        <children>
                            <comprandoforareports translate="title">
                                <title>Venda Detalhada</title>
                                <sort_order>100</sort_order>
                            </comprandoforareports>
                        </children>
                    </sales>
                </children>
            </admin>
        </resources>
    </acl>
</config>

I tried to put <acl> ... </acl> tag on config.xml inside of <adminhtml>..</adminhtml> too.

The option to enable this menu appears when I try to edit a role, but even disable this appears for everyone.


texts: Magento 2 admin and customer login not working after clean installation

texts:
After a clean Magento 2 installation it does not allow me to login to the admin area nor sign into the shop as a customer.
When im trying to login to the admin panel it doesn't show any errors, but it look like it just reloads the login page. Either no error is shown when I fill in the wrong credentials.

I'm running:

CentOS 6
Apache/2.4.18
PHP 5.6.22
PHP handler: Suphp
SuExec: Off

These are the cookies that are written after I tried to login:

By the way, im not running on localhost but a fqdn. I tried this already: https://magento.stackexchange.com/a/64808/594 but no luck.

Anybody has a clue?


texts: Magento Upgrade to 2.1.3 Module Disable Error

texts:
After upgrading to Magento CE 2.1.3 (from 2.1.2) I am unable to disable a module through CLI. Issuing command

php bin/magento module:disable Module_Name

results in error:

 [Zend_Json_Exception]
Decoding failed: Syntax error

any ideas?

  Exception trace:
   () at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/zendframework1/library/Zend/Json.php:97
   Zend_Json::decode() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/PackageInfo.php:85
   Magento\Framework\Module\PackageInfo->load() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/PackageInfo.php:208
   Magento\Framework\Module\PackageInfo->getRequire() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/DependencyChecker.php:132
   Magento\Framework\Module\DependencyChecker->createGraph() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/DependencyChecker.php:95
   Magento\Framework\Module\DependencyChecker->checkDependencyGraph() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/DependencyChecker.php:67
   Magento\Framework\Module\DependencyChecker->checkDependenciesWhenDisableModules() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Module/Status.php:107
   Magento\Framework\Module\Status->checkConstraints() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php:92
   Magento\Setup\Console\Command\AbstractModuleManageCommand->execute() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
   Symfony\Component\Console\Command\Command->run() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/symfony/console/Symfony/Component/Console/Application.php:874
   Symfony\Component\Console\Application->doRunCommand() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/symfony/console/Symfony/Component/Console/Application.php:195
   Symfony\Component\Console\Application->doRun() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/magento/framework/Console/Cli.php:96
   Magento\Framework\Console\Cli->doRun() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/vendor/symfony/console/Symfony/Component/Console/Application.php:126
   Symfony\Component\Console\Application->run() at /var/www/vhosts/mydomain.co.uk/cfw.mydomain.co.uk/bin/magento:23


texts: onepage checkout Wrong field specified error message, unable to make any changes

texts:
When attempting to change any settings in the one page checkout module in the back-end,
I get this error

saying wrong field specified
can anybody help please?


texts: transform the header links block to a drop-down in magento2

texts:
I'm learning magento 2 from the link. In this article i'm unable to identify layout and template files even after reading locate template.
Please help me on how to identify layout and template in the example given by magento link


texts: Layered navigation column count higher than products shown (duplicate brand)

texts:
Hi we have layered navigation and want to filter on manufacturer. There are 40 products. 36 shirts and 4 t-shirts. This 40 is shown correctly in the main area.

but! the filter in left column shows

brand A (36)
brand C (8)
brand B (4)

Question: Brand A and B are correct ... but what is brand C doing there.

Also when clicking brand C I see 8 products that belong to brand A. And I have checked on product level under websites + Brand/manufacturer field that is correctly set to brand A

Reindexed all. And cleared cache.

Can this be a duplicate entry in database? (where is the layered column getting the count from - in relation to the main product area)

Many thanks, Sean


texts: what would be the official date of Magento 1 sunset?

texts:
Now we are in progress of Magento 2 upgrade. Some sources I read that early 2018 Magento 1 support will be closed.
If we get the Magento 1 official close date, we can decide our due date of upgrade.

Anybody having idea over here?


texts:
I'm new in Magento, and if someone can bring me some light is there a way to overwrite the calculation method when discount is applyed?

Mage version 1.9.4.

The problem is for eaxmple how mage is calculating the product price excl. VAT, and apply VAT after discount

//We have this rounding in Mage.
function roundPrice($price){
    return round($price, 2);
}

$productPrice = 61.67;
$qty = 2;
$discount = 25; //25%

$subTotal = roundPrice($productPrice * $qty);

$discount = roundPrice($productPrice - ($productPrice / 100) * $discount);

var_dump($subTotal - 30.84 (Fixed discount amount)); // Result float(92.5)

var_dump($discount); // Result float(92.51) I need to get this one cent instead of mage default calculation from convert percent into fixed


texts:
I'm trying to add containers/blocks to a newly created page layout. However, they do not show up in the DOM at all:

vendor/my/module/view/frontend/layouts.xml:

<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
    <layout id="new-layout">
        <label translate="true">New layout</label>
    </layout>
</page_layouts>

I can select this layout. That works.

vendor/my/module/view/frontend/page_layout/new-layout.xml:

  <?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <update handle="1column"/>
    <referenceContainer name="page.wrapper">
        <container name="cake" label="CAKE" htmlTag="div" htmlClass="cake" before="-"/>
    </referenceContainer>
</layout>

That container doesn't show up. So I try adding a block..

vendor/my/module/view/frontend/layout/default.xml:

<?xml version="1.0"?>
<page layout="new-layout" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="cake">
            <block class="Magento\Theme\Block\Html\Breadcrumbs" name="breadcrumbs" as="breadcrumbs" template="Magento_Theme::html/breadcrumbs.phtml"/>
        </referenceContainer>
    </body>
</page>

Nothing of all this shows up in the DOM..

Edit:

The problem was that the breadcrumb referenceBlock was set to remove="true" for all CMS pages. However, for this new layout I want to undo this with remove="false". This doesn't seem to work. I also tried re-adding the block:

<block class="Magento\Theme\Block\Html\Breadcrumbs" name="test.breadcrumbs"/>

But this doesn't work. It loads the template but there are no $crumbs found so they aren't loaded. If I remove the 'remove="true"' the breadcrumbs DO show.. I want it just to show for this layout. Why don't my 2 suggested solutions work?


texts:
Following error occurred while performing data migration from 1.9.2.4 to 2.3.1. Please, assist.

  Document has ambiguous configuration: sales_flat_quote_address


texts: Magento 2 Braintree Paypal is not working when we click on the PayPal radio button then it shows popup after entering details like email and password we can see our details on PayPal popup window when we click on continue then popup close and show checkout page(please refer to screenshot) with email instead of going to the success page.


texts: How to add layered Navigation filter as stock availability?

texts:
I want to add "Stock availability" as layered navigation filter. but i cant find this attribute in attribute set.

Here Display two option under stock availability if i am select out of stock so display only out of stock product and same as in stock product.


texts: Production Mode Slower than Developer mode? How can this be?

texts:
EDIT:

Developer Mode: Waiting TTFB => 121ms
Production Mode: Waiting TTFB => 224ms

(It's the first html that loads, the page) It's that delay I feel when browsing.

While using Magento 2.2.1, page load is 200ms slower in production mode than developer mode.

In developer mode, the website feels also faster, which is weard.

Using Chrome DevTools Dom Content Load is 624ms on dev vs it is 830ms on prod. In addition, the total loading time is 1.44sec on dev and 1.6-1.7sec on prod.

Any idea why this happens?

I have enabled minification of CSS and javascript.

PS: I also feel a difference when using in developer mode. It's not just the 200ms. It just feels instant. "With production mode" I feel "a delay after the mouse click on links. (like this ms delay).

I'm confused, normally the production mode should be faster.

Maybe I need to adjust some settings on the server?


texts: Setting up a website Landing Page with multiple stores

texts:
I need to setup a Magento website landing page that contains two stores. The landing page should use the same footer and header as the child stores. The website landing page essentially directs the user to the two child stores.

Our basic structure:

URL to landing page: www.website.com

URL to store 1 page: www.website.com/store1

URL to store 2 page: www.website.com/store2

Each store has its own store home landing page, so there needs to be something before that that is a general landing page for both stores.

I need the www.website.com landing page to be able to use the same (or similar) footer and header, be able to pull up the store names, and use things like static blocks.

Can anyone point me into the right direction?


texts: Add to cart with quantity in category list

texts:
I want to add add to cart to product category list.

What I have right now is:
1. I registered the addtocart in xml file catalog.xml

<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
        <block type="catalog/product_list" name="product_list.addtocart" as="addtocart" template="catalog/product/list/addtocart.phtml"/>
</block>

In template\catalog\product\list.phtml i added the call:

<?php if($_product->isSaleable()): ?> <?php echo $this->getChildHtml('addtocart') ?> <?php endif ?>

What am I missing that i don't see the addtocart functionality with quantity?

I also moved the file addtocart.phtml to catalog/product/list/addtocart.phtml.


texts:
I got index.php/catalogsearch/result/?cat=&q=Vitamin+E

I want to remove unrelated results,I want to just contain product name only  "Vitamin E"  this string may be url
as index.php/catalogsearch/result/?cat=&q=Vitamin&E

I configure search from admin panel as below:

Set No All  Catalog==>Attributes==>Manage Attributes except name
Set System==>Config==>Catalog  ==>Catalog Search==> Search Type==>Fulltext
App/Code/Core/Mage/CatalogSearch/Model/Resource/fulltext.php Replace all OR to AND

Line:about 354

if ($like) {
            $likeCond = '(' . join(' OR ', $like) . ')';
        }

    Change to

 if ($like) {
                $likeCond = '(' . join(' AND ', $like) . ')';
            }

Line:about 378

if ($likeCond != '' && $searchType == Mage_CatalogSearch_Model_Fulltext::SEARCH_TYPE_COMBINE) {
        $where .= ($where ? ' OR ' : '') . $likeCond;
}

Changed to

if ($likeCond != '' && $searchType == Mage_CatalogSearch_Model_Fulltext::SEARCH_TYPE_COMBINE) {
        $where .= ($where ? ' AND' : '') . $likeCond;
}

[Details as As https://mirasvit.com/qa/magento-search.html]

Still Got  Unrelated Results!!


texts: Magento 2.3 upgrade failed with PHP Fatal error: Uncaught Error: Class Zend\Code\Annotation\AnnotationManager Error

texts:
I've upgraded my Dev server from Magento 2.2.5 to 2.3

I had to install in increments by going from 2.2.5->2.2.6>2.2.7 and then on to 2.3

There were also a few modules I had to remove to get the upgrade to work.

However, now that it's all installed, when I type php bin/magento setup:upgrade I get and error which is

PHP Fatal error:  Uncaught Error: Class 'Zend\Code\Annotation\AnnotationManager' not found in /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-di/src/Definition/IntrospectionStrategy.php:68
Stack trace:
#0 /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-di/src/Definition/IntrospectionStrategy.php(48): Zend\Di\Definition\IntrospectionStrategy->createDefaultAnnotationManager()
#1 /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-di/src/Definition/RuntimeDefinition.php(54): Zend\Di\Definition\IntrospectionStrategy->__construct()
#2 /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-di/src/Di.php(116): Zend\Di\Definition\RuntimeDefinition->__construct()
#3 /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-mvc/src/Service/DiFactory.php(43): Zend\Di\Di->__construct()
#4 /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-mvc/src/Service/DiFactory.php(63): Zend\Mvc\Service\D in /chroot/home/a7669e95/mydomain.com/html/vendor/zendframework/zend-di/src/Definition/IntrospectionStrategy.php on line 68

I've substituted my dev domain for mydomain.com in the above.

Anybody got any ideas on what would cause this or more importantly, how I fix it?


texts: How to add label to street fields in Customer registration in admin panel?

texts: I want to add two more Labels Colony and Area after Street Address.How can I achieve this ?


texts: New attribute created in admin side is not showing in storefront UI in magento 2

texts:
I have created a new attribute (which is a multi select dropdown) and added to attribute set. When I edit or create a product in admin, that newly created attribute is found there and I can select the values and save.

So It supposed to show in user front end side. But thats not showing there in the product detail page. It still shows only color and size.

In the product attribute settings in admin panel I have updated the settings as ,

"Visible on Catalog Pages on Storefront" to "Yes",
"Used in Product Listing" to "Yes",
"Scope" to "Global" and
Diabled Cache.

Is there any settings which I have to accomplish the same?


texts: Need to get order details from two range of date

texts:
I need to get order details from range of dates(from date and To date)
For that i am using below code but i am not getting

while printing order collection, i am getting a long array....
i need to get order detail like email id,product details.
thanks in advance


texts: Magento Reviews Disappearing from Database

texts:
We have a strange issue occurring where product reviews are mysteriously disappearing from the Magento database. They are there one day and then the next we check the database and they are completely gone. Like they have been deleted. We've lost entire months of data at a time.

We are at somewhat of a loss at how/why this could be happening. We have not installed any extensions that are related to reviews.

At this point we are starting to thing there may be some sort of a site hack that is causing this issue.

Wondering if anyone else has seen this problem or any ideas as to what may be causing the issue.

Thanks!


texts: Product grid won't display correct number of columns, adds blank space- 1.9.1 RWD

texts:
I have trouble with Magento 1.9.1 using the standard RWD,

I'm display products using the following code,

{{block type="catalog/product_list" column_count="6" products_count="12" name="home.catalog.product.list"alias="products_homepage" category_id="3"template="catalog/product/list.phtml"}}

It doesn't matter what I set the column count at it will always not display the correct number of products on each row and also adds in blank space instead, the missing products are then displayed on the next line down,

See example here,

http://oilofcloves.com.au/store/

Any idea what is going on here?


texts: How to use Magento2 Module Select2 Ui Component ? How active module in default.xml?

texts:
I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent

I never had to use UI components. I want to active Select2 on frontend on my category page. Does anyone can help me with that ? Can I just add this Component by refercence to default.xml or default_head_blocks.xml in Magento_Theme/layout ?

    <select class="admin__control-select" data-bind="
    attr: {
        name: inputName,
        id: uid,
        disabled: disabled,
        'aria-describedby': noticeId
    },
    hasFocus: focused,
    optgroup: options,
    value: value,
    optionsCaption: caption,
    optionsValue: 'value',
    optionsText: 'label',
    select2: {}
" />

Thanks in advance!


texts: magento 2 : which tables is used while creating configurable product

texts: when i am creating configurable Product from admin, i want to know in which table the entry related to configurable product is stored.


texts: How can I change H1 title in categories?

texts:
I need to change the h1 title using Custom Layout Update field in the category edit view

How can I do this? Change many categories h1 titles without change the category name?


texts: Basic question: How to add javascript functionality to a page?

texts:
I hope this site is friendly to beginner questions.

I would like to add some javascript for sitewide effect. Specifically, I want to make it so that when you scroll down a page, certain elements (e.g. the Category nav, and the Filter bar which I have set horizontally above catalog products) stick to the top and stay visible as you go down the page. Other elements, like the header area where the Logo and search bar sit (in my design), would get covered by these.

For reference, I am looking at this jquery code: http://viget.com/inspire/jquery-stick-em
You can see how the author's face "sticks" to the bottom of the header element and stays there as you scroll down. But my question isn't about making this or that particular javascript code work, it's more general.

My question is, where do I place the javascript code to follow the intended use of Magento's design?

Where would I put the javascript if, for example, I just wanted it to affect the product view pages?


texts: Opinion on dividing analogous/similar attributes for large stores

texts:
I'm taking on a project for a web store which contains a large amount of SKU's including many different type of products (store for clothing/apparel & motorcycle parts / accessories).

Currently the backend is somewhat sloppy with many configurable products built on varying attributes that are the same in nature, just have different names.  For example:

"Size" and "Apparel Size".  Some products use Size, and some use Apparel Size, etc.

I think this was done by previous developers to try and create a more organizational structure due to the how many attribute values exist within each.

Should you divide attributes up like this or is it just more headache in the long run?  Is it correct to have a universal "Size" attribute for all clothing that contains various values such as Small / Medium / Large / 32 / 33 / 35 etc.

It seems like Magento 1.9.1 seems intent on putting everything into 1 in regards to Color Swatches, as you can only use 1 option on the catalog thumbnails.


texts: Why are my users being denied access when permission is granted?

texts:
I have a "Sales Rep" Role with limited access (basically just Orders, Customers, and a Sales Report page).

The problem is that on some of these pages, their access is still partially limited despite having permissions granted in the Permission Role Resources menu.

For example, they are denied access when trying to Delete an Invoice or access our Sales Reports Dashboard.

How can I determine how these permissions are being overridden?


texts: Why my bundle products return a different SKU?

texts:
I'm getting the SKU from my Bundle product and the products associated too, but the result bellow showed up.

Bundle Product SKU: BundleQA-GT-5AHG30008P
Simple Product SKU: GT-5AHG30008P

It's concatenating the bundle product SKU with the simple product SKU to show as the bundle product SKU, it must be just BundleQA.

How could I solve it?


texts: Magento 1.9 - Admin sales order index template phtml file?

texts:
I am using Magento 1.9 and i've searched like the whole directory app/design/adminhtml/default/default/template and I can not find the .phtml file answering for this page: www.yourmagentostore.com/index.php/admin/sales_order/index/key/944964552ee91bc0eeeb09f63a57c97e/

Can you please tell me where i can find the .phtml file which is answering for the Sales Order index page so i can edit the template.

Thanks in advance!


texts:
In Magento 1.9, If I want to call another phtml file in currenct phtml, I could use something as below.

            /** @var Mage_Catalog_Block_Product_List $productsBlock */
            $productsBlock = $this->getLayout()->createBlock('catalog/product_list');
            $productsBlock->setTemplate('catalog/product/list/summary.phtml');
            $productsBlock->setCollection($itemsByCategory[$_category->getId()]);
            echo $productsBlock->toHtml();

I wonder if setCollection is working in Magento 2?

Because When I use the same code in Magento 2, I got an error,

Call to a member function count() on null

on the function $_productCollection->count() in the summary.pthml that I'm including.

any idea?


texts: Magento 2 | Launch an action form in the order view of the backend

texts:
I am trying to launch an action form for uploading some attachments and staying on the same page in the order view section of the Magento backend.
My code for now is this but it doesn't work, the form is launched but there is no response from $ _POST
<?php
if (!empty($_POST)){

    echo 'form submitted!';

}
?>

<form id="doc-form" name="doc-form" action="https://www.mysite.it/adminhg/sales/order/view/order_id/422/key/df180822a9b74c12d8c8215ea953b092c9b832bc9e166eba7104bf5464b37b6f/">
<input id="orderID" name="orderID" value="<?php echo '422'; ?>" style="display:none;"/>

                <colgroup>
                    <col width="1">
                    <col width="1">
                    <col>
                    <col width="1">
                    <col width="1">
                    <col width="1">
                </colgroup>

                            Select file
                            Product
                            Comment

                            <input type="file" title="File" name="docname" />
                            <input type="text" title="image_title" name="image_title">
                            <input type="textarea" title="image_comments" name="image_comments">
                            <input type="submit" form="doc-form" value="Upload file" name="allBozza" />

</form>

Thanks for any help


texts: Magento CE 1.9.1 Configurable Products do not get their simple products 'associated'

texts:
I have same exact problem as https://magento.stackexchange.com/questions/58201/configurable-product-not-showing-in-magento.

Make configurable product "In Stock"
Use "Quick simple product creation" to generate simple products
"enabled"  "not individually visable"  "in stock" "qty > 0"

They do not show up in "Super product attributes configuration" section

It appears that they do not get 'associated'

I have tried regenerating all indexes, flushing all caches numerous times.

Once in a while if I start from scratch, the associated products will show up, but 5 out of 6 times ... it won't work.


texts: I am developing a medicine based eCommerce site on Magento, I want to display the substitute based product in product page just like in 1mg and NetMeds. Can anyone please help to find the Magento extension for this or any existing solution.


texts:
Is it possible to inline JavaScript file into phtml file? we have phtml file in view/frontend/template/js and js file in view/frontend/web/js

<!-- current setup -->
<script type="text/x-magento-init">
  { "*" : {
    "MyModule/js/my_js" : {} }
  }}
</script>

Currently we use x-magento-init but we want to make script inline like below:

<!-- what we want -->
<script type="application/javascript">
  // my code from JS file is inlined here
</script>

We realize this is render-blocking but we'd rather want to do this because we need this script for determine what to render. Is there any standard way to achieve this?


texts: configurable product options are not added to cart using magento soap api

texts:
I have tried to add a configurable product in using magento soap api.  I am using the following code to add

 $product = array(
             'product_id' => 23,    // simple product id
             'sku' => 'H001-Yellow-22',
             'qty' => '1',

            'super_attribute' => Array( [92] => 10, [134] => 3 )  // color is yellow                                                 and
size is 22

        );
$client->shoppingCartProductAdd($session,$cartId,array($product),'1');

Instead of superattribute, i gave like this also

'super_attribute' => array(
                0 => array(
                'key' => 92,
                'value' => 10
                ),
                1 => array(
                'key' => 134,
                'value' => 3
                )
            )

but the options are not added to the cart.  Why the options are not added to the cart?  How the options to be added?


texts: Image Upload issue after PATCH 8788 install on 1.9.2.4

texts: After installing Patch 8788 on 1.9.2.4, product image upload says the upload is complete but it not show on the front end. I checked the media directory but image not uploaded.


texts: magento 2 enterprice stock source export not working

texts:
Hi i am using magento enterprice when i tried to export stock source  it below message
showing Message is added to queue, wait to get your file soon
but after consumer run getting error
bin/magento queue:consumers:start exportProcessor
bin/magento cron:run
Error during export process occurred
Error during export process occurred. Please check logs for detail


texts: What's the Deal with the "Hint" Tag in system.xml?

texts: I've found opaque reference to a <hint/> tag in system.xml files.  What's the deal with this tag?  Is its use documented anywhere?


texts: What is the Composer.Json file and what is it used for?

texts:
I would like to know what the composer.json file is actually used for when I create a new module.

I know it's an optional file that can be created when I create a new module so why include it?

Take the magento/catalog composer.json file as an example, what is it doing?

{
    "name": "magento/module-catalog",
    "description": "N/A",
    "require": {
    "php": "~7.0.13|~7.1.0",
    "magento/module-store": "100.2.*",
    "magento/module-eav": "101.0.*",
    "magento/module-cms": "102.0.*",
    "magento/module-indexer": "100.2.*",
    "magento/module-customer": "101.0.*",
    "magento/module-theme": "100.2.*",
    "magento/module-checkout": "100.2.*",
    "magento/module-backend": "100.2.*",
    "magento/module-widget": "101.0.*",
    "magento/module-wishlist": "101.0.*",
    "magento/module-tax": "100.2.*",
    "magento/module-msrp": "100.2.*",
    "magento/module-catalog-inventory": "100.2.*",
    "magento/module-directory": "100.2.*",
    "magento/module-catalog-rule": "101.0.*",
    "magento/module-product-alert": "100.2.*",
    "magento/module-url-rewrite": "101.0.*",
    "magento/module-catalog-url-rewrite": "100.2.*",
    "magento/module-page-cache": "100.2.*",
    "magento/module-quote": "101.0.*",
    "magento/module-config": "101.0.*",
    "magento/module-media-storage": "100.2.*",
    "magento/framework": "101.0.*",
    "magento/module-ui": "101.0.*"
   },
   "suggest": {
    "magento/module-cookie": "100.2.*",
    "magento/module-sales": "101.0.*",
    "magento/module-catalog-sample-data": "Sample Data version:100.2.*"
  },
  "type": "magento2-module",
   "version": "102.0.5",
   "license": [
    "OSL-3.0",
    "AFL-3.0"
   ],
   "autoload": {
    "files": [
        "registration.php"
    ],
    "psr-4": {
        "Magento\\Catalog\\": ""
    }
}
}


texts:
Whenever I go to the admin page of my store it shows the password filled in already:

.

A malicious user would only have to guess the user name to gain access.

I checked chrome's saved password and the webstore url is explicitly excluded. How can this behaviour be changed?


texts:
I got error into my Magento website.

  /homepages/26/d589154144/htdocs//app/Mage.php was not found

I have searched this on many places not get the exact solution.

Please help to solve. Thanks.


texts: Magento - Extending Mass Action Grid Filters ("Select All", "Select None") to Sales > Orders Grid

texts:
I am trying to extend the filters on the Sales Order Grid. For example I would like to add "Select Pending", "Select Cancelled" etc filter in the grid.

Any help in this regard would be greatly appreciated.


texts: Import programatically images in Magento issue

texts:
I have created a custom script to import products from csv.
I succesfully imported image, thumbnaill, and small image like this:

# media gallery initialization
->setMediaGallery (array('images'=>[], 'values'=>[]))
# assigning image, thumb and small image to media gallery
->addImageToMediaGallery('media/import'.$image,['image'], false, false)
->addImageToMediaGallery('media/import'.$small_image,['thumbnail'], false, false)
->addImageToMediaGallery('media/import'.$thumbnail,['small_image'], false, false)

Now i want to import also a different images for: _media_image, and also set this values _media_position and _media_is_disabled

Does anyone know how to import this information?


texts: Magento 2 include template with form in CMS Block

texts:
I have been struggling trying to put a template functionally working inside a CMS Block.
When I put this code inside my CMS block the template is correctly implemented

{{block class="Experius\DonationProduct\Block\Donation\ListProduct" name="cms.donation.list" template="Experius_DonationProduct::donation.phtml"}}

However, the template has a pop up window that comes up when you click a button, and that pop up has a form.
The problem is that the pop-up window does not come up when it's in the CMS block, it's like if JS functions were not working.

The template is located in app/design/frontend/Vendor/Theme/Experius_DonationProduct/templates/donation.phtml
its override from the original module.
What can I do?
Thank you and greetings!


texts: Order shows no line items for Bundled Product

texts:
I have a bundled product with 3 associated Bundle Items:

When a customer makes their 3 choices and places an order, the line items for each choice don't show up in the Magento Orders admin page. I checked the rendered HTML and no rows are rendered in the body of this table for Items Ordered, only the table header with the column headings:

The line items do however show up if you then click on the Invoice button:

Line items show up correctly for simple products and configurable products. Does anyone know what is causing the line items to not show?

Updated:

We are using the Amasty Pre-order extension and it seems to be this which is causing the bundled products to not show in the Order line items. https://amasty.com/magento-pre-order.html

The line items table is rendered using this code:

        <tbody class="DANIEL <?php echo $i%2?'even':'odd' ?>">
            <?php Mage::log('++ Admin>Sales>Order>View>Items.phtml', null, 'crocodile.log', true) ?>
            <?php echo $this->getItemHtml($_item) ?>
            <?php echo $this->getItemExtraInfoHtml($_item) ?>
        </tbody>

In the rendered HTML we see the "DANIEL" class on the  but not inner html.

getItemHtml is from Mage/Adminhtml/Block/Sales/Items/Abstract.php

public function getItemHtml(Varien_Object $item)
{
    if ($item->getOrderItem()) {
        $type = $item->getOrderItem()->getProductType();
    } else {
        $type = $item->getProductType();
    }
    //return $this->getItemRenderer($type)
    //    ->setItem($item)
    //    ->setCanEditQty($this->canEditQty())
    //    ->toHtml();

    $renderer = $this->getItemRenderer($type)
        ->setItem($item)
        ->setCanEditQty($this->canEditQty());
    Mage::log('get_class(renderer): '.get_class($renderer), null, 'mylog.log', true);
    return $renderer->toHtml();

The log shows that the renderer is of type Amasty_Preorder_Block_Rewrite_Bundle_Adminhtml_Sales_Order_View_Items_Renderer and calling toHtml returns a blank string:

get_class(renderer): Amasty_Preorder_Block_Rewrite_Bundle_Adminhtml_Sales_Order_View_Items_Renderer

This returns a blank string:

var $theHtml = $renderer->toHtml();


texts:
I have a problem with the layout of the productpage.
I upgraded from magento 1.9.1.0 to magento 1.9.1.1
But now the layout is gone.
This is how it used to be:
http://www.etk-mood.nl/shop/catalogus/inbouw/downlighters-led/caim-led.html

And this is the new installation:
http://testshop.etkserver.nl/catalogus/inbouw/downlighters-led/caim-led.html

1.    GLOBAL DESCRIPTION MISSES
The global description does not appear next to the image. I have compared the frontend/shopper/default/template/catalog/product/view.phtml’s and they are identical.

<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>

<?php echo $_helper->productAttribute($_product, ($_product->getDescription()), 'description') ?>

                <?php endif;?>
        <?php echo $this->getDescription() ?>

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

2.    TABS

In de new website the tab content of ALL the tabs appears at once, instead of when you click the relevant tab.

3.    NO DESCRIPTION IN TABLE

As you can see, the grouped table misses the second column, the Description.
If I look in app/design/frontend/base/default/template/catalog/product/view/type/grouped.phtml
There still is this code that used to work:

    <col />
    <col />
    <col width="1" />

            <?php echo $this->__('Product Name') ?>
        <?php echo $this->__('Omschrijving') ?>
            <?php if ($this->getCanShowProductPrice($_product)): ?>
            <?php echo $this->__('Price') ?>
            <?php endif; ?>
            <?php if ($_product->isSaleable()): ?>
            <?php echo $this->__('Qty') ?>
            <?php endif; ?>

It is kind of urgent, I hope you can help me.
THank you.


texts: Magento 2: Unable to unserialize value. Error: Syntax error

texts:
I'm creating Order export cron module for Magento 2.3. I'm getting below error
Cron-job "monthly_report" threw exception InvalidArgumentException
In Json.php line 39
Unable to unserialize value. Error: Syntax error

While debugging, I found below line produces error. I'm retrieving order details using OrderCollection Factory.
$order->getAllVisibleItems();

I tried below suggestions from stackexchange:

redis-cli flushall
bin/magento cache:clean


texts: Acquire session of logged in customer in external script

texts:
I was trying to acquire session of logged in customer in one of external PHP script in the same folder as my Magento installation:

<?php

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

$session = Mage::getSingleton('customer/session', array('name' => 'frontend'));
var_dump($session->getId());
var_dump($session->getCustomerId());

$coreSession = Mage::getSingleton('core/session', array('name' => 'frontend'));
if(isset($coreSession['visitor_data']['customer_id'])){
    $customerId = $coreSession['visitor_data']['customer_id'];
} else {
    die('Action not allowed. (1)');
}

Which output when accessed via the exact domain as my store:

NULL NULL Action not allowed. (1)

When I'm logged in my store frontend as a test customer.

What am I doing wrong here?


texts:
After putting the site into production mode and running the compiler, the site just loads a blank white page. I've tried disabling all third party modules and it has not helped. I have all error logging enabled, but nothing is logged. I've narrowed it down to something in the generated metadata, as deleting that folder gets the site working again. I've struggled with this for the past couple days and I'm at a loss. Anyone have any clue?

Here is the source for the blank page that is displayed:

<!doctype html>
<html lang="en">
<head >
    <meta charset="utf-8"/>
    <meta name="robots" content="INDEX,FOLLOW"/>
    <title></title>
    <link  rel="icon" type="image/x-icon" href="https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/Magento_Theme/favicon.ico" />
    <link  rel="shortcut icon" type="image/x-icon" href="https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/Magento_Theme/favicon.ico" />
</head>
<body data-container="body" data-mage-init='{"loaderAjax": {}, "loader": { "icon": "https://xxx.xxx.xxx.xxx/pub/static/version1519935733/frontend/_view/en_US/images/loader-2.gif"}}' class="cms-index-index page-layout-1column">
</body>
</html>

Magento 2.2.2


texts: I accidentally refunded offline. What do I do to make sure the customer is credited on their card?


texts:
I am trying to create new page to display a new form, but I have no idea where and how to start

My idea is to make form include fields that allow users to add jobs if they are looking for employees

Make a drop-down list of the main job sections that will be identified by the admin in advance
extra fields such as city of job and some description

How can I add these fields to database in order to re-display it after having approval from the admin


texts: How to add new coupon Type such as 'No Coupon', 'Specfic Coupon' in Magento2.1?

texts: How to add new coupon Type such as 'No Coupon', 'Specfic Coupon' in Magento2.1 ?


texts: User unable to login when base currency change

texts:
Can't login after changing the base currency, i have registered a customer when base currency USD. And after i changer the base currency to EURO i cant login with that customer account, its keeps loading but nothing comes. After a while it throws an error on "memory exhausted". But the same user can login when the base currency is USD. I've looked into the exception and system log files as well. No clue as to what is causing this issue.

Basically we are trying to implement Currency switcher, it works well for guest users. But doesn't work when the user is trying to login and the current currency does not match to the currency at the time of user registration.

FYI : magento version is 1.9.2 CE


texts: Magento Add Fee or Discount to Order Totals

texts:
I am using a module provided in this link

it is working fine for all payment methods except the online transaction. For that I am using PayU money. The same module is used everywhere but it is not only working in online transaction.


texts:
I am looking to put Magento 2.3.3 ver site in maintenance mode using Database query as my site is hosted on AWS Auto scaling mode .
Can anyone please share a solution for same.
Thanks,


texts: Why Can't Magento support "Visa Debit" card on payment page?

texts:
I have a website on Magento 2.2 and some customers wanted to use Visa Debit Card in the "Credit or Debit Card" payment option but they couldn't use a Visa debit card.

I'm wondering why they can not use the Visa Debit card in payment method?