texts: I want post the $url data from controller to modulename/block/adminhtml/sales/order in magento

texts:
config.xml file

<?xml version="1.0"?><config>
<modules>
    <Ible_DownloadOrder>
        <version>1.0.0</version>
    </Ible_DownloadOrder>
</modules>
<global>
    <rewrite>
    <ible_ibleadmin_adminhtml_sales_order>
        <from><![CDATA[#/admin/sales_order/#]]></from>
        <to>/ibleadmin/adminhtml_sales_order/</to>
    </ible_ibleadmin_adminhtml_sales_order>
    </rewrite>

    <blocks>
      <adminhtml>
         <rewrite>
                <sales_order_grid>Ible_DownloadOrder_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
         </rewrite>
         <rewrite>
                <sales_order_downloadorder>Ible_DownloadOrder_Block_Adminhtml_Sales_Order_Downloadorder</sales_order_downloadorder>
         </rewrite>
        <layout>
            <updates>
                 <downloadorder>
                     <file>downloadorder.xml</file>
                 </downloadorder>
            </updates>
         </layout>
        </adminhtml>
   </blocks>
</global>

<admin>
    <routers>
        <ible_downloadorder>
            <use>admin</use>
            <args>
                <module>Ible_DownloadOrder</module>
                <frontName>ibleadmin</frontName>
            </args>
        </ible_downloadorder>
        <adminhtml>
            <args>
              <modules>
                <Ible_DownloadOrder_Adminhtml before="Mage_Adminhtml">Ible_DownloadOrder_Adminhtml</Ible_DownloadOrder_Adminhtml>
              </modules>
            </args>
        </adminhtml>
    </routers>
</admin>

OrderController.php

    <?php

      require_once 'Mage/Adminhtml/controllers/Sales/OrderController.php';

    class Ible_DownloadOrder_Adminhtml_Sales_OrderController extends Mage_Adminhtml_Sales_OrderController

{
    public function downloadorderAction()
    {       $orderIds = $this->getRequest()->getPost('order_ids');
         //$orderData= $orderIds->get

        //$order = Mage::getModel('sales/order')->loadByIncrementId('100000176');
       //echo "<pre>";print_r($order->getAllItems());
        foreach($orderIds as $orderId){
            $order = Mage::getModel('sales/order')->load($orderId);
            $order_item_collection = $order->getItemsCollection();
            //echo "<pre>";  print_r($order_item_collection);
            $url ="";
            foreach($order_item_collection as $item){
                //print_r($item); echo"<pre>";
                $oId = $item->getOrderId();
                $pId = $item->getProductId();
                $iId = $item->getId();

                $url = "http://dev.justfordemo.biz/voucolar/index.php/pdp/view/finalDesign/product-id/".$pId."/order-id/".$oId."/item-id/".$iId;
                $cont[] = file_get_contents($url);
                echo"<pre>";
                print_r($url);
                $this->loadLayout();
                $this->renderLayout();
             }

         }
    }
}
?>


texts: Add custom field to product attributes add/edit form and save value to DB?

texts:
I added a custom field to attribute add/edit form using these instructions: https://magento.stackexchange.com/a/238731 and
Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit
So I created an extension with that code and I do see the new field in the product attribute add/edit form, but the value doesn't get saved.
So the part that's missing is how to save the value to the DB. How can I accomplish that?
Thank you


texts: magento2 Uncaught ArgumentCountError: Too few arguments to function

texts:
I am getting "Uncaught ArgumentCountError: Too few arguments to function on parent::__construct($context);

Index.php

<?php

namespace MyTheme\Theme\Controller\Index;
use Magento\Framework\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;

class Index extends \Magento\Framework\App\Action\Action
{
    /**
    * @var \Magento\Framework\View\Result\PageFactory
    */
    protected $resultPageFactory;

    public function __construct(Context $context, PageFactory $pageFactory)
    {
        parent::__construct($context);
        $this->resultPageFactory = $pageFactory;
    }

    public function execute()
    {
        $result = $this->resultPageFactory->create();
        return $result;
    }
}

Even if I use parent::__construct($context, $pageFactory); instead of parent::__construct($context); I get the same error.


texts: Moving fonts to preload issue in Magento 2

texts:
I am using the lighthouse from chrome and I am getting the following:

I have 3 fonts from the core of Magento and I would like them to move it in my default_head_blocks.xml with:

The thing is that I don't know how to remove it from core and preload it via using the , like HERE. Do you have any suggestion how should I achieve this ?
Thank you


texts: How to print orders with the gift card message?

texts: When printing an order from Sales - Orders - select an order - then - Actions - Print All - SUBMIT....it prints the order but it does not contain the gift card message. Is there an easy way to include the gift card message in the printing?


texts: Missing product data on Magento reports (bestseller, products ordered) although in database

texts:
Yesterday I ran a modified XML export at the Sales -> Orders overview. During this process there was an error and now I have a reporting issue:

My reports seem to be reset and all information prior to the export appears to be missing.

However, everything works fine with the reports in the interval after the incident, so no unusual behaviour - topsellers etc. are shown like you would expect them to.

The following reports are affected (not a complete list):

Reports -> Products -> Bestsellers
Reports -> Products -> Products Ordered
Reports -> Customers -> Customers by Orders Total
Reports -> Sales -> Tax

However, for example this report works fine:

Reports -> Shopping Cart -> [any]

When going to Sales -> Orders I have a complete list of all sales ever done in the shop. Whichever order I open, there is all the required information available (e.g. products bought, subtotal, date etc.).

I read that the

  Reports -> Products -> Bestsellers

table is based on the sales_flat_order_item & sales_flat_order table. I checked these, all entries up to the first day of the shop are there.

As far as I can tell, all shop history is available and no data has been deleted. I also tried Reports -> Refresh statistics (lifetime) but it had no effect.

Does anybody know where else to look or what to check?


texts: Coupon to offer discount and free saver delivery, but still allow paid options

texts:
I have a discount code set up (FREE20) that offers customers 20% off certain items and free delivery on those items.

The only problem is that I only want to offer free standard delivery, but still give the customer the option to pay for next day delivery. However when the discount code is applied all the shipping options are available for free.

How can I fix this? Or disable the other shipping options when the code is applied?


texts: Does Magento 2.0 has Make Model Year functionality built-in?

texts:
I did some research for my client in the past for the "Model/Make/Year" module for Magento 1.9 and found some that could be suitable. However, the proposal was delayed up until now, which Magento 2.0 just recently released.

As I looked into the module for Model/Make/Year, I do not see anything that would be explicitly for Magento 2.0 (from looking at Magento connect https://www.magentocommerce.com/magento-connect/magento-2). Those that I found in the past did not specify that they support Magento 2.0 either.

Anyone else has experience implement this feature on Magento 2.0 yet? Does the functionality already exist by default, do you use any module, or do you end up implementing one yourself?

Thank you,


texts:
I did upgrade my Magento version 2.3.4 to v2.4.2
Then activate ElasticSarch and upgrade the composer
then the site working for me. Admin and Frontend have appeared without any error.
but showing a warning on my AdminDashboard
[![enter image description here][1]][1]
When I run bin/magento indexer:reindex
it showing
Catalog Search index process unknown error:
{"error":"MapperParsingException[No handler for type [text] declared on field [_search]]","status":400}
[![enter image description here][2]][2]
I did try this comments but still the error is there
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:Deploy -f
sudo chmod -R 777 var/ pub/ generated/ vendor/
Help me to resolve this issue.
[1]: https://i.stack.imgur.com/FSiUl.png
[2]: https://i.stack.imgur.com/CJ6GF.png


texts: Custom Module to turn product page into homepage

texts:
I have a "Today's Deal" product that changes automatically every 24 hours. It's the only product in the "Today's Deal" category.
I want the product page to be the homepage but i can't get the module to work. The controller reads the content of the category, gets the product ID and adds the ID to the URL but all i get is a blank page.

My Teelegend_Overwritedefaulturl.xml (app/etc/modules)

<?xml version="1.0"?>
<config>
    <modules>
        <Teelegend_Overwritedefaulturl>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Cms/>
            </depends>
        </Teelegend_Overwritedefaulturl>
    </modules>
</config>

My config.xml (app/code/local/Teelegend/Overwritedefaulturl/etc)

<?xml version="1.0"?>
<config>
    <modules>
        <Teelegend_Overwritedefaulturl>
            <version>1.0.0</version>
        </Teelegend_Overwritedefaulturl>
    </modules>
    <frontend>
        <routers>
            <teelegend_overwritedefaulturl>
                <use>standard</use>
                <args>
                    <module>Teelegend_Overwritedefaulturl</module>
                    <frontName>teelegend_overwritedefaulturl</frontName>
                </args>
            </teelegend_overwritedefaulturl>
            <cms>
                <args>
                    <modules>
                        <Teelegend_Overwritedefaulturl before="Mage_Cms">Teelegend_Overwritedefaulturl</Teelegend_Overwritedefaulturl>
                    </modules>
                </args>
            </cms>
        </routers>
    </frontend>
</config>

My IndexController.php (app/code/local/Teelegend/Overwritedefaulturl/controllers)

<?php
class Teelegend_Overwritedefaulturl_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction($coreRoute = null)
    {
        $categoryid = 3;
        $category = Mage::getModel('catalog/category')->load($categoryid);
        $collection = $category->getProductCollection()->setPageSize(1);
        $todaystee_id = $collection->getFirstItem()->getId();
        Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('catalog/product/view/id/' . $todaystee_id ));
    }
}


texts: Magento 1.8.1 Shopper 'My Account' menu for mobile version

texts:
I would like to know if anyone knows how can I make the "My account" menu section (of the shopper page) responsive in Mobile version?
Such as I have tabs block per line like "Account Dashboard", "Account Information", "Address Book", "My Orders", etc... in which whenever I click on any of those tabs blocks it discloses the contents and when I click it again it hides the content.

I guess I have to modify those following files:

  app/design/frontend/base/default/template/customer/account/navigation.phtml

        <?php echo $this->__('My Account'); ?>

            <?php $_links = $this->getLinks(); ?>
            <?php $_index = 1; ?>
            <?php $_count = count($_links); ?>
            <?php foreach ($_links as $_link): ?>
                <?php $_last = ($_index++ >= $_count); ?>
                <?php if ($this->isActive($_link)): ?>
                    <li class="current<?php echo ($_last ? ' last' : '') ?>"><?php echo $_link->getLabel() ?>

                <?php else: ?>
                    <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?>

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

  app/code/core/Mage/Customer/Block/Account/Navigation.php

class Mage_Customer_Block_Account_Navigation extends Mage_Core_Block_Template
{
    protected $_links = array();
    protected $_activeLink = false;
    public function addLink($name, $path, $label, $urlParams=array())
    {
        $this->_links[$name] = new Varien_Object(array(
            'name' => $name,
            'path' => $path,
            'label' => $label,
            'url' => $this->getUrl($path, $urlParams),
        ));
        return $this;
    }
    public function setActive($path)
    {
        $this->_activeLink = $this->_completePath($path);
        return $this;
    }
    public function getLinks()
    {
        return $this->_links;
    }
    public function isActive($link)
    {
        if (empty($this->_activeLink)) {
            $this->_activeLink = $this->getAction()->getFullActionName('/');
        }
        if ($this->_completePath($link->getPath()) == $this->_activeLink) {
            return true;
        }
        return false;
    }
    protected function _completePath($path)
    {
        $path = rtrim($path, '/');
        switch (sizeof(explode('/', $path))) {
            case 1:
                $path .= '/index';
                // no break

            case 2:
                $path .= '/index';
        }
        return $path;
    }
}

Thank you for your help/responses.


texts: How can I get current order's payment method and application_no in order view in Admin?

texts:
I want to display application_no if payment method is FN in order details page.
I have created a block.
class Custom extends \Magento\Framework\View\Element\Template
{
    public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
         array $data = []
    ) {
        parent::__construct($context, $data);
    }

    // public function getOrderId(){
    //     return $orderId = $this->getRequest()->getParam('order_id');
    // }

    public function getPaymentMethod(){
        // $orderId = $this->getRequest()->getParam('order_id');
        // $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        // $order = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($orderId);
        // $payment = $order->getPayment();
        // // $method = $payment->getMethodInstance();
        // // $methodTitle = $method->getTitle();
        // return $order;
    }
}

