texts: Third party payment methods are not redirecting to SUCCESS page

texts:
This is very strange. I am stuck for 2 months already on this.

All Magento provided payment methods works normally. Bank transfer, PayPal etc do redirect to the success page.

But any third party payment methods do not redirect to the success page, but they redirect to the empty cart page.

All orders are created, payments are captured. But it won't show success page.

Because all third party is not taking to the success page, I strongly believe it's something to do within my instance. My best guess is server related, but why PayPal works then?

Any help?

Magento 2.3.3
Php 7.2.x
Varnish
Redis


texts:
Block

namespace Vendor\Extension\Block\Product;

use Magento\Framework\View\Element\Template;

class Stickycart extends Template
{
    protected $_registry;

    protected $_stockItemRepository;

    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Framework\Registry $registry,
        \Magento\CatalogInventory\Model\Stock\StockItemRepository $stockItemRepository,
        array $data = []
    ) {
        $this->_registry = $registry;
        $this->_stockItemRepository = $stockItemRepository;
        parent::__construct($context, $data);
    }

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

    public function getStockItem($productId)
    {
        return $this->_stockItemRepository->get($productId);
    }
}

Template

$currentProduct = $block->getCurrentProduct();
$id = $currentProduct->getId();
$_productStock = $block->getStockItem($id);
if($_productStock->getIsInStock()){
...
}

But it show a bug:

The stock item with the "140" ID wasn't found. Verify the ID and try again.

I have checked that product in backend in Catalog but it's instock with qty is 465.


texts: Show terms and conditions on static page

texts:
Is there a way to show the terms and conditions on a page via .phtml?
I have made a page via a module and now want to show the terms and conditions on that page.


texts: How to rename the advanced search link in magento 2

texts: Can anyone help.. i wanted to change the "advanced search" to "finder". How to rename it via xml??


texts: how to implement adsense codes in magento

texts: I pasted an Adsense code in static block. Script shows up on website in the left sidebar where the ad should be. Can someone explain what I need to do in order to get the Ads working?


texts:
Using the REST api of M2 and for some reason I can't save a new product ?

Here's my code

Here's the error I get.

Any suggestions?


texts: display product list in product view page

texts: I need to display a product list from a category id given in a product-view page. After a large research i could see people saying this is not possible due type=catalog/product_list don't work in a product-view page. Is there any way to accomplish this??.


texts: Upload file button doesn't work site wide

texts:
I have a site-wide issue where the media file upload button isn't working. By this, I mean, I press Upload Files, and nothing happens.

I have checked all the usual suspects, cleared cache, reindexed data. I also checked the folder permissions which look fine.

This video shows the error in action

https://youtu.be/qrG_0l5hAYM


texts:
How could I get the store code from URL?

For example, I would like to get "es" and "en" from these urls:

mystore.com/es
mystore.com/en

Using

Mage::app()->getStore()->getCode()

is not a possibility.

EDIT:
By the moment I'm using this function:

$segments = explode('/', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'));
$allStores = Mage::app()->getStores();
foreach ($allStores as $_eachStoreId => $val)
    $_stores[] = Mage::app()->getStore($_eachStoreId)->getCode();

if (in_array($segments[0], $_stores)) {
    //code
}


texts: Magento 2 : add delivery date on table rates

texts:
I tried to add a custom column to the table rates shipping method file in order to display the estimated delivery date on customer checkout but I can't get anything working correctly.

Does someone have a module to do this?


texts: Programmatically inject header mini cart

texts:
I'm trying to update my header mini cart dynamically by creating a new block, I've tried several ways including:

$this->loadLayout();
$block = $this->getLayout()->createBlock(
    'Mage_Checkout_Block_Cart',
    //'checkout/cart', // OR 'Mage_Checkout_Block_Cart'
    'minicart_content',
    array('template' => 'ajax/checkout/cart/sidebar/default.phtml')
);

$this->getLayout()->getBlock('content')->append($block);
//Release layout stream... lol... sounds fancy
$this->renderLayout();

And also

$block = $this->getLayout()->createBlock('checkout/cart')->setTemplate('ajax/checkout/cart/sidebar/default.phtml')->toHtml();

They always come back empty, I can get it to bring back static content fine. Any ideas please?


texts: Magento 2.3: Upload Mp4 video using WYIWYG editor

texts:
I want to upload the Mp4 video using the WYSIWYG editor in my custom module, but it only allows us to upload images.
Any help will be appreciated


texts:
I want to disable the tax calculation (= 0% tax) for every country exept the own country (swiss).

1) How can i archive that?
2) Are there common or well known problems?

Thank you!
Chris


texts: Unable to set customer saved address as shipping address in guest cart via REST api Magento 2.3

texts:
I'm trying to set the customer address as the shipping address of guest cart via '/V1/guest-carts/{cartId}/shipping-information' REST api in Magento 2.3
Here is my payload:
{
  "addressInformation": {
    "shipping_address": {
      "region": "Kebbi",
      "region_id": 508,
      "region_code": "Kebbi",
      "country_id": "NG",
      "street": [
        "test street"
      ],
      "telephone": "12412532641",
      "postcode": "234",
      "city": "Lagos",
      "firstname": "Test",
      "lastname": "1",
      "email": "test@test.com",
      "customer_id":3,
      "customer_address_id":2
    }
  }
}

When i update using this payload, the api returns the error given below always.
Error while updating:

'{"message":"The shipping information was unable to be saved. Verify
the input data and try again.","trace":"#0'

If i try without passing 'customer_address_id', the shipping address is updated to guest cart but in checkout page the updated shipping address in guest-cart is not selected automatically.
Expected Result:
If i update shipping information with the given payload, that address should be selected as shipping address automatically in checkout page.
Please refer the image:


texts:
How to Use Magento 2 CMD Command using the .bat file

 I am Wrtting this Commands but still it is not working

D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento cron:run
D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\app\code\vednor\module_name\cron\test.php
D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento setup:cron:run

I Want the run Cron Job File Using .bat.


texts: How to display associated simple products with custom options in the grouped product in Magento 2?

texts:
I am using Magento 2.3.0

I have grouped products on my website. I have displayed all associated simple product with their tier prices, product names and quantity. please refer below screenshot. For e.x. let's take "Test product 1" from below screenshot. I have added custom options with the input type checkbox and added $0.20 price in that custom option. Now I want to display this custom option with checkbox in the column "Price Tag - $0.20". so, when customer check checkbox for any product then it will add an additional $0.20 price for that particular product into the cart. How can I do this?

Note: Remember all prices in screenshots are tier prices and column names are quantity range


texts: JS Widget: two custom Widgets extended same parent Widget Magento 2

texts:
Precondition

I have 2 custom widgets extending same parent widget.

Parent widget: Magento_ConfigurableProduct/js/configurable
First Custom Widget: Vendor_AModule/js/configurable
Second Custom Widget: Vendor_BModule/js/configurable

First Custom Widget require-config.js:

var config = {
    map: {
        '*': {
            configurable: 'Vendor_AModule/js/configurable'
        }
    }
};

First Custom Widget JS:

define([
    'jquery',
    'mage/translate',
    'Magento_ConfigurableProduct/js/configurable'
], function ($) {
    $.widget('vendor.configurable_awidget', $.mage.configurable, {
        /**
         * {@inheritDoc}
         */
        _configureElement: function (element) {
            this._super(element);
            alert('Custom widget A is triggered!');
        }
    });

    return $.vendor.configurable_awidget;
});

Second Custom Widget require-config.js:

var config = {
    map: {
        '*': {
            configurable: 'Vendor_BModule/js/configurable'
        }
    }
};

Second Custom Widget JS:

define([
    'jquery',
    'mage/translate',
    'Magento_ConfigurableProduct/js/configurable'
], function ($) {
    $.widget('vendor.configurable_bwidget', $.mage.configurable, {
        /**
         * {@inheritDoc}
         */
        _configureElement: function (element) {
            this._super(element);
            alert('Custom widget B is triggered!');
        }
    });

    return $.vendor.configurable_bwidget;
});

Steps to reproduce

I open a configurable product frontend page.

Expected Result

I see both Custom widget B is triggered! and Custom widget A is triggered! alert.

Actual Result

I only see Custom widget B is triggered! alert.

Question

How should the code be to make the configurable product frontend page displays alerts of both widgets?


texts: Creating child theme how will I add css for extensions I have installed

texts:
I am newbie in Magento.
Template monster theme has already been installed and along with that I have  installed many extensions.
Now for adding custom css I have installed child theme .

I am not asking how will I add CSS in child theme

The question is If I want to add custom css for specific extension then how can I do that in child theme?


texts: Change name of dynamically created product in observer

texts:
EDIT: SOLVED

I had to override this method from Mage_Checkout_Block_Cart_Item_Renderer to use $this->getItem()->getName() instead of $this->getProduct()->getName().

public function getProductName()
{
    if ($this->hasProductName()) {
        return $this->getData('product_name');
    }
    return $this->getProduct()->getName();
}

How can I change name of the product that I am creating here in Observer.php checkout_cart_product_add_after event so that I see it in cart view.

I tried setName() and setData to change the name, but it didn't work.

I want to change name of $exampleItem, changing price works, but changing name doesn't.

class Test_Example_Model_Observer
{
    public function cartProductAddAfter($observer)
    {
        $product = $observer->getEvent()->getQuoteItem(); // get product that gets added to cart
        $exampleQty = $product->getQtyToAdd(); // get quantity of added product

        $exampleProduct = Mage::getModel('catalog/product')->loadByAttribute('sku', 'EXAMPLE'); // get the example product
        $exampleToAdd = $exampleProduct->load($exampleProduct->getId()); // load the example product

        $quote = Mage::getSingleton('checkout/session')->getQuote(); // get quote
        $exampleItem = $quote->addProduct($exampleToAdd, $exampleQty); // add example product to quote matching quantity of the normal product
        $exampleItem->setCustomPrice(444);
        $exampleItem->setOriginalCustomPrice(444);
        $quote->save(); // save quote
        }
    }


texts:
I've been trying to get the shipping titles to translate with no success so far. It seems most questions deal with knockout text but I'm trying to do it on a variable that doesn't seem to be working. Here's what I want to translate, which is located in app/design/frontend/Me/Mylook/Magento_Checkout/templates/cart/shipping-rates.html:

<!-- ko i18n: $data.method_title --><!-- /ko -->

