texts:
I've just launched a site and it returns this error when trying to add a product to the shopping basket.

The address total model should be extended from Mage_Sales_Model_Quote_Address_Total_Abstract.

http://www.securatot.co.uk/izi-go-modular-black-cab

Any help would be great.  Magento 1.9


texts: PayPal Express Firstname and Lastname Empty: how to SET these fields using a query

texts:
We were having this issue

PayPal Express FIRSTNAME and LASTNAME instead of SHIPTONAME

Now we have many accounts where there is no firstname and secondlastname, however shipping data is correctly entered

How can we update the DB and fix these Empty firstname and secondlastname issues using the data available in billing or shipping address fields?

thx


texts: M2 - Change end date of all coupon codes

texts:
In the database there is a table called salesrule_coupon which has all the coupon codes in it.

I need to change the column expiration_date for all the coupons to the same date 30-08-2024,

Is This possible?


texts: How to set using default value from "Main Website" for product?

texts:
In my system were two store views. "Default Store View" (store_id=1) and "Custom Store View" (store_id=2). Custom view always was default.
I removed unnecessary store view "Default".

When I programmatically import products it stores values to table catalog_product_entity_varchar for store_id=2.
In my code I don't set any store id. I tried to set but it gives me no result.

So when I want to change product name for "Main Website" it gives me nothing at frontend (there is the same product name as it was, i.e. for store_id=2), because it edits value only for store_id=0 ("Main WEbsite"), but no changes for store_id=2.

There no ability to switch for "Custom Store View" for now when it is only one store view in system.

I have single store mode enabled and I need only one store view with only one value type for each product.
I know that I can cleanup some tables with values for store_id=2, but my system does import of products every day, therefore I need to turn off storing values for Custom Store View.

How to do this? Or any other ideas how to fix this?

UPD: Github issue page https://github.com/magento/magento2/issues/7877#issuecomment-317441253


texts: Magento 1.9 save productname using script

texts:
I try to save the productname, based on the following script.
But I get a TypeError when running the script.

What am I missing here?

<?php

ini_set('display_errors', 'On');
error_reporting(E_ALL);

require('../app/Mage.php');
Mage::app();

$product = Mage::getModel('catalog/product')->load(409728);
Mage::register('current_product', $product);
$seotitle = Mage::helper('seo')->getCurrentSeo();
$productnamestring = Mage::getSingleton('seo/object_product')->getTitle();

        $findseo = array('/\h+inch (?:(i[357])-\w+|\h+\w+)?/', '/(\w+)#\w+/', '/(^| )(.{4,}) (.*)\2/', '/\s*-\s*$/');
        $replaceseo = array('" $1', '$1', '$1$2 $3', '');
        $productnamingseo = preg_replace($findseo, $replaceseo, $productnamestring);

if ($product->getAttributeText('active_ice') == ('Ja')):

$product->setName($productnamingseo);
$product->save();

endif;


texts: Add attribute in magento order email confirmation

texts:
Need some help to add a custom attribute to my email order confirmation. I have an attribute Location that I would like to be shown under the product sku in the order confirmation email.

Could any supply me with the code for displaying the location attribute under the sku?

Have tried a lot but no success yet.

I use magento 1 1.9.2


texts: how to filter by product type when we have some other types?

texts:
$batt_pack = Mage::getModel('catalog/product')->getCollection();
$batt_pack->addFieldToFilter('product_type',
        array(
            'like' => Mage::getResourceModel('catalog/product')
                        ->getAttribute('product_type')
                        ->getSource()
                        ->getOptionId('Battery Pack')
            )

although I used "like" it shows me only the ones that has just the product type of Battery pack it doesn't show me the ones has battery pack and some thing else
how can I do that?

  ->getOptionId('Battery Pack%')

this one also didn't work
I know it is so wrong but I guess I should do something like this


texts: Activating custom grid in magento2 causes other grid to throws error

texts:
I have created a custom grid with following di.xml

di.xml

<preference for="\Magento\Customer\Controller\Adminhtml\Index\InlineEdit" type="Namespace\Modulename\Controller\Adminhtml\Index\InlineEdit" />

 <type name="\Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
    <arguments>
        <argument name="collections" xsi:type="array">
            <item name="school_district_listing_data_source" xsi:type="string">Namespace\Modulename\Model\ResourceModel\Agencyzipmapping\Grid\Collection</item>
        </argument>
    </arguments>
</type>

<type name="Namespace\Modulename\Model\ResourceModel\Agencyzipmapping\Grid\Collection">
    <arguments>
        <argument name="mainTable" xsi:type="string">agency_zipcode_mapping</argument>
        <argument name="resourceModel" xsi:type="string">Namespace\Modulename\Model\ResourceModel\Agencyzipmapping</argument>
    </arguments>
</type>

Whenever I activate / enable my module, other grids in admin panel show following error:
Not registered handle

I tried changing type to virtual type as mentioned over here. That didn't work out.


texts: Undefined index: websites in ..module-config/App/Config/Type/System.php

texts:
After trying to update from 2.2.5 to 2.2.6 I ran into an error message that it could not write to one of my files and thus needing to do a rollback on some of my backups. For some reason, I cannot complete the rollbacks (that's a separate issue I'm trying to investigate). When I navigate to my website I get "An error has happened during application run. See exception log for details."

Going to my exception.logs and opening it, I see the following error

  Notice: Undefined index: websites in /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php on line 220 {"exception":"[object] (Exception(code: 0): Notice: Undefined index: websites in /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php on line 220 at /var/www/magento/vendor/magento/framework/App/ErrorHandler.php:61)"} []

Now, heading to System.php line 220, this is the function:

private function cacheData(array $data)

{

    $this->cache->save(

        $this->serializer->serialize($data),

        $this->configType,

        [self::CACHE_TAG]

    );

    $this->cache->save(

        $this->serializer->serialize($data['default']),

        $this->configType . '_default',

        [self::CACHE_TAG]

    );

    $scopes = [];

    foreach (['websites', 'stores'] as $curScopeType) { ***This would be the 'Websites' in question.***

        foreach ($data[$curScopeType] as $curScopeId => $curScopeData) {

            $scopes[$curScopeType][$curScopeId] = 1;

            $this->cache->save(

                $this->serializer->serialize($curScopeData),

                $this->configType . '_' . $curScopeType . '_' . $curScopeId,

                [self::CACHE_TAG]

            );

        }

    }

    $this->cache->save(

        $this->serializer->serialize($scopes),

        $this->configType . "_scopes",

        [self::CACHE_TAG]

    );

}

Any help would be awesome! Thank you :)


texts: Magento 2: get attribute label (considering current store view)

texts:
I defined for 2 different store views 2 different attribut labels:

$_product->getResource()->getAttribute($_code)->getFrontendLabel();

This is how I get the attribute Label, but this retrieves only Default Label.

I need to display the attribute label, corresponding to user's current store. How can I do that ?


texts: Magento Stock deduction after payment success

texts: I am using magento 1.7. We need to stock deduction after payment successful from payment gateway. Is there any way to for this?


texts: Magento Order Products Calculation Missing

texts:
The customer added 17 products to their cart as well as placed the order and the admin also received 17 products order.

The issue: The amount was calculated for only one product and confirmation mail was also sent regarding only one product.

Screen Shots:

Admin Received Order:

The order mail sent to customer with only one product in order,

Note : The amount consuming for only one product cost. How to solve this error.
       Order Mismatching of products?


texts: Imported images not assigned to image, base_image and thumbnail

texts:
I am working on importing products through the dataflow profiles, as the newer import is not working for unknown reasons.

I read this article which recommended to import products and their images seperately from each other. That was a good idea, as all products with prices, categories etc. got imported fine and that took a lot of work from me.

I then moved on to create an image_import.csv which contained the sku, image, base_image and thumbnail fields.

That import also worked well and images were correctly assigned to the products based on the SKU, but they are not chosen in the backend.

It looks like this:

Am I missing something in my import file, so the images are chosen for the different image sizes?


texts: After M1 to M2 customer migration by command "customer:hash:upgrade", got an error: Fatal error: Uncaught TypeError: explode()

texts:
After converted M1 customer to M2 format, run php bin/magento customer:hash:upgrade,  got an error:

Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given in /vendor/magento/framework/Encryption/Encryptor.php:247
/vendor/symfony/console/Command/Command.php(255): Magento\Customer\Console\Command\UpgradeHashAlgorithmCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))


texts:
I have a module that primarily works with the admin-side of Magento 2.

At the minute, I'm just trying to parse a CSV file and log the contents, here's a skimmed version of my Block class:

  app/code/Vendor/Module/Block/Adminhtml/Import.php

<?php
    namespace Vendor\Module\Block\Adminhtml;

    class Import extends \Magento\Framework\View\Element\Template
    {
        public function parseFile($file)
        {
            foreach (array_map('str_getcsv', file($file)) as $num => $row)
            {
                $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/bob.log');
                $logger = new \Zend\Log\Logger();
                $logger->addWriter($writer);
                $logger->info(print_r($row, 1). PHP_EOL);
            }
        }
    }

Which I attempt to call in my (skimmed) Controller class:

  app/code/Vendor/Module/Controller/Adminhtml/Import/Submit.php

class Submit extends \Magento\Framework\App\Action\Action
{
    protected $_resultLayoutFactory;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
    )
    {
        parent::__construct($context);
        $this->_resultLayoutFactory = $resultLayoutFactory;
    }

    public function execute()
    {
        $files = (array) $this->getRequest()->getFiles();

        if (!empty($files)) {
            $importFile = $files['import_file'];

            if (!$importFile['error']) {
                $resultLayout = $this->_resultLayoutFactory->create();

                $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/another.log');
                $logger = new \Zend\Log\Logger();
                $logger->addWriter($writer);
                $logger->info($resultLayout->getLayout()->getBlock('Vendor\Module\Block\Adminhtml\Import'));

            }
        }

        $this->_view->loadLayout();
        $this->_view->renderLayout();
    }
}

Going to another.log show's:

  2020-02-28T14:18:16+00:00 INFO (6):