Also, I have created a sales_order_view.xml to display my application_no (Tested it with static value and working fine).
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="left">
           <referenceContainer name="payment_additional_info">
                <block class="Limesharp\FinanceNow\Block\Adminhtml\Order\View\Custom" name="sales_order_view_custom" template="order/view/custom.phtml" />
             </referenceContainer>
        </referenceContainer>
    </body>
</page>

Here is my view file -
FN: <?php var_dump($block->getPaymentMethod()); ?>

Now I wanna pass application_no(custom column already in sales_order table) and payment_method. How can I pass this information from block to view of current order and display it conditionally?


texts: The message should be an instance of \Zend_Mail when upgrade to Magento 2.3.1

texts:
I have upgraded my magento version to 2.3.1. On previous version i.e on 2.2.6 the sendgrid was working properly.

Now I can see that sendgrid is not compatible with 2.3.1. What to do..

Because of this We have issues regarding mail sending. Also is there any  issues regarding to normal mail delivery without SMTP in magento 2.3.1?

Is there any temporary patch or solution available on this fourm?


texts: Can Magento 2 CE handle 15 million products?

texts: What is the maximum number of products magento 2 can handle? Can magento 2 handle 15 million products?


texts: Magento 2 Admin Page Remove Cc_savedcard_id field from payment information on sales order page?

texts:
I want to remove Cc_savedcard_id from the page.

What's the best way to achieve this?
Thank you in advance!


texts: Add footer link without domain from xml layout

texts:
I'm trying to add a tel: href to a footer with the next code:
 <block class="Magento\Framework\View\Element\Html\Link" name="telefon">
                            <arguments>
                                <argument name="label" xsi:type="string" translate="true">0728 947 887
                                </argument>
                                <argument name="path" xsi:type="string">tel:0728947887</argument>
                            </arguments>
                        </block>

The link generates but it comes like: https://domain.com/tel:0728947887
In order for the tel: to work, I simply need it to be tel:0728947887
I also tried adding this to the block but the href did not change:
 <argument name="attributes" xsi:type="array">
                                    <item name="href" xsi:type="string">tel:0728947887</item>
                                </argument>

I'd appreciate any ideas, thanks!


texts: Sample Modules leads to 404 error page (Magento 2.0)

texts:
I have tried to install the following sample components on my local VM with well working Magento 2.0;

sample-module-form-uicomponent
sample-module-newpage
sample-module-servicecontract-new
sample-module-webflow

from here: https://github.com/magento/magento2-samples

The installation with bin/magento setup:upgrade was successfully and the modules are avaialable in the admin panel. But if I try to open the example pages I still get "404 Not found".
I used the URL from the readmes e.g. in my case 127.0.0.1/magento2/webflow/firstpage
I have installed the latest version including registration.php. Developer mode is enabled, too.
Same errors when I try to create custom modules.
Any ideas?
Thanks.


texts: Certification - how will magento 2 release affect it?

texts:
I am about to shortly sit my certification exam but am now seeing a lot of hype around magento 2.

Does anyone know how the release of Magento 2 will affect the current certificaiton?

Will it sill be valid?  Will it need updated/replaced etc?


texts: How to delete all products in Magento 2 and start product id from 1?

texts: I truncate all products tables but still product id not starting from 1. which query i'll run ? i want to start product id from 1. i'm working on localhost.


texts:
Magento 2 System upgrade from the admin panel shows the below message:
magento/product-community-edition 2.4.0 requires php ~7.3.0||~7.4.0 -> your PHP version (7.0.33) does not satisfy that

I have used the command to enable the PHP version 7.4  sudo a2enmod php7.4 and then sudo service apache2 restart now doing the readiness check again shows the above error and if I disable the current PHP version which is 7.0 sudo a2dismod php7.0 and then the admin panel will not load with PHP7.4.
Any solution?


texts: How to disable SKU from product page Magento 1.9

texts: How to hide SKU in product page in Magento 1.9?


texts: Magento 2.1 add new phrases to language pack

texts:
i download and install Magento 2 Russian Language Pack from github, and i collect the all phares from console with this command
php bin/magento i18n:collect-phrases -o "./app/i18/Luminoso/ru_RU/ru_RU.csv" -m

i want to replace translated strings from "Magento 2 Russian Language Pack" to my collected pharases


texts: Getting TypeError: require.exec is not a function error

texts:
I am facing this error. Following are the details when the error occurs on Magento 2.2.4

Created a custom module page.
Removed every block from custom module page except content block.
In other page wrote a $.get to pull the custom page via ajax.
Finally trying to add the result received from the $.get call to a div using $("#mydiv").html(result);
And $("#mydiv").html(result); statement is where the error is occurring.(although the content gets added but due to error further processing halts)

Any solution will be appreciated.


texts: Specific Theme for specific language, can I compile each theme in just the applicable languages?

texts:
We have a site that has been designed with a new theme for each language and each language on a different URL.

It's not how I would have built it but we have to "run what you brung".

The problem I have is deploying static content takes hours as it does every language (12) for each theme (18? Some themes are for dual language countries like China in Chinese and English) plus the base themes like Luma and Blank.

I know once the initial compile is done I can target re-deployments with -theme and -l but I am wondering if I can do a full compile but specify "only compile this theme in this language and this theme in this language"

Edit for clarity
To be 100% clear, I am well versed in the Magento CLI and how to select different languages and restrict to different theme's and areas, how to exclude themes etc.

I am looking specifically to see if there's a way to issue a deploy command that deploys each theme but only in the languages they are designed for, not all the languages declared as available.

As per above, 12 langs and 18 themes causes 216 deployments (plus base themes!) and takes a long time. In fact, the language to theme map means we only need to compile about 20-30 of these combinations as the other languages are useless in the context of all but the specific theme designed for them...

I am also well aware that this site is not correctly structured and that is the root cause for this SNAFU, that a base theme should be used with internationalization to provide translation and sub-themes for lang specific layouts and blocks, but I'm not working on my own creation but rather deploying changes to an existing production environment, so I can't really rebuild it all from scratch (much as I'd like to!)

PS> Thanks for the grammar check @Evince, typing too quick again!


texts: Transfer magento project one domain to other and getting issues

texts:
I transferred my project one domain to other one after that i change baseurl(secure/unsecure) in table core_config_data and delete cache folder and removing all sessions and locks too.

My project works but i am getting error on checkout page get error no cms page found 404 error. its also for customer account page also.

Can any one have idea why this happen how can solve it.


texts: Magento 2 : Function's nesting level (8) exceeds 5 consider refactoring the function

texts:
I have check Coding standard of Module and i have get

this is my code

public function execute()
{
    $mediaDirectory = $this->filesystem->getDirectoryRead($this->directoryList::MEDIA);
    $destinationPath = $mediaDirectory->getAbsolutePath('cs/svg/');

    $storeManager = $this->storeManagerInterface;
    $currentStore = $storeManager->getStore();
    $mediaUrl = $currentStore->getBaseUrl($this->urlInterface::URL_TYPE_MEDIA);

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

    if (isset($data['data'])) {
        $svgname = rand(10000, 99999);
        $path = $destinationPath.$svgname.".svg";
        $img = $data['data'];
        $this->fileForceContents($path, $img);
        return $mediaUrl.'cs/svg/'.$svgname.'.svg';
    }
    if (isset($data['itemId'])) {
        try {
            $cart = $this->cart;
            $items = $cart->getQuote()->getAllItems();
            foreach ($items as $item) {
                if ($item->getId() == $data['itemId']) {
                    $options = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());
                    if (isset($options['info_buyRequest']['svg_data'])) {
                        $part = explode("/", $options['info_buyRequest']['svg_data']);
                        foreach ($part as $key => $value) {
                            if (strpos($value, '.svg') === true) {
                                $myFile = $destinationPath.$value;
                                if ($this->file->fileExists($myFile)) {
                                    $this->file->rm($myFile);
                                }
                            }
                        }
                    }
                }
            }
        } catch (\Exception $e) {
            $this->logger->critical($e->getMessage());
        }
    }
}


texts: Error log after updating magento 1.8 to 1.9