And here's what I've been using in the CSV files locally

"Free Shipping", "Test Shipping"

I've tried this CSV file in the following places with no luck:

app/code/i18n/en_US.csv
app/code/i18n/magento/checkout/en_US.csv
app/code/MyCompany/Translate/i18n/en_US.csv
app/code/design/frontend/Me/Mylook/i18n/en_US.csv
app/code/design/frontend/Me/Mylook/Magento_Checkout/i18n/en_US.csv

I've cleared cache, redeployed static content and deployed static content with just that language (en_US) and cleared browser cache multiple times.

I have tried to alter the js-translate.json file directly in pub/static and if I add the text it'll work, but that only works as long as I don't clear cache.

Any ideas before I do something horrible and try to update the text with javascript?


texts: Magento2 how to add non category drop down menu in frontend

texts:
Dears,

how to add non-category drop-down menu in fronted

Need Help


texts:
I get this message:

  PHP Fatal error:  Call to a member function getOptions() on a
  non-object in /M2ePro/Model/Amazon/Listing/Product.php on line 299.

The code on line 299 is:

 $options    = $variation->getOptions(true);

How to solve?


texts: How can I set template for just one form field?

texts: I have a form with 2 select fields. I am trying to set up a template just for the last one. How can I do? I've tried with 'template' => 'path/to/template.phtml' and 'after_element_html' => (but i don't know how can I set template jut for this).


texts: Magento 2.1 Custom Product Options in Slideout Modal

texts:
I am attempting to extend the custom options on a product.
I'd like to add a number of fields that would be too much to display in the same row as the rest of the custom options.
They are completely optional and so I'd like to have a link in each option value that opens a modal that will display a form to collect the other values:

Using a PHP Modifier I am able to add the link to open the modal as a child of the Magento_Ui/js/dynamic-rows/record component.

'arguments' => [
    'data' => [
        'config' => [
            'title' => __('My Custom Fields'),
            'formElement' => Container::NAME,
            'componentType' => Container::NAME,
            'component' => 'Magento_Ui/js/form/components/button',
            'actions' => [
                [
                    'targetName' => 'ns=product_form, index=my_fields_modal',
                    'actionName' => 'openModal',
                ],
            ],
            'displayAsLink' => true,
            'sortOrder' => $sortOrder,
        ],
    ],
]

This opens the window and displays the form...

Where I am getting stuck is finding a way to tie these values back to the associated catalog_product_option_type_value record.  (Either in new columns in that table or in a new table where I can reference catalog_product_option_type_value)

Because of the current lack of documentation around the new ui components I don't have a clear understanding of how that part ties in.

Is there a way to pass the current index/row when opening the modal, in order to name the form fields in such a way that they will be saved to that table?

Any help would be greatly appreciated.


texts: Magento 2 Service/HttpExceptionStrategyFactory.php error

texts:
Could you please help me?

I have this error with my magento2 installation:

  vendor/zendframework/zend-mvc/src/Service/HttpExceptionStrategyFactory.php
  on line 29

Thank you very much


texts: Display Dynamic SKU on configurable product view Magento using Image Swatch

texts:
I've used the code from the answer in this thread:

https://stackoverflow.com/questions/13444995/display-dynamic-sku-on-configurable-product-view-magento

It works great when I'm using the drop down to select the simple product on the configurable product page. The issue is I'm using the image swatch feature to select the simple product instead of the dropdown.

Does anyone know of a way to accomplish this using the image swatch? I've noticed that with the dropdown it displays way more information in the DOM than it does with the image swatch.

I'm using 1.9


texts: Add Wysiwyg attribute to category in Magento 2.2.4

texts:
I followed this reference Inchoo to add new Wysiwyg attribute to category in Magento 2.2.4. It's working fine. My custom attribute successfully added in the category but it's showing only textarea instead of Wysiwyg editor.

Help would be appreciated!


texts:
After the customer has filled in the forms in the checkout, and after they're validated, I need to display a summary of the information with the possibility to edit the information. Is here a standard module for?

If not, which methods can I use to retrieve the data?


texts: How can I test an Event Observer that will run when an Order is Purchased?

texts:
I am building an application that will need to create some database records in an external database when an order is purchased/completed.

So when the customer makes the purchase from our One Page Checkout cart page, I am hoping to use an Event Observer on
checkout_type_onepage_save_order_after and then connect to my external database and make an order database entry as well as a separate entry for each order item in my other database.

So my question is, how can I test my observer  that should be triggered or caught when the order process is completed without you know, using my own credit card!?

Is there some sort of way to trigger or tesdt my code with PHP in a test file?  Or some other way to make a test purchase on the live site?


texts: HOW TO CHANGE PRODUCT VIEW in magento 1.9.2.4 8 (I FIX IT)

texts:
this is how is it in this moment

and this is how we want

where and who we can chage it

hope someone can help


texts: Showing back order message on Product View Page

texts:
Using checkout_cart_product_add_after event  I am trying to show the Back Order Message on the Product View Page but I am not getting the product id from the Observer(Id of Configurable Product Variation). I am only getting the parent Id(Configurable Product Id).

How should I proceed?


texts: Magento 2 - Custom widget chooser field select custom content type

texts:
I am wondering if this is possible.
I'm trying to build a custom Widget with a Chooser field on the Admin that would select a custom Content type named "Event" item.
By default, Chooser is only possible when selecting Category and Products but not with Pages or Custom Content-Type.
Please share some info. Thank you


texts: Override template for configurable product in cart

texts:
When I added a configurable product into the cart I can edit it which takes me to the following url "{BASE_URL}checkout/cart/configure/id/". Please could I get some guidance on how I can set the template which is being used for this page.

Thanks.


texts: Magento 1.9 Duplicated skin does not result insame design

texts:
i have a multishop, fir one is leroidutshirt.frezalsublimation.fr and the second one is seizeart.frezalsublimation.fr
I copied the skin (RWD) of the first one and applied to the second one.
I copied the homepage layout in the CMS tab.
However, the second one does not show the image, and i noticed the layout is not what i thought
are there any other tweaking to do? thank you.


texts: Magento 2 : Fatal error, all to a member function getParentItem() on null

texts:
It's a really strange issue I am facing it in Magento 2.

I have created a bulk import functionality of shipping information update by CSV Import.

Example: I have created grn_number field of shipping attribute and it associated with shipping_id.

For grn numbers, bulk uploading, below screen shows you a better understanding.

Import was sucessfully completing with no erros.

But the problem is where we are facing that after grn number update we want to send shipment email along with the updated grn number.

So first record sending email is with all details but after the second record getting an error like
Fatal error: Uncaught Error: Call to a member function getParentItem() on null templates/email/shipment/items.phtml on line 35
Image   Items   Qty

Code: templates/email/shipment/items.phtml on line 35:

<?php foreach ($_shipment->getAllItems() as $_item): ?>
            <?php $logger->info("Class Name --> ". get_class($_item->getOrderItem())); ?>
            <?php //if ($_item->getOrderItem()) : ?>
                <?php if (!$_item->getOrderItem()->getParentItem()) : ?>
                    <tbody>
                        <?= $block->getItemHtml($_item) ?>
                    </tbody>
                <?php endif; ?>
            <?php //endif; ?>
<?php endforeach; ?>

I printed class name of $_item->getOrderItem() so the result like :

1st record : Magento\Sales\Model\Order\Item\Interceptor

2nd record : Magento\Framework\View\TemplateEngine\Php

I also checked with the second record replaced with the first record in CSV  than also the first record send the shipment email and second time it gives an error.

Waiting for a solution || Thanks in advance.