I've ran:

$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento setup:static-content:deploy -f
$ php bin/magento cache:flush

But to no avail. I turned on the With Block Hints option in debugging and it matches, so I'm not quite sure why my Controller can't see it.

How do I use my Block class in my Controller class (adminhtml side)?


texts: Magento 2 : pass custom value in js from ui form

texts:
I want to pass some custom value from ui form field. How to pass it and get in js?

code :

<field name="template_text_4">
            <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">Vendor\Module\Model\Config\Source\GetTemplate</item>
                <item name="config" xsi:type="array">
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="label" xsi:type="string" translate="true">Select Template Text 4</item>
                    <item name="formElement" xsi:type="string">select</item>
                    <item name="source" xsi:type="string">template_text_4</item>
                    <item name="dataScope" xsi:type="string">template_text_4</item>
                    <item name="component" xsi:type="string">Vendor_Module/js/getTemplateText</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">true</item>
                    </item>
                </item>
            </argument>
        </field>

I call Vendor_Module/js/getTemplateText this js file. How to pass some custom value from this field ?

Any help would be appriciated.


texts: How can enable/disable navigation tab with ifconfig condition -magento2

texts:
In my custom tab from customer navigation,

I have added two blocks from two different custom modules.

I have added configuration for both to enable and disable but how can I remove that custom tab link only when both modules are disabled?

How can we add condition with ifconfig from xml or is there any other way to do it?


texts: 1.9.0.1 community version incorrect user registration date

texts: The date in customer view grid is invalid. it switches month with date and displays vice versa e.g, a user who registered on Jan 12, 2016 10:58:25 AM is displayed as Dec 1, 2016 11:44:37 AM as create date.


texts: Adding a suffix from an attribute to magento product URL

texts:
Have been going around in circles with this for a while now.

I am looking to add a block of text in the form of an attribute to the end of the URL.

What I am looking for in the end is:

https://www.magentostore.com/productURL?options[39]=35&options[40]=38

The code I have so far currently just loads the normal URL, without the attributes addition on the end:

<a href="<?php echo $_product->getProductUrl(); ?><?php echo $_helper->productAttribute($_product, $_product->getconfigdefaults(), 'configdefaults') ?>" class="btn btn-primary  btn-block btn-more" title="<?php echo $this->__('Buy & More Info') ?>">

Thanks for any help anyone can provide!


texts:
I am looking to figure out a solution for mass uploading configurable products on magento. I have been reading around and people have mentioned using magmi but I wanted to know if there is a simple solution out there. I have also been looking to see if there are any threads explaining this.

Here is an example:

In this picture you can see that every sku has the same configuration (conf 1, conf 2 and conf 3) but for each product those configuration values are different prices. Meaning all products have their own unique prices. I have been trying to find people on freelancer for help and asking around various websites but I am pretty desperate for a solution as I have over 250,000 skus that are configurable.


texts: How can I replace the search box into search icon?

texts: Can anyone explain how to replace the default search box into search icon?


texts: Home page is not loading content for any configuration

texts:
I'm quite new to Magento so any help is welcome.

I'm using Magento V1.9.1.

I'm having an issue loading the home page of the site. The default page is set under System > Configuration > Web > Default Pages in the admin and the page has content in the CMS -> Pages section. The home page shows the header and footer but there is no content.

I've tried creating a new test page and setting this as a default home page and this still shows a blank content area.

If I go to /index.php or /home, the page loads exactly as expected, leading me to believe it is a routing issue. Changing the default home page does change the output of the /index.php URL.

EDIT 2: I've tested the same set of files, with the same local.xml files on my local server and the home page loads correctly, which rules out the layout being defined incorrectly (I think).

EDIT: Adding screenshots as requested. I've had to obscure certain parts of the website for privacy reasons.

This is the home page of the site without the index.php path. The content should appear in the dashed area, between the header and footer.

With the index.php path, the content appears correctly.

The settings in the System > Configuration > Web > Default Pages

And the page in the CMS -> Pages section.

Any help is appreciated.


texts: Magento 2: How to add a tab in admin form using layout blocks where form is created by uiComponent

texts:
I am using uiComponent to create admin form, I am facing a situation where I have to add a tab using layout blocks, so I have updated my layout with following code.

<referenceContainer name="content">
    <uiComponent name="ui_component_file_name"/>
</referenceContainer>
<referenceContainer name="left">
    <block class="Magento\Backend\Block\Widget\Tabs" name="name_edit_tabs">
        <action method="addTab">
            <argument name="name" xsi:type="string">products</argument>
            <argument name="block" xsi:type="array">
                <item name="label" xsi:type="string">Products</item>
                <item name="title" xsi:type="string">Products</item>
                <item name="url" xsi:type="helper" helper="Custom\Module\Helper\Data::getProductsGridUrl"></item>
                <item name="class" xsi:type="string">ajax</item>
            </argument>
        </action>
    </block>
</referenceContainer>

I get following result, the grid is opening under left area

and my tab created by uiComponent is shifted below.

What I am doing wrong? I would like to display uicomponent-created tab default open and a tab created by layout block below.

I also tried my own block Custom\Module\Block\Adminhtml\Product\Edit\Tabs replacing Magento\Backend\Block\Widget\Tabs with following code.

Tabs.php

namespace Custom\Module\Block\Adminhtml\Product\Edit;

class Tabs extends \Magento\Backend\Block\Widget\Tabs
{
    /**
     * @return void
     */
    public function _construct()
    {
        parent::_construct();
        $this->setId('page_tabs');
        $this->setDestElementId('edit_form');
        $this->setTitle(__('Products'));
    }
}


texts: How can I export fields which are not being displayed in admin grid?

texts:
I have a custom admin grid, which shows the feedback given by customers during checkout.
I have 19 fields in the custom_table including entity_id, created_at and updated_at.

This is my form view:

This is my grid view:

everything works fine. Now when I export the grid as csv/ xml/ excel, it would only export the fields in the grid, but I want all the data in my database-table to be exported. How can I do that?
Also If i apply filter in that grid, only those rows should be exported.

  note: customer name and email_id are displayed by joining the sales/order table

This is my _prepareCollection() function in Grid.php