texts:
After updating magento 1.8 to 1.9 im getting this error log and i don't know what to do about it. Can anybody tell me ?

    Invalid method Mage_Tax_Block_Adminhtml_Notifications::isDefaultStoreWithConflictingFptTaxConfigurationSettings(Array
(
)
)

Trace:
#0 /home/tuinshop/public_html/app/design/adminhtml/default/default/template/tax/notifications.phtml(58): Varien_Object->__call('isDefaultStoreW...', Array)
#1 /home/tuinshop/public_html/app/design/adminhtml/default/default/template/tax/notifications.phtml(58): Mage_Tax_Block_Adminhtml_Notifications->isDefaultStoreWithConflictingFptTaxConfigurationSettings()
#2 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/tuinshop/...')
#3 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#4 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /home/tuinshop/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#6 /home/tuinshop/public_html/app/code/core/Mage/Tax/Block/Adminhtml/Notifications.php(161): Mage_Adminhtml_Block_Template->_toHtml()
#7 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Abstract.php(886): Mage_Tax_Block_Adminhtml_Notifications->_toHtml()
#8 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#9 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Abstract.php(886): Mage_Core_Block_Text_List->_toHtml()
#10 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Abstract.php(605): Mage_Core_Block_Abstract->toHtml()
#11 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Abstract.php(549): Mage_Core_Block_Abstract->_getChildHtml('notifications', true)
#12 /home/tuinshop/public_html/app/design/adminhtml/default/default/template/page.phtml(55): Mage_Core_Block_Abstract->getChildHtml('notifications')
#13 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/tuinshop/...')
#14 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#15 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#16 /home/tuinshop/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#17 /home/tuinshop/public_html/app/code/core/Mage/Core/Block/Abstract.php(886): Mage_Adminhtml_Block_Template->_toHtml()
#18 /home/tuinshop/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#19 /home/tuinshop/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#20 /home/tuinshop/public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(43): Mage_Core_Controller_Varien_Action->renderLayout()
#21 /home/tuinshop/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_DashboardController->indexAction()
#22 /home/tuinshop/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#23 /home/tuinshop/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#24 /home/tuinshop/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#25 /home/tuinshop/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#26 /home/tuinshop/public_html/index.php(87): Mage::run('', 'store')
#27 {main}


texts: Magento 2: Payment Method Not Capturing Shipping Address From Payment Page

texts:
On the Checkout Page after filling the shipping address and checking the check box: my billing and shipping address are the same on the payment method

it returns the error:

  Please check the billing address information. "firstname" is required.
  Enter and try again. "lastname" is required. Enter and try again.
  "street" is required. Enter and try again. "city" is required. Enter
  and try again. "telephone" is required. Enter and try again.
  "postcode" is required. Enter and try again. "regionId" is required.
  Enter and try again.

It now requires that I uncheck the checkbox: my billing and shipping address are the same and enter a billing address there too for the order to be placed successfully.

I would prefer to just check the checkbox: my billing and shipping address are the same to place the order successfully.


texts:
Let´s say I have a store named "Megastore". How can I get the id of that specific store?

Can I do it by using some kind of filter?

Mage::getModel('core/store')->addFieldToFilter('name', 'Megastore');


texts: Magento 2 - How to use the sales model in custom module

texts:
I've created a new module and I need the functionality from the Magento\Sales\Model\Order model to fetch a list of all orders.

How can I use this model within my own module?


texts: How to display Category name in Sales order grid in magento2

texts:
I am using magento 2.2 version i want to display category name in admin sales order grid as well as in frontend customer sales order.
Can you please help me.


texts: In magento, how to hide header and footer in every page for specific category ID?

texts:
I would like to know how to hide header and footer for specific category ID.
For example, I have 5 categories: categories are cat1, cat2, cat3, cat4, cat5. I want to hide header and footer in every pages if the category id is equal to cat1. Is it possible to do so?


texts: $payment->getMethodInstance()->getCode() not working in observer for credit card payments

texts:
I'm trying to modify the payment block on the order detail page in backend. Therefore I've created an observer which is listening to following event:

payment_info_block_prepare_specific_information

Now, when I'm trying to get the payment code with

$payment = $observer->getEvent()->getPayment();
$paymentmethod = $payment->getMethodInstance()->getCode();

I do get following error for credit card payments (Authorize.net) only:

PHP Fatal error:  Call to a member function getCode()

Orders placed by using PayPal Express Checkout work though. Do I miss something? I appreciate any help.

Magento ver. 1.14.2.4


texts:
I have the following code that does not produce anything on screen adn I cannot work out what is wrong with it.

protected function _prepareCollection(){
    parent::_prepareCollection();

    $collection = Mage::getModel('sales/order')->getCollection()
    ->addAttributeToFilter('state', array('neq' => 'complete'))
    ->addAttributeToFilter('state', array('neq' => 'canceled'))
    ->addAttributeToFilter('state', array('neq' => 'closed'));

    $collection->getSelect()->joinLeft(array('sfsg'=>$resource->getTableName('nct_sales_flat_shipment_grid')),'sfsg.order_increment_id=main_table.increment_id',array('shiped' => new Zend_Db_Expr('group_concat(sfsg.created_at SEPARATOR " | ")'), ));

    $this->setCollection($collection);
    return parent::_prepareCollection();
}

And in _prepareColumns() I have...

  protected function _prepareColumns(){
    $this->addColumn('shiped', array(
           'header'    => Mage::helper('sales')->__('Date Shipped'),
           'index'     => 'shiped',
          'type'      => 'datetime',
          'filter_index'=>'sfsg.created_at',
    ));
  }

Why is this not working. I am using Magento ver. 1.6.2.0.

Thank you.


texts: Magento 2.3 replace the comma in the price with the currency symbol

texts: I want to replace the comma in the price with the currency symbol to display something like this .


texts: 'Configurable product' is losing currency format after choosing an option on dropdown menu

texts:
everyone.

The product's price is shown correctly, format and currency symbol. But when I choose an option from the dropdown, the price loses format and the symbol disappears. Does anyone here has seen this issue? How to fix it?

Example: http://coletivix.com/t-shirt.html


texts: Magento 2.1 - Set customer password in backend

texts:
I want it to be possible for the Magento admin to set the passwords for the customers manually in the backend. Is this not possible anymore in Magento 2?

I can only find the option to reset the password so that an email is generated.


texts:
There is a file that is used asynchronously in the front end called listing.html at the following path.

vendor/magento/module-catalog/view/base/web/template/product/list/listing.html

It is used by the recently viewed to render recently viewed items.

I want to override this file in my Vendor/Theme/ folder.

I have already tried the following locations

design/frontend/FossilGroup/default/Magento_Catalog/templates/product/list/
design/frontend/FossilGroup/default/Magento_Catalog/web/template/product/list/
design/frontend/FossilGroup/default/Magento_Catalog/web/templates/product/list/
design/base/FossilGroup/default/Magento_Catalog/template/product/list/
design/base/FossilGroup/default/Magento_Catalog/templates/product/list/
design/base/FossilGroup/Magento_Catalog/template/product/list/
design/base/FossilGroup/Magento_Catalog/templates/product/list/
design/web/FossilGroup/default/Magento_Catalog/templates/product/list/
design/web/FossilGroup/default/Magento_Catalog/template/product/list/

Version: Magento 2.2


texts: Add Noindex Tag SEO Sitemao - Both Category and Product

texts:
How do i add noindex to the catalog/seo_sitemap in Magento

Both catalog/seo_sitemap/product/ and catalog/seo_sitemap/category

We have a large store and resulted in about 100 useless pages in google.

We still want it to be crawled but have noindex tag on the pages


texts: Magento 2.3.2 - CCAvenue Order status is not changing to processing even if payment Done

texts:
I am using CCAvenur in Magento 2.3.2.
I am facing issue for the order placed by CCAvenue payment method as the order status are not getting changed to processing and still showing pending even the payment is done.
Please refer below screenshots:
Screenshots 1:

Screenshots 2:


texts: Magento 1: how can I fix the middlename bug in the sales order grid?

texts:
Ok so this is basically a follow up on this issue on a Magento 1.9.2.4 : Magento 1.9.2.0: table "sales_flat_order_grid" contains extra space in customer's name value

I tried to make the change in the Mage_Sales_Model_Resource_Order file but it does not fix the issue.

On top of that if I add Mage::log(__FUNCTION__); at the beginning of the _initVirtualGridColumns it never gets called.

I've double checked that my Mage_Sales_Model_Resource_Order is not rewritten by another module and it is definitely.

So I want to find out where is that Bill to Name column value being generated ? Optionally, I want to fix that bug but I can't seem to find the source of the problem.


texts: Magento Add Attribute Option on adding single option at a time?

texts:
I would think that I would be able to add multiple options through this method,
but it seems that only a single on is being added? How would I add multiple options?
There are also two things I am uncertain of which is the position and default option, not sure how to get those working?

$attributeModel = \Mage::getModel('eav/entity_attribute')->getCollection()->addFieldToFilter('frontend_label', 'Color');
$attributeCode  = $attributeModel->getData('attribute_code') [0]['attribute_code'];

$attributeModel = \Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product', $attributeCode);

$data = [
    'option' => [
        'value' => [
            0 => [
                0 => 'Red',     // Admin
                1 => 'default', // Default store view
                // position   ???
                // is_default ???
            ],
            1 => [ 0 => 'Blue',  1 => 'default', 2 => 0 ],
            2 => [ 0 => 'Green', 1 => 'default', 2 => 0 ],
        ],
    ],
];

$attributeModel->addData($data)->save();

print_r($attributeModel->getData());
die;


texts: magento white page after upgrade from 1.9.1 to 1.9.2

texts:
I have upgraded magento 1.9.1 to 1.9.2. Locally it works fine but in the production environment I am getting white screen at checkout (www.site.com/checkout/onepage/).

When I checked dev_system.log file I saw two errors.

ERR (3): Notice: Undefined variable: isParent  in public_html/app/code/local/Chestnut/Menu/Block/Navigation.php on line 165

and

Notice: Undefined variable: block  in public_html/app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 187
Notice: Undefined variable: block  in public_html/app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 197

After reviewing responses from other users with similar issue I understand that variables and blocks have to be included in white list either manually or through script.