texts:
I have integrated starshipit in my magento2.3.3 store and I am using MSI feature when I try to ship order my Magento exception log show this error and status failed.

  [2020-01-10 06:38:00] report.CRITICAL: The shipment couldn't be saved.
  {"exception":"[object]
  (Magento\Framework\Exception\CouldNotSaveException(code: 0): The
  shipment couldn't be saved. at
  /var/www/au/releases/20200109053408/vendor/magento/module-sales/Model/Order/ShipmentRepository.php:150,
  Magento\Framework\Exception\NoSuchEntityException(code: 0): Source
  item not found by source code: default and sku: PLA10009MONW. at
  /var/www/au/releases/20200109053408/vendor/magento/module-inventory-source-deduction-api/Model/GetSourceItemBySourceCodeAndSku.php:59)"}
  []


texts: CE 1.9.2 - Date of Birth validation at checkout not working

texts:
I cannot for the life of me understand what is happening with the Date of Birth field in Checkout or Registration. I've set it as Required under Customer Configuration, and have the date fields order set as Day, Month, Year.

But on the checkout screen, I keep getting an error:

  "Date of Birth" is a required value.

If I leave the field as optional, and still fill in data, the order goes through, but the field is blank in the admin backend for my test customer.

I followed similar posts and see that /js/varien/js.js already has the change around line 442 for the parseInt function. I haven't overridden anything from Core in this regard, but I am using the free OneStepCheckout extension from Lotus Breath.

Any advice?


texts:
1> shows access denied while login the admin (Magento 1.9)... actually tried to Rest-API for 3rd party integration for customer users role.
   2> I do not have database details. the client did not provide.
    please guide how can resolve.


texts: Static Files Migration from development to production error in admin panel

texts:
I have updated pub/static/frontend/ from local to live, and getting following error when adding order by admin, Can anybody help me?

Magento Fatal error:

  Interface 'Composer\Package\PackageInterface' not found in
  /home/username/public_html/livem/vendor/composer/composer/src/Composer/Package/BasePackage.php
  on line 23


texts: Magento 2 : Getting error while saving category from admin

texts:
When I try to save category from admin panel it showing error like something went wrong and when I checked the exception log it showing me below error.

  main.CRITICAL: SQLSTATE[HY000]: General error:
  1205 Lock wait timeout exceeded; try restarting transaction, query
  was: UPDATE catalog_category_entity SET children_count =
  children_count+1 WHERE (entity_id IN('1', '2', '1355'))
  {"exception":"[object]
  (Magento\Framework\DB\Adapter\LockWaitException(code: 1205):
  SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try
  restarting transaction, query was: UPDATE catalog_category_entity
  SET children_count = children_count+1 WHERE (entity_id IN('1', '2',
  '1355')) at /public/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:555,
  Zend_Db_Statement_Exception(code: 0): SQLSTATE[HY000]: General error:
  1205 Lock wait timeout exceeded; try restarting transaction, query
  was: UPDATE catalog_category_entity SET children_count =
  children_count+1 WHERE (entity_id IN('1', '2', '1355')) at
  /public/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235,
  PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock
  wait timeout exceeded; try restarting transaction at
  /public/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228)"}
  []

Please let me know if you have face same above issue like this.

What are the necessary steps to fix the above issue?

Please check the process

Your help and answers are appreciated!

Thanks in advance!


texts: How to change particular order number in magento

texts:
I have created new order in magento store which id is  order number#100000434.
I need to change order id to  number like 100000433.

How can I do this...?

Thanks in advance


texts:
Looking at this website: http://www.davidyurman.com/women/bracelets

I'm wondering how we can do something similar with specific regards to the large inline images   within Magento categories.

http://prntscr.com/42yqyg

At first, I thought it was simply a matter of displaying the category image that can be defined in admin in a different location. However, if you scroll down the page, you will notice there are several images defined for the category page.

So I think what this setup would entail is defining multiple images for the category, where each category image (image 1, image 2, image 3, etc) would show in a predefined location within the template.

So now my question is, does my idea of defining multiple images work and if so, what do you think the best way to execute upon this idea is?

I love the idea of not displaying products in a boring typical product grid. The larger inline images are a great way to break up the browsing pattern!

P.S. The use case would be Magento 1.8.1


texts:
How to set item in core registry ? I have created order list , now i want load current order set in core registry in custom module.

 public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Framework\Registry $registry,
        \Magento\Framework\App\Http\Context $httpContext,
        \Magento\Payment\Helper\Data $paymentHelper,
        \Magento\Sales\Api\Data\OrderInterface $order,
        array $data = []
    ) {
        $this->_paymentHelper = $paymentHelper;
        $this->_coreRegistry = $registry;
        $this->httpContext = $httpContext;
        $this->order = $order;
        parent::__construct($context, $data);
        $this->_isScopePrivate = true;
    }

    /**
     * @return void
     */
    protected function _prepareLayout()
    {
        $this->pageConfig->getTitle()->set(__('Order # %1', $this->getOrder()->getRealOrderId()));
        $infoBlock = $this->_paymentHelper->getInfoBlock($this->getOrder()->getPayment(), $this->getLayout());
        $this->setChild('payment_info', $infoBlock);
    }

    /**
     * @return string
     */
    public function getPaymentInfoHtml()
    {
        return $this->getChildHtml('payment_info');
    }

    /**
     * Retrieve current order model instance
     *
     * @return \Magento\Sales\Model\Order
     */
    public function getOrder()
    {
        $data = $this->getRequest()->getParams('id');
        return $order = $this->order->loadByIncrementId($data);

    }

in core file

public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Magento\Framework\Registry $registry,
        \Magento\Framework\App\Http\Context $httpContext,
        \Magento\Payment\Helper\Data $paymentHelper,
        array $data = []
    ) {
        $this->_paymentHelper = $paymentHelper;
        $this->_coreRegistry = $registry;
        $this->httpContext = $httpContext;
        parent::__construct($context, $data);
        $this->_isScopePrivate = true;
    }

    /**
     * @return void
     */
    protected function _prepareLayout()
    {
        $this->pageConfig->getTitle()->set(__('Order # %1', $this->getOrder()->getRealOrderId()));
        $infoBlock = $this->_paymentHelper->getInfoBlock($this->getOrder()->getPayment(), $this->getLayout());
        $this->setChild('payment_info', $infoBlock);
    }

    /**
     * @return string
     */
    public function getPaymentInfoHtml()
    {
        return $this->getChildHtml('payment_info');
    }

    /**
     * Retrieve current order model instance
     *
     * @return \Magento\Sales\Model\Order
     */
    public function getOrder()
    {
        return $this->_coreRegistry->registry('current_order');
    }


texts:
I would like to different display product prices for each store. There are 20 to 30 stores on our Magento instance, each store having the same products.  I am looking for something like this example:

website1->store1->store view->10 USD
website1->store2->store view->11 USD


texts: Checks after upgrading Magento to 1.9.3.6 (including SUPEE-10266)?

texts:
Which checks would you suggest to carry out in order to be sure that the Magento upgrade (including the patch SUPEE-10266) has been succesfully?
I made an upgrade and everything look good at first sight.
Thanks for your collaborations.


texts: Magento2 : How to get quantity as dropdown for configurable product in cart page

texts:
In default.phtml

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $productStockObj = $objectManager->get('Magento\CatalogInventory\Api\StockRegistryInterface')->getStockItem($product->getId());
    $qty = $productStockObj->getQty();
   ?>
   <div class="field qty">
<select id="cart-<?php /* @escapeNotVerified */
echo $_item->getId() ?>-qty" name="cart[<?php /* @escapeNotVerified */
echo $_item->getId() ?>][qty]" title="<?php echo $block->escapeHtml(__('Qty')); ?>" data - cart - item -
        id="<?php /* @escapeNotVerified */
        echo $_item->getSku() ?>">
    <?php for ($i = 1; $i <= $qty; $i++): ?>
        <option value="<?php echo $i; ?>"<?php if ($i == $block->getQty()) {
            echo 'selected';
        } ?>><?php echo $i; ?></option>
    <?php endfor; ?>
</select>
 </div>

for simple products only showing dropdown with quantity, for configurable products how to get child products quantity to show in dropdown


texts: Rest API Acess denied 403 for customers and orders

texts: I am trying to get the products,customers and orders through REST Api. It's working forapi/rest/products getting product collection. But unable fetch the customers api/rest/customers and orders api/rest/orders collection it shows Access denied - 403


texts: Magento can't pass the Billing step in the checkout page

texts:
I have Magento 1.9.2.3 installed and I can't checkout, after complete all fields in the Billing Information section and press Continue, I have this error like in the attached image and when I check with Firebug i see this error.

http://example.com/index.php/checkout/onepage/saveBilling/

