texts: Magento 1.9 Persisitent Cache Categorie until reboot

texts:
I setup a magento store that is in production since a year and half with no issue except this one :
For performance reason i put /var/www/html/var/cache and /var/www/html/var/session in a ramdisk using the following code

tmpfs -o size=128m /var/www/html/var/cache tmpfs defaults,uid=apache,gid=apache,mode=755 0 0
tmpfs -o size=128m /var/www/html/var/session tmpfs defaults,uid=apache,gid=apache,mode=755 0 0

With apc and this setup the store is fast enough for us small target.

The problem i have with this setup is following : when i create a new categorie (menu or not), they appear frontend only if cache is dissable in Magento.
If i enable again the cache the new categorie dissapear again.

This happen even if i flush the cache before from admin, (the both folder i could watch from fizella become empty) or using *rm -rdf /var/www/html/var/cache/* in command line

If i reboot the server, everything will work fine i could enable the cache in the admin and the the new categorie create front end.
I have a similar issue with the home slider.
Except that the store works as normal, new product appear normally frontend with this setup.

If i dissable the ramdisk everything work totally normal, i could create new categorie and they appear immediatly frontend

Seems there is some persistent file in ramdisk even if i flush the cache from admin or using *rm -rdf /var/www/html/var/cache/*

Any idea how totally flush the cache of tmpfs ramdisk partition ? seems there is some persitent cache file in it, until reboot
Ramdisk really boost the store on a small server without ssd, so i will be happy to keep it.


texts: How does Magento MVC differ from classical MVC / Zend Framework MVC?

texts: How does Magento MVC differ from classical MVC or Zend Framework MVC? Any explanation will be appreciated.


texts: Magento - Add special price to product programmatically

texts:
I'm looking to extend the special price functionality in Magento and add some custom logic for when special prices should apply to products.

What is the most efficient way of doing this? Currently, there are observers for whenever the product is loaded (or whenever collections are loaded) and then the module checks if special price applies.

Obviously this way is very slow, what is a more effective way of doing this, possibly when the product itself is being pulled from the DB.

Any thoughts?


texts: Magento 1.9 css and js not load with https

texts:
when I enable free SSL in cloud-flare, my magento website stops loading properly. Basically CSS and JS doesn't load but without HTTPS the website works fine, but with HTTPS website does not load CSS and JS. I tried with below code in index.php, but didn't work.

if (isset($_SERVER['SERVER_PORT']) && (443 == $_SERVER['SERVER_PORT'])) $_SERVER['HTTPS'] = 'on';

Please help!!


texts: Searching for Arabic Language Pack that supports Magento 1.9.2.4

texts:
I have installed magento 1.9.2.4 and a paid theme. Now only arabic language pack needed which supports this version. So far unable to find it so please help.

Thank you


texts: Magento 1.9.2.4 sends the shipping emails instead of the sales emails

texts:
Good morning!
Lately magento is sending the shippements emails instead of the order emails and the incomplete ones.
Checking the logs of the email I see that indeed it happens but I do not know what can be failing.
I have checked the cron and it is well configured, and the system logs and there is nothing out of the ordinary.
I am enclosing images in case I have not explained myself correctly.


texts: I want to over ride checkout/cart/item/default.phtml file in my extension in order to add certain details on the cart page below product name


texts: How to change text description that appears on Google

texts: the title pretty much covers it. How do I change the text that appears below my website's title on Google?


texts: Is there any way to get a magento extension uninstall hook,the problem is that if user will uninstall my module then some dependent modules will become unstable so i want to show him a notification before uninstallation


texts:
I came across the concept of configurable product, created attribute color and added red,blue,green labels to it.

MY PROBLEM:

Configurable Product 1 will have associated

   Associated Product 1(Simple)
   Associated Product 2(Simple)

Similarly,

Configurable Product 2 will have associated

   Associated Product 3(Simple)
   Associated Product 4(Simple)

Referring to the above,
  Associated Product 1 and Associated Product 3 will have the color blue but these both have different images. According to the swatch concept it takes the first image uploaded,not the respective image.

Here, I cannot create blue1,blue2,blue3..etc as attribute labels since I have 1000 products and each one have a color blue.
Is there any other alternative for this? But the client needs swatches.
TIA.

Thanks


texts: Provide downloadable link on Product Purchase in Magento 2

texts:
I have a website in which downloadable products are their on ordering a product i want to provide a downloadable link for that on product order success page.

Is there a way to provide that in Magento 2.3 version.


texts: Can not find app/code/Magento/Catalog/Block/Product/View.php to change pageConfig->setDescription on Magento 2.0.7


texts: Custom attribute value is not getting saved in Address Book?

texts:
I have created address_nationality attribute using script

$customerSetup -> addAttribute('customer_address',
        'address_nationality',
        [
        'label' => 'Nationality',
        'system' => 0,
        'user_defined' => true,
        'position' => 110,
        'sort_order' =>110,
        'visible' =>  true,
        'default_value' => '',
        'note' => '',
        'type' => 'varchar',
        'input' => 'text',
        ]
        );
    $customerSetup -> getEavConfig() -> getAttribute('customer_address', 'address_nationality')->setData('is_user_defined',1)->setData('default_value','')-> setData('used_in_forms', ['adminhtml_customer_address', 'customer_register_address', 'customer_address_edit']) -> save();

In address book I am trying to save value of address_nationality but it is not getting saved.


texts: How to add checkbox to custom grid via Renderer\AbstractRenderer or Renderer\Checkbox?

texts:
I have to add a column checkbox based on a column from DB.

Checkbox column is appearing in the grid, but I can't change(grid doesn't change after save) the value of the checkbox and it always stays unchecked... How to achieve it?


texts:
Is there a way to automatic import product wholesale csv to magento2
I know some extensions has column mapper but my csv doesnt have the requered headers like productype etc, so the import fails.

Does someone have a idea how to handle it?


texts: How to show the exact output as per image on the cart page

texts:
Products and Subtotal is showing with inclusive tax but tax amount is getting ZERO

How to show the exact output as per image on the cart magento 2


texts:
is there if param only for iOS devices? like it have for IE

<params/>
<if>IE 7</if>


texts: How to create pop-up window for forgot password

texts:
I was try to create pop-up for forgotten password.
I am able to open pop-up window, but there is whole site, instead of only form - it is because I call link for whole site like this:

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

Have anybody idea, how to load to pop-up only form?
I also try to call template of that form, but I got restriction.
So simple I use same call for pop-up here is it:

<a href="#" onclick="getForgotPassUrl('<?php echo $this->getForgotPasswordUrl() ?>')" class="pull-right"><?php echo $this->__('Forgot Your Password?') ?>

and here is js:

Now I recognize, that after I confirm resend password, it redirect me to account page, but in this pop-up... best should be close pop-up.


texts: Magento 2 main.CRITICAL: Plugin class doesn't exist

texts:
Hi guys,

I'm pretty new to Magento, so excuse me if I may be asking something obvious.

I'm trying to override function formatTxt() of class Magento\Directory\Model\Currency

I did a little search and I don't know if I've got the best way for it, so please guide me if I've chosen a wrong path:

I think doing it through plugins is the right way.

The problem is that when I render a search-result page, no result is being rendered. When I looked inside 'var/log/system.log', the following error is being logged:

[2016-09-17 16:47:49] main.CRITICAL: Plugin class Amaj\CorePlugin\Model\Currency\Plugin doesn't exist [] []

Please help me to find the problem.

Thank you for your helps in advance :)

-------------------------------------- The files ---------------------------------------------------------

I created a module with the following structure:

I have defined the files like the following:

registration.php

<?php\Magento\Framework\Component\ComponentRegistrar::register(    \Magento\Framework\Component\ComponentRegistrar::MODULE,    'Amaj_CorePlugin',    __DIR__);

module.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Amaj_CorePlugin" setup_version="1.0.0">
        <sequence>
            <module name="Magento_Directory"/>
        </sequence>
    </module>
</config>

InstallSchema.php

<?php

namespace Amaj\CorePlugin\Setup;

use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;

/**
 * @codeCoverageIgnore
 */
class InstallSchema implements InstallSchemaInterface
{
    /**
     * {@inheritdoc}
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
     */
    public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();
        $setup->endSetup();
    }
}

di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Directory\Model\Currency">
        <plugin name="amaj-core-plugin-currency" type="Amaj\CorePlugin\Model\Currency\Plugin" sortOrder="10" disabled="false" />
    </type>
    <!--preference for="Magento\Directory\Model\Currency" type="Amaj\CorePlugin\Model\CurrencyPlugin" /-->
</config>

Plugin.php

<?php

namespace Amaj\CorePlugin\Model\Currency;

class Plugin
{
    protected $logger;

    public function __construct(\Psr\Log\LoggerInterface $logger) {
        $this->logger = $logger;
        parent::__construct();
    }

    /**
     * @param float $price
     * @param array $options
     * @return string
     */
    public function aroundFormatTxt(
        $subject,
        \Closure $proceed,
        $price,
        $options = []
    )
    {
        $logger->info('Amaj aroundFormatTxt');
        return '2';
    }

}


texts: catalogProductList - adding 'nin' filters

texts:
I cannot find any documentation (other than the WSDL itself) that provides a working example of how to filter a SOAP API_v2 catalogProductList.

I have a list of skus and I want to filter the list with nin (not in) so that the response gives me all products other than what I have in my skus.

$skus = array('1','2','3');
$filter = array(
    'sku' => array('nin' => $skus)
)
$productList = $client->catalogProductList($session, $filter);

// Returns all products in the store instead of filtered list.
Zend_Debug::dump($productList);

I have also see the $filter being built with complex_filters that uses a different array structure, but I don't understand what the difference is.

How do I simply filter an API product list using the nin method?

EDIT

Trying with complex_filters, using 'eq' works, but not 'nin':

// this returns a single product with sku 12345
$filter = array(
    'complex_filter' => array(
        array('key' => 'sku', 'value' => array('key' => 'eq', 'value' => '12345'))
    )
);