" Is it possible to provide me the variable and block names that has to be added in the white list or exact steps to get the variable and block names."


texts: How to fetch all custom options from product

texts:
I have a stock product with some custom options. I would like to fetch the custom options for this product in the view.phtml of my rwd-based theme.

Now I thought this would be possible through

$myoptions = $_product->getOptions();
print_r($myoptions);

But instead of giving me back the options, the page loads for a long time and then outputs lots of unrelated stuff. At least it looks like this.

Is this the right way to fetch the custom options of a product? Is there another (better) way to do it?


texts: LOGO AND FAVICON ICON CHANGE MAGENTO 2.2.4

texts:
I tried to change luma logo and Magento favicon icon in Magento Ver 2.2.4, it refused and keeps saying Something went wrong while saving this configuration: Area is already set....

Please any simple solution to this am not a developer


texts:
I did a clean installation of magento 2.4.0.
However after installation it asked me for enabling 2FA. With clicking on confirmation email link and selecting "google" for 2FA I'm getting following screen.
I tried to fix it via console (with bin/magento security:tfa:google:set-secret, see https://medium.com/adobetech/configuring-tfa-on-magento-2-4-0-admin-panel-with-google-authenticator-dbf8801da4c3), but I'm still getting the same screen after login. Cache clean and setup:di:compile didn't help.
Could you please anyone help? Thanks.

Kamil


texts:
I created a couple of tierprices on our products but this is not calculating the way it should calculate.

For example when someone wants to buy 70 pieces of a patchcable it will cost €8,00928 per piece (rounded €8,01)

Now the total price of these products are €560,65 while we want it to be €560,70
The system is calculating 70 * €8,00928 = €560,65 while I want it to calculate 70 * €8,01 = €560,70

How can I do this?
Thanks


texts:
am trying to insert custom notifications into adminnotification_inbox table as per core module Magento-AdminNotifications approache but am't able to insert custom notifications.
Code is in below

events.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="controller_action_predispatch">
    <observer name="adminnotification" instance="MyNameSpace\MyModuleName\Observer\PredispatchAdminActionControllerObserver" />
</event>

NameSpace/ModuleName/Model/Feed.php

<?php namespace  ConversionBug\Core\Model;

Class Feed extends \Magento\AdminNotification\Model\Feed{

  public function __construct(\Psr\Log\LoggerInterface $logger,
                              \Magento\Framework\Stdlib\DateTime\DateTime $date) {
    $this->_logger = $logger;
    $this->date = $date;

}
  public function checkUpdate() {
    $this->_logger->debug("Feed Message here");
    $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log');
    $logger = new \Zend\Log\Logger();
    $logger->addWriter($writer);
    $logger->info('Your text message');
    $this->logger->debug($message);
  }

}


texts: Magento 2: Assign existing image to product with position

texts:
I'm looking to attach size charts to products in my store using the Magneto data import.  I want to use the same image for each of them, and it's already on the server.  So I've got a twofold issue.

How do I assign this image, without re-importing, to each product?  Can I just give the full path from inside the catalog/product directory?  Most of these have extra images already, so I need to avoid removing those.

How do I assign a position?  I want this to be the last image on each, so I'd like to just assign it position 12 or something to that effect to ensure it's last.


texts: How to change HTML of Categoty Page in Magento 2?

texts:
how can i change the layout of Category page in Magento 2
Like to change some HTML in category page.

i want to show product in full width and want to show price filter just above of product listing just below the menu.
How to do that ?
Any help is appriciated.


texts:
I have a problem in getting the sum of time taken between two status of an order

I can able the get the created time by the following code:

$collection = Mage::getResourceModel('sales/order_status_history_collection')
    ->addAttributeToSelect('created_at')
    ->addAttributeToFilter('status', array('eq'=>'complete'))
    ->load()

is there a way to get the sum of time taken between two status like sum(OrderInvoiced+OrderShipped) ?

Any help would be appreciated.


texts: Magento 2 : How to save swatch_text attribute options programatically?

texts:
I'm creating a product attribute with input type 'swatch_text'.

But I'm able to save option value but swatch text value is not saving.

Can anyone help me in saving the marked field in screenshot programatically?

I am using below code :

    $option = [
        'values' => [ 'X','Y','Z'
        ],
        'attribute_id' => $attributeId,
    ];
    $eavSetup->addAttributeOption($option);


texts: How to customize signup fields in Magento 1?

texts:
I want to customize my input fields on the register page for my Magento webshop and add some fields.

I already tried some extensions but the customer attributes are only showing on the backend (By customer's personal information) and on the fronted (When the customer is already logged in).

The problem is that the fields aren't showing on the Sign Up page.

  Magento version: 1.9.2.4

Ps: I am really new in magento, so don't make it to hard for me.

Thanks in advance.


texts: How to allow all special characters in magento password field?

texts:
I am trying to allow all special characters in register page in password field.

As of now it only allows /[$@$!%*?&#^ ]/

But I want to allow all. like: ^[@!#\$\^%&*()+=-[]\\';,./{}\|\":<>\? ]+$

So how can I customize validate.js for specific class validate-password.

Code:

    ['validate-password', 'Please enter 8 or more characters. Password must contain Numeric, Alphabetic and Special characters.', function(v) {
              var pass=v.strip(); /*strip leading and trailing spaces*/
                //alert(pass);
               // var fname =$(firstname).value;
               // alert(pass.indexOf(substring) !== -1);
               //var lname = $(lastname).value;
                if (0 == pass.length) {
                return true;
            }
            if (!(/[a-z]/i.test(v)) || !(/[0-9]/.test(v)) || !(/[$@$!%*?&#^]/.test(v))) {
                return false;
            }
/*            if((pass.indexOf(fname) > -1) ||(pass.indexOf(lname) > -1)){
                return false;
            } */
                return !(pass.length>0 && pass.length < 8);
            }],


texts: Change product attribute for current session / quote

texts:
Sometimes you want to change a product attribute based on live data.

For example:

Say that there is a product that could come from one of two suppliers (A and B) and when a customer comes to the product page (or list page) my site queries both suppliers to find the cheapest price.

What is the best way to change the product attribute on the fly.


texts: Cannot upload any file on Magento 2.4, was able to upload earlier

texts: Image Upload very unstable, I am using Magento 2.4 community edition and in the Content block I am able to upload images some images while others are not working, all images are under 400kb and the size is like 570*570 px


texts: Installed Magento 2.1 via composer. What's step 2?

texts:
I just installed Magento 2.1 via Composer in my local XAMPP 5.6 server.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2
cd magento2
composer update

The folder structure generated:

htdocs/

  magento2/update (folder with other files, folders and index.php)
  magento2/composer.json
  magento2/.gitignore

What exactly am I supposed to do next?

I tried to running 127.0.0.1/magento2 in the browser and it loads the directory structure. If I run 127.0.0.1/magento2/update, it gives forbid access.


texts: Does Magento 2 have namespace length restriction?

texts:
Is there any restriction in Magento 2 with the length of the Vendor name for minimum of 3 ?

I have a vendor say: AB_Test

after upgrading the module, i get:

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document
Element 'add', attribute 'title': [facet 'minLength'] The value 'AB' has a length of '2'; this underruns the allowed minimum length of '3'.
Line: 26

And other modules which are under 'AB' works fine.

Is it any xml issue or is it a restriction?

I do not get proper solution over the net for this issue.

UPDATE:

menu.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
<menu>
    <add id="HM_Brand::brand" title="Brand" module="HM_Brand" sortOrder="40" resource="HM_Brand::brand" parent="HM_All::hm_all"/>
    <add id="HM_Brand::brand_new" title="Add New Brand" module="HM_Brand" sortOrder="10" parent="HM_Brand::brand" action="hmbrand/brand/new" resource="HM_Brand::brand"/>
    <add id="HM_Brand::brand_manage" title="Manage Brands" module="HM_Brand" sortOrder="20" parent="HM_Brand::brand" action="hmbrand/brand/index" resource="HM_Brand::brand"/>
    <add id="HM_Brand::brand_group_manage" title="Manage Groups" module="HM_Brand" sortOrder="40" parent="HM_Brand::brand" action="hmbrand/group/index" resource="HM_Brand::group"/>
    <add id="HM_Brand::configuration" title="Settings" module="HM_Brand" sortOrder="50"
        parent="HM_Brand::brand" action="adminhtml/system_config/edit/section/hmbrand" resource="HM_Brand::config_brand"/>
</menu>


texts:
Today i had installed Fresh magento installation., When i tried to run the compile command, i got below error.

  Fatal error: Declaration of Magento\Checkout\Helper\Data\Proxy::sendPaymentFailedEmail(Magento\Quote\Model\Quote $checkout, string $message, string $checkoutType = 'onepage') must be compatible with Magento\Checkout\Helper\Data::sendPaymentFailedEmail(Magento\Quote\Model\Quote $checkout, string $message, string $checkoutType = 'onepage'): Magento\Checkout\Helper\Data in /home/souqtime/public_html/generated/code/Magento/Checkout/Helper/Data/Proxy.php on line 7

I had tried clearing cache removing generation folder. nothing works. Please anyone help me to solve ths error. Thanks in Advance


texts: How to Get email template in dynamically choose format(For example Html Or Text) using Magento 2?

texts:
I need to get email template in dynamically choose format(For example Html Or Text) while customer orders anything in Magento 2.

For Example:
           Customer account has one option, which Email template format you want for Html or text.  After Customer order, something in my site then, send email to customer account what format he chose.

How to achieve this solution? send me a suggestion to do this?

Thanks


texts:
Some please help me with this.
Where do I find these files.
I need to reduce the time line I have used memcache.
Profiler details

mage    3.5387
mage::dispatch::routers_match   3.4298
mage::dispatch::controller::action::predispatch 1.0752
mage::dispatch::controller::action::cms_index_index 2.3535

Please help me reducethe time frame


texts: I am running Magento 1.9 using Porto Theme. I want to change product page layout as shown in fig. i want thumbnail images at left side with not over large image but seperately.If anyone know how to do it Kindly help me. i want to show thumb images seperately on left side ,not over large image


texts: How to remove relevance sort by in magento 2?

texts: How to remove relevance sort by in magento 2. PFA


texts: How to get orders from a specific date , Magento 1 issue

texts:
This is my code:

....
 ->addFieldToFilter('scheduled_at', ['eq' => date('Y-m-d', strtotime('+2 week'))])

I want to get all of the order which delivery date is 2  weeks from now.

This returns me this query:

WHERE `scheduled_at` = '2017-05-10');

I want to get this:

WHERE (date(`scheduled_at`) = '2017-05-10');

How can I do that? All the info which I found on stackoverflow was about between x and y or greater or less then x. I want equal .


texts: Magento 2: Products not showing in search but in catalog is ok

texts:
I have a problem with my catalog. Products are visible in catalog category view pages (I can do any action - add to cart, buy...) but when I want to search any product then not showing in search results page.

Products have set Visibility as Catalog,Search

I reindex all indexees by php bin/magento indexer:reindex command, clean and flush cashes but still products are not visible in catalog search page.

Can someone have any idea why its happening ?

Magento version: 2.2.9


texts:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was.After placing order getting error

i am getting error below error after placing order:

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT COUNT(*) FROM `sales_flat_order` AS `main_table` WHERE (main_table.customer_id = '12137') AND (state IN('new', 'processing', 'complete', 'closed', 'canceled', 'holded', 'payment_review')

How can I fix this error.


texts: php bin/magento s:s:d -f errors how to do that?

texts:
[Magento\Framework\Exception\FileSystemException]
    File "D:/xampp/htdocs/zenmeds/var/view_preprocessed/pub/static/frontend/Magento/blank/en_US/info.json" cannot be opened Warning!fopen(D:/xampp/htdocs/zenmeds/var/v
    iew_preprocessed/pub/static/frontend/Magento/blank/en_US/info.json): failed to open stream: Permission denied


texts: Running MariaDB 10.3 for a Magento 1.8 install

texts: we have had a legacy magento site, and was wandering if anyone had tested mariaDB with magento 1.8 or 1.9 for compatiblity and whether upgrading our mariaDB install would cause any issues with magento 1. I am aware that mariaDB is not support, but it would be good to find out if someone has tested this in the past


texts: Add header and footer in checkout page Magento2

texts:
By default Magento 2 don't provide HEADER and FOOTER in CHECK OUT page.

So I checked checkout_index_index.xml file on path

app/design/frontend/package_name/theme_name/Magento_Checkout/layout/override/base

There is remove attribute set for header and footer

so I unset remove attribute from remove=true to remove=false.

But still header and footer is not showing in checkout page so can anyone tell me how can I get header and footer on checkout page?


texts: Magento 2 : Activation/Deactivation and uninstallation module event

texts:
I am writing an extension for Magento 2. When my extension is activated, I want to send a request to my backend to register a merchant. And when the merchant deletes my extension, I also send a DELETE request to my backend.
How can I listen to the Magento activation/deactivation and uninstallation event? (In Wordpress we have those hooks)
What package do we use for HTTP request in magento2?
Thank you very much!


texts: Error - Redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS

texts:
Not getting proper path for Codeignitor code in Magento.  Magento works absolultely fine.

Mixed Content: The page at https/test.com/test  was loaded over HTTPS, but requested an insecure favicon 'http://www.test.com/'. This content should also be served over HTTPS.


texts: Magento 2: Is there any site which is showing missing security patch?

texts:
Is there any website which is provide a report about missing security patch or which need to install ?

I just need to install patch in magento 2.1.9.


texts: Stuck in one page checkout payment information

texts:
My problem is in onepage checkout, here it is :

When I go to shipping method ,  checkout progress disappear and Error text appear .
In payment information , i cant move to next step , it stuck in there . I tried both of two method . In payment method , i enable all of them .
I open inspect element , in network tab , i see error : Failed to load resource: net::ERR_CACHE_MISS

It said error in my Block , "Links" is my block to add link to top link , its have only 1 method , here it is :

<?php
class Atom_Rewardpoint_Block_Links extends Mage_Core_Block_Template{
    public function addRewardpointLink()
    {
        $point=Mage::getModel("rewardpoint/customer")->load(Mage::getSingleton('customer/session')->getId())->getData('point_balance');
        $parentBlock = $this->getParentBlock();
        $text = 'My Points ( '.$point.' <img src= "'.$this->getSkinUrl("images/point.gif").'"/>'. ')';
        $position=1;

      // error line is method addLink  , i dont know what's wrong

        $parentBlock->addLink(
                $text, 'rewardpoint/index/info', 'My Points',true,false,$position
            );

        return $this;
    }
}


texts:
I can't understand how can I display all tags in my homepage?

There's a workable solution to display a product's tags in a product page with this code:

<?php
// instantiate the tags class for products
$_tags = new Mage_Tag_Block_Product_List();
?>

<?php foreach($_tags->getTags() as $tag):?>

<a href="<?=$tag->getTaggedProductsUrl()?>"><?=$tag->getName()?>

<?php endforeach;?>

But it doesn't work in home page.

I get error

  Fatal error: Call to a member function getItems() on a non-object in app/code/core/Mage/Tag/Block/Product/List.php on line 45

What should I do?


texts:
My custom css and Js file does not load.

I call it in page.xml file. I want to load it in home page and footer but it does not load. Check for reference site

http://meusoculos.online/


texts: The magento2.3.6 home page will not show me anything

texts: Install magento 2.3.6, and it installed fine, but when opening the page it does not show anything, but the admin page there does work


texts:
I'm confused when it comes to restoring backups. Installed Magento 2.4.2-p1, set periodical backups in webgui which can't be restored using webgui - after clicking "Rollback" nothing happens (tried in 2 different browsers and in incognito mode as well). So, I did try in cli:

bin/magento setup:rollback -m 1621213202_media.tgz

and it gave me following

The rollback file is invalid. Verify the file and try again.

Which means that gui and cli backups are not compatible?
Next I created backups in cli:

bin/magento setup:backup --code --db --media

So far, so good but not for a long, when I was trying to restore them:

bin/magento setup:rollback -c 1621428237_filesystem_code.tgz -d
1621428237_db.sql -m 1621428237_filesystem_media.tgz

I received another error:

The rollback can't be executed because not all files are writable.

Files ownership is set as:

'Magento user':'web server group'

and permissions

find var generated vendor pub/static pub/media app/etc -type f -exec
chmod g+w {} + find var generated vendor pub/static pub/media app/etc
-type d -exec chmod g+ws {} +

What am I missing?


texts:
Hello I am trying to find out how to "duplicate" the upsell products functionality.

Meaning:

An additional tab on the product edit screen - i.e. Upsell2 so the collection can be saved
Cloned Upsell block for product page that behaves same way , but uses different collection..

On first guess, it seems you could build the collection and then reuse the same block but set a diff template/collection.

But the part about building the grid + extra collection is the tricky part for me . If anyone has answers or advice it is appreciated.

Thanks!


texts:
In Magento 1 we can check the code structure from the core files(app/code/core).

How to check the Magento 2 core files fore coding structure?


texts: Magento Log folder permissions getting revoked everytime

texts:
I am using Magento ver 1.9.1.0 and I have log settings enabled in admin panel, but when I delete the existing "log" dir and whenever I call log function like Mage::log(print_r($anyData, true),NULL, 'dataprint.log'); and then when I go to log directory, it shows message "You don't have permissions to view content of this folder" in ubuntu 14.04.

Is this permission/ownership issue ?

Previously this issue wasn't there, also other folders and files permissions are fine but i can't access log without everytime giving command "chmod 777" to var/log directory.

Also if I do not delete "var/log" folder and it's files and just clear out it's files's contents, even then when I try to make new entry into log files(by calling log function) it doesn't allow me too.

Can somebody help me out here ?


texts: Subcategories manually sort order from database

texts: How can i arrange the sort order for subcategories from the database. I noticed that catalog_category_entity table has position column. Can i change the order from there ?


texts: How to Hide/Show content/text for guests/signed in customers?

texts:
I need your help with the following:
Currently using Magento 2 with Porto theme, We have Text on the home page slider/banner "BECOME A MEMBER TODAY" and a "Create an account" button which directs all new user to new registration page. The thing is when customers are already signed in to their account they still see the same banner image, text "BECOME A MEMBER TODAY" and the "Create an account" button. How can we change the text on that homepage banner so that signed in users will see different text? or even just hide that text?


texts:
I'm implementing magento plugin and I need place order programatically.
After payment is authorize (i use sales_order_save_commit_after event) i create invoice and shipping(programatically). After that order is set to processing.
Now I want to confirm order and request confirmation to payment gateway.
I assume that magento should do this automatically. But I dont know when.
When (and where) confirmation to payment gateway is triggered? Where can I find detailed information about this process?


texts: Magento 2 - Importing Configurable Products problem!

texts:
I am stuck at importing a configurable product from a CSV file. Take a look at it below:

sku,supplier_number,genuine,name,url_key,brand,price,qty,attribute_set_code,product_type,meta_title,meta_description,meta_keyword,short_description,description,specifications,categories,make,model,year_from,year_to,weight,length,width,height,base_image,small_image,thumbnail_image,swatch_image,additional_images,visibility,configurable_variations,configurable_variation_labels
10100033_Mercedes_Sprinter,BSG90900010,,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",,BSG,200,100,Default,simple,base,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",,,Category/Replacement Parts/Body Parts,Mercedes,Sprinter,2006,2016,2.2,35,43,25,,,,,,Not Visible Individually,,
10100033_VW_Crafter,BSG90900010,,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",,BSG,200,100,Default,simple,base,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",,,Category/Replacement Parts/Body Parts,VW,Crafter,2006,2016,2.2,35,43,25,,,,,,Not Visible Individually,,
10100033,,,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",mercedes-sprinter-vw-crafter-mirror-rh-door-complete-asembly-long-wire-10-2006-10100033,BSG,200,100,Default,configurable,"Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006","Mercedes Sprinter, VW Crafter, Mirror, RH Door, Complete asembly, long wire, 10/2006",,,Category/Replacement Parts/Body Parts,,,,,,,,,,,,,,"Catalog, Search","sku=10100033_Mercedes_Sprinter,make=Mercedes,model=Sprinter|sku=10100033_VW_Crafter,make=VW,model=Crafter","make=Make,model=Model"

This configurable product's SKU is 10100033. It links 2 simple products with SKUs 10100033_Mercedes_Sprinter and 10100033_VW_Crafter respectively. But after the import, the Catalog shows that 2 of 3 products imported are wrong ->

 (image link that describes the issue)

One more thing that in the configurable product detail page, the attribute order is wrong:

Here is the link to that product: http://test.rainstormstudio.com.au/machinehead/index.php/vw-volkswagen-crafter-mercedes-sprinter-indicator-lense-for-rh-mirror-10-2006-10400001.html


texts: Need to implement magento 2 tax based on product amount

texts:
I am trying to implement tax on products. There are conditions as follow.

If product amount is less than 1000 Rs then tax should be 5%
if product amount is greater than 1000 Rs then tax should be 12%

Is there already any functionality i can configure in magento 2 or do i need a custom solution for it.

For custom solution please guide me also with some reference links.


texts: Configurable products and wholesale price

texts:
I have configurable product and also it contains bunch of simple products.
For all simple products there are 2 types of group price.
1). Retailer
2). Wholesale

Above is working fine whenever any wholesaler login at front end. they can see their wholesale price.

But i don't know why this is not working with configurable products.

Any ideas ??
Any help would be appreciate.


texts: Breadcrumbs not showing full path in product page

texts:
I've been debuggin this website, and for some reason there was a variable called BASE_URL that wasn't declared and the breadcrumbs were still showing, suddenly in production they stopped appearing, when i added the variable they started showing again but didn't show the full path , in a product page, but would show the full path in a category page

I don't really know where the code is comming from , specially because i'm maintaining code from another developer that is no longer in my company :

this is the breadcrumbs.js :

/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
/* eslint-disable max-nested-callbacks, no-undef */

define([
    'jquery',
    'Magento_Theme/js/model/breadcrumb-list',
    'mage/translate'
], function ($, breadcrumbList) {
    'use strict';
    var BASE_URL;
    /**
     * @return {Object}
     */
    var homeCrumb = function () {
        return {
            name: 'home',
            label: $.mage.__('Home'),
            title: $.mage.__('Go to Home Page'),
            link: BASE_URL || ''
        };
    };

    return function (breadcrumb) {

        breadcrumbList.unshift(homeCrumb());

        return breadcrumb;
    };
});

I don't know if the code from the js is causing this error! I've seen some posts in magento.stackexchange that talked about changing the layout.xml file , but  there are like 4 files with same name and they dont specify which one !

Posts:

Post 1
Post 2

Thanks in advance !


texts:
I want to create a bundled product in my Magento store that has a fixed price but the actual items are hidden from the customer and selected after order by the administrator.

For example:

Mystery Snack Bundle $2.99

This bundle will contain:

3 healthy snacks
2 nut snacks
1 treat snack

Snacks will vary depending on season and availability.

The customer would order the bundle at $2.99. Then the admin will be able to alter the order, specifying the actual items before the order goes to Picking.

Many thanks for any advice on how to accomplish this within Magento.


texts: Get the categories alphabically ordered in list page: Magento

texts:
I am Getting the sub categories of current categories but it is showing in random way or may be according to the category ID as follows:

  <?php
  $category_ido = Mage::getModel('catalog/layer')->getCurrentCategory()->getId();
  $categories = Mage::getModel('catalog/category')->load($category_ido)->getChildren();
  $catArray = explode(',', $categories); ?>
      <?php if($categories) { ?>

              <?php
                foreach($catArray as $child)
                  {
                $_child = Mage::getModel( 'catalog/category' )->load( $child ); ?>

        <li class="item <?= $class ?> sub-cat-items">
        <a href="<?php echo $_child->getURL() ?>" title="<?php echo   $this->
        htmlEscape($_child->getName()) ?>"><img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$_child->getThumbnail() ?>" width="580" max-height="300px" alt="<?php echo
        $this->htmlEscape($_child->getName()) ?>" />

<?php echo
        $this->htmlEscape($_child->getName()) ?>

        <?php } ?>

   <?php } ?>

So now i want to sort them Alphabetically how i can achieve that.


texts: M2.3.2 : Guest customers are not redirecting on success page after place order

texts:
When I placed an order from a guest customer I am not able to get any checkout session data in success action, so that's why user is redirecting on cart page.
Not able to get following

getLastSuccessQuoteId()

getLastQuoteId()

getLastOrderId()

While I am placing an order with logged in customer then I am able to get session data on Success action.

Can any one help me? What could be the issue with guest customer?


texts: Tier price when adding product to basket - where is it calculated?

texts:
When adding a product to the basket, where exactly is the price that appears in the quote for each item calculated? (base, special, tier...)

My issue is this:

I have a simple product with a tier price with it (qty: 1 and above, customer group: special)
when I add the product to the basket, the base price is being added instead (the tier price is ignored) (customer is in the correct customer group)

BUT - I use 2 environments - dev and staging

on my dev machine, all is working fine - product is added with the tier price - all fine it the quote (sales_flat_quote_item)
on staging (where I have no access to the database), the base price is used

I am wondering if I missed any setting but can't think of any.

So my question is: wherein the code is the best place to see/check how the quoted price is being calculated when adding new candidates to quote?

using CE 1.7.0.0


texts: Best approach to limit the backorder Qty in Magento2?

texts:
This question or similar have been asked in here and here nevertheless none of the provided answers offer the result I am trying to achieve.

Lets say you want to limit the backorder qty.

You create an extra product attribute where you store the maximum quantity allowed for backorders.

So if a product has qty 10 and backorder_limit 5 you want a customer to be able to add to the cart and buy 15 but showing the message:

  "We don't have as many "xxxx" as you requested, but we'll back order the remaining 5."

If the customer try to add 1 or more to the cart you want to prevent this and show the message:

  We don't have as many "xxxx" as you requested.

and prevent the extra qty to be added to the cart.


texts: Create attribute set through installer with a custom module

texts:
I want to create a new attributeset through a custom module installer. I found this code and it works :-) Only thing missing is that he should copy the new attribute set from the exsisting default attribute set. That way he would copy all the attributes already in the default set.

For example when I create attributes I use

<?php
$installer = $this;
/* @var $installer Mage_Eav_Model_Entity_Setup */

$installer->startSetup();
$installer->addAttributeSet(Mage_Catalog_Model_Product::ENTITY, 'Stoelen');
$installer->endSetup();


texts: if custom checkbox is checked in cart, check other checkbox in checkout

texts:
I have custom checkbox in Magento cart. If user checked it, he goes to checkout (default one page) and on step 'Shipping Methods' where is block 'Do you have any gift items in your order?' and checkbox 'Add gift options' - it should be also checked. How can I do it?

I'm using Magento 1.12 Enterprise and gift wrapping default. Thanks in advance.


texts:
I have created a custom widget having Title and dropdown field and image chooser.
I wish to add dependable fields.the image uploading field is visible according with drop down menu.
widget.xml

<?xml version="1.0"?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Magento/Widget/etc/widget.xsd">
<widget id="wk_customwidget" class="Dyode\PromotionWidget\Block\CustomWidget">
    Promotion block Widget
    <description>Widget for banner blocks</description>
    <parameters>
      <parameter name="blocktitle" xsi:type="text"  visible="true" required="true" sort_order="1">
        Block Title
        <description>Enter block title</description>
    </parameter>
        <parameter name="select_type" xsi:type="select" required="true" source_model="Dyode\PromotionWidget\Model\Config\Source\Select" visible="true" sort_order="8" >
            Select option
            <description>Select type option</description>
          </parameter>
          <parameter name="desktop_image" xsi:type="block" required="true" visible="true" sort_order="10">
           DeskTop Image
           <description>Upload Image for desktop view</description>
           <block class="Dyode\PromotionWidget\Block\Adminhtml\Widget\ImageChooser">
               <data>
                   <item name="button" xsi:type="array">
                       <item name="open" xsi:type="string">Choose Image...</item>
                   </item>
               </data>
           </block>
       </parameter>
       <parameter name="mobile_image" xsi:type="block" required="true" visible="true" sort_order="10">
        Mobile Image
        <description>Upload Image for Mobile view</description>
        <block class="Dyode\PromotionWidget\Block\Adminhtml\Widget\ImageChooser">
            <data>
                <item name="button" xsi:type="array">
                    <item name="open" xsi:type="string">Choose Image...</item>
                </item>
            </data>
        </block>
    </parameter>
    <parameter name="imageurl" xsi:type="text"  visible="true" required="true" sort_order="11">
      URL
      <description>Enter reference url</description>
  </parameter>
    </parameters>
</widget>


texts: sort ordered items by product name in magento admin

texts: I want to sort items ordered by product name in magento backend. I followed this link, https://stackoverflow.com/questions/17572936/magento-change-sort-order-of-ordered-items, but what this is doing is removing products with the same name(like in configurable different simple products). Please help/


texts:
I want to set Discount Category wise.

MEN=>5%
WOMEN=>7%
SHOES=>5%
ELECTRONICS=>10%
If I create coupon for all rule customer can not apply multiple coupons in single order.
How is possible? with coupon and without coupon?


texts: Magento2: Assign products to category programatically

texts:
I want to assign product problematically to category. Magento\Catalog\Api\CategoryLinkManagementInterface using DI. below is snippet of code.

    protected $categoryLinkManagement;

    public function __construct(
    \Magento\Framework\Stdlib\DateTime\Timezone $_stdTimezone,
    \Magento\Framework\Stdlib\DateTime\DateTime $stdlibDateTime,
    \Kensium\Newproduct\Model\CategoryLink $categoryLinkManagement,
    \Magento\Backend\Block\Template\Context $context,
    \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
    array $data = []
    ) {
        $this->_stdTimezone = $_stdTimezone;
        $this->stdlibDateTime = $stdlibDateTime;
        $this->categoryLinkManagement = $categoryLinkManagement;
        $this->_productCollectionFactory = $productCollectionFactory;
        parent::__construct($context, $data);
    }

    /**
     * Method executed when cron runs in server
     */
    public function execute() {
    $pid = array();

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $newCategoryId = $objectManager->create('\Magento\Framework\App\Config\ScopeConfigInterface')->getValue('productlabels/newtodays/newcategoryid');
$saleCategoryId = $objectManager->create('\Magento\Framework\App\Config\ScopeConfigInterface')->getValue('productlabels/newtodays/salecategoryid');

    $collection = $this->_productCollectionFactory->create();
    $this->NewProducts($collection,$newCategoryId);
    $this->SaleProducts($collection,$saleCategoryId);

    }

    private function getCategoryLinkManagement()
    {
        if (null === $this->categoryLinkManagement) {
        $this->categoryLinkManagement = \Magento\Framework\App\ObjectManager::getInstance()
            ->get('\Kensium\Newproduct\Model\CategoryLink');
        }
        return $this->categoryLinkManagement;
    }
public function NewProducts($collection,$newCategoryId)
        {
        $today = $this->_stdTimezone->date()->format('Y-m-d H:i:s');
        $lastday = date('Y-m-d h:m:s', strtotime($today."+90 days"));
            $collection->addAttributeToSelect('*')
                   ->addFieldToFilter('new_to', ['lteq' => $lastday]);

        foreach($collection as $col):
            if($col->getSku()):
                $this->getCategoryLinkManagement()->assignProductToCategories(
                    $col->getSku(),
                    array($newCategoryId)
                );

            endif;
        endforeach;
        }

This work when product is assign to another category. but there is 2 problem

1)Product should assign to other category otherwise i will get error category doesn't contain product due to below code in

$this->getCategoryLinkRepository()->deleteByIds($categoryId, $productSku);

on Magento\Catalog\Model\CategoryLinkManagement :: assignProductToCategories()

2) This will remove product from other categories.

Is there any other option to achieve this?


texts: What is the use of pagefactory in Magento 2?

texts:
Although I refer some blog of pagefactory, I don't understand the use of page factory.

There is one code in the controller. Could you please explain to me how it works?

public function execute()
{
    return $this->_pageFactory->create();
}


texts: How to set menu and header in one div magento2?

texts:
In my custom theme I need to put the header and menu in one div. Now I have the following structure:

How can I add blocks in one div so I can have this structure ?


texts: Magento 1- mage-report keeps saying the security patch isn't installed

texts:
In Magento 1.9.3.0 I have installed multiple patches (supee-11314, supee-11155, supee-11219) with the success message and also clear caches (FPC, Redis, etc), refer to screenshot 1, but mage-report keeps saying the security patch isn't installed, refer to screenshot 2.
I have also cross-checked the random file which is changed after the patch applied, refer to screenshot 3 & 4.

Screenshot 1:

Screenshot 2:

Screenshot3

Screenshot 4:


texts: How to add Condition for apply Promotion rules while create order Programmatically in Magento?

texts: I want to add a condition (whether to apply the promotion rule or not as per the configuration settings) before the Promotion rule applied while create order Programmatically. Can anyone suggest?


texts: app/design/frontend/magento folder is emtpy - how do I edit my theme?

texts: I am new to Magento. I just installed Magento 2 on a MAMP local server. Everything works so far i figured out how to create all needed files in order to create my own theme. I activated it inside the backend and now I want to start to code my theme. It inherits the luma theme. After hours of reading tutorials and guides I am completely stuck. Where do I start? Let's say I want to change the background color of the header. I should be able to do this by copying and changing the parent themes content. So I copied everything inside the vendor/magento/theme-frontend-luma folder and put it into my custom theme folder which is app/design/frontend/Mypackage/mytheme Now when I activate my theme in Magento the site loads without any styling. What am I doing wrong? I am getting really frustrated and any help is much appreciated. Thanks!


texts:
As per default Magento 2 behavior, any message like success, error or notice, etc hide after 5 seconds.
I don't want to hide any message so that user can read message.

See below image that display error message but hide after 5 seconds.

I have override below files but not affect at all.

ROOT_FOLDER/vendor/magento/module-ui/view/frontend/web/js/view/messages.js

ROOT_FOLDER/vendor/magento/module-theme/view/frontend/web/js/view/messages.js

I have put above two files in my theme like below.

ROOT_FOLDER/app/design/frontend/Abc/xyz/Magento_Ui/web/js/view/messages.js

ROOT_FOLDER/app/design/frontend/Abc/xyz/Magento_Theme/web/js/view/messages.js

But not working. Please help me how to unhide M2 messages.


texts:
I am creating system.xml file for the custom image upload and i want to display uploaded images on product detail pages.
can any one help me?
i am using magento-1.9.2.3 version.


texts: How best can I structure product configuration for SEO?

texts:
We have concerns over the structure of our store - Products and categories - In terms of SEO and findability of products.

Say you have a configurable product (T-shirt) with 3 configurations (Colour, Size, Logo) - Correct me if I am making wrong assumptions but if you were just to have the configurable products on your store, your ranking for 'Blue T-shirt' would be a lot lower than if you had the specific simple products on your site?

The layered navigation/filters are bad for SEO so that is unlikely to help us in this situation - One way to get around it to be able to use configurable products and have simple products (that are canonically linked top the configurable) in more specific categories so your category structure would be:

T-shirts (contains configurable)

Blues T-shirts (Contains simple products)
Red T-shirts (Contains simple products)
Large T-shirts (Contains simple products)
Design 1 T-shirts (Contains simple products)

Would this be an appropriate way to structure categories or products? Is this overkill?

I would love any input and I hope I am missing something as the above category structure seems convoluted to me (you would end up with loads of categories in your layered nav?) - What is the best way to handle this?


texts:
I am using Magento 2 website. I got the error like following when redirecting to checkout/cart page.

Once deleted all the products in cart and tried to add all the products again and its seems to be no error there.

May I know, what can be issue. I can't track the issue.

  {"0":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add
  or update a child row: a foreign key constraint fails
  (stateofh_magento2.quote_shipping_rate, CONSTRAINT
  QUOTE_SHIPPING_RATE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID FOREIGN KEY
  (address_id) REFERENCES quote_address (address_id) ON DELETE C),
  query was: INSERT INTO quote_shipping_rate (address_id, carrier,
  carrier_title, code, method, method_description, price,
  method_title) VALUES (?, ?, ?, ?, ?, ?, ?, ?)","1":"#0
  /chroot/home/stateofh/hockeylodge.com/html/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(93):
  Zend_Db_Statement_Pdo->_execute(Array)\n#1
  /chroot/home/stateofh/hockeylodge.com/html/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303):


texts: how to create coupon code in magento only for admin created order?

texts: I want to show discount just only when  admin create order but not show on fornt end how can I achieve this?


texts: How to add maxlength to street address column in backend via data patch

texts: I would appreciate any help on how to add maxlength to street address column in backend via data patch


texts: how to create a currency exchange rate attribute for some products

texts:
I want to create a attribute (price attribute, i think) to convert the price of some products from Euro in RON (romanian currency), in the back end.
I have default/only currency in RON, but some suppliers have reference price in euro.
So, i want to imput the price in euro (not for all products), and the attribute must convert from Euro in RON, like 1 Euro is 4.52 RON.
Or the attribute to multiply the price with 4.52, and the catalog price will be only in RON currency.

Any advices ?
Thank you,


texts: Magento not finding theme in local instance after MYSQL import

texts:
I have a local & remote Magento instances that are branches on the same repo. I exported the remote MYSQL  database (which has all the products and settings I need) and imported it into the local instance. After that, I followed all the necessary things to make it operate properly. Everything is working, but somehow the local instance isn't finding my theme, and it is falling back to the "base" default theme appears on the home page.

Since the file structure and databases are the same, and everything but the theme is working, I'm having trouble working out why the theme would appear on the remote instance and not on the local instance.

Here is a list of things I did to make the local instance work after importing to make it work (This should help rule out some factors):

Changed the base url
Deleted /var/cache/ & /var/session/
In System > Configuration > General > Design, set Current Package name to "mytheme" & Templates to "default" (for Default Config. This follows the file structure. Same structure works on remote instance.)

Some other thing to take into consideration:

The is that the remote server has two stores, one at store.site.com and another at themedev.store.site.com. Due to the issues, on the local instance, I deleted the themedev store and have the default store pointing to http://themedev:8888/, which I set up using Mamp Pro. In System > Configuration > General > Web for the Base URL. (I tried changing the scope to Main Website & and Default Store View, but it had no effect.)
System > Configuration > Developer > CSS Settings > Merge CSS Files is set to "No" (JavaScript Settings also).
System > Design is empty.

So, I feel like I've exhausted the possibilities of what could be causing the issue.

Any idea what might be causing this?

Thanks.


texts:
I have created a custom api and add some getters and setter, I'm looking to find out if it's possible to pass key pair values in the post without having to set the setters. When I call the api I get an exception and in my exception log:

...Message: Property "MyItemId" does not have corresponding setter in
class "Vendor\Module\Api\CustomRefundInterface"...

My request:

{
    "test": [
        {
            "MyItemId": "157061",
            "Quantity": "1",
            "Amount": "44.99",
            "MoreStuf": {
                "Code": "200",
                "Name": "OK"
            },
            "comments": "Just another Comment"
        }
    ]
}

Can I send any key pair value without having to worry about the setters and how?

Any help Thanks


texts:
I can not open any product anymore in backend.

After some seconds, Magento error page shows up, with following error report:

a:5:{i:0;s:31:"Read timed out after 10 seconds";i:1;s:4472:"#0 /lib/Zend/Http/Client/Adapter/Socket.php(329): Zend_Http_Client_Adapter_Socket->_checkSocketReadTimeout()

What causes this issue and how can I solve this?

I am running Magento CE 1.9.3.2.


texts:
First of all I'm trying to load grid container and show container heading. My block file is working fine.
Container path is Super->Awesome->Block->Adminhtml->Awesome.php which contains

<?php
class Super_Awesome_Block_Adminhtml_Awesome extends Mage_Adminhtml_Block_Widget_Grid_Container
{
    public function __construct()
    {
        $this->_blockGroup = 'super_awesome';
        $this->_controller = 'adminhtml_awesome';
        $this->_headerText = Mage::helper('super_awesome')->__('Manage');
        parent::__construct();
    }

}

layout file super_awesome.xml

<?xml version="1.0"?>
<layout>
    <adminhtml_example_index>
        <reference name="content">
            <block type="super_awesome/adminhtml_awesome" name="super_awesome"></block>
        </reference>
    </adminhtml_example_index>
</layout>

If I echo something inside public function __construct(), it's showing content but on adding proper __contruct() method as above it's showing a blank page.
Do I need to add internal block(Grid.php) also, then my container text will appear? Container block Awesome.php should be changed to Grid.php?

Config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Super_Awesome>
            <version>0.1.0</version>
        </Super_Awesome>
    </modules>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <super_awesome before="Mage_Adminhtml">Super_Awesome</super_awesome>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
    <adminhtml>
        <layout>
            <updates>
                <super_awesome>
                    <file>super_awesome.xml</file>
                </super_awesome>
            </updates>
        </layout>
    </adminhtml>
    <global>
        <blocks>
            <super_awesome>
                <class>Super_Awesome_Block</class>
            </super_awesome>
        </blocks>
        <helpers>
            <super_awesome>
                <class>Super_Awesome_Helper</class>
            </super_awesome>
        </helpers>
    </global>
</config>


texts:
We have a shop that will be  launched in 50 countries and in 30 languages. What is the best practice for a multilanguage shop?

Each shop will use its own domain but will be based on the same backend.

What we need:

Translation of texts in the theme
Translation of the content category and product pages

We will use webtranslateit.com as translation tool which can export to a wide variety of formats. One of them being PHP arrays.

Is there any ready to use extentions that does this or do we have to come up with our own solution? Any suggestions or links that demonstrates how we best can do this will gladly be received.


texts: Magento 2 : How to Customise Admin Sales Order Grid Collection

texts:
I am trying to customise admin sale order grid collection.
I have created an custom sale_order attribute store_manager. These store managers are admin users eg: 'manager1', 'manager2'.

1) Orders are manually assigned to 'manager1' or 'manager2' -- this part is done

2) Now I am trying to set filter on sale order grid collection, so when manager logged in to there system they can only see there orders.