JSON
    error       1
    message     [""" is a required value.", """ is a required value."]
    0       """ is a required value."
    1       """ is a required value."

Firebug error:

This is the message after press Continue button example:

Update:

I try almost all solutions:
1. app/design/frontend/base/default/template/checkout/onepage/payment.phtml
adding the id “checkout-payment-method-load” to fieldset so change line 36 from fieldset to fieldset id="checkout-payment-method-load"
Anyone? any idea?
2. I remove all fields from billing and I leave only first name and last name, the same error.

I think that is something from my database, I move the database to another host and in a new magento installation, i have the same error in the checkout process.

Update2:
I found the this issue, is in My account too, I try to edit the New Address in My Account > Address Book and i have the same problem, and i observ when i try to save the State/Province field is deselect. I attach image here:

UPDATE:

I inspect the code again and I found that this message "" is a required value. come from here": /app/code/core/Mage/Eav/Model/Attribute/Data/Text.php. I try to remove almost all fields that are in the checkout billing page: I remove the code and I set to 0 in the eav_attributes, now there I have only First Name, Last Name, Country and State/Province. But the same error.

I observe when after press the continue button and the message appear that State/Province selection is automatically canceled. If you look in this picture is not selected now.

Anyone? Any ideas?
Thank you very much


texts:
My locale is set to France but the advanced search only works in US format. I've made a custom attribute (date type) and add it to the advanced search. And there are 3 problems:

The datepicker (default) works in US format no matter which locale I set (the Datepicker translation is ok)
The advanced search only works in US format. If I modify the format (url values) from mm/dd/yy to dd/mm/yy I get no results
The date validation seems to pick the locale from browser. My default locale is de_DE, so a US date "03/13/14" is not valid and I cannot run the search. If I change the browser locale to en_US everything works. (but with US locale)

Questions: How to force Magento to work with the specified locale settings (fr_FR) in the advanced search and validator and to ignore the browser locale?

I work with the community edition. The problem is the same for version 1.7 and 1.8.

UPDATE:

I found the place where the browser locale is detected:
app/code/core/Mage/CatalogSearch/Model/Resource/Advanced/Collection.php

if (!Zend_Date::isDate($conditionValue['from'])) {
    Mage::throwException($invalidDateMessage);
}

app/code/core/Zend/Date.php

$locale = Zend_Locale::findLocale($locale);

If I change it to the following I can force the locale to en_US for example:

if (!Zend_Date::isDate($conditionValue['from'], null, 'en_US')) {
    Mage::throwException($invalidDateMessage);
}

The next problematic code where the date format is hardcoded is in:
app/code/core/Mage/CatalogSearch/Block/Advanced/Form.php

->setFormat('%m/%d/%y')

The only thing I cannot find is where the search query is build for the date type. It seems that the date format is harcoded to en_US in multiple places throughout the code or the setted locale is totally ignored which really sucks!


texts: Are stock and price alerts ever removed?

texts: The Mage_ProductAlert module sends product alerts to customers and updates the sent records in the tables  product_alert_price and product_alert_stock. However, I was looking for any processes that remove old records but couldn't find anything related to that respect. Are these records ever removed once their corresponding emails are sent?


texts: CSS and JS Coming from HTTPS on an HTTPS site

texts:
In My website when i activate https,all url is coming from http instead of https.

I have tried to debug the same and found out that the url generated by

$designPackage->getSkinUrl($name, array());

in app/code/core/Mage/Page/Block/Html/Head.php

I am unable to find what is the issue when we try host website on https.


texts:
I am developing a Magento 2 Payment Gateway
now I need to get order total to make the payment
how to get it on Magento 2 using Magento Cart Models?

Thanks


texts:
want to get Rs.5,190.00 using jquery, below is html

Review YourOrder

              Subtotal
              Rs.5,190.00


texts:
How can we get the correct path of require.js with some Helper file in Magento 2?
Is getViewFileUrl can be used and if yes, how it can be used?


texts: Magento 2 - Changed the base URL but old base url seems to be cached somewhere. Any ideas?

texts:
I installed Magento 2 (Dev RC) on an ubuntu instance on Google Conpute Engine. I changed the base url in the admin under stores > configuartion > web to a domain name.

It didn't work as I had hoped so I tried changing the base URL back to the original URL, which was http://IPaddress/magento2/, using phpmyadmin and changing core_config_data > web/unsecure/base_url

However, now when I try to access admin, all the css and js files are missing as the server is trying to load them using the old url.

I've looked in /var/cache and /var/session and can't find any files to remove.

Can anyone help? thanks


texts:
A cursory review of some classes in the Magento 2 codebase seems like the core devs do not intend to change how currencies are architected in the new version. Shouldn't this be reconsidered in light of the growing popularity of virtual currencies (Bitcoin, Litecoin, etc)?

It seems that adding a new currency to the system shouldn't involve modifications to /lib/Zend or other core files, but this appears to be the case. Imagine the nightmares you'd experience trying to allow users of your store to make purchases with just a small number of virtual currencies - those modules are going to be walking all over each other!

Also of note is the practice of having currency/locale/language all so tighly coupled.

Are store owners/developers going to have to continue resorting to core file hacks to use virtual currencies? Are there any plans to modify the architecture to make implementing new virtual currencies more manageable?


texts: Super Global SERVER Variable alternative in Magento2

texts:
I am creating extension in Magento2 and also try to follow the all coding standards that magento2 is recommending using EcgM2 standard. Can any one tell me alternative of SERVER['SERVER_NAME'] variable. What i have done is below. I am using SERVER variable alternative in Helper so following is my construct and i have add dependency of $httpRequest

public function __construct(\Magento\Framework\App\RequestInterface $httpRequest,\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Psr\Log\LoggerInterface $logger, \Magento\Store\Model\StoreManagerInterface $storeManager)
    {
        $this -> scopeConfig = $scopeConfig;
        $this -> storeManager = $storeManager;
        $this -> logger = $logger;
        // MY CUSTOM Request Property
        $this-> request = $httpRequest;
    }

Further i have used it like below

 $domain =$this->request->getServer('SERVER_NAME');

Is it correct ? Is it better idea?

Can anyone have reference link of documentation that shows the alternative of these global variable and not allowed function in magento2 like

  $FILE,base64_decode


texts: Magento 2 : Check log in customer email id while applying coupon code on cart

texts:
I want to check customer's email id when he is applying coupon code on cart page.

If customer email is valid for that coupon then coupon code will be apply otherwise display an error.

For this, i tried to overwrite CouponPost.php controller but getting an error like "Type Error occurred when creating object: Vendor\Test\Controller\Cart\CouponPost\Interceptor"


texts: Save quote in same order as cart details show on frontend

texts:
I have selected a bundle product with 5 options say a,b,c,d,e. On cart details it appears in same order but if I check sales_flat_quote_item table ,order of bundle options gets changed let's say a,d,b,e,c. That's why when I place the order , order of options  in sales_flat_order_item also appears same as quote order.

And when I see that product in admin sales->orders, order appears to be disturbed as saved in sales_flat_order_item.

I want to show the order of bundled options same as it appeared on cart details before placing order.


texts: How to link product in parent category to same product in sub category

texts:
I've got a parent category (clothing) and a subcategory (jeans). There's a product called "hip blue jeans", which is assigned ONLY to the subcategory "jeans" and NOT to it's parent category "clothing".

The parent category "clothing" is set as anchor.

If I navigate to the parent category "clothing" in frontend the product "hip blue jeans" will show up.
If I click it I will be linked to "Shop" -> "Categories" -> "Clothing" (to the parent category) -> "hip blue jeans", BUT I want to be navigated to "Shop" -> "Categories" -> "Clothing" -> "jeans" (directly to the sub category) -> "hip blue jeans".

Is there any way to archive this?


texts: Magento 2 Hide price and add to cart button for specific product

texts: I want to hide the Prices and add to cart button on the specific product places e.g bags,shoes etc. I have hide the price for all stores but I am not able to hide price on the specific products.


texts: Magento 2: Upgrading a "Meta Package" Install

texts:
A while back, I installed Magento 2 via the composer meta-package.  This is also known as the integrator install.

This appears to have installed Magento CE 2.0.1.  Is there a way to upgrade this version to the latest Magento CE 2.0.3?  I realize I could update the composer.json so that the 2.0.1 here

"require": {
    "magento/product-community-edition": "2.0.1",

becomes

"require": {
    "magento/product-community-edition": "2.0.3",

However, that would miss files like

app/etc/NonComposerComponentRegistration.php

As well as any updates to the composer.json file itself.

Is it possible to update a version of Magento 2 installed with the meta package?  Or is this not the intent of the meta packages?


texts: Magento Responsive Menu not positioned correctly

texts: Magento does not work as well on a phone as on a computer. When I use a Magento-based website on my phone, the top menu is below the image banner.


texts:
I set up a Magento store (UK Based) last year using Magento CE 1.8.1. The company wasn't VAT registered so I ignored VAT and how to implement it within Magento.

We are now registered for VAT, and so I decided to look into setting up VAT on the site.  I read a lot of articles and they all said go to Admin > Sales > Tax and set up customer classes, product classes and Tax Rule - oops I don't have a TAX section in Admin > Sales, on my version of Magento - Tax is in System >Configuration > Sales and it has NO options for setting up tax rules, tax amounts, product classes or customer classes.  I'm guessing here that I'm doing something badly wrong, but despite my efforts, I can't see what.

Can someone please help me? For heaven's sake, how hard can it be?


texts: Load textarea attribute in product page via custom block

texts:
I'm trying to show an attribute in product page.
I have create my .phtml file with the bellow code.

<?php
  $_prodID = Mage::registry('current_product')->getId();
  $_product = Mage::getModel('catalog/product')->load($_prodID);
?>

<?php echo $_product->getData('assembly_instructions'); ?>

and I'm calling the block with this code

{{block type="core/template" template="catalog/product/view/attributes/assembly.phtml"}}

The above code loads the info of the attribute but it show's the same info in every product.

Doesn't load different info of each product, loads the info that i will see for the first time and this will be cached.

I have search it here in forum and i have follow this https://stackoverflow.com/questions/13883139/how-to-add-product-attribute-on-product-page-via-cms-block-magento but hasn't help a lot.

Can someone help me with this?


texts: Is there a better practice than using Object Manager?

texts:
I was wondering if there was a better way to use the resources than object manager, here is how i'm currently using the category factory's. I am very new to Magento.

<?php

namespace XX\TierPriceSummary\Block\Adminhtml\Index;

class Index extends \Magento\Backend\Block\Widget\Container
{

    protected $_customerGroupsCollection;
    protected $_productRepository;
    protected $_resource;
    private   $storeID = 1;

    public function __construct(
        \Magento\Backend\Block\Widget\Context $context,
        \Magento\Customer\Model\ResourceModel\Group\Collection $customerGroupsCollection,
        \Magento\Catalog\Model\ProductRepository $productRepository,
        \Magento\Framework\App\ResourceConnection $resource,
        array $data = []
    ) {
        $this->_customerGroupsCollection = $customerGroupsCollection;
        $this->_productRepository = $productRepository;
        $this->_resource = $resource;
        parent::__construct(
            $context,
            $data
        );
    }

    private function getProductTierPrice($SubCategoryID,$pID,$groupID){
        $objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
        $categoryFactory = $objectManager->get('\Magento\Catalog\Model\CategoryFactory');
        $categoryHelper = $objectManager->get('\Magento\Catalog\Helper\Category');
        $categoryRepository = $objectManager->get('\Magento\Catalog\Model\CategoryRepository');

        //do something
        }

}


texts: Magento 2 composer update with sample data removes uploaded images?

texts:
After running a composer update from 2.0.0 to 2.0.1 on a Magento 2 store that was set up with sample data, any images that were uploaded via an import to pub/media/import and assigned in pub/media/catalog/product appear to have been deleted.

Is this the expected behavior?


texts: i want to override file vendor/magento/module-theme/view/frontend/layout/default.xml in magento 2.3 porto theme

texts:
I am using smartwave porto theme in magneto 2.3.2.I am new in magento.How to override this above title file.
But I checked in app/design/frontend/Smartwave/porto/Smartwave_Porto/
In above path module-theme/view/frontend/layout/default.xml  there is nothing like this.
Please not clear to me how to override this.


texts: How can i give all images same size in magento 1.9 product listing page?

texts: Images in my product page are of different sizes. Some of them go long vertical. How can i make them all to same sizes ?


texts: Launch Polyfill.io BEFORE Magento 2 scripts

texts:
I need to use the https://polyfill.io/v2/docs/ library for a Magento 2 project, so I called it in : htdocs/app/design/frontend/my_theme/default/Magento_Theme/layout/default_head_blocks.xml

With this code :

<script src="https://maxcdn.bhttps://cdn.polyfill.io/v2/polyfill.min.js" src_type="url" />

The library is loaded, but it's loaded AFTER Magento scripts and not BEFORE, so it doesn't work.


texts: On Cart page, Estimate Shipping and Tax section not updating shipping rates on change of state and zipcode

texts:
My cart page only fetches shipping rates first time on the initial page load. After that changes in state and zip-code is not updating the shipping rates section.

Can someone point out what can be wrong and how to debug this? I am basically looking for an understanding of how this section works. And which code parts to look at to identify the problem?


texts: Checkout page street address filed custom validation

texts:
How can I set min_text_length of street address field on the checkout page to 2?
I have referred the below link
Magento 2: How to set Max Length for Street Address?
but it doesn't work!


texts:
I'm trying to globally replace the catalog/product/list/toolbar.phtml and the catalog/category/view.phtml templates using local.xml. I know I could just put my versions of the file with the same name in my theme folder, but I read that's not best practice.

I thought to change it globally, in my <default> tags, I could place:

<reference name="product_list_toolbar">
    <action method="setTemplate"><template>catalog/product/list/tia_toolbar.phtml</template></action>
</reference>

<reference name="category.products">
    <action method="setTemplate"><template>catalog/category/tia_view.phtml</template></action>
</reference>

But that doesn't work, yet it does when I place it in <catalog_category_default> and <catalog_category_layered> tags, but I'd rather not repeat the same bit of code across all the different category layouts.

Why doesn't it work in my <default> tags and is there anyway to make it work?


texts: Magento 2.1.0 & Google Analytics - Tracking Code or Google API?

texts:
Where should I set (paste) the Google API code?

I'm using Magento 2.1.0 version.


texts: How To add css and js file 3columns.phtml page

texts:
I am trying to add some additional css/js to the 3columns.phtml page. First I have tried to add it in page.xml page
app/design/frontend/mytheme/layout/page.xml

My code is

<page_three_columns translate="label">
        <label>All Three-Column Layout Pages</label>
        <reference name="root">
            <action method="setTemplate"><template>page/3columns.phtml</template></action>
            <!-- Mark root page block that template is applied -->
            <action method="setIsHandle"><applied>1</applied></action>
            <action method="setLayoutCode"><name>three_columns</name></action>
        </reference>
        <reference name="head">
            <action method="addItem"><type>skin_css</type><name>css/bootstrap/bootstrap.css</name></action>
            <action method="addItem"><type>skin_css</type><name>css/bootstrap/bootstrap.min.css</name></action>
            <action method="addItem"><type>skin_js</type><name>js/bootstrap/bootstrap.js</name></action>
        </reference>
    </page_three_columns>

But there was no change at the 3columns.phtml pages.Then I add the css/js files only at the catelog product view page, but no change. my default local.xml file

<catalog_product_view translate="label">
        <reference name="root">
            <action method="setTemplate">
                <template>page/3columns.phtml</template>
            </action>
        </reference>
        <reference name="head">
            <action method="addItem"><type>skin_css</type><name>css/bootstrap/bootstrap.css</name></action>
            <action method="addItem"><type>skin_css</type><name>css/bootstrap/bootstrap.min.css</name></action>
            <action method="addItem"><type>skin_js</type><name>js/bootstrap/bootstrap.js</name></action>
            <action method="addItem"><type>skin_js</type><name>js/bootstrap/bootstrap.min.js</name></action>
        </reference>
    </catalog_product_view>

So Please tell me..Is that a correct way.. Is that any format to add js/css files at basic pages.. Please guide me


texts:
I've been searching high and low but I can't seem to find any information on this. My client would like the ability of multiple email addresses to a customer, so that all sales emails would be sent out to a possible 2+ email addresses.

I know about customer fields, its  the email side I"m a bit wary of.

Has any one got experience with this or have any suggestion on how to approach this?

Thanks


texts: Add Language store view effect performance badly?

texts:
I'm considering to add more language store view

We have over 90,000 sku products. Magento 1.8.1

Adding another language store view effect any performance badly?

If so, where and how much effect? front-end or back-end, Search speed, reindex time etc


texts:
I have automated mail sending function in Magento 1.9 code.

I have used mail template for sending mail (using default magento functionality)

but now i want to add one form in that mail which contains some MCQ type question and it get answerd by user who receive mail.

And it get saved on Magento side for future scope/reference as well as once user submits that form one email should go to Magento admin also.

I expect result as ,

1) By cron or manually mail sent to user/customer and in that mail body contains one form which have MCQ type 3 or 4 question.

2) After submitting that form by Customer or user there answer should save on Magento Side

3) After submitting Form A mail should go to Magento Admin with there answers