protected function _prepareCollection(){
    $collection = Mage::getModel('feedbacktest/feedback')->getCollection();
    // join the order table to display in the grid.
    $collection->join('sales/order', 'increment_id=order_id', array('orderId'=>'entity_id', 'custName'=>'concat(customer_firstname," ",customer_lastname)', 'custEmail'=>'customer_email'), null,'left');
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

Collection gives me all the data (as I require), but exported data contains only the data in the grid.

Can someone help me on this?


texts: How to add custom column to magento cms page grid

texts: How is it possible to add custom colunm with data from another table to magento cms page grid?


texts: Magento 2 failed database rollback cannot add foreign key constraints

texts:
I recently updated from magento v. 2.1.7 to 2.1.9 and then tried to update directly after that to 2.2.1. That failed and when i try to do a rollback (backup created before updating from 2.1.7) that also fails so I am stuck between working versions. The error I get when trying to rollback database is this:

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint, query was: CREATE TABLE `customer_group` (
  `customer_group_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Customer Group Id',
  `customer_group_code` varchar(32) NOT NULL COMMENT 'Customer Group Code',
  `tax_class_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Tax Class Id',
  PRIMARY KEY (`customer_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Customer Group';


texts: Query to search customer by tax/vat on Mysql

texts:
I have to verify, at registration if the User reported an tax/vat that is already registered in the database, so I avoid a User register twice.

I not found a module for this, so plan to do this check via ajax.jquery.

To do so, I need a page to query the database looking for a tax/vat.

I do not know if this is the best way to do it.
But I know little about magento, then that is what come to mind.

In entando still do not know how to do this query on the bench and not getting success with in my search for tutorials, etc..

you reading this, could you help me somehow? with materials, articles, tips, examples?

Thank you for your attention.


texts: Magento 1 configuration in .htaccess is not working

texts:
In magento
i have added the below configuration in .htaccess file
php_value session.cookie_secure 1
php_value session.cookie_httponly 1

<IfModule mod_php5.c>
  php_value session.cookie_httponly 1
  php_value session.cookie_secure 1
</IfModule>

But still in cookies there is no secure or http_only flag set in it.
Any thoughts or suggestions ?


texts: Side menu not appearing on sub categories

texts: I am using magento 2.1.8  and I have made a category named shop  on shop page its showing all subcategories on left side . like  brushes, tube etc  now when I click on brush it goes to all product added to brushes. but there is no category panel on left side . Can I have same panel (which is in shop category panel) on brush aswell ?


texts: How To Calculate Customer Lifetime Value

texts:
I'm trying to build a plugin to get customer order and customer lifetime value.

This is my code so far:

require 'vendor/autoload.php';
use HelpScoutApp\DynamicApp;
use Illuminate\Database\Eloquent\Model as Model;
$app = new DynamicApp('HELPSCOUT-SECRET-KEY');
if ($app->isSignatureValid())
{
  $customer = $app->getCustomer();
  $user     = $app->getUser();
  $convo    = $app->getConversation();

  $html = array();
  $html[] = 'Orders';
  $html[] = '';
  $settings = array(
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'magento',
    'username'  => 'root',
    'password'  => 'topsecret',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
  );
  // This is far more readable on newer versions of Illuminate (with PHP 5.4 and above)
  $connFactory = new \Illuminate\Database\Connectors\ConnectionFactory(new Illuminate\Container\Container);
  $conn = $connFactory->make($settings);
  $resolver = new \Illuminate\Database\ConnectionResolver();
  $resolver->addConnection('default', $conn);
  $resolver->setDefaultConnection('default');
  \Illuminate\Database\Eloquent\Model::setConnectionResolver($resolver);

  class Order extends Model {
    public $table = 'sales_flat_order';
    public $timestamps = false;
  }
  $orders = Order::whereIn('customer_email', $customer->getEmails())->orderBy('entity_id', 'desc')->take(5)->get();
  foreach($orders as $order)
  {
    $html[] = '
entity_id.'/" target="_blank">#'.$order->increment_id.', '.number_format($order->base_grand_total, 2).' '.$order->base_currency_code .'
';
  }
  $html[] = '
';
  echo $app->getResponse($html);
}
else
{
  echo 'Invalid Request';
}

Orders are OK, I need to get customer lifetime from the sales_flat_order table. Any idea how to get this?


texts: how to display sub-sub categories on left side

texts:
please visit my site link

In POWER TOOLS category, go for FESTOOL Sub-category. You can see DRILLING AND FASTENING sub-sub Category there. But thoseDRILLING AND FASTENING sub-sub
category is not visible properly as it is present after monitor width.

What I need to do is, when we hover mouse on FESTOOL, I want to display DRILLING AND FASTENING sub-sub Category and other sub-sub categories on left side. If Possible, I want to do these changes only for POWER TOOLS category in my site, so that every category menu link is visible directly in my site.

Please help me to find solution.

Let me know if you have any queries.

Thanks in advance.


texts: Magento 2 Product: programmatically 'click' thumbnail

texts: Is it possible to programmatically 'click' a thumbnail in the fotorama gallery on a product page to switch to that image?  I'm trying to change the product image based on selected custom attributes for the product.  I know Magento supports this functionality for configurable products, but for reasons I'm not going into here, I can't use configurable products.  I have simple products with custom attributes and I want to trigger an image change when one of those options changes.  Is that possible?


texts:
When trying to find a slider to display my products on frontpage i found a lot out there.
But no of them could make a slider in list view.

What I am looking for is something like this

I want to make 3 produkt with a width of 100%. then slide to se 3 new.
Can someone help?


texts: Magento Category URL Key Removed after Reindexing

texts:
Problem

I'm having a strange issue with my url_key field reverting to NULL on my catalog_category_flat_store_1 table following a reindex, but only on categories that I have created since enabling the Flat Category index.

As a result, when I attempt to fetch the category via url_key as so:

    $category = Mage::getModel('catalog/category')
        ->getCollection()
        ->addAttributeToFilter('url_key', 'my-url-key')
        ->getFirstItem();

    $category->load($category->getId());

I am unable to do so. If I go back and re-save the category, the url_key is added back to the flat table and I'm able to retrieve the category.

Has anyone else had this problem or am I missing something regarding the way flat tables operate?

What I've Found/Tried

Because the value would initially save and then disappear, I examined the catalog_category_entity files.   Here's what I found:

The url_key value is saving properly in catalog_category_entity_url_key
However, neither the url_key nor the url_path attributes are saving in catalog_category_entity_varchar as they were with categories that I created before enabling Flat tables.
If I manually add the url_key to catalog_category_entity_varchar, values are  preserved and copied to catalog_category_flat_store_1 as expected when reindexing.

I have tried disabling the flat tables and while the url_key value is still not saved to catalog_category_entity_varchar, I am able to category via the url_key using my code above.

FWIW, I'm using Enterprise 1.13.

Update

I used MAGMI to import my products/categories; because CE uses varchar attributes rather than a separate table as the newer versions of enterprise do, this may be a non-issue. I created a fresh install of Enterprise and added the categories manually. I'm noticing that the url_key and url_path fields are not copied over to the flat tables anyway.


texts: Error on Index at Command line Catalog Search

texts:
We just started getting this error at the command line on index. Is it possible to truncate this table and re-index?

Catalog Search Index index process unknown error:
exception 'Enterprise_Index_Model_Action_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '13654292' for key 'PRIMARY'' in html/app/code/core/Enterprise/CatalogSearch/Model/Index/Action/Fulltext/Refresh.php:154
Stack trace:
#0

EDIT:
I backed up the database and ran the index on my local using the same code

Brents-MacBook-Pro-3:brandshopper-uhc brent$ magerun index:reindex catalogsearch_fulltext

  Reindex

Started reindex of: catalogsearch_fulltext
Estimated end: 2014-07-04 19:21:55 UTC
Successfully reindexed catalogsearch_fulltext (Runtime: 1m 18s)

No I don't know what to think?


texts: Error composer 1.8.4 on magento 2.3.0 CE

texts:
I got this warning :

Warning: Unsupported declare 'strict_types' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 6

And this error :

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 55

Every time that I run a composer commande line like :

composer -V

I have :
CentOS Linux release 7.5.1804 (Core); PHP 7.2 (via cPanel) ; Latest magento 2.3.0 CE

Someone can help?


texts: I want to add new field in checkout page. Magento 1.9

texts:
As i am using cash on delivery method, so i want to add new field (like Date and time), customer give date and time when he wants the order at his/her place.

And then also show that date and time on admin->order grid.
 Please help as much as you can. Thank you


texts: How to transfer magento without cpanel or ftp?

texts:
There is currently a project I am working on that requires me to transfer a magento site to another server and also update the functions, features and design of the site.  But there are problems with this project.

1)  The company that was hired to create the current magento site has a contract that will not allow my client to access the cpanel or ftp of the site.

2)  My client is only allowed to access the admin of magento.

3)  There are currently over 1700 products and variants in the current site.

4)  There are custom functions and extensions made for this website that needs to be copied and transferred to the new server.

==================================================

Does anyone have any idea what to do?  Because I certainly don't.

==================================================

I checked and I can probably install extensions in the site.  So I am going with "can anyone suggest an extension to work around this problem (a free one would be nice)".  I want to try this http://hipglossconnect.com/magento-file-manager-extension/  but I have not tested it yet.


texts: How to integrate Sendinblue Automation with Magento 2?

texts:
I'm trying to integrate Sendinblue Automation with Magento 2.4.1. In order to do that, I'm following the official docs that basically says this:

Install the Javascript tracker by placing the Javascript script before the </head> tag (like I've already done, and working).

Identify the Magento user and send all his info to Sendinblue.

Create the events (mainly cart_updated, order_completed, cart_deleted events) in order to send them to Sendinblue.

How can I send all user info and install those events on Magento?


texts: SOLVED: new Unserialize_Parser class throws exceptions on NULL values

texts:
I had a real problem with SUPEE-8788 related to the decision to replace PHP's unserialize() function with the new Unserialize_Parser. The problem is that the Gene_Braintree payment extension sets NULL values in the additional_data array saved in the payment quote. This was causing the exception "Unsupported data type N" to be thrown at checkout.

Here's how I solved this:

Added const TYPE_NULL = 'N'; to lib/Unserialize/Parser.php
Created a new class Unserialize_Reader_Null (full code below)
Added a case to the switch statement in lib/Unserialize/Reader/ArrValue.php to check for my new TYPE_NULL character and instantiate a new Unserialize_Reader_Null() if it is found

New file lib/Unserialize/Reader/Null.php:

<?php
class Unserialize_Reader_Null
{
    /**
     * @var int
     */
    protected $_status;

    /**
     * @var string|int
     */
    protected $_value;

    const READING_VALUE = 1;

    /**
     * @param string $char
     * @param string $prevChar
     * @return int|null
     */
    public function read($char, $prevChar)
    {
        if ($char == Unserialize_Parser::TYPE_NULL) {
            return null;
        }
        else if ($char == Unserialize_Parser::SYMBOL_SEMICOLON) {
            return '';
        }
    }
}


texts:
I am trying to add a custom button to the Customers Grid but I have not been able to do it using a di.xml

Anyone available to point me in the right direction?


texts: Fatal error: Uncaught Error: Call to a member function getProductOptions()

texts:
Can anyone help? I'm having this error in namespace/sales/order/view/order_id/4/:

Thank a lot!


texts: Display a Different Set of Attributes for a Category in Front End

texts:
I need to display only relevant attributes for products in Front End. In my case, almost all categories are similar, but there are a couple of categories which have a few more attribute to be displayed that are relevant to them.

Example:

Attributes: 1, 2, 3, 4, 5, 6

In front end:
For a Product 'AB234' in 'A' category display 1, 2, 3, 4
For a Product 'AB235' in 'B' category display 1, 5, 6


texts: Unable to override Admin Review Grid Block

texts:
I want to override Mage_Adminhtml_Block_Review_Grid but not able to do that. Following is my config file

This is my code

<?xml version="1.0"?>
<config>
    <modules>
        <Wibsoft_Adminhtml>
            <version>0.1.0</version>
        </Wibsoft_Adminhtml>
    </modules>
    <global>
        <blocks>
            <adminhtml>
                <rewrite>
                    <review_grid>Wibsoft_Adminhtml_Block_Review_Grid</review_grid>
                 </rewrite>
            </adminhtml>
        </blocks>
    </global>
</config>


texts: Unable to unserialize on Sales -> Order page

texts:
after upgrading the theme I can not access the sales -> order page any more with the following error.
I disabled all third party extensions to solve possible conflict without success.
I am using Magento 2.4
I'd appreciate any help.
This is the error

{"0":"Unable to unserialize value.","1":"#1
Magento\Ui\Model\Bookmark->getConfig() called at
[vendor/magento/module-ui/Component/Bookmark.php:81]\n#2
Magento\Ui\Component\Bookmark->prepare() called at
[vendor/magento/framework/View/Layout/Generator/UiComponent.php:164]\n#3
Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent()
called at
...


texts: disableParamsMemorizing not working for toolbar on searchresults pages

texts:
disableParamsMemorizing is working fine with the category pages. But when someone uses the toolbar within the searchresults pages the params are cached.

I have seen i need to put Mage_Catalog_Block_Product_List_Toolbar::disableParamsMemorizing somewhere but i cannot find it. I have placed <action method="disableParamsMemorizing" /> in my templates product toolbar. Why o why is this not working on search pages?

edit:
local.xml:

<!-- Quick search -->
<catalogsearch_result_index>
<reference name="search_result_list">
        <action method="setDefaultDirection"><param>desc</param></action>
        <action method="setSortBy"><param>news_from_date</param></action>
    </reference>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        <action method="setDefaultDirection"><param>desc</param></action>
        <action method="setSortBy"><param>news_from_date</param></action>
    </reference>

    <reference name="left">
        <!-- Keep layered navigation always on top. Replace: after="currency" with: before="-" -->
        <!--<action method="unsetChild"><name>catalogsearch.leftnav</name></action>
        <block type="catalogsearch/layer" name="catalogsearch.leftnav" before="-" template="catalog/layer/view.phtml"/>-->

        <!-- Remove currency switcher from sidebar -->
        <action method="unsetChild"><name>currency</name></action>
    </reference>

</catalogsearch_result_index>

i have nothing in my xml for the toolbar.


texts: mmap() failed: [12] Cannot allocate memory issue

texts:
When I try to execute a command, I get below error by commandline

mmap() failed: [12] Cannot allocate memory

Please assist me as soon possible.


texts: Cron command to delete Magento 2 captcha images

texts:
my pub/media/captcha/base directory of Magento 2 has over 500k images!
This causes the server's inodes to become overloaded.
So I know that these images would be deleted every 10 minutes, but this don't work for me.
I search for a cron command to delete these captcha images... Can you help me please?
Thanks!
P.S: I've red other related posts but I can't find any working solution.


texts: Change currency of products without affecting the value

texts:
How would you change the currency of a product's price within a storeview, without affecting the actual value? I would like to do this at once to all products within a store view as I have more than 5000+ products.

E.g: USD400 -> EUR400, not EUR286.77(value conversion)


texts:
I want to make street address field on checkout page optional.
For this I made change in eav_attribute table inside is_required removed 1 and added 0.
But when I click place order button, the error is :

{"message":"Please check the shipping address information. street is a required field."}


texts: How to show products in the drop-down menu

texts:
I am designing my first eCommerce website and I am wondering if it is possible to show products as drop-down menu in the main menu?

UPDATE: I want to list all the products included in the category which is present in the main menu, when the customers hovers over that category (like it happens with listing subcategories).

Running Magento 1.9.2.4.


texts: Magento 2: Composer Update is Not Working [Failed to open stream: Connection timed out]

texts:
I'm trying to update composer but it gives below error.

root@magento-2:/var/www/html/magento# composer clear-cache
root@magento-2:/var/www/html/magento# composer diagnose
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Checking composer.json: WARNING
The version field is present, it is recommended to leave it out if the package is published on Packagist.
Defining autoload.psr-0 with an empty namespace prefix is a bad idea for performance
require.magento/product-community-edition : exact version constraints (2.1.3) should be avoided if the package follows semantic versioning
require.composer/composer : unbound version constraints (@alpha) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
OK
Checking composer version: OK

I also visited https://getcomposer.org/doc/articles/troubleshooting.md & SO


texts: Magento 2 On Reorder Page Fatal error: Uncaught Error: Call to a member function getPlaceOrderAdminUrl() on null

texts:
Sales - Order -Edit Order -> click Redorder I get following error on reorder page -

Fatal error: Uncaught Error: Call to a member function
getPlaceOrderAdminUrl() on null in
/srv/public_html/vendor/magento/module-authorizenet/view/adminhtml/templates/directpost/info.phtml:14
Stack trace: #0
/srv/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59):
include() #1
/srv/public_html/vendor/magento/framework/View/Element/Template.php(271):
Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Payment\Block\Adminhtml\Transparent\Form),
'/srv/public_htm...', Array) #2
/srv/public_html/vendor/magento/framework/View/Element/Template.php(301):
Magento\Framework\View\Element\Template->fetchView('/srv/public_htm...')
#3 /srv/public_html/vendor/magento/module-payment/Block/Form/Cc.php(155):
Magento\Framework\View\Element\Template->_toHtml() #4
/srv/public_html/vendor/magento/module-payment/Block/Transparent/Form.php(102):
Magento\Payment\Block\Form\Cc->_toHtml() #5
/srv/public_html/vendor/magento/module-payment/Block/Transparent/Form.php(55):
Magento\Payment\Block\Transparent\Form->processHt in
/srv/public_html/vendor/magento/module-authorizenet/view/adminhtml/templates/directpost/info.phtml
on line 14


texts: Displaying Configurable product option in matrix view in magento2

texts: Wanted to display swatches option in matrix view in magento2 on product detail page.


texts: Magento 2.2.4: Module Manager not showing

texts:
I have updated to Magento 2.2.4 from 2.2.3

Now the Module Manager module grid is not showing:

Google Chrome console shows

  /setup/index.php/moduleGrid/modules:1
      Failed to load resource: the server responded with a status of 500 ()

Microsoft Internet Explorer debugger shows

Does anyone know what may be causing this? Everything worked fine in 2.2.3.


texts:
Sitemaps are generating without a suffix regardless of the settings in the admin.

It appears that when enterprise_url_rewrite was written as a port from core_url_rewrite that the suffix was  missed.

Adding suffix awareness to the _getEntityUrl() function for category and product entities in the sitemap resource model seems trivial, but is there something else I am missing or is this a bug that is affecting other people?

For instance for the category (just an example see pastebin link for more info)

protected function _getEntityUrl($row, $entity)
{
    $url = !empty($row['request_path']) ? $row['request_path'] : 'catalog/category/view/id/' . $entity->getId();
    $suffix = Mage::helper('catalog/category')->getCategoryUrlSuffix();
    if ($suffix) {
        $url .= '.' . $suffix;
    }
    return $url;
}

http://pastebin.com/RPWVrhae has a bit more code.


texts:
I am trying to access files from the root folder by the url like:
 localhost/magento2.2.2/testfolder/test.php

and I can do it fine on my test server but in my company nginx forbids me from accessing any file.

Should I edit nginx.conf.sample or is there another solution?


texts: Super product attributes same price for attribute

texts:
This is a bit hard to explain. But in Super product attributes configuration there is a field where you can set a cost that is added to the product. I want to be able to have this price sett as a standard every time this attribute is used.

In this case it is hotel booking, so 3 days is NOK 700,- extra and 4 nights is 1400,- extra.

Is it possible to make this extra cost come up on every configurable product automatically? I want to avoid having to enter inn this extra price every time I create a configurable product. The products are always the same, just with a different name.

Thanks so much for reading this, and hope you can help.


texts: CSV multi input - i want it on one line!

texts:
Hello there to make things dead simple when i upload a CSV i want attributes to be able to upload on one line instead of multiple lines, same with images, if you look at this screenshot

http://imgur.com/OKIN8ix
the vesa_layered_nav attributes has 2 lines under each other, i would like them to input like this
100 x 100; 150 x 150  (doesnt have to be a ; just as long as its on one line!


texts: Zend_Log_Formatter_Simple undefined Magento 1.7

texts:
I am getting this error when trying to place order through credit card in magento 1.7 CE ( We are using HHVM )

  error

  Fatal error: Class undefined: Zend_Log_Formatter_Simple in
  ./app/Mage.php on line 833


texts: "Call to a member function getIsInStock() on null" with getExtensionAttributes()->getStockItem()

texts:
I try to access stock data for a product, using

$product->getExtensionAttributes()->getStockItem()->getIsInStock()

and receive the following error on this line

  PHP Fatal error:  Call to a member function getIsInStock() on null.

Obviously the stock_item extension attribute was not loaded. $product comes from the product repository and has been loaded with $productRepository->getList().

How can I get products with stock information from the product repository?


texts:
I recently upgraded Magento from 1.3 to 1.7 - everything appears to be working fine but there is a little issue.

I am unable to view my category on front page. I am displaying all my categories on a custom page and this function Mage::helper('catalog/category')->getStoreCategories(); isn't working
- it returns null.

I know I can use the category collection methods to retrieve all my categories but my question is why this function returns null, despite the fact I have over 100 categories in my store.


texts:
I accidentally overwrote /app/etc/local.xml with a version from another host. No live shop affected, luckily, but I can't get the shop to connect to the database anymore. It keeps saying:

There has been an error processing your request

SQLSTATE[HY000] [1045] Access denied for user 'wronguser'@'localhost' (using password: YES)

I've restored the correct local.xml, with the correct database settings. I cleared var/cache and var/sessions.

When running n98-magerun db:console I can access the database, but it's impossible to run n98-magerun cache:clean or any other database related command.

Removing any other .xml files from /app/etc/ didn't resolve the issue either.
grep -R wronguser * didn't even find the wrong database connection in the entire document root. I have no idea where Magento gets this information from.

Any thoughts?


texts: Users can' t login at https store because of double frontend cookie

texts:
I have a magento version 1.9.2.4 installation with multiple store views with different urls. One new store view is now running with https in secure and unsecure base url. At this store many customers can't login, because there are two "frontend" cookies being set. One with the domain .domain.de, which is configured in the backend, and one with .www.domain.de. It's only that store with the ssl configuration, the other stores are running fine.

I read a lot of threads, but no one could help me out. My cookie configuration looks like the following:

Default Session Cookie Management

Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain:
Use HTTP Only: Yes

Default Session Validation Settings

Everything is set to "No"

Store view Session Cookie Management

Cookie Domain: .domain.de

Are there any settings for stores running completely under https or is there anything else I can do?

Thanks in advance!


texts:
I am working in a Magento store that was developed 2 years ago by other developers. I updated the Magento version, patches, etc. I also "cleaned" old files and folders but we still have unused files in the FTP, old themes folders and even extensions that we don't need anymore (I just deactivated it).

Now the company decided to do a complete redesign of the website. So, what is my best option?

Should I just start a new Magento installation to "clean" everything and import the customer/products/sales data? I feel that doing this I would have more "control" over the store. At the same time, I am afraid that we will lost data, since Magento DB is very complex.

Should I just "clean" whatever I can and install a new theme over the same website?

I appreciate any ideas or experiences that you guys had with that. Thanks!


texts: How to check is valid token or not. Magento 2 API

texts:
I need to do API method, which return data from db table just for admin.
There is my method:

/**
     * @return array
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function showAddedSku()
    {
        $insSku = $this->collection->create();
        $data = [];

        foreach ($insSku as $key => $sku)
        {
            $data[$key]['id'] = $sku->getId();
            $data[$key]['sku'] = $sku->getSku();
            $data[$key]['count'] = $sku->getCount();
        }

        return $data;
    }

How can I check, that it is admin?

I read, that I must set that:

<resources>
    <resource ref="???" />
</resources>

but what ref should i choose?


texts:
i want to get Tier Price via API in magento , i use method described in this Link but i have problam in get tier_price , it`s return only price from catalogProductTierPriceEntity content ! customer_group_id and website and qty is missing

i use this code :

$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey');

$result = $proxy->catalogProductInfo($sessionId, '4');
var_dump($result);


texts: Magento 2 - How to reload sections on admin sales order create page on page load?

texts:
I want to reload all sections on admin sales order create a page, on page load event. How can I do that? I have tried manually when making the change in an input field of billing sections, then an ajax call triggers

Call: http://test.com/admin/sales/order_create/loadBlock/key/2e92cb3383a1ccc651701e3b066848829b38f0093743a9ea8740aedde1eee7ed/block/billing_method,shipping_address,totals,giftmessage,items?isAjax=true

How can this call be trigged on admin sales order create page on load?

Any help is much appreciated!

Thanks


texts: Magento 2 - Multiple decimal places ideally 4 decimal places

texts: Is there a way to set the number of decimal places within Magento 2, ideally I need 4 decimal places


texts: What is the M1.9 UPS Shipping Default Rate Table (out of the box, not XML)

texts:
We are doing some comparisons with our different options using M1.9 UPS shipping. We noticed that the rate for the default UPS setting for UPS Type (United Parcel Service) is returning values that are NOT our negotiated rates (obviously) but NOT either their Retail rates or Published rates either. Does anybody know what rate table this is referencing? We are using Pickup Method (Regular Daily Pickup) but even when changing that we still are not seeing a match for anything from our portal.

We will be switching to XML but I really want to know what this rogue table might be while we develop our strategy.

Thoughts?

Thanks in advanced for helping out a newbie.

Cheers,
Paul


texts: Flushing cache on the back-end does not delete all cache

texts:
For testing purposes, I had done some core changes to the following files and they worked fine.

/js/varien/configurable.js
/app/code/core/Mage/Catalog/Block/Product/View/Options/Abstract.php

So after my test, I replaced back the original with the revised files.  After going through Cache Storage Management, and flushing all, I am still seeing all of my revision in place!

While looking through FileZilla at var/cache/ and it's sub-folders, flushing cache on the Back-end does NOT delete all cache in mage--0, mage--1, ... and mage--f.

I have to keep on pressing "Flush Cache Storage" to delete all.  How can you delete all cache at once? And even after emptying the folders, the changes do not roll back!

What else can I do to roll back to original, even though I have both original file in place?


texts:
In my home page having two banners.How to give give second banner to full width wrt to reference block

    <referenceContainer name="content.bottom">
      <block class="some name">
      <action method="setSliderId">
       <argument name="sliderId" xsi:type="string">2</argument>
     </action>
       </block>
    </referenceContainer>

How to add full width of banner in content


texts: Add value for custom quote item attribute using REST api

texts:
I want to add value for custom quote attribute using rest api. This attribute is not a product attribute. I have created a database column in quote_item table. Also created the plugin on class Magento\Quote\Model\Quote\Item\Repository on method save().

I am using the extension_attributes to get the value for custom attribute. Below is my request body.

{ "cartItem":
    {
        "quote_id": "70",
        "sku": "VNLIC",
        "qty": 1,
        "extension_attributes": {
            "custom_message" : "Quote Item Custom Message Text"
        }
    }
}

The plugin code is below:

<?php

namespace Vendor\ModuleName\Plugin;

class QuoteItemRepository
{
    public function beforeSave(
        \Magento\Quote\Model\Quote\Item\Repository\Interceptor $subject,
        $cartItem
    )
    {
        $extensionAttr = $cartItem->getExtensionAttributes();
        if($extensionAttr !== null) {

            $customMessage = $extensionAttr->getCustomMessage();
            if($customMessage !== null) {
                $cartItem->setData('custom_message', $customMessage);
            }

            //$cartItem->save();
        }
        return [$cartItem];
    }
}

If I use this there is no value get populated in the quote_item table for the custom_message column.

If I uncomment $cartItem->save() then I am getting the below error.

Fatal error: Uncaught Error: Call to a member function setFinalPrice() on null in /var/www/html/bakeway/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php on line 152

Please help.


texts: Magento 2.3.1 modals-wrapper causing errors

texts:
Is anyone else having an issue of late errors showing up in Magento 2.3.1? I stopped all extensions, and reverted back to the Magento Luma theme, and I'm getting this error:

misc.js:181 Uncaught TypeError: Cannot read property 'status' of undefined

It also generates a 404 error in jquery.js. Has anyone else run into this issue? The error doesn't seem to show up until after modals-wrapper has finished loading in whatever it needs to.

You can see this happening here:

https://mccaskill.fmwebd.com/


texts: I have intalled magento2 into xampp server and i encountered with this error when i tried to run it locally

texts:
Vendor autoload is not found. Please run 'composer install' under application root directory.

It asked me to install composer and when i attempted to do so,

it returned,
C:\xampp\htdocs\develop\develop>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
    - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.

Problem 2
    - The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.


texts: Unable to call module output on product listing

texts:
I have a custom delivery-date module (Magento 1.9) which outputs the delivery date based on all kinds of variables. The setup is pretty easy, and I can display the delivery date on the product page;

In default.xml in my theme

<catalog_product_view>
    <reference name="content">
        <reference name="product.info">
            <block type="MyModule_catalog/deliverydate" name="delivery_date" template="catalog/product/view/delivery_date.phtml"/>

then in the view.phtml I call it like so;

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

And this works great. Now I want to show this delivery date on the product list/category view as well. So I tried to add the xml block from the catalog_product_view to the catalog_category_default and catalog_category_view using the same PHP code to echo the date; but nothing shows.

I have a feeling I'm missing something, but I can't see what. The modules class class MyModule_Catalog_Block_Deliverydate extends Mage_Core_Block_Template extends the Core_Block_Template; so it should be available everywhere.
In the modules config.xml it says;

<global>
    <blocks>
        <mymodule_catalog>
            <class>MyModule_Catalog_Block</class>
        </mymodule_catalog>
    </blocks>
</global>

So as far as my (limited) knowledge about this reaches, it should just be available to call on the product-listing as well, right? Why doesn't it?

Edit:
These are the relevant parts of my default.xml

    <catalog_category_default>
        <reference name="root">
            <block type="mymodule_catalog/stock" name="stock_text" template="catalog/product/view/stock.phtml"/>
        </reference>
        <reference name="product_list">
            <block type="mymodule_catalog/stock" name="stock_text" template="catalog/product/view/stock.phtml"/>
        </reference>
    </catalog_category_default>

    <catalog_category_view>
        <reference name="root">
            <block type="mymodule_catalog/stock" name="stock_text" template="catalog/product/view/stock.phtml"/>
        </reference>
        <reference name="product_list">
            <block type="mymodule_catalog/stock" name="stock_text" template="catalog/product/view/stock.phtml"/>
        </reference>
    </catalog_category_view>

Edit2: Contents of the view/delivery_date.phtml (really simple)

<?php echo $this->getDeliverydate(); ?>


texts:
I might be being a bit short sighted but I can't find the reasoning behind Magento having a stock index when cataloginventory_stock_status and cataloginventory_stock_status_idx are identical in structure.

The only differences I can find at table level are:

There's a small variation in the number of rows
cataloginventory_stock_status has 3 foreign key constraints not found on the index table.

I assume there's going to be some reason relating to locking or certain processes where it would affect checkout but cannot find information as to why.


texts: Why isn't a package showing showing for update?

texts:
Using composer I would like to update xtento/productexport I am on version 2.9.0 and the most recent version is 2.14.4. When I run composer outdated it doesn't show that it needs an update. In order to update it I looked in their docs and it says run this command-
composer update xtento/productexport --with-all-dependencies
When I run that command I get this-
xtento/productexport 2.9.0 requires php ~5.5.22|~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0 -> your PHP version (7.3.24) does not satisfy that requirement

So I switch to php 7.2 and get this-
Problem 1
- Installation request for magento/product-enterprise-edition 2.4.1 -> satisfiable by magento/product-enterprise-edition[2.4.1].
- magento/product-enterprise-edition 2.4.1 requires php ~7.3.0||~7.4.0 -> your PHP version (7.2.34) does not satisfy that requirement.

How can I resolve this?


texts: What ever happened to the X.Commerce Fabric?

texts: Is the public Fabric still in development? Are there interesting services that you use? Have Magento/eBay really stalled out development at this point?


texts:
I want to display dynamic banners in list page with respect to the categories. I tried creating a static block at admin panel and selecting it in CMS Block option in Display Settings tab of specific category. But No banner image is displayed at list page. Below is the code which I used in static block to display a banner there:

Please correct me If am wrong.


texts: Placeholder for admin form field in Magento

texts:
I have an admin form where there is one field like this

$founderFieldset->addField('founder_name', 'text', array(
        'label'     => Mage::helper('vendors')->__('Founder Name'),
        'required'  => true,
        'class'     => 'required-entry',
        'name'      => 'founder_name',
));

Now Magento converts this code to HTML and the result is something like

<input type="text" id="founder_name" name="founder_name" class="required-entry" />

Now how can put a placeholder for this field?
So I want the resulting HTML to come like this

<input type="text" id="founder_name" name="founder_name" class="required-entry" placeholder="Blah blah..." />


texts:
Getting this "A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later." error after category save.
I have try to disable all custom modules form app/code directory but still category save functionality isn't working.
Not getting any help from log file and ini_set('display_errors', 1);
On category save getting this 404 page not found error error in network tab in browser, for this request "{{base url}}catalog/category/validate/?isAjax=true"
Note: Getting this issue only for few categories.
Thanks.


texts:
we have custom button "save design1" in product view page , everytime when we click on that, its adding product to cart, but we are using only below code for that :

<button >save design1</button>

how to find what code is reason for adding the product to cart....


texts: Magento 2.3 migration error : After migration missing most of the files from vendor/magento/ folder

texts:
Most of the files missing after migration, how to update vendor/magento folder.

Note : How to update without reinstall fresh Magento


texts: Magento2.3: How to download the customer wishlist collection as a CSV file?

texts:
I have a requirement that is collecting wish-list data and download/store them as a CSV file.

As of now, I have referred the below URL and tried getting the sample CSV file downloaded.

How to Create a excel file in custom module?

However, I'm not sure how to get the wishlist collection?

Could anyone please help me with that?


texts:
We are currently using Magento version 1.4.

We have a VERY LARGE number of products and reindexing after each product add is impractical.

That said, it would be nice to have a report on all unindexed products (based on  new or even better of possible, both new and relevant edits like price). How would this query be expressed in SQL? Is there a method in native Magento code as well?


texts: Magento WidgetInstance is not defined / Unexpected Identifier

texts:
Magento is throwing the following error in console when we load the CMS->Widget page there is also an error which I think is related, but what I haven't been able to solve.

  Uncaught SyntaxError: Unexpected identifier
      '<select name="widget_instance[{{id}}][page_group]" id="widget_instance[{{id}}][page_group]" class="required-entry page_group_select select" title="" onchange="WidgetInstance.displayPageGroup(this.value+\'_{{id}}\')"><option value="" >-- Maak een keuze --</option><optgroup label="Categorieen"><option value="anchor_categories" >Verankerde Categorieen</option><option value="notanchor_categories" >Niet verankerde categorieen</option></optgroup><optgroup label="Producten"><option value="all_products" >Alle product types</option><option value="simple_products" >Simpel Product</option><option value="grouped_products" >Gegroepeerd Product</option><option value="configurable_products" >Configureerbaar Product</option><option value="virtual_products" >Virtueel product</option><option value="bundle_products" >Bundelproduct</option><option value="downloadable_products" >Download-product</option></optgroup><optgroup label="Generieke pagina\\'s"><option value="all_pages" >Alles pagina\\'s</option><option value="pages" >Specifieke pagina</option></optgroup></select>'+

Clicking on 'add layout update' when adding a Magento Widget (Back-end CMS->Widgets)

  Uncaught ReferenceError: WidgetInstance is not defined onclick @ (index):698

We haven't been using Widgets before, and this is an upgrade from Magento 1.7 to 1.9.2.1. I've searched the big G on it, found a single result which lead to no results. Any suggestions?

Attached screenshot for full first error:


texts: How to create a magento 2 Child and parent custom theme?

texts: Please explain how to setup a child theme with step by step instructions.


texts: Magento 2: How to change the Date format in frontend?

texts: I need to display the date format as "d.m.Y" in front end and Email templates, Is there any solution to complete this requirement?


texts: Conditionally enable event observers in Magento 1.9

texts:
I am using multiple event observers in Magento 1.9

From there, I want to conditionally execute other observers. For example, defining the configuration in system.xml to enable or disable execution of observers after certain events.

In config I have this:

<events>
    <event_name>
        <observers>
            <observer_name>
                <type>observer_type</type>
                <class>observer_model</class>
                <method>method_to_call</method>
            </observer_name>
        </observers>
    </event_name>
</events>

Is there any configuration we can use here to enable/disable these observers?


texts: I am working on building a custom checkout page for my new module. Can anyone say how can I include payment methods into my custom checkout page. I need to integrate Paypal and Authorizenet methods currently.


texts:
I encountered this error unexpectedly. How can I find the solution to solve it?
This is where error occured

$resultPage->getLayout()->getBlock('messages')->setEscapeMessageFlag(true);

  PHP Fatal error:  Uncaught Error: Call to a member function
  setEscapeMessageFlag() on boolean in
  /var/www/html/magento2/vendor/magento/module-customer/Controller/Account/Edit.php:83\n
               Stack trace:\n

  #0 /var/www/html/magento2/var/generation/Magento/Customer/Controller/Account/Edit/Interceptor.php(24):
  Magento\Customer\Controller\Account\Edit->execute()\n

  #1 /var/www/html/magento2/vendor/magento/framework/App/Action/Action.php(102):
  Magento\Customer\Controller\Account\Edit\Interceptor->execute()\n

  #2 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(74):
  Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))\n

  #3 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(70):
  Magento\Customer\Controller\Account\Edit\Interceptor->___callParent('dispatch',
  Array)\n

  #4
  /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(63):
  Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Custome...',
  'dispatch', Object(Magento\Customer\Con in
  /var/www/html/magento2/vendor/magento/module-customer/Controller/Account/Edit.php
  on line 83


texts: Updating Module Via Composer will NOT Update Module?

texts:
When Updating Module Via Composer it will not Update Module on my localhostx?
When I put this line. I get this error on my local host.
composer require "route/route-m2"
Could not find a matching version of package route/route-m2. Check the pack age spelling, your version constraint and that the package is available in a stability which matches your minimum-stability
If I try COMPOSER_MEMORY_LIMIT=6G composer update 'route/route-m2' I get
Nothing to install or update
Am I putting in the wrong syntax?? I am so confused.


texts: Getting 404 Error on Second Domain - Magento 2 Multi-Store

texts:
So I have a LEMP stack set up on a staging server and on my local. I have it set up as a Multi-Store. The staging server and local are identical. Except that the local is running off of Laravel Valet and the Staging server is just a regular LEMP stack.

I have the Multi-Store setup, on my local it works perfectly. For the secondary domain it shows me exactly what I should expect to see. But on the Staging server I can verify it's loading the secondary site, but I get a 404 error.

The only difference that I can find is that on my local Laravel Valet is running off of /index.php and that is where I had to set the variables to load the secondary site. But on the Staging server I'm running a specific Magento config and it's loading based on /pub/index.php And this is the site that comes up with a 404 error on the secondary domain.

I can't figure this one out. The index.php files are similar but there are a few differences. All I can assume is that slight difference in document root is causing the issue. The ideal configuration I'm sure is that the document root be set to the /pub/ directory, but this is the method that I can't seem to get working. Any help is much appreciated.

UPDATE: I tried to set the staging server to just use / instead of /pub like my local is using. Unfortunately I still got a 404 on the secondary domain, and then on the primary all the assets were missing because of an incorrect path on those elements now.

UPDATE: I didn't have a home page created but it stilled showed on local. I created one anyway, still doesn't work. Oddly enough all other URL's work. Try to go to a category page, it works. Try to go to the login page, it works. The only thing that I think doesn't work is the home page that I've found so far.


texts: How to add user in magento by custom code?

texts:
I am trying to log in and register by Facebook and Gmail. So I need to help how to create a user by custom code.
There are two kinds of social media login I want to use.


texts: Magento 2 Braintree AVS check not working in REST API

texts:
Using this API
https://www.domainname.com/index.php/rest/V1/carts/
mine/payment-information

AVS and CVV verification are enabled at Braintree end but when credit card zip code and billing address zip codes do not match Magento still generates the Order but it should not.

Can anyone help with this?


texts: Magento 2 custom theme based on parent Luma theme necessary files

texts:
I created my custom theme based on Magento Luma theme:

In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent>

But when I look at my frontend I see some differences. For example on the product-view page (see attachment), the structure of
 is different then the Luma theme?

And on the homepage it's also missing styles for the
 (see image). Do I have to copy some files into my custom theme?


texts:
Validate Multiple Custom Forms on same PHTML file.

I have 3 forms on same phtml file i trying to validate the input fields.
One time one form is shown

Sign In { if successful}  WriteReview { otherwise } signup

  Custom js is also triggered on click of submit, but I want to do this with Magento validations.

In /var/www/html/magento16/app/design/frontend/base/default/template/reviewrating/signupformhb.phtml''

 <form method="POST" action="#/" accept-charset="UTF-8" id="hb_user_login" onsubmit="event.preventDefault(); user_login();" class="form-horizontal" enctype="multipart/form-data" novalidate="novalidate">

 <input required="" id="email" name="email" type="email" class="required-entry validate-email" value="" aria-required="true">

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

    ...

 <form method="POST" action="#/" accept-charset="UTF-8" id="hb_user_signup" onsubmit="event.preventDefault(); user_login();" class="form-horizontal" enctype="multipart/form-data" novalidate="novalidate">

 <input required="" id="email" name="email" type="email" class="required-entry validate-email" value="" aria-required="true">

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

    ...
    ........

<script type="text/javascript">
//<![CDATA[

        var dataFormLOGIN = new VarienForm('hb_user_login', true);
        var dataFormSIGNUP = new VarienForm('hb_user_signup', true);

//]]>
</script>

As @Piyush sir told that it validates form before submmiting what i am little bit confused that if i create two seprate objects of VarienForm (VIZ dataFormLOGIN & dataFormSIGNUP why magento mix ids of two different forms ?

Issue: validation work on few fields only not in all fields


texts: How to customize navigation in Magento 2?

texts:
I am trying to modify the top navigation (the navigation that shows categories and subcategories as the main menu). I am using a free template(Ketty, from TemplateMonster) which in turn is based on Magento Blank Template. But, as i am very new to Magento, i am unable to figure out two things:

How to change location of menu. Currently it is coming next to the logo and before the customer menu, search box and shopping cart. I want to move it down just below it, in it's own block / container. But i am unable to understand the positions mentioned. Where is menu called from? How is it rendered there?
Is there a way to add other links from the CMS to the menu?

I tried looking around but, ,most are the resources are based on Magento 1.x hence could not find something substantial. Other issue is that I can't find enough time to read the documentation of Magento 2, which I am sure would provide all the answers, but due to lack of time, could not cover the length and breadth of the required section. Any help is much appreciated.

TIA.


texts: Is it possible to define a default.xml layout in a custom module but only affects the default.xml of that module?

texts:
For example:

I have a custom module Vendor_Name in which I want to remove certain blocks but only for all the layouts of the Magento_Customer module so I do not have to create 4 5 layouts to remove the same blocks but I need them somewhere else. I mean, remove top.search block in the customer/login, customer/lougout, customer/forgotpassword layouts and so on but keep them in catalog/view for example, all within a module to easy deploy, just install the module and I have the blocks removed as I want it.

I guess I can put a default.xml in my app/design/frontend/Vendor/Theme/Magento_Customer/layout/default.xml but I do not want to do it in a theme, it is possible to do the same but from a custom module?


texts:
I'm wondering whether there are any good conventions, as far as version control goes, for developing a module that you are using both in a single Magento instance and also are wanting to release as a community module.

Initially what I attempted to do was to use modman to manage the module outside of my main Magento instance repository.  But that ended up being problematic on multiple levels.  Having a single repository that you can easily install to different environments or roll back in production is extremely useful, and I would even say has become a necessary part of my workflow.

What I'm doing currently is developing it inside of my site repository, and am planning to break it off into a separate repository soon.  At that point, what I'll likely do is:

Build in my local environment within an individual module repository using modman
Copy changes into the site repository when I'm ready to deploy code

Hoping there's a better way?


texts: How to get captcha in phtml file when phtml file directly called in controller file in magento2?

texts:
I want to add captcha in test.phtml file and test.phtml file called from controller like below:

 public function execute()
{

    $response = array();
    $post = $this->getRequest()->getParams();
      $this->_coreSession->start();
      $this->_coreSession->setProductsData($post);
      $resultJson = $this->resultJsonFactory->create();
    try {

      $block = $this->resultPageFactory->create()->getLayout()
            ->createBlock("Vendor\Modulename\Block\Popupdata")
             ->setTemplate("Vendor_Modulename::view/test.phtml")
            ->toHtml();

        /** @var array $response */
        $response = [
            'content' => $block,
        ];
    } catch (\Exception $exception) {
        $resultJson->setStatusHeader(
            \Zend\Http\Response::STATUS_CODE_400,
            \Zend\Http\AbstractMessage::VERSION_11,
            'Bad Request'
        );
        /** @var array $response */
        $response = [
            'message' => __('An error occurred')
        ];
        $this->_logger->critical($exception);
    }

    return $resultJson->setData($response);
}


texts: How could I display the last modified date/time in the backend of the product?

texts: I would like to display when a product was last modified on the backend of a item page. How could I do this?


texts: show a notification instead of the error message log of magento

texts:
I used a cart observed to block 1 single item in the cart and then display a notification to the user like a notification style "you coold select just one item"  the problem that it's appears to me the error log magento first then when I return to the home page. I find my message displayed. I just want to display it in my page and not also in the error log page.

config.xml

        <events>
            <catalog_product_type_prepare_full_options>
                <observers>
                    <Amir_Prince_observer>
                        <class>Amir_Prince/ObserverCountItemCart</class>
                        <method>limiter_panier</method>
                    </Amir_Prince_observer>
                </observers>
            </catalog_product_type_prepare_full_options>
        </events>

My Observer:

class Amir_Prince_Model_ObserverCountItemCart{
    public function limiter_panier(Varient_Event_Observer $observer) {

    $session = Mage::getSingleton('checkout/session');
    $quote = $session->getQuote();

    if($quote->getItemsCount()>=1){
    $message = 'You can select only one item.';
    $session->addError($message);
    // Mage::thrownewException($message); // the log error commented
    throw new Exception($message);// the frontend notification

      }
    }
}


texts: Magento 2.3 Useful SSH CLI Commands List

texts:
list of magento 2 SSH CLI Commands

what is magento ssh cli command for Upgrade?

what is magento ssh cli command for Cache Clean?

what is magento ssh cli command for Cache Flush?

what is magento ssh cli command for View cache status?

what is magento ssh cli command for Enable Cache?

what is magento ssh cli command for Disable Cache?

what is magento ssh cli command for Static Content Deploy?

what is magento ssh cli command for Static Content Deploy For Particular Language?

what is magento ssh cli command for Static Content Deploy For Magento Backend Theme?

what is magento ssh cli command for Static Content Deploy For Specific Themes ?

what is magento ssh cli command for Reindexing ?

what is magento ssh cli command for View the list of indexers ?

what is magento ssh cli command for View indexer status ?

what is magento ssh cli command for Show the mode of all indexers ?

what is magento ssh cli command for See all modules Status?

what is magento ssh cli command for Enable module?

what is magento ssh cli command for Disable module?

what is magento ssh cli command for Uninstall ?

what is magento ssh cli command for Check Current Mode ?

what is magento ssh cli command for Change To Developer Mode ?

what is magento ssh cli command for Change To Production Mode ?

what is magento ssh cli command for Run the Compiler and compile ?

what is magento ssh cli command for Unlock Admin User ?

what is magento ssh cli command for Enable Maintenance Mode?

what is magento ssh cli command for clear the list of IPs?

what is magento ssh cli command for Disable Maintenance Mode ?

what is magento ssh cli command for Check Maintenance Mode Status ?

what is magento ssh cli command for Allow IP on Maintenance ?


texts: how to run the settings migration command?

texts:
how to run the setting migration command in macOS?
http://devdocs.magento.com/guides/v2.0/migration/migration-migrate-settings.html

my current command looks like this but getting error:

[Migration\Exception]
  Invalid config filename: {/Users/brodyr/Documents/Sites/Magento/vendor/magento/data-migr
  ation-tool/etc/ce-to-ce/1.9.2.2/config.xml}

this is my command

php magento migrate:settings {/Users/brodyr/Documents/Sites/Magento/vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.2/config.xml}


texts: domain.events appears to be a DNS hostname but cannot match TLD against known list

texts:
When entering an order manually we see this error (and cannot complete the order)

"Email" is not a valid hostname.
'domain.events' appears to be a DNS hostname but cannot match TLD against known list
'domain.events' appears to be a local network name but local network names are not allowed

Question: Has anyone encountered this before? (and fixed) .. might need to report this one with more and more TLD's coming

thanks, Sean


texts: Magento : Hide Payment Method Based On Product to Cart

texts:
I want to hide offline payment method, if some particular product is added to cart.
For those special products payment should be online, So I need to hide all the offline payment method in that case.

How can I hide payment method based on condition?


texts: All products and categories side-menu on one page

texts:
I want to display all my store products on one page, with a side menu to 'filter' on the available categories.
Basicly the same view as a single categorie product list, but then with all products (of Default Category) and all main categories on the side bar.
I've been searching the internet for two days and haven't found any (working) solution.

I'm using Magento 2.1, with a premium paid theme (Porto).

I've tried creating a page with this code as content:

{{block type="catalog/product_list" name="all.products.list" alias="products_list" category_id="2" template="catalog/product/list.phtml"}}

and adding XML in the design field.

<reference name="content">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setCategoryId"><category_id>3</category_id></action>
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName"><name>product_list_toolbar</name>
</action>
</block>
</reference>

However, the XML gets rejected and the content code doesn't show any products.

Is this such a 'hard' thing to do?
I would expect Magento just having an overview of all products somewhere, but I can't seem to find it.


texts: Can't download export file - The path is not writable

texts:
System - Data Transfer - Export
I get this error when I try to download export csv file

The path "/magento/var/export/catalog_product_20201008_102857.csv" is
not writable.

var/export folder permission is 777 and the generated csv file is 664


texts: I want my layout like this but left column is taking 100% width even in that folder also right column file. I am newbie so please help me.


texts: Magento 2: Edit data-mage-init attribute from body tag

texts:
I am trying to edit the data-mage-init attribute from the Magento 2 body element. I am optimizing page load and this attribute is passing a gif file that is not needed.
I tried to remove it with:
<body>
   <attribute name="data-mage-init" value="">
</body>

I could add attributes with this code but not remove any..


texts: Keep getting "SQLSTATE[HY000] [1045]" despite database credentials and permissions being correct

texts:
I'm trying to install Magento 2.3.1 locally, and I keep running into this error when I adding the database. The problem is not the credentials. Everything I've read about this error implies it's a problem with the database name, user, or password. I've tried different databases and users - with and without passwords - and get the same result each time.

I was able to install Magento 2 once after uninstalling and reinstalling MAMP Pro. Then, I updated my PC, and the site was no longer working. Instead there was an error message telling me to view the details in the exceptions log. This is roughly how the first line of that log file said:

main.CRITICAL: exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

I deleted those site files and tried installing Magento again, and I was back to getting that error message. I don't know what else to try. I'm not reinstalling MAMP Pro every time I restart my computer.

I have a somewhat unusual setup in that I use Windows 10 with MAMP Pro 4. I don't know if that has something to do with it.


texts: Constructing add-to-cart url from CMS page

texts:
So, I've got a CMS page that I'm using as a landing page. I want to add a button that lets customers add a product straight to the shopping cart, completely bypassing the main product page. The usual php methods for making an add-to-cart product link don't work from a CMS page. Is there some way to call these via the CMS interface with the replacement syntax {{foo}}? If not, how do I get the link I need?

Relevant info:

We are using the obfuscated add-to-cart format, so the normal query url doesn't seem to work.

Our product links and ids don't seem to be stable, so I can't just copy-paste something.

Yes, this landing page needs to be a CMS page, not hardcoded in the site.


texts:
I can't install any module in Magento 2 with the composer. Here are the steps I used to install:

Navigated to the root directory of my Magento 2 installation folder and follow these steps:

Install via packaging

composer require pagseguro/magento2

Executed

  php bin/magento setup:upgrade

  php bin/magento setup:static-content:deploy
  chmod 777 -R var/ pub/
  composer update pagseguro/magento2
  composer update pagseguro/pagseguro-php-sdk
  php bin/magento setup:upgrade
  php bin/magento setup:static-content:deploy

But when I navigated to STORES -> CONFIGURATION -> SALES -> PAYMENT METHODS

The module isn't exist.

I tried, but it's not working. My magento directory is: public_html/clubedental/loja ...

Again, I tried the execution pointed from public_html/clubedental/loja/bin/magento as below

  php public_html/clubedental/loja/bin/magento setup:upgrade
  php public_html/clubedental/loja/bin/magento setup:static-content:deploy

But still its not appearing.


texts: Magento2.3: Advance Reporting shows "404"

texts:
I have followed all the instructions:Advanced Reporting

Also Magento Analytics user integration Status is “Active.”
But still facing the same error.
How can i enable Advance Reporting m using magento2.3 EC.
Is this Reporting is paid or free.


texts: module related to Reviews.co.uk getting time out exception

texts:
I have a module which sync my product reviews with Reviews.co.uk. In the setting page of the module it is said that

  To sync your products to Reviews.co.uk you should enable your product
  feed. The feed will be available at: /reviews/index/feed and will be
  automatically added to your Reviews.co.uk account when you save these
  settings.

So I want to know that the url mentioned here is belongs to where. For eg. if I trigger a URL

  [my_site_url]/reviews/index/feed/

then it throws error

  504 Gateway Timeout

so please let me know how can I access my product feed with given URL.

PS: I have found where the exception is generated. it is in:

$products = Mage::getModel('catalog/product')->getCollection();
foreach ($products as $prod)
{
....

I guess here they are getting all products collection and there are thousands of products. Thats why it is throwing exception. Please anyone can suggest that how can I modify this as it is third party module.

Thanks


texts: Uncaught ReferenceError: config is not defined magento 2

texts:
I'm getting an error in the console and it says:

  Uncaught ReferenceError: config is not defined.

The file it relates to is requirejs-config.js:1149 but I have no idea what this relates to or how to fix it. Any ideas?

The code in question is:

})(require);
require.config(config);
})();