In Magento 1 we have sales_order_grid_collection_load_before, sales_order_grid_collection_load_after for this requirement .

Is tried to such event for Magento 2 but didn't get any success.

My Queries :

Is there any such event like (sales_order_grid_collection_load_after) in magento 1 which full fill my requirement?

Is there any other way where I can set filter to sale order grid collection?

Note : I already search for this on google but didn't get any perfect solution.


texts: How to Create CRUD operations with Admin Grid in Magento 2

texts:
How to create the CRUD operations with Admin Grid in Magento 2?
I want to :

First of create frontend input form.
frontend input form data get in admin grid.
In admin grid Create delete options.
In admin Grid Create edit (UPDATE) options.

How to achieve this. Please give the best way and the solution.
Thanks.


texts: Cc-avenue Currency Conversion Issue with MCPG extension Magento

texts:
I'm Using Magento Extension For Cc-avenue by BlueZeal Which supports Multiple Currency
By base Currency In INR  Store is INR with Country = India Supported
Base Currency In International Store : Dollar , All Country Supported

while Generating Bill The Currency Is Showing Proper Eg for 22$ its 1430 INR aprox.and vise versa showing correct but when its redirecting to CCAVENUE payment page it takes 22$ as 22 INR .

I have tried Solutions SImilar to this issue on SO but none of them worked!