Thanks In Advance :)


texts:
How can I set a custom tax rate for each individual product?

I don't want to have to set up a separate tax class for each, I'd like to be able to just type in a value for each product.


texts: Coupon code - Buy one of some products, get one different product free once

texts:
I hope you can help me out on this one :)
I've tried different ways of achieving this but up untill now with no luck. I'm starting to doubt if maybe the apply coupon button isn't working or the price simply doesn't get updated.. Or most likely: that my combination of conditions are just not correct, hah :)

So, I have tried to set conditions with categories and I've tried it with sku's.
The idea is that if a customer buys one (or multiple) products in a specific category, that they'll get another product for free.

In this example below, I chose the option to add a percentage of discount - 100%. The product below at the Actions section is the one that should get 100% discount. The ones in the condition section should be in the cart in order to apply this discount. I've also tried a fixed amount, which was the entire price of the product. Also tried to set both the percentage and price discount options to less than the total amount of the product to see if that could possibly work. None of them with any success.

Example 1:
Conditions:

  If ALL  of these conditions are TRUE :

  If total quantity  equals or greater than  1  for a subselection of items in cart matching ALL  of these conditions:
    Category  is  00

Actions:
Percent of product price discount = 100, max qty discount is applied to 1

  If ALL  of these conditions are TRUE :

  Category  is  11

Also tried this with sku's, or at the condition part with - If an item is FOUND  in the cart with ALL  of these conditions true: - instead of the quantity rule. Also tried to change ALL to ANY.

Example 2, the sku version:

  If ALL  of these conditions are TRUE :

  If total quantity  equals or greater than  1  for a subselection of items in cart matching ALL  of these conditions:
         SKU  is one of  poduct1, product2, ...

  If ALL  of these conditions are TRUE :

  Category  is  11

I've possible tried other combinations too, but I kind of lost track of all these combinations that I've tried, hah.

I'm wondering how I can achieve this with the rule combinations.. If even possible.
Or is the above correct and is it something else?

Am I even in the correct direction to achieve this discount rule thing?


texts: Magento2 adding 3rd party jQuery files to module

texts:
I am trying to add in some 3rd party jQuery code to my Magento2 module. I want to have my own custom js file that will use the 3rd party code. Before I was adding the code into the header instead of using Magneto2's requireJS structure. I am not sure of the proper way to add in the files. The third party js file= slick.js and my custom js file= configurator.js.

I was under the impression that you are supposed to add a script type="text/x-magento-init" in the template in which you add your custom js file in (I am note sure what to put here). Followed by adding a shim and path config for the 3rd part js in the require-config.js.

My file structure:

some of my code:

my custom js file:

require(['jquery','slick'], function($){
    $(function(){
        $('.main-gallery').slick();
    });
});

my requirejs-config.js

var config = {
    map: {
        "*": {
            slick: 'Briteskies_ProductConfigurator/js/slick-1.5.7/slick'
        }
    },
    paths: {
        "slick": 'js/slick-1.5.7/slick'
    },
    "shim": {
        "slick" : ["jquery"]
    }
};

Any input would be great, thanks!


texts:
I m getting this error while import database from server to local host.

There has been an error processing your request

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '415436' for key 'PRIMARY'

Trace:
#0 C:\xampp\htdocs\surtikart\lib\Varien\Db\Statement\Pdo\Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 C:\xampp\htdocs\surtikart\app\code\core\Zend\Db\Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 C:\xampp\htdocs\surtikart\lib\Zend\Db\Adapter\Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 C:\xampp\htdocs\surtikart\lib\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `lo...', Array)
#4 C:\xampp\htdocs\surtikart\lib\Varien\Db\Adapter\Pdo\Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `lo...', Array)
#5 C:\xampp\htdocs\surtikart\lib\Zend\Db\Adapter\Abstract.php(576): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `lo...', Array)
#6 C:\xampp\htdocs\surtikart\app\code\core\Mage\Log\Model\Resource\Visitor.php(174): Zend_Db_Adapter_Abstract->insert('log_visitor_inf...', Array)
#7 C:\xampp\htdocs\surtikart\app\code\core\Mage\Log\Model\Resource\Visitor.php(108): Mage_Log_Model_Resource_Visitor->_saveVisitorInfo(Object(Mage_Log_Model_Visitor))
#8 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(463): Mage_Log_Model_Resource_Visitor->_afterSave(Object(Mage_Log_Model_Visitor))
#9 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Model\Abstract.php(318): Mage_Core_Model_Resource_Db_Abstract->save(Object(Mage_Log_Model_Visitor))
#10 C:\xampp\htdocs\surtikart\app\code\core\Mage\Log\Model\Visitor.php(168): Mage_Core_Model_Abstract->save()
#11 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Model\App.php(1338): Mage_Log_Model_Visitor->initByRequest(Object(Varien_Event_Observer))
#12 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Model\App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Log_Model_Visitor), 'initByRequest', Object(Varien_Event_Observer))
#13 C:\xampp\htdocs\surtikart\app\Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#14 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Controller\Varien\Action.php(527): Mage::dispatchEvent('controller_acti...', Array)
#15 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Controller\Front\Action.php(64): Mage_Core_Controller_Varien_Action->preDispatch()
#16 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Controller\Varien\Action.php(407): Mage_Core_Controller_Front_Action->preDispatch()
#17 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#18 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 C:\xampp\htdocs\surtikart\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 C:\xampp\htdocs\surtikart\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#21 C:\xampp\htdocs\surtikart\index.php(94): Mage::run('', 'store')
#22 {main}

Error log record number: 1833631927

Magento is a trademark of Magento Inc. Copyright © 2014 Magento Inc.


texts: Magento 2 Create Date with Time attribute for product

texts:
I have tried to create datetime attribute in Magento 2.
Below is my script:

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

 $eavSetup->removeAttribute(\Magento\Catalog\Model\Product::ENTITY, 'course_start_datetime');
 $eavSetup->addAttribute(
       \Magento\Catalog\Model\Product::ENTITY,
        'course_start',
        [
            'group' => 'Custom Attribute',
            'label' => 'Enable Start Date',
            'type' => 'datetime',
            'input' => 'date',
            'input_renderer' => 'Velanapps\Test\Block\Adminhtml\Form\Element\Datetime',
            'class' => 'validate-date',
            'backend' => 'Magento\Catalog\Model\Attribute\Backend\Startdate',
            'required' => false,
            'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
            'visible' => true,
            'required' => false,
            'user_defined' => true,
            'default' => '',
            'searchable' => true,
            'filterable' => true,
            'filterable_in_search' => true,
            'visible_in_advanced_search' => true,
            'comparable' => false,
            'visible_on_front' => false,
            'used_in_product_listing' => true,
            'unique' => false
        ]
    );

And the block for input renderer is below:

  <?php
  namespace Velanapps\Test\Block\Adminhtml\Form\Element;
  use Magento\Framework\Data\Form\Element\Date;

  class DateTime extends Date {
       public function getElementHtml() {
           $this->setDateFormat($this->localeDate->getDateFormat(\IntlDateFormatter::SHORT));
           $this->setTimeFormat($this->localeDate->getTimeFormat(\IntlDateFormatter::SHORT));
           return parent::getElementHtml();
       }
  }

But is only show date. Please let me know if anybody has created with time already..
Thanks in advance...


texts: Defualt Category product tab not work in cateogry page admin

texts:
Fatal error: Call to a member function toHtml() on a non-object in app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php on line 153

$this->addTab('products', array(
            'label'     => Mage::helper('catalog')->__('Category Products'),
            'content'   => $this->getLayout()->createBlock(
                'adminhtml/catalog_category_tab_product',
                'category.product.grid'
            )->toHtml(),
        ));


texts: Action when i change the status of an order