// This results in an error - "Notice: Array to string conversion  in ..."
$filter = array(
    'complex_filter' => array(
        array('key' => 'sku', 'value' => array('key' => 'nin', 'value' => array('12345', '67890'))
    )
);


texts:
I'm struggling, I need some advice!

I want to create a form where a user can customize his order,

So it's a Cars Form, the user can chooses the model, the color, the brand, the quantity (a discount depends on the quantity) etc.  Each option has a unique price and image.

I created attributes for each of the options.
In the form, each option is kinda related to the other, the color depends on the model, and the model depends on the brand.

I tried a simple product with customized options, each option has a price which is good but I can't add images for each option, I can't apply the discount and I can't relate the attributes .

Configurable Product or Bundle products require simple products which in my case are going to be hundreds, and I still can't apply the discount and can't relate the attributes to each other.

Any suggestion, please :(


texts: Magento 2 Import - Advanced Pricing + 1000s of Products

texts:
Coming over from using MAGMI and Magento CE1.9, I suppose I was spoiled, as their import was able to have one product per row, with all the tiered pricing having their own row.. making it very easy and not an atrociously large painstaking file.

Now that I am transitioning into CE2.2.X, I am seeing that the pricing natively done through Magento is a little different, and assigns each tier its own row per product.

So the issue becomes, say having 8 different customer groups, all whom may have a different price for one product, and then having thousands of products.

That would be for instance, 16000 rows for a measly 2000 products which have 8 pricing tiers for assigned customer groups.

Aside from expensive extensions and the like, is there any better way? Is there a way to have the native Magento import read the csv for a column per different tier or is it destined to need a row per tier?


texts:
I would like to have information about Data Feed Manager. Is it possible to send it is produced on ebay or google shopping ?
How this this past? ebay should create an account to import the products ?
I have configurable product how will it be showing on google shopping?


texts: I have a custom theme, in configurable products when i choose variation price doesn't change. Which files should i override?


texts: I want to run Cron job to reindex indexer in Magento 2. Please provide the solution with a code.


texts:
Here us the whole thing that i am not able to solve it. i am trying to pass all order info, customer info and payment info through an event oberver  and inserting to another db. Right now everything is working fine and i successfully insert order info,customer info. What i can not get is the payment info such as credit card info, authorization code info.

Here is my code:

On the config.xml file i have this event observer:

<sales_order_place_after>
            <observers>
                <insertorder_orderexport>
                    <class>insertorder_orderexport/observer</class>
                    <method>exportOrder</method>
                </insertorder_orderexport>
            </observers>
</sales_order_place_after>

On my function i have this observer.php i have this code:

class InsertOrder_OrderExport_Model_Observer {

public function exportOrder(Varien_Event_Observer $observer) {

    $order = $observer->getEvent()->getOrder();

    Mage::getModel('insertorder_orderexport/export')->exportOrder($order);

return true;

}

}

on my export.php i have this code:

class InsertOrder_OrderExport_Model_Export
{

public function exportOrder($order)
{

    include('classes.php');

 $getCcInfo = Mage::getModel('sales/order')->getCollection()->setPageSize(1)->setOrder('created_at')->getFirstItem();
    $order_data = $getCcInfo->getPayment()->getData('additional_information');

    if(!empty($order_data)){

    foreach($order_data as $value){

        $aPayment = new OrderPayment;
        $aPayment->CreditCardNumber    = $value['cc_last4'];
        $aPayment->AuthorisationNumber = $value['approval_code'];
    }

    }

The code continue with other classes and insertions like order and customer info but eveything is tested and works fine beside this block of code which ends up empty.

The strange thing is that when i test this code on magento root folder i get the results i want lets say when i print_r($order_data); i get this result:

Array
(

[1dccc017a3fa2a84bad51ece5cbffd20] => Array
    (
        [id] => 1dccc017a3fa2a84bad51ece5cbffd20
        [requested_amount] =>
        [balance_on_card] =>
        [last_trans_id] => 2201005063
        [processed_amount] => 6.94
        [cc_type] => VI
        [cc_owner] =>
        [cc_last4] => 1111
        [cc_exp_month] => 4
        [cc_exp_year] => 2018
        [cc_ss_issue] =>
        [cc_ss_start_month] =>
        [cc_ss_start_year] =>
        [approval_code] => 8Z0LNX
    )
)

So it means that $order_data is full with values but i don't understand why it ends up empty after.

Also i have tried other events like:

checkout_onepage_controller_success_action

checkout_submit_all_after

Still no results. And i don't have any error in my log file.

Please professional users help me, Thank you


texts: Magento - Change Shipping Method - Error Text

texts:
Currently when a customer puts an incorrect Zip and State under the Shipping Method area is the following text "Sorry, no quotes are available for this order at this time.
May be due the weight of the items in your cart. Please, contact us to arrange the shipment."

I would like to change this text to be more appropriate such as "Please verify your State and Zip Code".

How can I update this text?


texts: Show out of stock products website based

texts:
I am having a problem of displaying out of stock products website based.

In admin System -> Configuration -> Inventory, there's a field call Display Out of Stock Products. But it is a global field meaning that we cannot set it in website scope.

I am running 2 sites using the same Magento instance.

My question is: Is there anyway to show out of stock products only for a specific website?


texts: How can i give discount for customers when cart subtotal reaches a specific amount in magento 2?

texts: In magento 2 how can i give discount for customers when the cart amount reaches a specififc amount?can anyone please help me?


texts: Magento 2.3.x best practice to update the website in production mode

texts:
What are the best practices to update the website in production mode?

For example, if I need to update the less files, images, js etc. what would be the best approach to update the website in production mode?


texts: Get user by email or return null in cron

texts:
How can i get user by his email, or return null if not found? I need to do this in cron.

This code works

$CustomerModel = $objectManager->create('\Magento\Customer\Api\CustomerRepositoryInterface');

                        try {
                            $customerExists = $CustomerModel->get($email); //Here 1 means Store ID**
                        } catch (Exception $e) {
                            $customerExists = false;
                        }

But once I run it via cron, it returns an error that email is already in use, even when in try/catch block.

Any ideas?


texts: Product received from getAllowProducts has no price

texts:
We are trying to display the prices on some configurable products, but the prices always show 0, unless we force the object. Here's what I mean, in code :

foreach ($this->getAllowProducts() as $product) {
    $productId  = $product->getId();
    $price = $product->getPrice();
}

$productId has the correct value.
$price is 0.

Now, if I force the object like so :

foreach ($this->getAllowProducts() as $product) {
    $productId  = $product->getId();
    $product = Mage::getModel('catalog/product')->load($productId);
    $price = $product->getPrice();
}

Now $price has the correct value.

Thanks,


texts: Get Product name related to a store view at admin

texts:
I have created two store views for two different languages, english and arabic.  I displayed the store view at admin form for my module just above tabs as shown below:

When i select a store view, the page reloads and in module form i place the following code:

$storeId = $this->getRequest()->getParam();

$products = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($storeId);
  foreach($products as $p)
    {
        $p->load($p->getId);

        if($p->getId() == 166)
        {
            echo $p->getName();
        }

I have different names for each store view, but here i only get the name for the default store view which is English, and i want the name of the product entered for that specific store view.

I have used the below code to get the product store ids for checking:

$p->getStoreIds();

and i get correct ids for my store views which are 1 for english and 4 for arabic.

I am not sure if i am doing it correct or wrong, but can some one provide me some guidance here?

Thank you


texts: How to use V1/products to get the stockItem qty of the magento products?

texts:
I need to know for each product sky, price and stock.
I am using http://192.168.1.180/magento/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=1&searchCriteria[filter_groups][0][filters][0][condition_type]=eq

In the web documentation I see that I can get it

http://devdocs.magento.com/swagger/index_20.html#!/catalogProductRepositoryV1

"stockItem": {
          "itemId": 0,
          "productId": 0,
          "stockId": 0,
          "qty": 0,
          "isInStock": true,
          "isQtyDecimal": true,
          "showDefaultNotificationMessage": true,
          "useConfigMinQty": true,
          "minQty": 0,
          "useConfigMinSaleQty": 0,
          "minSaleQty": 0,
          "useConfigMaxSaleQty": true,
          "maxSaleQty": 0,
          "useConfigBackorders": true,
          "backorders": 0,
          "useConfigNotifyStockQty": true,
          "notifyStockQty": 0,
          "useConfigQtyIncrements": true,
          "qtyIncrements": 0,
          "useConfigEnableQtyInc": true,
          "enableQtyIncrements": true,
          "useConfigManageStock": true,
          "manageStock": true,
          "lowStockDate": "string",
          "isDecimalDivided": true,
          "stockStatusChangedAuto": 0,
          "extensionAttributes": {}
        },

But when I use it does not appear that information, why?


texts: How to work localhost correctly? (Magento 2)

texts:
Edited:

My problem is:
Sometimes I need to run:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find ./var -type d -exec chmod 777 {} \;
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc;
chmod 644 ./app/etc/*.xml;
chmod 777 -R var/*;

because sometimes I have problems with permissions on my localhost, I am using developer mode, and I would like to know if there is any permanent way to resolve this


texts: Issue with Custom Select Options [Magento System Configurations]

texts:
I am working on an extension. On setting up the configuration options, I am getting error while trying to fetch options for my select variable.

My System.xml

    <?xml version="1.0"?>
<config>
    <sections>
        <checkout  translate="label" module="orderid">
            <groups>
                <ci_orderid translate="label">
                    Custom Order Id
                    <frontend_type>text</frontend_type>
                    <sort_order>0</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <ci_orderid_active translate="label">
                            Enable
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>0</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </ci_orderid_active>

                        <ci_orderid_payment translate="label">
                            Payment Gateway
                            <frontend_type>select</frontend_type>
                            <source_model>CI_OrderId/Gateway</source_model>
                            <sort_order>0</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </ci_orderid_payment>
                    </fields>
                </ci_orderid>
            </groups>
        </checkout>
    </sections>
</config>

On loading the configuration I am getting blank screen and an error is showing on system log file.
Error:

2015-03-18T07:15:50+00:00 ERR (3): Warning: include(Mage/CI/OrderId/Model/Gateway.php): failed to open stream: No such file or directory  in /var/www/html/m18/lib/Varien/Autoload.php on line 93
2015-03-18T07:15:50+00:00 ERR (3): Warning: include(): Failed opening 'Mage/CI/OrderId/Model/Gateway.php' for inclusion (include_path='/var/www/html/m18/app/code/local:/var/www/html/m18/app/code/community:/var/www/html/m18/app/code/core:/var/www/html/m18/lib:.:/usr/share/php:/usr/share/pear')  in /var/www/html/m18/lib/Varien/Autoload.php on line 93

Gateway.php(Model/Gateway.php)

class CI_OrderId_Model_Gateway {
    public function getActivePaymentMethods() {
        $methods = array(array('value'=>'', 'label'=>Mage::helper('adminhtml')->__('--Please Select--')));
        return $methods;

    }
}

Config.xml File

<?xml version="1.0"?>
<config>
  <modules>
    <CI_OrderId>
      <version>0.1.0</version>
    </CI_OrderId>
  </modules>
  <global>
    <helpers>
      <orderid>
        <class>CI_OrderId_Helper</class>
      </orderid>
    </helpers>
    <models>
      <orderid>
        <class>CI_OrderId_Model</class>
      </orderid>
    </models>
  </global>
</config>

It is showing like, system cannot locate my class. Please help me!
Thanks!


texts:
Testing a widget I created, I get a weird error when I try to set up the layout where the widget should appear.

After hitting the "save" button I get the following:

File "/http/var/view_preprocessed/pub/static/app/code/Vendor/ModuleName/view/frontend/templates/" cannot be opened Warning!
fopen(/http/var/view_preprocessed/pub/static/app/code/Vendor/ModuleName/view/frontend/templates/): failed to open stream: Is a directory

I notice this problem shows only when the caching system is set to use files instead of Redis or something else.

Any idea how can I fix it?

Developer mode is enabled, but I get not other error.


texts: Magento 2 catagory product list image background erased

texts:
In category list page the background of product image is erased can you help me and how i can fix that?

Magento version: 2.3.4

Orginal Image:


texts: Theme edit - only directions or file names needed

texts:
Ok. At start i must say, this is a few things i need to do but i can't find it. Please, write answers with numbers, this is gonna be really helpful. Ok, lets start.

1)Shopview - right bar

a)I want to remove Last vieved (Ostatnio oglądane produkty) and My orders (Moje zamówienia)-red ring

b)I want to remove Paypal option on homepage = blue ring

2)Footer - I want to remove ad from theme creator (i cant do it from magento admin page)

3)Cart

a)I want to remoove Paypal option from here (Paypal must stay only in checkout options) and this field - red rings

b)I want to move promotion codes to the left side of page -  blue ring

4)Product page - Remove paypal too from here

Thats all, i know, this is a lot of this small stupid things, but i have a vision of my shop - easy and evrything should be visible. I hope i get help here, because this forum is awesome and without it a will be stuck on instaling magento. Thanks a lot from above


texts:
When i doing sudo bin/magento indexer:reindex, there's 2 error showed like in error below.

Error :

Design Config Grid index has been rebuilt successfully in 00:00:00
Customer Grid index has been rebuilt successfully in 00:00:00
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:02
Product EAV index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Catalog rule indexing failed. See details in exception log.
Catalog rule indexing failed. See details in exception log.
Catalog Search index has been rebuilt successfully in 00:00:01

And when i check the exception log, there's an error like in the code below.

Exception :

[2017-12-07 04:34:17] main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): Unable to unserialize value. at /var/www/html/myshop.com/public_html/vendor/magento/framework/Serialize/Serializer/Json.php:39)"} []
[2017-12-07 04:34:17] main.CRITICAL: Catalog rule indexing failed. See details in exception log. {"exception":"[object] (Magento\\Framework\\Exception\\LocalizedException(code: 0): Catalog rule indexing failed. See details in exception log. at /var/www/html/myshop.com/public_html/vendor/magento/module-catalog-rule/Model/Indexer/IndexBuilder.php:286)"} []

How can i fix this?


texts: Algolia Search - changing order of instant search results

texts:
I'm getting started with Algolia Search using this plugin. When I start typing in the search box, it starts showing results in a dropdown menu.

And I can't figure out how to change the sort order of those results.

The default is categories, products, pages, and then attributes. And I want the order to be products, attributes, categories, pages.

Am I looking at something in the settings wrong? Or do I need to start editing the underlying code?


texts: Error Area Code is not set when Creating a virtual Product from Upgrade Schema

texts:
I'm using magento 2.2.5 , i want to make a virtual product programmatically using UpgradeSchema , but i alws got an error

Upgrading data.. Area code is not set

when i run bin/magento setup:upgrade

here's my UpgradeSchema.php

<?php

namespace Lime\Merchant\Setup;

use Magento\Framework\Setup\UpgradeDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

class UpgradeData implements UpgradeDataInterface
{
    public function upgrade(
        ModuleDataSetupInterface $setup,
        ModuleContextInterface $context
    ) {
        if (version_compare($context->getVersion(), "1.0.1", "<")) {
          // $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
          // $state = $objectManager->get('Magento\Framework\App\State');
          // if(!$state->getAreaCode()) {
            $state->setAreaCode(\Magento\Framework\App\Area::AREA_GLOBAL);
          }
          $this->createVirtualProduct();
        }
    }

    public function createVirtualProduct()
    {
      $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
      $_product = $objectManager->create('Magento\Catalog\Model\Product');
      $_product->setName('E-Book');
      $_product->setTypeId('virtual');
      $_product->setAttributeSetId(4);
      $_product->setSku('ebook');
      $_product->setWebsiteIds(array(1));
      $_product->setVisibility(4);
      $_product->setPrice(1000);
      $_product->setStockData(array(
          'use_config_manage_stock' => 0, //'Use config settings' checkbox
          'manage_stock' => 0, //manage stock
          'is_in_stock' => 1, //Stock Availability
          'qty' => 100000, //qty
          'tax_class_id' => 0
          )
      );

      $_product->save();
    }
}


texts:
How to override adminhtml phtml files in magento2?

I want to place a custom text in customer edit page welcome to magento2.
For this I have created a theme and placed

app\design\adminhtml\Vendor\backend\Magento_Customer\templates\tab\view.phtml

WELCOME TO MAGENTO2

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

but it's not working, when I place the same in
app\code\Magento\Customer\view\adminhtml\templates\tab\view.phtml
then it's working.


texts: Magento2 error when accessible admin product edit page

texts:
Unable to serialize value. Error: Malformed UTF-8 characters,
possibly incorrectly encoded

Above is the error I get when I am in my admin panel and try to access the product admin panel page. I am not sure what mysql table I should look through ti fix this?


texts: Necessary to apply Magento PHP 7.2 patch before installing SUPEE-10888?

texts:
I'm running Magento 1.9.2.1 and patched up to SUPEE-10752.

I'm wanting to apply the SUPEE-10888 patch, but it's not clear to me from the documentation whether or not the PHP 7.2 patch, which was released between SUPEE-10752 and SUPEE-10888 is a requirement for SUPEE-10888 or not.

Do SUPEE-10888 (and therefore other future patches) base themselves off of changes made in the PHP 7.2 patches?


texts: How to Upload image in magento 2 using UiComponent

texts:
I am trying to upload Images with a custom module in Magento admin

 <field name="recipes_image">
                <argument name="data" xsi:type="array">
                    <item name="config" xsi:type="array">
                        <item name="dataType" xsi:type="string">string</item>
                        <item name="source" xsi:type="string">recipe</item>
                        <item name="label" xsi:type="string" translate="true">Image</item>
                        <item name="visible" xsi:type="boolean">true</item>
                        <item name="formElement" xsi:type="string">fileUploader</item>
                        <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item>
                        <item name="previewTmpl" xsi:type="string">Dac_Recipes/image-preview</item>
                        <item name="required" xsi:type="boolean">false</item>
                        <item name="uploaderConfig" xsi:type="array">
                            <item name="url" xsi:type="url" path="recipes/test/upload"/>
                        </item>
                    </item>
                </argument>
            </field>

$data = $this->getRequest()->getPostValue();  image filed empty

controller

<?php
namespace Dac\Recipes\Controller\Adminhtml\Test;
use Magento\Backend\App\Action;
use Dac\Recipes\Model\Recipe as Recipe;

class NewAction extends \Magento\Backend\App\Action
{
    /**
     * Edit A Contact Page
     *
     * @return \Magento\Backend\Model\View\Result\Page|\Magento\Backend\Model\View\Result\Redirect
     * @SuppressWarnings(PHPMD.NPathComplexity)
     */
    public function execute()
    {
        $this->_view->loadLayout();
        $this->_view->renderLayout();

        $contactDatas = $this->getRequest()->getParam('recipe');

        if(is_array($contactDatas)) {

            $data = $this->getRequest()->getPostValue();


texts: How can we integrate an auto complete search in admin custom form? I am not using the default form of Magento2. Instead I am using my custom form.


texts: Customer information wrong in REST API Magento 2

texts:
Recently we have upgraded from Magento 2.2.2 commerce to Magento 2.2.8 commerce

In the latest version we are facing issue with /V1/customers/me REST api call.
This call not return the correct user details. The model function not even called some time though we change the customer token values.

Looks like this method cached somewhere and returns different results for different users.

Anybody faced this kind of issue?


texts: M2: reason add-to-cart might not function in production mode

texts:
I set up a new site recently while in default mode and set it to production mode. Everything worked except for the add-to-cart function for guest customers. Once logged in as a customer, add-to-cart would work normally. Caching was also on the whole time in production mode.

I change mode to developer, and all worked fine. I changed it back to production, and now it works fine for any visitors.

There was no change in file or in DB. Any idea what could have happened? I'm unable to replicate this issue. The issue was replicable on three different computers while it was happening.


texts: Role resorce not getting updated for the custom module

texts:
When I tried to add resource to a role, its not getting saved. The checkbox seems to uncheck after saving the role. The resource which I am giving is a custom module. I saw a thread with the same issue https://stackoverflow.com/questions/3196723/magento-custom-module-admin-permissions

But it doesnt help me. I followed the same way but still the issue exist.

I am writting config.xml as follows.

<acl>
            <resources>
                <all>
                    <title>Allow Everything</title>
                </all>
                <admin>
                    <children>
                        <Magestore_Bannerslider>
                            <title>Bannerslider Module</title>
                            <sort_order>10</sort_order>
                        </Magestore_Bannerslider>
                        <system>
                            <children>
                                <config>
                                    <children>
                                        <bannerslider translate="title" module="bannerslider">
                                            <title>Banner Slider Settings</title>
                                            <sort_order>50</sort_order>
                                        </bannerslider>
                                    </children>
                                </config>
                            </children>
                        </system>
                    </children>
                </admin>
            </resources>
        </acl>

Please help me.....


texts:
A pretty basic question mainly because I'm still trying to wrap my head around Magento 2's templating system.  But I'm just trying to switch the order of the mini-cart element and the search element in the header so that the search element is before the mini-cart element in the markup.  For example, instead of

...

...

I want it to be:

...

...

Thanks!


texts: Get config of simple product from configurable product options

texts:
Hi i have a configurable product id and its selected options ids is there any way i can get the id of simple product of this configurable product which belongs to these options.

["config_product"]=>"754"
["super_attribute"]=>
      array(4) {
        [327]=>"2148"
        [551]=> "11474"
        [554]=> "11515"
        [628]=>"13239"
      }

I have this array i want to get simple product id of this configurable product which belongs to these super attributes.


texts: Magento 2: The value of the "Manufacturer" attribute isn't unique. Set a unique value and try again

texts:
I have imported products in magento.

After I am going to update one product It gives me this error.

There is manufacturer empty.But existing products with empty manufacturer after updating without manufacturer it saves.

But only new product not saving, it gives me above error.

 The value of the "Manufacturer" attribute isn't unique. Set a unique
 value and try again


texts: Is there a clean magento installation without any module present in package?

texts: I'm just wandering is there some magento package that can be downloaded, without admin and all ecommerce modules, just a clean framework ready to develop my own modules from scratch?


texts: Composer exception: Package is already installed

texts:
After update to new release version Magento Hackathon  faced with exception  while running composer update: Package: "some_package_name" is already installed.
This happened only with this release.

If I set version for example for 1.* everything is ok.

Has anyone faced with this, any solutions?


texts: Code Issue i think -Warning: include(Mage/Core/Model/App.php)

texts:
I had to delete the app.php file and then restore it.
Now, I have a fully functioning back end, but the front end shows the below code.

Warning: include(Mage/Core/Model/App.php): failed to open stream: No
such file or directory in
/home2/sportpat/public_html/clubdoncastershop/lib/Varien/Autoload.php
on line 94
Warning: include(): Failed opening 'Mage/Core/Model/App.php' for
inclusion
(include_path='/home2/sportpat/public_html/clubdoncastershop/app/code/local:/home2/sportpat/public_html/clubdoncastershop/app/code/community:/home2/sportpat/public_html/clubdoncastershop/app/code/core:/home2/sportpat/public_html/clubdoncastershop/lib:.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear')
in
/home2/sportpat/public_html/clubdoncastershop/lib/Varien/Autoload.php
on line 94
Fatal error: Class 'Mage_Core_Model_App' not found in
/home2/sportpat/public_html/clubdoncastershop/app/Mage.php on line 670

Does anyone have an idea why it happened and how to fix it?


texts: Magento 2: Can't save product after I edit it

texts:
If I try to edit a product, when I click Save, I get the spinning GIF and 'Please wait..." forever... The only way I can get out of it is to refresh my browser, which cancels and loses my edits.

Anyone else encountered this problem?


texts: Magento 2 - Get Shipping Code or Method in Sales Order View in Admin

texts:
I have a custom shipping module that passes some information into the Sales Order and the email.  The problem is that it shows the data even when the shipping method isn't used.  How can I get the shipping method so I can use it to only display the information if that shipping method is chosen?
This adds my data into the Sales Order in the Admin - view/adminhtml/templates/order/view
<?php
$formFields = $block->getOrderFormFields();

// Get Shipping Method or Code
$shippingMethod = $order->getShippingMethod();

?>
<?php if($shippingMethod == 'shippingmethod_shippingmethod'): ?>

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

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

                        <?php echo $this->escapeHtml($formFields->getCheckoutBuildingAddress()); ?>

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

                        <?php echo $this->escapeHtml($formFields->getCheckoutFloorNumber()); ?>

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

                        <?php echo $this->escapeHtml($formFields->getCheckoutRoomNumber()); ?>

<?php endif; ?>

This is in Block/Order
namespace Vendor\Module\Block\Order;

use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Magento\Framework\Registry;
use Magento\Sales\Model\Order;

/**
 * Class CustomFields
 *
 * @category Block/Order
 * @package  Vendor\Module\Block
 */

class OrderItems extends \Magento\Backend\Block\Template
{
    protected $order;

    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Sales\Model\Order $order,
        array $data = []
    ) {
        $this->order = $order;
        parent::__construct($context, $data);
    }

    /**
     * Get current order
     *
     * @return Order
     */

    public function _prepareLayout()
    {
        return parent::_prepareLayout();
    }

    public function getOrder()
    {
        $order = $this->order->loadByIncrementId($orderId);

        return $order;

    }

}

I get this error:
Undefined variable: order

How can I get the shipping code or method from the order?
Thanks,
Stan


texts: Error in default API testing | V1/carts/mine/shipping-information

texts:
I just wanted to test this API for understanding order flow

{  "addressInformation": {
      "shipping_address": {
       "region": "New York",
       "region_id": 43,
       "region_code": "NY",
       "country_id": "US",
       "street": [
      "123 Oak Ave"
    ],
    "postcode": "10577",
    "city": "Purchase",
    "firstname": "Jane",
    "lastname": "Doe",
    "email": "jdoe@example.com",
    "telephone": "512-555-1111"
  },
  "billing_address": {
    "region": "New York",
    "region_id": 43,
    "region_code": "NY",
    "country_id": "US",
    "street": [
      "123 Oak Ave"
    ],
    "postcode": "10577",
    "city": "Purchase",
    "firstname": "Jane",
    "lastname": "Doe",
    "email": "jdoe@example.com",
    "telephone": "512-555-1111"
  },
  "shipping_carrier_code": "tablerate",
  "shipping_method_code": "bestway"
  }
}

but with above payload given in devdocs it show error:

  "message": "Carrier with such method not found: %1, %2",
  "parameters": [
      "tablerate",
      "bestway"   ],

how can it be tested ?


texts: Magento2 - What is the purpose of a Data Interface?

texts:
I am unable to find a solid definition or understanding of the purpose or role of a data interface in Magento2 API Architecture.
Please do help me.
Thanks in Advance.


texts:
I am adding another type of related products.
I am adding a new method to Magento\Catalog\Model\Product\Link class by way of di.xml preference. The method also does appear in the interceptor class.

However, when I follow the execution, this call is made:
$this->_linkInstance = $productLink;

Where $productLink is returning type Magento\Catalog\Model\Product\Link\Proxy

When I look in this class at run time there is no reference to my method like there is for other relations:

public function useRelatedLinks()
    {
        return $this->_getSubject()->useRelatedLinks();
    }


texts: Disable Cache in CMS Page Using a Custom Module

texts:
I created a module which is an observer to listen to an event which is triggered on a CMS page and after listening to that disable the cache of the CMS page. My problem is how to have connection between module and CMS page.
I have a simple module which I downloaded from smashingmagazin website the structure is like the following:

app\code\local\SmashingMagazine\LogProductUpdate\etc\config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <SmashingMagazine_LogProductUpdate>
            <version>0.0.1</version>
        </SmashingMagazine_LogProductUpdate>
    </modules>
    <global>
        <models>
            <smashingmagazine_logproductupdate>
                <class>SmashingMagazine_LogProductUpdate_Model</class>
            </smashingmagazine_logproductupdate>
        </models>
        <events>

I have problem in here: what to write?I know that controller_action_predispatch is an event and it should be dispatched but I don't know if it is the right event to call in config.xml

<controller_action_predispatch>
                 <observers>
                 <page_cms_myid>
                <class>SmashingMagazine_LogProductUpdate_Model_Observer</class>
                <method>processPreDispatch</method>
                </page_cms_myid>
            </observers>
    </controller_action_predispatch>
            </events>
        </global>
    </config>

app\code\local\SmashingMagazine\LogProductUpdate\Model\observer.php

class SmashingMagazine_LogProductUpdate_Model_Observer
{
    Mage::log("test here");
public function processPreDispatch(Varien_Event_Observer $observer)
{
    $action = $observer->getEvent()->getControllerAction();

    // Check to see if $action is a CMScontroller
    if ($action instanceof Mage_Cms_PageController) {

$cache = Mage::app()->getCacheInstance();

        // Tell Magento to 'ban' the use of FPC for this request
        $cache->banUse('full_page');
    }
}
}

I want to add this module to the cms page so that the module can be loaded, this module doesn't have any phtml file or a block. do I need to create any?
I am doing it because with the help of friend I want to disable cache with this observer page

the module source can be downloaded at here.

I guess maybe I should update the layout of the cms page in design tab it should be something like:

<events>
        <observers>
            <page_cms_myid>
                <class>SmashingMagazine_LogProductUpdate_Model_Observer</class>
                <method>processPreDispatch</method>
            </page_cms_myid>
        </observers>
</events>

But It doesn't work,also I found these event cheat sheets:

so I changed config.xml again not worked:

  <events>
      <cms_page_prepare_save>
        <observers>
            <page_cms_myid>
                <class>SmashingMagazine_LogProductUpdate_Model_Observer</class>
                <method>processPreDispatch</method>
            </page_cms_myid>
        </observers>
    </cms_page_prepare_save>
        </events>

I also can have this function to write the dispatch event:

 Mage::dispatchEvent('cms_page_prepare_save', array('page' => $model, 'request' => $this->getRequest()));

but I don't know where to write it.
I know the following Information about my CMS page:

Controller Name:page
Action Name:view
Route Name:cms
Module Name:cms


texts: Added a product with weight 220LB to the cart, proceed to checkout, but the Shipping methods are not showing up

texts:
Using Magento 2.3.1

Added a product with weight 220LB to the cart ( the cart weight > 200lb ), proceed to checkout, but the Shipping methods are not showing up.
There is no restriction for shipping methods.
Shipping methods FLAT RATE, STORE PICKUP, UPS, CANADA POST are configured.

UPS & CANADA POST CARRIES have weight restriction but, FLAT RATE, STORE PICKUP has no restriction, though these methods are not displaying.

Please help to find the solution.


texts:
I'm trying to get all orders on a specific date, as an example, I'm trying to get all orders at 28th of June 2020.
But my problem is that I get a total count of 0 even though there's orders at that date.
<?php

$ch  = curl_init('https://domain.com/rest/V1/integration/admin/token?username=x&password=x');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// get admin token
$token = curl_exec($ch);

$headers = array(
"Content-Type: application/json; charset=utf-8",
"Authorization: Bearer ".$token
);

$api_request = 'https://domain.com/rest/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=created_at&searchCriteria[filterGroups][0][filters][0][value]=2020-06-28&searchCriteria[filterGroups][0][filters][0][conditionType]=eq
';
$curl = curl_init($api_request);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

echo curl_exec($curl);

?>

I need to get json contains all orders details so I can loop through each order items.
The above peice of code is not working, I try to excute the request using Postman, if someone could try to run this code that would be great.
Regards.


texts:
I'm trying to add a block to the product listing:

<?xml version="1.0"?>
<layout version="0.1.0">
    <catalog_category_view translate="label">
        <reference name="product_list">
            <remove name="product_list_toolbar"/>
            <block type="core/template" name="helloworld" as="helloworld" template="helloworld.phtml"/>
        </reference>
        <reference name="footer">
            <block type="core/template" name="helloworld" as="helloworld" template="helloworld.phtml"/>
        </reference>
    </catalog_category_view>
</layout>

In catalog/product/list.phtml I have this:

<?php Zend_Debug::dump($this->getSortedChildren()); ?>
<?php echo $this->getChildHtml('helloworld'); ?>

In page/html/footer.phtml I have this:

<?php Zend_Debug::dump($this->getSortedChildren()); ?>
<?php echo $this->getChildHtml('helloworld'); ?>

Note that I only added <remove name="product_list_toolbar"/> so that I can test if my reference to product_list works correctly, by seeing if product_list_toolbar is removed from the sorted children list. It is.

So what I now have is identical code in the product list and the footer, and it only works in the footer. After doing some digging, I can't find any instance of a block being added to product_list other than product_list_toolbar. So, is there something about this block that makes adding children not work?


texts: Free shipping not working after Magento version upgrade

texts:
I upgraded from version 1.4 to 1.9.3.2

But after upgrading version,

Free shipping method is not working.

Not working in the sense though there are no errors, but its is not getting shown on cart and checkout page.

Flat rate and other methods are working only free shipping is not working.


texts:
I have a live Magento site with a main store and also white-label stores located on sub-domains, all running out of the same Magento website. I'm using .htaccess to direct sub-domains to the corresponding stores like so:

SetEnvIf Host www\.whitelabel.mysite\.com MAGE_RUN_CODE=whitelabel
SetEnvIf Host www\.whitelabel.mysite\.com MAGE_RUN_TYPE=store
SetEnvIf Host ^whitelabel.mysite\.com MAGE_RUN_CODE=whitelabel
SetEnvIf Host ^whitelabel.mysite\.com MAGE_RUN_TYPE=store

This works great on my live site. However, I copied everything to a local Apache dev instance on an Ubuntu VM, and the sub-domains don't load their corresponding stores; they all just load the main store. I didn't make any changes to the .htaccess file. My virtual host file seems to be correct:

ServerName mysite.com
ServerAlias www.mysite.com
ServerAlias whitelabel.mysite.com
ServerAlias www.whitelabel.mysite.com
DocumentRoot /var/www/mysite.com/public_html

I think my hosts file is correct:

127.0.0.1       mysite.com
127.0.0.1       www.mysite.com
127.0.0.1       whitelabel.mysite.com
127.0.0.1       www.whitelabel.mysite.com

If I go to mysite.com in a browser on my dev box, it loads my main store, as it should. But if I go to whitelabel.mysite.com, it also loads my main store, but it should load my white-label store. What am I missing?


texts:
Has anyone using SASS/Compass framework with Magento. Is it worth using such frameworks?

What is the preferred way of building responsive site with Magento.


texts: Magento 2.2: Add/Remove class in a div from default.xml

texts:
How to add or remove a class in the store-switcher div from default.xml ?

I tried this :

   <referenceBlock name="store_switcher">
       <arguments>
            <argument name="block_id" xsi:type="string">switcher-store</argument>
            <argument name="css_class" xsi:type="string">my_new_class</argument>
       </arguments>
   </referenceBlock>

And this :

<referenceContainer name="header-wrapper" htmlTag="div" htmlId="switcher-store" htmlClass="my_new_class"/>

(I moved the store_switcher block to the header-wrapper container)

But none works.


texts: Can't get uploader.swf in Magento 403 (Forbidden)

texts:
In the tutorial for add image to product

But I cant see two buttons browser file and upload file in my instance

In DevTools received these messages

Someone please help me how to fix it.


texts: Problem with Multiple product imports + re indexing together

texts:
We (abc.com) have Magento Multiwebsite and multistoreview built in Magento CE 1.9.X. Each website has one store view. We are basically a marketplace system. We sale products from different magento systems. All the products of different magento website (magento1.com, magento2.com etc) are imported to our system using extension we install on different magento systems.

Currently we have 200,000 products and tie up with 100 different magento systems (Vendor)(For exmaple magento1.com to magento100.com).

If any product is changed in vendor site (magento1.com or magento100.com) then system will prompt them to sync those product with our magento system. If they do not sync then every night 1AM by cron job changed products would be synched.

Problem:

We were facing problem in reindex mainly. When parallel requests are coming together from multiple vendors for sync then at the same time product import and reindex is going on and while import and reindex running together, we are facing Deadlock issue. We are using Fast Asynchronous Reindex as we can not run full reindex for 200,000+ products everytime.

Temporary Solution:

To avoid this problem, we have come up with Queue system. So once import, reindex and sending sync status is done for one vendor and then only other vendor import, reindex and sending sync status will start. System is working but most of the time other vendor has to wait a long (Upto 24 hours) Products to be synched. For example 50 vendors has requested for 500 products each that means (500*50) = 25000 products. For import 500 products, reindex and sending sync status for each vendor will take close to 30 minutes. So 50th vendor has to waut (30*50) = 1500 minutes which is 25 hours.

Solution:

How system will handle multiple imports + reindex together?
What solution  will be proposed so that system can handle request without deadlock and it should not take that much time to sync products?
How we will ensure that new proposed system will handle more vendors as we grow and until how many vendors it will work fine (We may have 500 as well)


texts:
I am using a php script to generate an xml from my magento 1.9 to a comparison engine.
I have a field in the engine called mpn which need to be filled from my product's SKUs

$aData['id']=$iProduct;
$aData['mpn']=mb_substr($oProduct->getSku(),0,99,'UTF-8');

First line gives the product id and second the mpn field.

Now because of a problem I want to create the sku for my store only and give other SKUs to engine. The code must work only if new attribute is filled. If it not sku will pass to engine. So I created a new attribute with code

  new_mpn

And I filled in the code just above this:

$aData['mpn']=mb_substr($oProduct->getSku(),0,99,'UTF-8');

this:

if($oProduct->getNewMpn()!=''){$aData['mpn'] = @mb_substr($oProduct->getNewMpn(), 0, 99, 'UTF-8');}

But this don't work. I don't get the products.

Can anyone help?


texts: Customer_Eav db schema version is not properly set

texts:
I am using Magento 2.2.5 and getting this error.

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please update your modules: Run "composer install" from the Magento root directory.
The following modules are outdated:
Customer_Eav db schema version: defined in codebase - 1.0.3, currently installed - 1.0.5
Customer_Eav db data version: defined in codebase - 1.0.3, currently installed - 1.0.5

I run "composer install", but no error shows, even upgrade command also run successfully.


texts: Sitemap URL contains /magento How to remove it?

texts:
Version: Magento ver. 1.9.0.1

I'm new to Magento and following a book to optimize SEO settings. During creating a Sitemap generation for Google, it is generating a url:

http://mystore.com/magento/sitemap.xml

My question is how I can remove the /magento so it will look like:

http://mystore.com/sitemap.xml

I've searched google and forum with the terms I could think of like remove /magento from sitemap url

but had no luck.. if this is a duplicate please let me know.


texts: Layered Navigation not visible when Display Mode set to Static Block only (2.2.5)

texts:
Running 2.2.5 (Luma)

In the category, when I use Display Mode: Products only or Static block and products, the layered navigation is clearly visible on the frontend. However, as soon as I switch to Static block only the Layered Navigation is no longer visible.

I've tried this on 2 seperate 2.2.5 installations. Did something change since 2.2.2 because I'm sure this used to work before upgrading.

EDIT: I just installed 2.2.2 (Luma + Sample Data) and tested. It seems this didn't used to happen.


texts: UI Component date display wrong in magento2?

texts:
When i updating date using inline edit in magento2:

Actual date:

Db Save:

Grid Display After Save:

why it display one prev date? How can i resolve it?


texts: Installing Magento 2.0.10 security fix throws syntax error

texts:
I installed the newest code base from Magento for the security update and now my site won't come up. When I look in the logs I see the following.

PHP Parse error:  syntax error, unexpected '.' in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93

That's a core file that I have not touched, is this a PHP version issue or something else? Has anyone else had this issue?
Thanks,
JOse


texts: Re-assign Simple Prod. Images to the Configurable

texts:
I have this scenario:

we are actually using a colors-watch ext. for configurable products.

This extension works using the images that as been loaded in the associated simple prod.

We need to switch to another extension for color-watch the issue is that this new ext uses the images of the configurable product ( with some extra parameter to assign them to a particular attribute value ).

So what I need is to:

Open a configurable
read all simple prod
read the attribute value
extract images
assign the images to the configurable

Is it possible to do it an efficient way ? maybe with an sql query, so without saving the products model ?
Does I need to re-save the images for any reason ? (images are already uploaded)


texts: Magento 2 forgot password doesn't check email exist exist or not

texts:
Magento 2 forgot password doesn't check email exist or not. It gives the message

  If there is an account associated with xxxx@xxxx.com you will receive
  an email with a link to reset your password.

It should give an error message if email not exist.


texts:
When i run cron.php like  http://www.YOURDOMAIN.com/PATH_TO_MAGENTO/cron.php on my local server wamp i get a white page which means is runs properly.

But when i run on my remote server i get magento page saying There was no 404 CMS page configured or found.

This means cron.php isn't running properly?

I'm running cron.php via cronjob in my cpanel like this /opt/alt/php56/usr/bin/php /home/path/to/magento/cron.php >> /home/path/to/magento/var/log/cron.log.

Update:

Including $isShellDisabled = true; make it work with cronjob /opt/alt/php56/usr/bin/php /home/path/to/magento/cron.php >> /home/path/to/magento/var/log/cron.log.
Then i changed cronjob to /bin/sh /home/path/to/magento/cron.sh > /home/path/to/magento/var/log/cron_sh.log and it also works.


texts: Magento 2: Can we create a product attribute without patch with the declarative schema?

texts:
I want to create a product attribute without patch with the declarative schema.
Example would be more descriptive.


texts: Where is the code that handles the API method catalogProductCreate?

texts:
Can someone assist with finding the code that deals with the catalogProductCreate (SOAP v2) request?

I thought I found the method here: app/code/core/Mage/Catalog/Model/Product/api.php

public function create($type, $set, $sku, $productData, $store = null)

But changing that file doesn't seem to do anything with the requests.


texts: Restrict Indexation in Multistore Website

texts:
I have multistore website .When I have done translation for one store , I have found that it is done on the other stores also.
I want to make restring on indexing in the other stores .
The canonical tag indicate the correct Google version but some content like images are shown in results .
The question is how can I restrict indexing on one store
Thanks in advance


texts: How to show price shipping without tax in shipping method step Magento 2

texts:
I want to display price shipping without tax in shipping method step, I have configured it like this but it is not working. It still shows at price 4.40 while without tax is 3.70, please help me.

Shipping method step it show 4.40

Cart and payment method it show 3.70


texts: Displaying subcategories instead of products 2.1

texts:
I am fairly new to Magento, and am having trouble figuring out what I need to add to do this. I have looked all over for this, but can not find a solution that shows how to do this for magento 2. I am looking for how to create a module that displays all of the subcategories of the category clicked. If there are no more subcategories, then I want to display the products for that category.

I have tried making blocks in the admin panel, and attaching these blocks to the product category. I would really like to just create a module that does this for me though.


texts: our product page has full page caching, however, our breadcrumbs shouldn't be cached but they are.  is there a way around this?  How so?  Thanks.


texts: Through the API endpoint /categories/{categoryId}/products I cannot retrieve products of the specified category, returns empty array

texts:
I'm working with Magento 2 REST API and trying to retrieve products of a specific category, but I'm running into an issue: on my Magento dashboard i can see that in a specific category there are some products, but when i use the endpoint /categories/{categoryId}/products it only returns an empty array. Where's the mistake? Do I have to configurate something in my dashboard?

Thanks!


texts: Magento2 - How to assign custom Certification to my extension?

texts:
I have developed custom extension and I want to give certification to my custom extension.

Can anyone help me how can I do This.

Thanks in advance


texts: Magento 2.2.8 - Possible Issues during upgrade?

texts: Magento 2.2.8 was just released https://github.com/magento/magento2/releases/tag/2.2.8 . What are the issues that we might face during the upgrade ?


texts:
I have recently installed magento latest version i.e. Magento 2.3.0 in local wamp machine with php 7.2.4

Installed it using command line interface.

But when i tired to run it show me error like

Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'D:/wamp64/www/mage23/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js'


texts: I have three stores in Magento 2.2 with different languages. For this i am translating all the pages. Before there was URL KEY for pages where i can copy the identifier and assign it to the specific stores but i am missing URL KEY here. What am i doing wrong or is there any other way?


texts: Validation required for zip codes less than 6 digits

texts:
we have custom module for entering zip codes in backend, only if those zip codes if we enter in shipping address, than it will display COD under payment method , otherwise it will hide COD.

Here problem is it is working only for 6 digits.

if we enter any below 6 digit zip codes in shipping address , its displaying COD. This is problem.

ex: 2,24, 246, 2468, 12345

but if we enter any 6 digit zip codes other than zipcodes which is present backend, its not displaying COD. This is fine.

ex: 123456, 333999, 666666

as validation is working fine for 6 digits we want for other digits also.

Observer.php

<?php
class Mfp_Cod_Model_Observer {

    public function getCashOnDelvery(Varien_Event_Observer $observer) {
        $event           = $observer->getEvent();
        $method          = $event->getMethodInstance();
        $result          = $event->getResult();
        $isModuleEnable = Mage::getStoreConfig('cod/cod/enable');

        if($isModuleEnable) {

            if($method->getCode() == 'cashondelivery' ){

                $quote = Mage::getSingleton('checkout/cart')->getQuote();
                $add = $quote->getShippingAddress();
                $postcode = $add->getData('postcode');

                $comparisonMode = Mage::getStoreConfig('cod/cod/mode');
                $zipCodes = Mage::getStoreConfig('cod/cod/zipcode');
                $isExist = false;

                if(trim($zipCodes) == '') {
                    $result->isAvailable = true;
                } else {

                    if(strpos($zipCodes, $postcode) !==  false) {
                        $isExist = true;
                    }

                    if($isExist != true) {

                        $zipCodesArray = explode(',', nl2br($zipCodes));
                        if(count($elementLineArray) > 1) {
                            foreach($zipCodesArray as $codzipLine) {
                                $elementLineArray = explode('-', $codzipLine);
                                if(count($elementLineArray) == 2 && ( $postcode >= $elementLineArray[0] && $postcode <= $elementLineArray[1] )) {
                                    $isExist = true;
                                    break;
                                } else if($postcode == $codzipLine) {
                                    $isExist = true;
                                    break;
                                }
                            }
                        }
                    }

                    $returnValue = '';
                        $returnValue = ($isExist)?true:false;

                    $result->isAvailable = $returnValue;

                }

            }
        }
    }
}

config.xml

<?xml version="1.0"?>
<config>
  <modules>
    <Mfp_Cod>
      <version>1.0.0</version>
    </Mfp_Cod>
  </modules>
  <global>
          <models>
            <cod>
                <class>Mfp_Cod_Model</class>
            </cod>
        </models>

    <helpers>
      <cod>
        <class>Mfp_Cod_Helper</class>
      </cod>
    </helpers>
  </global>
    <frontend>
        <events>
            <payment_method_is_active>
                <observers>
                    <paymentfilter_payment_method_is_active>
                        <type>singleton</type>
                        <class>Mfp_Cod_Model_Observer</class>
                        <method>getCashOnDelvery</method>
                    </paymentfilter_payment_method_is_active>
                </observers>
            </payment_method_is_active>
        </events>
    </frontend>
</config>


texts: how to upload orders from csv in front end by customer?

texts:
I have customer type as wholesaler.if any wholesaler logged into magento from front end he should be able to place bulk orders through csv as an option.

I mean he knows all product skus.
Is there any extension to meet this requirment? otherwise i need to code?

Thanks in advance.Please comment if any clarification needed?


texts:
We have simple products that are sold in large quantities that we price to a fraction of a sent (e.g. $4.125) Users buy 8 and their cost is $33.

We don't see support for this in Magento or any extension. If make the change to allow admins to enter prices like 4.125 what is the sense of how many things are going to break?

Are we going to have to touch every report that involves money? Imports and exports?

Admin and consumer checkout? The dashboard?

Anyone want to offer an opinion on the effort we're looking at to do this?


texts: magento2 admin dashboard not loading css and js

texts:
admin pannel of M2 v2.1.9 not loaded in css and js file means show only html content format.

I'm also run these commond many times but not fix.

sudo php -f bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento indexer:reindex
sudo chmod -R 777 var/

Delete Some Folder too:

MAGENTO_ROOT/pub/static/_requirejs
MAGENTO_ROOT/pub/static/adminhtml
MAGENTO_ROOT/pub/static/frontend

Can anyone guide how to fix it?


texts: How to display category image in top navigation menu

texts:
I have used below code to override category menu but unable to add category image in top menu.

protected function _getHtml(Varien_Data_Tree_Node $menuTree, $childrenWrapClass) {

    $html = '';

    $children = $menuTree->getChildren();

    $parentLevel = $menuTree->getLevel();
    $childLevel = is_null($parentLevel) ? 0 : $parentLevel + 1;

    $counter = 1;
    $childrenCount = $children->count();

    $parentPositionClass = $menuTree->getPositionClass();
    $itemPositionClassPrefix = $parentPositionClass ? $parentPositionClass . '-' : 'nav-';

    foreach ($children as $child) {
        $child->setLevel($childLevel);
        $child->setIsFirst($counter == 1);
        $child->setIsLast($counter == $childrenCount);
        $child->setPositionClass($itemPositionClassPrefix . $counter);

        $outermostClassCode = '';
        $outermostClass = $menuTree->getOutermostClass();

        if ($childLevel == 0 && $outermostClass) {
            $outermostClassCode = ' class="' . $outermostClass . '" ';
            $child->setClass($outermostClass);
        }
        $html .= '
_getRenderedMenuItemAttributes($child) . '>';
        $html .= 'getUrl() . '" ' . $outermostClassCode . '>'
                . $this->escapeHtml($child->getName()) . '';

        if ($child->hasChildren()) {
            if (!empty($childrenWrapClass)) {
                $html .= '
';
            }
            $html .= '
';
            $html .= $this->_getHtml($child, $childrenWrapClass);
            $html .= '
';

            if (!empty($childrenWrapClass)) {
                $html .= '
';
            }
        }
        $html .= '
';

        $counter++;
    }

    return $html;
}

i have applied many solutions but no luck. Can anyone help?


texts:
I just opened up a configurable product and saw that when I reset the filter for the list of associated products that some of the products have a red background.
I never saw that before. Is there something broken?
Thanks for your help!


texts: when hovering on images only show arrow Magento 2

texts: I want to show only left/right arrow appear only when hovering the image.


texts:
I used to use Shopify and the permalink to fill a cart was something like:
http://domainname.myshopify.com/cart/370374:1,377854:1,37067790:1

Is there a similar way to do this with Magento? So far I've tried:

https://domainname.com/checkout/cart/add?product=99750&qty=1

But they don't appear to work.


texts: How can we change url of extension installed?

texts: I installed a extension and it automatically  installed on a path  myweb/store   now I want to change that "store" in url to to my "mystore"  is there a specific way to change or diff for every extension ?


texts:
In my custom module, I have perform some logical calculations in block to get the value in frontend.

And also I need to get that value in model also.

So my question is, I call the block function in model file like

 Mage::getBlockSingleton('custom/custom');

Is this is a correct way to call block inside model, if not please explain.


texts:
is there a best practice to create e new custom e.g. invoice PDF?

I need a separate custom PDF with my own layout and tables.
And here is my problem: I had never created a PDF in Magento before so there are many questions where and how to start with this.

The only thing I have is a new module with models and a collection.

Do I need phtml files for my template or does it belong into a model with Zend_Pdf?


texts: Magento 2.3 & composer : update extension

texts:
I would like to update my extension (I updated magento 2.2.6 to 2.3.1 from composer but looks like the extension also need to be updated because it's not working and it should be compatible).
Then i try :

composer.phar update Firebear_ImportExport

also tried :

composer.phar update Firebear/ImportExport

both returned

  Package "firebear_importexport" listed for update is not installed.
  Ignoring.

also tried :

composer.phar require Firebear/ImportExport

returned :

  [InvalidArgumentException]
                         Could not find
  package Firebear/ImportExport.

Then I suppose I am not using the correct syntax, which syntax should I use ?


texts: Free memory on server only goes down until it runs out

texts: When I visit my website the free memory on my sever goes down. Of course this is supposed to happen. Then I refresh the page and check the free memory again. It goes further down. If I refresh the page 10 more times my memory is low. Why does the RAM on my server keep going down with every page visit? Shouldn't the older page loads finish and the RAM go back up after the page is done loading?


texts: how to build another admin account of magento to read orders only but can't delete and edit it?

texts: I want to set another admin account of magento that can view order but can't delete and edit. I only choose the role resources(sales>>orders>>Action>>view),but the role still have delete permission. How can I do ?


texts:
I installed ExtetionsStore_ContactConstant from the GitHub. After installed I tried to go to frontcontroller url. but I am getting 404 error.

Here is my config.xml file code.

 <frontend>
        <routers>
            <extensions_store_constantcontact>
                <use>standard</use>
                <args>
                    <module>ExtensionsStore_ConstantContact</module>
                    <frontName>constantcontact</frontName>
                </args>
            </extensions_store_constantcontact>
        </routers>
        <layout>
            <updates>
                <extensions_store_constantcontact module="ExtensionsStore_ConstantContact">
                    <file>extensions_store/constantcontact.xml</file>
                </extensions_store_constantcontact>
            </updates>
        </layout>
    </frontend>

Here is my controller file FormController.php

<?php

/**
 * ConstantContact form controller
 *
 * @category    ExtensionsStore
 * @package     ExtensionsStore_ConstantContact
 * @author      Extensions Store <admin@extensions-store.com>
 */
class ExtensionsStore_ConstantContact_FormController extends Mage_Core_Controller_Front_Action
{
    public function indexAction() {
        echo 'Hello';exit;
    }
    protected function _initLayout()
    {
        $this->_initLayoutMessages('customer/session');

        return $this;
    }

    /**
     * Get singleton model
     * @return ExtensionsStore_ConstantContact_Model_Constantcontact
     */
    protected function _getModel()
    {
        $model = Mage::getSingleton('extensions_store_constantcontact/constantcontact');

        return $model;
    }

    /**
     * Subscribe page
     */
    public function subscribeAction()
    {
        if ($this->_getModel()->isReady()){

            $this->loadLayout()->_initLayout()->renderLayout();

        } else {

            $this->norouteAction();
        }
    }

    /**
     *  Subscribe form action
     *
     */
    public function subscribePostAction()
    {
        if (!$this->_validateFormKey()) {
            $this->_redirect('*/*/subscribe');
            return;
        }

        if ($this->_getModel()->isReady() && $this->getRequest()->isPost()) {

            $data = $this->getRequest()->getPost();

            $result = $this->_getModel()->addUpdateContact($data);

            if ($result['error'] === false){

                Mage::getSingleton('customer/session')->addSuccess(Mage::helper('extensions_store_constantcontact')->__('We have received your information. Thank you for subscribing.'));

            } else {

                Mage::getSingleton('customer/session')->addError(Mage::helper('extensions_store_constantcontact')->__('There was an error processing your request. Please, try again later'));
            }

        } else {

            Mage::getSingleton('customer/session')->addError(Mage::helper('extensions_store_constantcontact')->__('There was an error processing your request. Please, try again later'));
        }

        $this->_redirect('*/*/subscribe');

    }

}

also in module's readme file:

/constantcontact/form/subscribe URL for the use this extension...

can anyone tell me to solve this error.


texts: Magento performance has nothing to do with server hardware, my support says (Shared Hosting)

texts:
So I called my hosting provider as to why Magento is unbearably slow when they host it and 10 times faster when I copy the installation precisely onto my home computer. I'm on shared hosting.

I was guessing, a dedicated server would help with that because it will deliver more performance, thus Magento would finish executing quicker and send the page earlier to the customer.

Well what he told me was along these lines:

  Magento performing badly is not at all about hardware, but about Magento itself or the way you have customized it.

Only, why does the same installation run so much quicker for me if it's REALLY not about hardware? I don't believe there's anything else that is different...


texts: Why quantity_and_stock_status is always 1 in /V1/products?searchCriteria in Magento-2.2.7?

texts: I am using Magento-2.2.7 . If i call this endpoint /V1/products?searchCriteria , it always show each product having same quantity_and_stock_status . Whenever product is in_stock or out_of_stock it always show quantity_and_stock_status:1. Please help me to solve it.


texts: Magento Related Products displaying wrong Images

texts:
Related products on the product page are displaying wrong images.

Can anyone please let know why it is happening?

You can see last 4 products have same images even though they are different products.


texts: Redirect www to non-www keeping the path

texts:
In my .htaccess, the redirect from "www.example.com" to "example.com" works.
But when the urls is "www.example.com/someotherpath.html" the redirect is still "example.com"

How to solve this?

I am working with this settings in .htaccess:

<IfModule mod_rewrite.c>

############################################
## enable rewrites

    Options +FollowSymLinks
    RewriteEngine on

############################################
## you can put here your magento root folder
## path relative to web root
RewriteBase /
#########################
# redirect www to no-www
#########################

RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]
    #RewriteBase /magento/

############################################
## uncomment next line to enable light API calls processing

#    RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]

############################################
## rewrite API2 calls to api.php (by now it is REST only)

    RewriteRule ^api/rest api.php?type=rest [QSA,L]

############################################
## workaround for HTTP authorization
## in CGI environment

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

    RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
    RewriteRule .* - [L,R=405]

############################################
## redirect for mobile user agents

    #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
    #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
    #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

############################################
## always send 404 on missing files in these folders

    RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

    RewriteRule .* index.php [L]

</IfModule>


texts: How to set canonical url for homepage in Magento 2.2

texts:
I have tried setting below code but i get the below error.

<head>
    <link rel="canonical" src="https://www.example.com/" src_type="url"/>
</head>

  Please correct the XML data and try again. Element 'head': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 1


texts: Get Payment Method Title of specific store

texts:
I have a payment method instance from which I am able to get the title with

$sale->getPayment()->getMethodInstance()->getTitle()

Now, I would like to get the title of this payment method as set in a specific store.

How can I achieve it?


texts: Page Builder- Advance Section in Row Layout

texts:
I want to add a ID field in the advance section of Row Layout in Magento 2 Pagebuilder.Here i will enter unique id for my every Row sections
Please Help


texts:
I am trying to extend Mage_Adminhtml_Block_Customer_Edit_Tab_View class in order to pass in some functions and display them using a layout update in

adminhtml/default/default/template/namespace/mymodule/edit/tab/view.phtml

I've used a rewrite in my config.xml

<blocks>
    <mymodule>
        <class>Mymodule_Customer_Block</class>
    </mymodule>
    <adminhtml>
        <rewrite>
            <customer_edit_tab_view>Mymodule_Customer_Block_Adminhtml_Customer_Edit_Tab_View</customer_edit_tab_view>
        </rewrite>
    </adminhtml>
</blocks>

And here is the View.php file

class Mymodule_Customer_Block_Adminhtml_Customer_Edit_Tab_View extends   Mage_Adminhtml_Block_Customer_Edit_Tab_View
{
    public function getCredit(){

        $customerId = $this->getCustomer()->getId();
        $model = Mage::registry('current_customer');
        $customerId = $model->getId();
        $data = $model->getData();

        $helper = Mage::helper('customercredit');
        $creditValue = (float)$helper->getCreditValue($customerId, $model->getWebsiteId());

        return $creditValue;
    }
}

Whenever I go to view the customer edit view tab in magento admin I get an error:

  Wrong tab configuration.

I must have missed something out of my setup but I am not sure what?

Any one have any idea please let me know...


texts:
In Magento2.1.10 I am trying to make admin grid module and found below function in given path

  \app\code\xyz\Grid\Block\Adminhtml\Grid\addrow.php

public function getFormActionUrl(){
        if ($this->hasFormActionUrl()) {
            return $this->getData('form_action_url');
        }

        return $this->getUrl('*/*/save');
}

How this method is used in Magento 2 form?


texts: upgrading from Magento version 1.9.3.1 to v1.9.3.4

texts:
I need to upgrade from Magento version 1.9.3.1 to v1.9.3.4 which includes version 2 of SUPEE-9767.  And just want to check that the normal upgrade process I have is correct.

Make back up of website & DB.
Test upgrade on staging website first by merging latest version of Magento (v1.9.3.4) with current website codebase.
Test upgrade has completed by logging into admin panel and checking version number.
Test website, cart, checkout, product pages, product listings etc.
Add maintenance.flag to production website to put it in maintenance mode.
Make same changes on Production (i.e. merging latest version of Magento  with current website codebase.)
Remove maintenance.flag from production and test upgrade has been successful.

Does this seem ok?
Is it ok that I'm skipping two small release inbetween by going directly from 1.9.3.1 to v1.9.3.4?


texts: How can i give one time Mass discount for admin create order

texts: I am created one manual order for a customer, which consists 100 products, how can I give 40% discount for total order value, how can I do that, individual order discount is not possible.


texts: I am using a responsive custom theme on my site and I would like to have a 2 column layout category page only mobile version. How to set max-width in css?


texts: Should limit=all be used as a canonical in layered navigation?

texts:
I'm using the an SEO extension that allows me to add a canonical meta tag to layered navigation pages.

Next to this option, the extension states:

Don't use the "Current Category" value if the
"Allow All Products per Page" setting
(System -> Configuration -> Catalog -> Frontend) is disabled.

In other words, enable the "view all" option in the catalog before using the option to add a canonical url to the layered navigation pages.

What this does then is make the canonical look like this:

<link rel="canonical" href="https://www.example.com/category?limit=all"/>

Is this a good thing to do?


texts:
I am trying to add Magento Promotion Rule Apply extra 5% off coupon with existing offer of buy 2 get 10%. SO after using coupon code total off will be 15% . I have created a coupon code for giving extra 5% off. But after using coupon code i am not getting total of 15% off. The extra 5% is applying on amount which is deducted after 10% off. So basically this extra 5% off is not applying on original price.
So can anyone give me the solution.


texts:
Whenever I need to edit a product in admin, I get the following error:

  Notice: Array to string conversion in /shared/httpd/magento/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228

I've a little little bit of debugging but and it seems that indeed, the category id's are in an array. But I don't have any clue what causes this.

(
    [0] => 8
    [1] => Array to string conversion
    [2] => /shared/httpd/magento/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php
    [3] => 228
    [4] => Array
        (
            [params] => Array
                (
                    [0] =>
                    [1] => 4
                    [2] => simple
                    [3] => Test
                    [4] =>
                    [5] =>
                    [6] => 2019-05-17 11:23:43
                    [7] => 2019-05-17 11:23:43
                    [8] => Array
                        (
                            [0] => 13
                        )

                )

        )

)

Magento version: 2.3

PHP: 7.1.27

MySql: 10.3.13-MariaDB-1:10.3.13+maria~bionic

Edit: I just saw that event the category selector is always empty at every product


texts: Breadcrumb definitions for backend pages

texts:
I have often seen breadcrumb definitions in controllers that solely manage backend pages, e.g. /app/code/core/Mage/Adminhtml/controllers/CatalogController.php

But I have never actually seen a breadcrumb on a backend page.
How come?
Am I missing something? Or am I just blind? :-)

Is there an existing usage anywhere or are the definitions done just in case somebody wants to implement them in the backend?

Thanks in advance!


texts: Receive error when try to upload magento 2 static content in ubuntu 18.04

texts:
PHP Fatal error:  Uncaught Error: Class 'MessageFormatter' not found in /opt/lampp/htdocs/magento/vendor/magento/framework/Phrase/Renderer/MessageFormatter.php:43
Stack trace:
#0 /opt/lampp/htdocs/magento/vendor/magento/framework/Phrase/Renderer/Composite.php(46): Magento\Framework\Phrase\Renderer\MessageFormatter->render(Array, Array)
#1 /opt/lampp/htdocs/magento/vendor/magento/module-translation/Model/Js/DataProvider.php(110): Magento\Framework\Phrase\Renderer\Composite->render(Array, Array)
#2 /opt/lampp/htdocs/magento/vendor/magento/module-translation/Model/Json/PreProcessor.php(104): Magento\Translation\Model\Js\DataProvider->getData('Magento/blank')
#3 /opt/lampp/htdocs/magento/vendor/magento/framework/View/Asset/PreProcessor/Pool.php(77): Magento\Translation\Model\Json\PreProcessor->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#4 /opt/lampp/htdocs/magento/vendor/magento/framework/View/Asset/Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Magento\Framework\View\Asset\Pr in /opt/lampp/htdocs/magento/vendor/magento/framework/Phrase/Renderer/MessageFormatter.php on line 43


texts:
I have struggled with this error after installing php7 in my PC.also I googling and found some answer but this is not a standard way to do this.because when I upload this source on the server isn't it create a problem because server PHP version is lower.

I have found a solution like below.

$out .= $this->getBlock($callback[0])->{$callback[1]}();

Is there any other way to out of this situation without touching core file?


texts: How to move 'quick-access' div from header.phtml into topmenu.phtml?

texts:
I'm wondering how to go about moving the 'quick-access' div into the nav-container below it?  When in the Chrome dev tools, I can drag the quick-access div into the nav container and it moves just as I want it to (admittedly it doesn't look great).

However, when I move the quick-access div from the header.phtml into the topmenu.phtml, the quick-access div just doesn't show up.

Anyone know how I can get it to show up?


texts: How to translate Ajax validation messages od customer/account/create/

texts:
I have web store in Swedish and English language.
I want to translate password validation message like :

  Minimum length of this field must be equal or greater than 8 symbols.
  Leading and trailing spaces will be ignored.

  Minimum of different classes of characters in password is 3. Classes
  of characters: Lower Case, Upper Case, Digits, Special Characters.

How can I apply it? I have tried to add words in "js-translation.json" file in my theme folder but won't apply.


texts: Dashboard page title displaying at bottom of the page

texts:
In all dashboard page titles displyed the bottom. I need to display at top as regular place. Any one please help me.
In my layout page

<body>
        <referenceBlock name="page.main.title" as="top">
            <action method="setPageTitle">
                <argument translate="true" name="title" xsi:type="string">My Wish List</argument>
            </action>
        </referenceBlock>
        <referenceContainer name="content">
             <block class="Dcw\Orders\Block\Index" name="bids" template="Dcw_Orders::bids.phtml" after='page.main.title'>
             </block>
        </referenceContainer>
    </body>


texts: i created a module that adds a custom attribute to categories i want the defualt behavior when i call the category collection with Mage:getModel('catalog/category') to only return categories that have a specific value set for that custom attribute, how would I do this?


texts: How to add a button adjacent to add to cart button in magento v2.2.0 using uiComponent?

texts:
How to add a button adjacent to add to cart button using uiComponent in magento 2.2.0..

https://i.stack.imgur.com/evz8C.jpg like this image,


texts: Which indexers can be disabled from Magento 2 if I am not using Magento's frontend?

texts:
I am planning to use Magento's database and rest api to add/update/get data. Customer facing interface will be written in viewjs (Not using Magento's frontend).

As we know few data is indexed in Magento's index tables for fast serving of data to frontend. If there is a change in original data, once indexer runs, these index tables are update.

  For example,

  if qty is update for a product via rest-api/admin panel, it
  updates cataloginventory_stock_item table. and we can use rest
  api (http://127.0.0.1/magento/rest/V1/stockItems/sku_code) to
  get latest inventory data, even without running indexing.

Since I am not planning to use Magento's frontend, I believe I can disable a few indexers from our project?

Can you please let me know which indexers can be disabled if I am not using Magento's frontend ?


texts: How to Add / Create Configurable Product and Attribute

texts:
How to add Configurable Product in magento 2.x

and add new Attribute in magento 2.x


texts: Having Wordpress as landing page for Magento

texts: I've met up with one of the digital marketing agency, and they actually recommend me to install a wordpress landing page as a marketing site ontop of my current magento site. They mentioned that it's for stronger SEO purpose as well as improve UI & UX. Just want to clarify if anyone is doing the similar thing, and could advise if it's advisable or not.


texts: How(why) compilation improves performance

texts:
I'm searching to improve our magento project and I found some postings to suggest reasons.

one of repetitive reasons is to enable compilation.

And I found that my project is unable for compilation.

But I want to know how compilation improves performance and why.

I believe there is a clear reason not to enable compilation.


texts:
Can't retrieve entity config: blog/eav_attribute

My magento site showing error when go to product details.

Please suggest me how to remove this error


texts: magento 2 custom theme css not working on frontend

texts:
I'm using to make a custom theme and applied to it. after installing any modules than front-end CSS not working.
Some time replace the .htaccess file from official link than working.
anyone can fix it.

How to resolve this issue.

I'm also run these commands many times but not fix.

sudo php -f bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento indexer:reindex
sudo chmod -R 777 var


texts: Free shipping on specific shipping method

texts:
I'd like to offer my customers free shipping when the cart is over $65 but only in 1 specific shipping method.

I have 4 shipping methods but only one should be free.

Does anyone know how to do it?

Thanks in advance

EDIT: I'm using Community Edition 1.9.0.1


texts: How to change admin secure value and generate integration keys for api?

texts:
I've developed a script which sets up my magento installations from scratch to production mode with ssl etc.

I have on tiny problem and that is, I am not sure which command to use in order to change the secure admin value from 0 to 1? The whole point of this script is to make the installation process easy, so I'm eliminating having to login to phpmyadmin or using mysql etc.

Changing URLs works for me from terminal by just using one single command on Bitnami, but the value is not changing as I am not sure how to from terminal. Any help here is appreciated.

Another question is, is there a way for me to generate integration keys from terminal?

It's all part of a big project where I'm letting clients deploy servers with scripts that runs the installation processes for them.

Many thanks for any help here!


texts: How to place the add to cart button below description

texts:
I want to place the add to cart button below description . I am tried many times but i am failed this is my addtocart.phtml file

<?php $_product = $this->getProduct(); ?>
<?php $buttonTitle = $this->__(' BUY '); ?>
<?php if($_product->isSaleable()): ?>

        <?php if(!$_product->isGrouped()): ?>
        <?php echo $this->__('Qty:') ?>

            <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />

        <?php endif; ?>
        <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><?php echo $buttonTitle ?></button>
        <?php echo $this->getChildHtml('', true, true) ?>

<?php endif; ?>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_id')->toHtml(); ?>

Now I want to place the add to cart button above price and availability like this in the image