https://stackoverflow.com/questions/28382883/magento-paypal-payment-showing-100-inr-as-100-usd
How to change currency on checkout with paypal
https://stackoverflow.com/questions/28043933/convert-to-usd-payments-made-with-paypal-for-unaccepted-currencies-in-magento
paypal express checkout for AED currency
INR not convert in to dollar in paypal in magento 1.9.1

Attached Is the Screenshot of The settings in admin panel

For the issue


texts: Integrate WYSIWYG TinyMCE in Admin Custom Module and Contact Us / CMS Page

texts:
I followed this blog to add WYSIWYG editor (TinyMCE) in my custom Admin Magento Module. I can see it in my backend, but the issue is when I click on Insert Image, Insert Variable or Insert Widget, it shows me JS error in my Error Console.

Could someone shed some light on how to integrate WYSIWYG in backend as well as on frontend (ex: Contact Us Page) with the correct Magento approach.

Thanks


texts: Showing static block only to specific customer group

texts:
I have a webshop were I have to hide away the login and create user form, because I only want customers with a specific link to be able to register. When they have registered they will be able to see a category that only they have a link for.
What I want to do is create a static block that contains links to this category, customers dashboard etc. that only logged in users/or users in a specific customer can see.
How can i achieve this?


texts: Create a attribute set and add an attribute to it