texts:
I need some help i want generate a json from orders completed, if i change the status order into admin panel, i want to make a json of that order.

Could you help me, how can i execute a script or action, when i change status of an order to Completed ?

i'm not sure if i can do it with, catalog_product_save_before, could u help me to do it?


texts: Estimate Shipping and Tax removed (show transport costs)

texts:
I removed "Estimate Shipping and Tax" by doing this:

<!--
<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>
-->

But how do i get the transport costs in the cart vieuw now?
i only got 1 transport cost and its 5,95 so it should just always show this.
(ps. there is a cart promotion code that makes it 0 after 500 euro)

Is there a way? maybe force the estimate shipping and tax to estimate the Netherlands in the back automatic?

Thanks in advance.

4-4-2016 this topic is still unsloved, i'm stil hoping for an solution
5-4-2016 this topic is still unsloved, i'm stil hoping for an solution
6-4-2016 this topic is still unsloved, i'm stil hoping for an solution
7-4-2016 this topic is still unsloved, i'm stil hoping for an solution
8-4-2016 this topic is still unsloved, i'm stil hoping for an solution
9-4-2016 this topic is still unsloved, i'm stil hoping for an solution
13-4-2016 this topic is still unsloved, i'm stil hoping for an solution
14-4-2016 this topic is still unsloved, i'm stil hoping for an solution
15-4-2016 this topic is still unsloved, i'm stil hoping for an solution
16-4-2016 this topic is still unsloved, i'm stil hoping for an solution
18-4-2016 this topic is still unsloved, i'm stil hoping for an solution
19-4-2016 this topic is still unsloved, i'm stil hoping for an solution
20-4-2016 this topic is still unsloved, i'm stil hoping for an solution
23-4-2016 this topic is still unsloved, i'm stil hoping for an solution
26-4-2016 this topic is still unsloved, i'm stil hoping for an solution
29-4-2016 this topic is still unsloved, i'm stil hoping for an solution
4-5-2016 this topic is still unsloved, i'm stil hoping for an solution
6-5-2016 this topic is still unsloved, i'm stil hoping for an solution
9-5-2016 this topic is still unsloved, i'm stil hoping for an solution
10-5-2016 this topic is still unsloved, i'm stil hoping for an solution
11-5-2016 this topic is still unsloved, i'm stil hoping for an solution
6-6-2016 this topic is still unsloved, i'm stil hoping for an solution


texts: How to sort grouped products without modifying core files

texts:
The last answer here is exactly what I'm looking for, but I want to do it the clean way:
How to sort associated products in a grouped product

Has anybody a solution to achieve this within the grouped.phtml I rather don't want to open up an own module just for this sorting.

I tried $_associatedProducts = $this->getAssociatedProducts($_product)->addAttributeToSort('entity_id', 'ASC');but that doesn't work.


texts: Magento 2.3.4 magento blank and luma theme less compilation error

texts:
After updating to Magento 2.3.4 from 2.2.6 on my staging server with nginx server and php7.2 I am facing issue in compiling less and css files. The files styles-l.css and styles-m.css are missing - not generated.

During static contend deploy I get errors:
Compilation from source:

vendor/magento/theme-frontend-blank/web/css/styles-l.less
variable @modal-popup-breakpoint-screen__m is undefined in file var/view_preprocessed/pub/static/frontend/Magento/blank/en_US/Magento_Checkout/css/source/module/checkout/_tooltip.less in _tooltip.less on line 11, column 41
09|
10| @checkout-tooltip__hover__z-index: @tooltip__z-index;
11| @checkout-tooltip-breakpoint__screen-m: @modal-popup-breakpoint-screen__m;
12|
13| @checkout-tooltip-icon-arrow__font-size: 10px;
14| @checkout-tooltip-icon-arrow__left: -( @checkout-tooltip-content__padding + @checkout-tooltip-icon-arrow__font-size - @checkout-tooltip-content__border-width);

tried this but not fixed
Magento 2 less compilation error while setup:static-content:deploy

remove pub/static/adminhtml, pub/static/frontent, var/view_preprocessed. After that, deploy your Magento again via SSH and check your site again.


texts: How can I access the data from new column to existing table in Magento2

texts:
I have added a new column (PIN_ID) to the existing magento 2 table('sales_order') by 'Setup/UpgradeSchema',
what's the best practice to access(get or retrieve) the data?

PS


texts: How to find out which layout handles to be changed?

texts:
How do I find out which handles should I use when I want to customize a certain page?

For example, by searching online, I found out that checkout_onepage_index is the handle to modify the Checkout page. I don't know about this magic, but somehow somebody just know it and I want to know how the learn this magic.

<?xml version="1.0"?>
<layout>
    <checkout_onepage_index>
        <reference name="head"></reference>
    </checkout_onepage_index>
</layout>

How do I know what handles if let say I want to modify the success page instead? or the frontend order detail page? etc...?


texts: Why is the payment method Cash On Delivery not activatable by store view (show_in_store)?

texts:
I mean activate the payment method, not change the title or label, because that is possible.

Lets say I just want our storeview Australia to allow this payment method but none of our other store views, I can not do this without hacking or writing a custom module.

It's the same with the Customer Prefix Options, which you can not edit on a store view basis, which I find extremely irritating.

Is there any specific reason this is not done by default in the system.xml in the core module code? Why would the developers decide not to allow this on a store basis?

<cashondelivery translate="label">
                    Cash On Delivery Payment
                    <frontend_type>text</frontend_type>
                    <sort_order>30</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <active translate="label">
                            Enabled
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>0</show_in_store>
                        </active>


texts: How to overide checkout-agreements.html template

texts:
I was trying to overide checkout-agreements.html template via app/code and i created

Vendor/Module/view/frontend/requirejs-config.js

var config = {
    map: {
        '*': {
          'Magento_CheckoutAgreements/template/checkout/checkout-agreements.html':
          'Nami_CheckoutAgreements/template/checkout/checkout-agreements.html'
        }
    }
  };

Next i created

Vendor/Module/view/frontend/web/template/checkout/checkout-agreements.html

It's almost working becasue template is override but console show this error

And when i try place order, console showing me this error and order is not completed.

Any ideas? I was trying overdie this checkout-agreements.html via app/design/frontend/Vendor/MyTheme/Magento_CheckoutAgreements/web/template/checkout/checkout-agreements.html
But it's not working and now i dont have any ideas. Please help


texts:
I wanted to confirm what is the link of order status to order state..?
Means if i link multiple Order status to order state e.g. to Processing, what does it mean?


texts: Get order collection between a date range magento 2

texts:
I have code for magento 1 site. Need to run on Magento 2.
I have used this code on outside of magento using this.

use Magento\Framework\App\Bootstrap;
require_once '../app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');

$fromDate = date('Y-m-d 00:00:00', strtotime($_POST['fromdate1']));
$toDate = date('Y-m-d 23:59:59', strtotime($_POST['todate1']));
$order_status = $_POST['order_status1'];
$orders = Mage::getModel('sales/order')->getCollection()->addAttributeToFilter('created_at', array('from'=>$fromDate, 'to'=>$toDate));
        $orders->addFieldToFilter('status', array('in' => array($order_status)));
        //echo $totalOrders = count($orders);


texts:
I’m currently using the following code to update/save invoices & orders after creating a partial invoice.

$invoice->getOrder()->setIsInProcess(true);
Mage::getModel('core/resource_transaction')
    ->addObject($invoice)
    ->addObject($invoice->getOrder())
;
$invoice->save();
$order->save();

To me, it looks like both $invoice->save() & the adding an object to the resource transaction do the same thing.

Should I still be using both, or should I only use one or the other?


texts: Add custom price to item checkout summary Magento 2

texts:
Product sale price is custom (different from price-saleprice). Now i want to show row total based on Original mrp(Mrp*qty). Its displaying row total based on custom (sale price * qty).  I did below to achieve this
Created   di.xml

 <?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">

<type name="Magento\Checkout\Model\DefaultConfigProvider">
    <plugin name="AddAttPlug" type="[company]\[module]\Model\Plugin\ConfigProviderPlugin" />
</type>
</config>

namespace [company][module]\Model\Plugin;

class ConfigProviderPlugin extends \Magento\Framework\Model\AbstractModel
{

public function afterGetConfig(\Magento\Checkout\Model\DefaultConfigProvider $subject, array $result)
{

    $items = $result['totalsData']['items'];

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    for($i=0;$i<count($items);$i++){

        $quoteId = $items[$i]['item_id'];
        $quote = $objectManager->create('\Magento\Quote\Model\Quote\Item')->load($quoteId);
        $originalRowTotal = $quote->getOriginalPriceRowTotal();

        $items[$i]['original_row_total'] = $originalRowTotal;
    }
    $result['totalsData']['items'] = $items;
    return $result;
}

}

[company]/[module]/view/frontend/web/js/checkout/summary/items/details/subtotal.js

define(
[
    'Magento_Checkout/js/view/summary/abstract-total'
],
function (viewModel) {
    "use strict";
    return viewModel.extend({
        defaults: {
            displayArea: 'after_details',
            template: 'Magento_Checkout/summary/item/details/subtotal'
        },
        getValue: function(quoteItem) {
            return this.getFormattedPrice(quoteItem.original_row_total);
        }
    });
}
);

I am getting the value right on proceed to checkout but when i go to next step payment and review that value is going to 0.And form payment review to back to shipping step its again going to 0.


texts: Magento 2.2.5 Product details blank page while switching to Production mode

texts:
My magento site when setting to Prod mode displays blank Product detail page. The page is perfect in developer mode though.

Screenshot: https://prnt.sc/qmt3db

I ran the following while changing the mode.
bin/magento deploy:mode:set production

After that,

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex

I also tried reindexing the files, but none of my efforts to fix this worked and I had to revert as I was playing with Live site.

I have a feeling reading other forums that some extensions may be causing this to happen; but I am still puzzled whether this is correct or not. My list of extensions are as follows:

Aheadworks Coupongenerator
Aheadworks Followupemail2
Aheadworks OnSale
Magefan Blog
Mageplaza One step checkout
Magesales Auspost
MageWorx OrderEditor
Sm Zumi
Sm ShopBy
Sm SearchBox
Sm MegaMenu
Sm ListingTabs
Sm InstagramGallery
Sm FilterProducts
Sm Categories
Sm CartQuickPro
Sm BackEnd
Eway payment