texts: Magento 2 - How to remove css from specific content pages

texts:
I am using Magento 2.3.5 and I would like to remove a CSS file from specific Content -> Pages
My default_head_blocks.xml file code is below
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <!-- ADD CSS  -->
        <css src="css/styles-m.css"/>
        <css src="css/styles-l.css" media="screen and (min-width: 768px)"/>
        <css src="css/print.css" media="print"/>
        <css src="css/custom-sb.css"/>
    </head>
</page>

I would like to remove custom-sb.css from some cms pages.
I have created a Custom Layout Update file and call it from the Design section of the page
My custom layout update file cms_page_view_selectable_home-grocery_microsite.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <remove src="css/custom-sb.css"/>
        <css src="css/custom-microsite.css"/>
    </head>
</page>

I did the above things but still, it is not working.
Can someone please help me with this?
Thank you


texts:
I'm trying to add custom field to first checkout step. It is University name for students, so it's not connected to shipping address or method.

I've added new column to sales_order table. But how can I save it? Should it be observer on some event, or plugin? I have no idea...


texts: Magento 1.9 Multiselection fields are all empty in the backend configuration

texts:
I have a problem with Magento's backend.
In Configuration, each multiselection field is empty, all options are no longer available. This problem is only in the configuration. Why?

I've already tried cleaning the cache and doing the reindex.