texts:
How to create an attribute set set of the set attribute inherited from default and add a simple attribute to it that will be in the 'Content' group of the product

Use UpgradeData because magento 2.2.2

I found such a method, but I do not see the inheritance from the Default Attribute set

How to create attribute set and attribute in Magento 2 programtically


texts:
I want to add in layered navigation filter by stock.
Example:
filter by

Product in stock
Product out of stock

Which block or model i must to rewrite?


texts: get - admin create order link and specify customer (for manual orders)

texts:
I want to generate a link to the sales create order page (manual order page) in the admin and submit a customer id so that it opens automatically with the customers details filled out in the address form.

  index.php/admin/sales_order_create/index/key

I know sometimes a $this->getUrl('path') works but I can't find any instructions online for setting a customer before the page loads. A solution like the following would obviously be ideal.

 $this->getUrl('sales/order/create/', $customer_id);


texts:
Can't be sure when or how this broke, but when visiting the Wishlist page or attempting to add a product to my Wishlist I am presented with 'Cannot specify product.' (See attachment)

This functionality was previously working fine. This is happening on my local version and on staging version. Is there a quick/easy way to decipher where the problem is stemming from?

Edit: I've clearly broken something. Console is throwing up a 400, also with the message 'Cannot specify product.'

From what I can gather all my products exist and have IDs. Has anyone experienced anything similar to this with Magento 2?