Please provide your suggestions on how I may be able to solve this.

Thanks!


texts: Order Total on Cart not showing price with TAX

texts:
Using Magento 2.1.3 - Adding a product to the cart, then doing to the cart page the Grand Total shows up without taken into account Tax, however on the main area were the cart list the products they will have the Tax price there.

Shipping Origin has been set and shopping Cart display settings is set to:

Display Prices: Including Tax
Display Subtotal: Including Tax
Display Shipping Amount: Including Tax
Include Tax in Order Total: Yes
Display Full Tax Summary: Yes
Display Zero Tax Subtotal: No

Is there anyway to get Tax to correctly display on the Grand Total on Cart


texts:
I need to work with xml and something doesn't work same it's always.

Is there a way to see errors in xml syntax, calls, or something.

I don't see nothing in Magento's log, or even in apache's log.

UPDATE

My question is in general, because all the time i did something in Magento 2 that implies an xml is horrible.
Now the problem is with the ui_component following this guide

Maybe the ui_component layout isn't load, but i don't see the "add New" button.


texts: Magento 2 : How do redirect to previous page after Registration (Create An Account)?

texts:
I want to redirect customer after new registration on referrer page like if the customer is view any specific product and then he clicks for registration then after registration we want to redirect on same page. Its working file for login and I want to do same thing on registration.

How we change the default redirect in case of new registration ?