Any solution?
Thank you

This is the situation:


texts: Get email if cron is not working / cronjob fails

texts:
I was wondering if there is an option in Magento ver. 1.9.2.2 to get an email if cron is not running or more important if a cronjob fails. I didn't find any configuration in backend nor any information here on StackExchange.

If I do not miss anything and there is no setting for it, how can I achieve it? Probably by writing an extension, but is there any kind of event what gets triggered when a cronjob fails? Thank you.


texts: Restore Magento 2 attribute and related products

texts:
I have accidentally deleted the attribute set from the store and due to this the products also deleted from my multistore shops. by just pressing this

I have found an extension in GitHub trashcan but it says it will not restore the already deleted products.

also, I have not database backup so please any suggestion how I can restore the products with the same attribute?

My Magento version is 2.2.0


texts: Add Custom Tab to the product admin working fine at localhost but giving wrong tab config error after uploading on server

texts:
I am working on product section. Here I am using module named "Add Custom Tab" to add Custom Tabs sections. Now the problem is it working fine at localhost but giving error on server.
Error:-

  Wrong tab configuration.
  Trace: #0 [internal function]: Mage_Adminhtml_Block_Widget_Tabs->addTab(’main_section’, ‘cms_page_edit_t...’) #1 ...

Refering link is mentioned below

  http://www.phpcmsframework.com/2012/12/magento-steps-to-add-custom-tabs-to.html