texts: Magento 2: Catalog rules in custom ui form is empty on editing

texts: I am working on extension in which I have add catalog rules conditions in my UI form. I am storing as serialized condition. It saves perfectly. However, I am getting empty field during edit form.


texts:
How to show swatch images on the info tab in the product page?
by default, magento2 shows the value of swatches in the info tab on the product page and shows swatch images on top of product for configurable products.
but I want to show swatch image instead of the value in more info tab.
EX. I have an attribute name test and has 3 options(toy-with image 1, girl-with image2, boy- with image 3) I want to show image 1 on the product more info tab on product page instead of show toy. on Magento 2.1. thanks
Use swatches icon instead of text on any page


texts: Magento2 How to generate only configurable products URLs in url_rewrite table?

texts: I have the very large number of products and my url_rewrite table have very large numbers of rows so It was possible to only generate configurable product URLs, not any simple products URLs?


texts: Magento 2 : Get backorders and update backorders status by specific product

texts:
I want to get back orders by specific product id and update product's back orders status by specific product.

Any help would be appreciated.

Thanks.


texts: Source location for variables that can be change e.g background-color - Magento 2

texts:
Sorry for the simply question,

I've seen in several posts that people have made a new theme and changed say the background of the homepage and would like to know where these variables are located. I know you have to make a new .less file however i'm unsure of how to correctly call variables to change aspects of my page.

How do you know the name of the variables, for example, the'background-color'? Where are the source files located?


texts: Is there any way(fast and easy) to move store(database and design) from Magento Enterprise to Magento Go?


texts: Show all configurable product options, even if out of stock

texts: How to show all configurable product options even if those products out of stock, not salable. Just need to show all options always. Magento 1.9


texts:
Recently i have moved my application to dedicated server from VPS. On VPS Soap API is working good on VPS, but after moving to dedicated server its not working.

I have enabled PHP Open SSL, xmlrpc, php-soap extension, but still not working.

i have prepared a test file to test SOAP API

<?php
    ini_set('display_errors', 1);
    ini_set("default_socket_timeout", 6000);
        echo $host = "www.host.com/index.php"; //our online shop url
        $client = new SoapClient("http://".$host."/api/soap/?wsdl"); //soap handle
        $apiuser= "user"; //webservice user login
        $apikey = "key"; //webservice user pass
        $action = "sales_order.list"; //an action to call later (loading Sales Order List)

        try {

          echo $sess_id= $client->login($apiuser, $apikey); //we do login

    die;

        print_r($client->call($sess_id, $action));
        }
        catch (Exception $e) { //while an error has occured
            echo "==> Error: ".$e->getMessage(); //we print this
               exit();
        }
?>

It give me below  error message

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.sanasana.com/index.php/api/soap/?wsdl' : XML declaration allowed only at the start of the document in /var/www/html/sanasoap.php:5 Stack trace: #0 /var/www/html/sanasoap.php(5): SoapClient->SoapClient('http://www.sana...') #1 {main} thrown in /var/www/html/sanasoap.php on line 5

I have also give full permission to /tmp folder.

Note: New dedicated server is a cloud server with Load balancer in front.

Can you one please help me out.

Thank you


texts: Magento 2: composer fatal error while trying to update the composer or installing extensions

texts:
I have a very annoying problem on my Magento 2.3.3 installation. The composer doesn't work properly. I can't run any composer update, composer require etc. Every-time I try to do that, it gives me this error:

Fatal error: Uncaught TypeError: Return value of Magento\InventoryComposerInstaller\Plugin::initModuleDeployment() must be an instance of Magento\InventoryComposerInstaller\void, none returned in /vendor/magento/inventory-composer-installer/src/Plugin.php:69
Stack trace:
#0 [internal function]: Magento\InventoryComposerInstaller\Plugin->initModuleDeployment(Object(Composer\Script\Event))
#1 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#2 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#3 phar:///opt/cpanel/composer/bin/composer/src/Composer/Installer.php(204): Composer\EventDispatcher\EventDispatcher->dispatchScript('pre-update-cmd', true)
#4 phar:///opt/cpanel/composer/bin/composer/src/Composer/Command/UpdateCommand.php(162): Composer\Inst in /vendor/magento/inventory-composer-installer/src/Plugin.php on line 69

Before answer this question saying "This is a compatibility issue, try to verify your memory limit, php version etc etc", this is NOT a compatibility issue.

I have enough memory limit and I have PHP 7.1 installed.

PS, even if I try to run the composer ignoring requirements (--ignore-platform-reqs) it gives me the same error!

PLEASE, I need somebody to help me on that!