texts:
I am facing a strange problem with my magento 1.7 installation.
If I upload images for any product, save and check the product on the frontend, facing this error

  a:5:{i:0;s:1203:"Invalid method
  Mage_Catalog_Block_Product_View_Media::isGalleryImageVisible(Array (
  [0] => Varien_Object Object ( [_data:protected] => Array ( [value_id]
  => 8 [file] => /1/0/10425097_688517641274252_8269930450739102673_n.jpg [label] => [position] => 1 [disabled] => 0 [label_default] =>
  [position_default] => 1 [disabled_default] => 0

Product works fine if no image is attached.

Any thoughts what is causing the issue?


texts:
I've been working on a new Magento implementation for a client, and I seem to be hitting a snag with the Magento REST API. I had no issues getting past Oauth. I've run into that before, but my question is about how Magento stores information.

When I make a request like http://www.myMagentoHost.com/api/rest/products?limit=25

The returned JSON contains results with just a string for each entry from 1 to 25. I'll provide an example below. The product catalog in our site has a large amount of product information in it. So I'm not sure why none of that information is being returned. This request is made as a guest user as I'm trying to expose this information to general browsing via a 3rd party mobile application.

I'm a newbie to Magento, so I was wondering if I need to change any settings to expose the pricing and product information to the REST api, or if I'm simply doing something wrong.

{

    "1": [],
    "4": [],
    "5": [],
    "6": [],
    "7": [],
    "8": [],
    "9": [],
    "10": [],
    "11": [],
    "12": [],
    "13": [],
    "14": [],
    "15": [],
    "16": [],
    "17": [],
    "18": [],
    "19": [],
    "20": [],
    "21": [],
    "22": [],
    "23": [],
    "24": [],
    "25": []

}


texts: How to remove parent theme image sizes in Magento 2.1

texts:
A purchased theme contains many different image sizes, most of which we will not use.

To speed up image processing, is there a way to remove these definitions from within the child theme without removing the original definitions in the parent theme's view.xml file?

e.g. in the same way a block can be removed, could an image definition be removed?


texts: Price is not updating when dropdown is selected for configurable items

texts: I am having a small issue in where the price is not being updated on Magento 1.9. When I select a drop down selection the price is still fixed to the configurable price. I have learned that Magento does not take the prices of the simple items. Which I am ok with, but I don't understand there reasoning behind it. How do I go about fixing this issue?I added the console error that I get that may help.


texts: Unique constraint violation found - When remove suffix .html - Magento 2.2.0

texts:
When I try to remove the .html suffix from category, Magento 2.2.0 gives me this error.

Has anyone else ran into the same problem? How can I resolve it?

Thank you


texts: Magento 2: how do customer sections / sections.xml work?

texts:
I recently came accross a new concept in Magento 2 that I found interesting: customer sections

Some of you may have notice the presence of sections.xml files that look like this:

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
    <action name="sales/guest/reorder">

    </action>
    <action name="sales/order/reorder">

    </action>
</config>

From what I understood, those files specify which customer sections should be updated when the corresponding action is called.

I noticed for instance with the Magento/Checkout/etc/frontend/sections.xml the following part:

<action name="checkout/cart/add">

</action>

Is what triggers the minicart update after you have added a product to the cart.

I tried to create a custom module with the following etc/frontend/sections.xml file to test that feature:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
    <action name="checkout/cart/index">

    </action>
</config>

But it does not seem to try to update my cart section when I reach the cart page (no GET request in the console). It seems like this whole section functionality is handled by the Magento_Customer module in some way.

What are exactly those sections ? How do you define a section ?
How are the section updates triggered ?
(Optional) How can I fix my test code to update the minicart when I reach the cart page ?


texts: Add a custom input from phtml in admin form

texts:
I'm using custom phtml to display some data in an admin Ui form tab, and I want to be able to have a custom input that would get sent to the controller when I hit 'save'
ui_form.xml
 <fieldset name="comments">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string" translate="true">Comments</item>
            <item name="collapsible" xsi:type="boolean">false</item>
            <item name="canShow" xsi:type="boolean">true</item>
            <item name="sortOrder" xsi:type="string">1</item>
        </item>
    </argument>
    <container name="custom_tab_container">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="sortOrder" xsi:type="string">1</item>
            </item>
        </argument>
        <htmlContent name="html_content">
            <argument name="block" xsi:type="object">Path/To/My/Block/Rendering/Data</argument>
        </htmlContent>
    </container>

</fieldset>

What I want:
custom_template.phtml
<?php

/** @var $block Path/To/My/Block/Rendering/Data */
?>

<div id="custom_input_id">
    <input name="custom_input" value="default" />
</div>

Current result:

Right now everything renders like it should, except that the data from my custom input is not sent to the save controller. How can I make this work ?


texts: Pagination for special price page magento

texts:
i have special price page, but pagination is not working on that page,  can please somebody help me with this or tell me how to show all products only on sale page.

(my cms static block is : {{block type="catalog/product_special" template="catalog/product/list.phtml"}} )


texts: What is the best way to save a list of SKU in the admin to use in frontend as an array?

texts: I need to create a list of SKU separated by commas (sku1,sku2) to use them in the frontend of the site as a global variable.  I tried adding it as an attribute per product and I also tried to create a category then loading a collection in order to show the SKU on the page but it seems to be overkill considering I only need it for less than 10 products.  I just need a textbox or textarea where the SKU can be stored and loaded in the frontend.  Probably in the configuration catalog.  Something like the System > Configuration > Advanced > Developer > Developer Client Restrictions text box.  Since these need to be changed easily.


texts: Magento 2: Get collection in specific order

texts:
I want to get collection in specific order (apart from ASC or DESC order).

Here is my collection:

$productCollection = $block->getProductCollection()
->create()
->addAttributeToSelect('entity_id')
->addFieldToFilter('entity_id',array('in' => array_keys($products_in_orders)))
->addCategoriesFilter(['in' => $category_ids])
->load();

And I want to get collection in exactly array_keys($products_in_orders) this order which is an array of entity_id (e.g. 18,15,16,20)

Here is the reference


texts:
I am new to magento, I have created custom theme(test) and I copied the all (layout,template and skin) default source code paste it my theme. And I have selected the admin panel my theme which is Test, but it's not applying.

can any one tell me where I went wrong?

see below images which is I have created and selected themes.

thanks in advance.


texts: Magento 2 - Page Speed Insights / Lighthouse Audits Low Scores

texts:
I noticed recently the Google page speed insights has improved somewhat, shows a lot more information however is harsh especially it seems for Magento 2 (I can get 98 so far from other non Magento 2 websites).

I am used to being able to getting Page Speed insights scores into the 80s and 90s with some light tweaks although felt this was just ticking check boxes (deferring resource, using optimised images, gzip and caching resources, avoiding redirects etc) and now it seems a bit more real based on performance of the site. Now however I am looking at scores of 30 ish.

I'm concerned as although testing my sites do not feel overly slow I have always thought Magento 2 seems a bit weighty especially on the JavaScript side with a lot going on client side on page load slowing the "time to interactive" that shows with 3G mobile audit to around 15 seconds.

I have recently took a few steps to improve including no longer merging JavaScript as this seems to make my page size considerable larger i think about 5MB down to 2MB was what I witnessed. Deferring loading of images. Further improvements I want to move to is the Varnish cache although im not sure it would help these scores particularly here as my TTFB is reasonably quick with built in FPC. I want to try HTTP2 especially since dropping merging of JS there are a lot of separate resources this may help. Using WEBP for example instead of JPEG etc for catalog images.

I'm posting this question as want to know if everyone else is as bad and what measures you have taken to improve these poor scores?

I guess at the end of the day it is all relative and everyone will get worse scores I'm just slightly concerned Magento may be hit harder than other eCommerce platforms and not sure on the SEO side of this but would like to atleast try and improve as this cannot be good... Further tests on competitor sites shows some sites still in the 60-70 range this seem to be on much lighter eCommerce platforms.


texts: What does a theme needs to support Magento Enterprise, in particular FPC?

texts:
A new client is running on Enterprise 13.1, using Varnish with disabled FPC and a community theme. Since this a quit bad setup and Varnish is causing several issues we want to get rid of Varnish and using Magento’s FPC.

I never had to deal with FPC in detail nor had to make a theme supporting EE. But hey there is always a first time. So I read a few very interesting articles about FPC. The best I’ve found:

How do I include a dynamic block in the product page with full page
caching turned on
How does magento full page cache work
Overcoming Magento’s full-page cache through hole punching
Full Page Cache invalidation on cart (quote) change

Perhaps you already noticed, every article focus on how to deal with dynamic blocks/content (keyword: Hole punching). Definitely a very important topic! But this leads me to the issue:

Is this the only difference? I mean if a theme is only supporting CE or also EE?

Beside learning how FPC works I set up a dev environment, removed varnish and enabled FPC. And I’m really surprised: The site is quite fast and nothing seems to be broken. Its not a complicated setup with dozen extensions but also not just Magento default. But I couldn’t find any issue so far. But I’m also wondering if I didn’t miss something and if the site is really running on a "full" FPC? And why does the theme is not supporting EE then?

I'm a little bit lost here and would really appreciate it, if anyone can help me here. Perhaps with other links and your personal experience?

Thank you so much in advance!

2. Update

I think I got over my initial problem: The difference between Enterprise and Community themes is apparently the FPC. And it seems Enterprise is just hole punching several blocks, nothing else (related to FPC). These can be found in etc/cache.xml:

./PageCache/etc/cache.xml

./Wishlist/etc/cache.xml

These files tell me which blocks on the page needs to have special behavioral pattern than other blocks on the page.

But I have still a basic understanding problem: When the FPC is processing the content, no layout XML will be loaded, and the regular block hierarchy isn't instantiated at all.

Does this mean, FPC is already working completely because it doesn't hook into the templates itself but the model which is defined in  in cache.xml defines the behavior of the block cache?
Related to FPC the "only" thing I would have to do is to update extensions the theme comes with because these a) don't support FPC or b) overwrite Enterprise core? Is that correct?

Thank you so much!


texts:
I put this under i18n under my theme: "View and Edit Cart","Afficher et modifier le panier",module,Magento_Checkout
also i can't get the translation
"You added %1 to your shopping cart.","Vous avez ajouté %1 à votre panier.",module,Magento_Wishlist
and i deleted pub/static and flush cache please help


texts: Add More Mass action in Order grid in magento2

texts: I want to create delete order functionality in magento2, but i am not able to add mass action in order grid. please help me how to create delete order functionality in magento2. Please help me if any one have idea.


texts:
Magento 2.2.7

I've placed my version of Wishlist list.phtml in my template directory at

/app/design/frontend/Local/argento-stripes-custom/Magento_Wishlist/template/item/list.phtml

However, this is not being used. Template hints shows its calling the default Magento Block & templates, vis

/httpdocs/vendor/magento/module-wishlist/view/frontend/templates/item/list.phtml

Magento\Wishlist\Block\Customer\Wishlist\Items

If I use a layout file to declare my my phtml file then I get an error about data not being available;

    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="customer.wishlist" >
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Magento_Wishlist::item/list.phtml</argument>
       </action>
</referenceBlock>
</page>

Do I have to declare my own module to override Magento's Wishlist?


texts: Magento 2.0.7 - catalogsearch_fulltext index

texts:
Reindexing catalogsearch_fulltext index (via CLI) gets terminated. I tried hundreds times now and still receive this error. Why is it getting terminated?
If catalogsearch_fulltext index is not fully rebuilt, won't products visible in frontend in category pages, or simply they won't be available to search?


texts: best way to use magento 2.4 on windows 10 for development

texts:
I am using magento 2.4 on wamp in windows 10 with 500GB hard disk core i5 processor and 12GB RAM.
I am developing a functionalities in magento 2.4 instance but problem is magento 2.4 is slow without cache. When I do some changes in store configuration or in phtml,block file I have to disable full page cache or clear full page cache to reflect my changes on website.
If I do changes and clear full page cache and refresh the page ,it takes time to load the page and that's why my developing is slow. My friend runs magento 2.4 on linux with low hardware configuration .In my friend's pc magento 2.4 is working fast even he disabled full page cache to developing a new functionality.
What should I do to run smoothly and fast developing in magento 2.4 in windows 10 without switching on linux OS ?


texts: Magento 2.2 Store Selector not showing on the front end?

texts:
I've literally put this in my theme's default.xml file:

<block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" template="Magento_Store::switch/stores.phtml"/>

And the store switcher is not showing up. Am I doing something wrong?


texts:
We currently can't login in the Magento frontend with any browser except internet explorer.

even creating a new customer account and trying to log in with it did not work

we also cleared the Magento session cache and tried again


texts: Magento 2 Short array syntax is not allowed while Module testing.

texts:
Magento 2 module testing tools gives error "short array syntax not allowed",

we do code like following

public function toOptionArray()
    {
        return [
            ['value' => 0, 'label' => __('Disable')],
            ['value' => 1, 'label' => __('Enable')],

        ];
    }

Here is screenshot

Can any one tell me how can i solve this?


texts: Magento 2 toggle switch (yes/no) in admin config of custom module using system.xml or in any programmatic way

texts:
I understand that we can create a toggle switch using form with ui_component. However, I want to create an admin configuration for my custom module using system.xml configuration.

  Is there any way to apply the toogle switch (yes/no) (which is a ui_component of magento, to system.xml configuration?
  I want it to be implemented instead of a select type with dropdown option.

reference: Magento 2 form field toggled type


texts: Getting Decoding Error with Accented, Latin Characters Magento 2.2

texts:
I'm trying to create products via the REST API but in the body of the request I send accented characters (á, é, ñ, etc) and I get a decoding error as a response, I have configured postman to send the request with UTF-8 encoding, but I still get that error, apache is also set with UTF-8 encoding as well.
Thanks in advance for any help.


texts: Load custom collection with multiple category ids

texts:
I am using magento 1.9 version. I am having custom collection which consists category ids. I tried to get the collection based on the category ids. I followed this link.
I tried with this code too.

$collection->addAttributeToFilter('category_id', array('in' => array('finset' => array($newArray))));

but returns the empty collection.
How to solve this.

Updates:

$collection = Mage::getModel('custommodule/custommodule')->getCollection()->addFieldToFilter('is_active',1);
            $cat_ids = array();
            $prod_ids = array();
            $result = array();
            $cat_ids = $collection->getColumnValues('category_id');
            $prod_ids = $product->getCategoryIds();
            $result = array_intersect($prod_ids, $cat_ids);
            $collection->addAttributeToFilter('category_id',array('finset'=>$result));
            echo '<pre>';
        print_r($collection);


texts:
my problem is that i have product image url in DB but not found/missing in the folder, and it is showing product image url by inspecting the image, default image is still in the folder but it can't display the default image where product image path is available in DB but missing the image in that path/folder...

plz let me know how to resolve missing product image issue as i tried through htaccess and also let me know tha exact url of product page..


texts:
One of my customer came with a problem after he added a new customer group to his Magento store. Currently he has multiple groups and all are working fine. The only problem is when he tries to create a new order (from inside the back-end) and he selects the payment method where they get 3% discount, the discount isn't calculated into the final price.
If he does the same with a random different customer group (created years ago) the discount will be calculated correctly.

I've been searching for a configuration where we connected the two with each other. Unfortunate no results so far.

Hope someone run into this problem before.

Thanks for your time!


texts: I translated magento to German using FireGento...and The remaining translation done with inline translation. Everything is fine except one message still showing in English. The message is "the requested quantity %s is not available". I want to translate it to " Die gewünschte Menge des Artikels %s ist nicht verfügbar." I tried Inline translation and CSV updation and every possible solutions..but it is the only message doesn't allowed to be translated. Please help me in this regard.


texts: How to assign ID attribute to UI form element component?

texts:
For example, I have a simple admin UI form with one text input field:

<field name="my_text" formElement="input">
    <settings>
        <dataType>text</dataType>
        <label>My Text</label>
    </settings>
</field>

How can I add ID attribute to it?


texts:
From Today my CCAvenue asking extra details from customer like entering card details before going to CCAvenue Payment Page. Usually when customer select CCAvenue redirect to CCAvenue payment page then only asking card details, net banking, wallet, etc.

Screen shots :

Usually, CCAvenue Option like: https://snag.gy/9p2Wfq.jpg after
 click continue to redirect to the Payment page.

From Today it looks like: https://snag.gy/DTZ1bg.jpg Asking Card
 details. After entering card details, then will be open payment page, and
 again entering card details. Why getting this error. CCAvenue options label
 also not showing.

How can I solve this un relevant entering card details before redirect
 payment page?


texts: Product image/button missing in Magento Admin only on my computer

texts:
Using: Magento v1.9.0.1 Browsers: IE & Chrome on Windows
I'm having an issue where none of the images and the Browse/Upload Button in the product admin are displaying for some reason. (see image for example)

Images/Buttons in admin missing
All the images are still in the media folder, they still exist in the database and they still show up on the frontend.
One major confusing thing is they also show on our Local Server Computer
I've tried various fixes but nothing worked, including:

Checked the Media folders exist and have the correct files
Checked the permissions on the folders
Renamed the .htaccess file in the media folder
Flash installed and working
JS/CSS file merge disabled

Any ideas how to resolve this would be greatly appreciated.


texts: Programmatically get pending payment orders and canceled orders?

texts:
I can use this to get orders with status: complete, processing, closed.

$orders = Mage::getModel('sales/order')->getCollection()
->addFieldToFilter(
    array('status'),
    array(
        array(
            array('eq' => 'complete'),
            array('eq' => 'processing'),
            array('eq' => 'pending_payment'),
            array('eq' => 'canceled'),
        ),
    )
);

However it doesn't return orders that are pending payment or canceled. How do I get the orders that are pending payment or canceled as well?


texts:
How can i change the product details tab renamed "Details" to "Description"?
I am using magento 1.9.2 and easy tabs extension.

"Details+care" and "Size guide" from easy tab with value of custom attribute of product.
"Details" from easy tab product description with value of  default product description.
Now I needed to change the tab name to "Details" to "Description".

http://www.flatcomfort.com/bedding/sets/venice-sets/percale-venice-set.html#product_tabs_size-guide

Please help me anyone.


texts: Grid action column getter not getting my field

texts:
My action column 'getter' is not getting the field 'meter_id' that I need. (Magento 1.9)  Here is my code:

    $link= $this->getUrl('*/*/edit', array(
        'id'        => $this->getRequest()->getParam('id'),
        'key'       => $this->getRequest()->getParam('key'),
        'action'    => 'delete'
    ));

    $this->addColumn('action_delete', array(
        'index'     => 'meter_id',
        'getter'    => 'getMeterId',
        'header'    => 'Action',
        'width'     => 15,
        'sortable'  => false,
        'filter'    => false,
        'type'      => 'action',
        'actions'   => array(
            array(
                'url'     => $link,
                'caption' => 'Delete',
                'field'   => 'meter_id'
            ),
        )
    ));

Results in this url when clicked:

http://127.0.0.1/... .../edit/id/1/key/82a03e3076236b17dc32c6eb2ea53601/action/delete/

I need the 'meter_id' field key in the url too and don't understand my error.