texts: Observer not firing when trying to add button to module admin interface

texts:
I would like to add a button to the admin interface for a module to perform some custom actions, at the moment the observer isn't being picked up once the admin interface loads.
here is my config.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Ds_Imports>
            <version>1.0.0</version>
        </Ds_Imports>
    </modules>

    <global>
        <adminhtml>

            <events>
                <adminhtml_widget_container_html_before>
                    <observers>
                        <add_button_test>
                            <type>singleton</type>
                            <class>Ds_Imports_Model_Observer</class>
                            <method>addButtonTest</method>
                        </add_button_test>
                    </observers>
                </adminhtml_widget_container_html_before>
            </events>

            <layout>
                <updates>
                    <ds_imports>
                        <file>importer.xml</file>
                    </ds_imports>
                </updates>
            </layout>
        </adminhtml>
        <helpers>
            <imports>
                <class>Ds_Imports_Helper</class>
            </imports>
        </helpers>
        <blocks>
            <imports>
                <class>Ds_Imports_Block</class>
            </imports>
            <!-- <adminhtml>
                <rewrite>
                    <sales_order_grid>Ds_Imports_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
                </rewrite>
            </adminhtml> -->
        </blocks>
        <models>
            <imports>
                <class>Ds_Imports_Model</class>
                <resourceModel>imports_resource</resourceModel>
            </imports>
        </models>
        <resources>
            <imports_setup>
                <setup>
                    <module>Ds_Imports</module>
                </setup>
            </imports_setup>
        </resources>

    </global>
     <admin>
            <routers>
                <adminhtml>
                    <args>
                        <modules>
                            <ds_imports before="Mage_Adminhtml">Ds_Imports_Adminhtml</ds_imports>
                        </modules>
                    </args>
                </adminhtml>
            </routers>
        </admin>
</config>

and this is the observer it is trying to load

<?php

class Ds_Imports_Model_Observer extends Varien_Event_Observer
{

    public function __construct() {

    }

    public function addButtonTest($observer) {
        echo "test";
        die();

        $container = $observer->getBlock();

        if(null !== $container && $container->getType() == 'adminhtml/sales_order_grid') {
            $data = array(
                'label'     => 'My button',
                'class'     => 'some-class',
                'onclick'   => 'setLocation(\' '  . Mage::getUrl('*/*', array('param' => 'value')) . '\')',
            );
            $container->addButton('my_button_identifier', $data);
        }

        return $this;
    }

}

Am I missing something or is there a better way to add a custom button to the admin interface of a module?

Any help would be greatly appreciated.

Thanks


texts: Browser Language Redirection For Multi Language Stores In Magento 2

texts:
Anybody knows how to use the following piece of code? I want detect visitors browser language and than redirect for the right multi language store. Want to use subfolders (www.domain.com/en/), not multi (www.en.domain.com) domains.

require __DIR__ . '/app/bootstrap.php';
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'website2';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);


texts: Can you help me better understand the object manager to avoid errors when using it?

texts:
I'm working on learning Magento 2, and I'm having issues with the automatic constructor dependency injection in my resource model collection.

Here is my code:

namespace TylerSchade\Contacts\Model\ResourceModel\Contact;

use \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;

class Collection extends AbstractCollection
{
    protected $session;

    public function __construct(
        \Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory,
        \Psr\Log\LoggerInterface $logger,
        \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
        \Magento\Framework\Event\ManagerInterface $eventManager,
        \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource,
        \Magento\Customer\Model\Session $session,
        \Magento\Framework\DB\Adapter\AdapterInterface $connection = null
    ) {
        $this->session = $session;

        parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
    }

    protected function _construct()
    {
        $this->_init('TylerSchade\Contacts\Model\Contact', 'TylerSchade\Contacts\Model\ResourceModel\Contact');
    }

    public function addCustomerFilter()
    {
        $this->addFieldToFilter('customer_id', $this->session->getCustomerId());
    }
}

When I run code that loads the collection, I receive the following error:

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\DB\Adapter\AdapterInterface in /var/www/magentotwo/magentotwo/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

I've tried to reorder the parameters and specify the parameter that causes the error to a default of null, because I've seen that in core code, but that leads to more errors. I've also tried to add a di.xml file that specified the preference for the interface to Magento\Framework\DB\Adapter\Pdo\Mysql, thinking that perhaps the issue is that I haven't specified a preference for the interface, but then I receive the following errors:

2 exception(s):
Exception #0 (InvalidArgumentException): Configuration array must have a key for 'dbname' that names the database instance
Exception #1 (Zend_Db_Adapter_Exception): Configuration array must have a key for 'dbname' that names the database instance

How can I fix these errors? Also, can you help me better understand the object manager's constructor dependency injection to avoid errors like this in the future?


texts: Magento 2.1.7 Change Shipping Method Title method.method_title USPS Pirority Mail Day 1

texts:
I would like to change the shipping method title from
"Priority Mail 1-Day" to "Priority Mail"

how do I target this cleanly?

This is Magento 2 and this data is displayed after a click event on a radio button. I'm thinking I might be able to do this a dirty way and use javascript to overwrite the string value.

$(document).ready(function(){
    $('#formA input[type=radio]').click(function(){
        alert(this.value);
    });
});

But I'm not sure that is the best approach.


texts: How to display the order id and customer id in the payment information block?

texts:
I have a custom payment method with a custom info block. This info block is rendered on the invoice,shipment and other PDFs and in the e-mail templates.

I want to include payment instructions in this block. The payment instructions contain the customer id and the order id.

How can I render the customer id and the order id in the payment info block?


texts: Get Filters selected in admin sales order grid

texts:
How can I retrieve the selected filters when a sales order admin grid loads programmatically in Magento 2?

For e.g., if the filter is selected as Status = Cancelled, I want to be able to access it programmatically.


texts:
I recently installed FME layered navigation. Now my toolbar sorting doesn't work right. When it loads, everything is correct. It sorts by the standard "most viewed", but when i change sorting to newest and then back to most viewed again, it doesn't work.. it just shows some other products, almost like if there was no sorting.

Anyone got any clue how i can fix this? its only a problem for the most viewed sorting