texts:
I'm trying to add a plugin for Magento\Catalog\Model\Product\Type\AbstractType.

I've got a di.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Catalog\Model\Product\Type\AbstractType">
        <plugin name="plugin_abstracttype" type="MyModules\Module1\Plugins\AbstractType"/>
    </type>
</config>

and corresponding MyModules\Module1\Plugins\AbstractType class:

namespace MyModules\Module1\Plugins;

use Magento\Quote\Model\Quote\Item;

class AbstractType
{
    protected $logger;

    public function __construct(\Psr\Log\LoggerInterface $logger)
    {
        die('constructor');
        $this->logger = $logger;
        $this->logger->warning("constructor called");
    }

    public function beforePrepareForCart(\Magento\Catalog\Model\Product\Type\AbstractType $abstractType, \Magento\Framework\DataObject $buyRequest, $product)
    {
        die('prepareForCart');
        $this->logger->warning("called prepareForCart");
        return [$buyRequest, $product];
    }

    public function beforeCheckProductConfiguration(\Magento\Catalog\Model\Product\Type\AbstractType $abstractType, $product, $buyRequest)
    {
        $this->logger->warning("called checkProductConfig");
        return [$product, $buyRequest];
    }
}

For some darn reason, none of the methods (not even the constructor) ever get called.

I have already:

bin/magento cache:flush
rm -rf generated/*
bin/magento setup:upgrade
bin/magento setup:di:compile

Unfortunately, none of these helped. Other plugins in this module work just fine.


texts: When I set client side less compilation shows me error

texts:
Hello I am new in developing in Magento, I have Magento CE. When I set the Front End development workflow to type client side less compilation shows me an error

  Fatal error: Uncaught TypeError: Argument 4 passed to
  Magento\Developer
  \Model\View\Asset\PreProcessor\FrontendCompilation::processContent()
  must be an instance of
  Magento\Framework\View\Asset\File\FallbackContext, instance of
  Magento\Framework\View\Asset\File\Context given, called in
  C:\xampp\htdocs\magento\vendor\magento\module-developer\Model\View\Asset\PreProcessor\FrontendCompilation.php
  on line 90 and defined in
  C:\xampp\htdocs\magento\vendor\magento\module-developer\Model\View\Asset\PreProcessor\FrontendCompilation.php:107
  Stack trace: #0
  C:\xampp\htdocs\magento\vendor\magento\module-developer\Model\View\Asset\PreProcessor\FrontendCompilation.php(90):
  Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation->processContent('e6a662994948b56...',
  '@import 'source...', '',
  Object(Magento\Framework\View\Asset\File\Context)) #1
  C:\xampp\htdocs\magento\vendor\magento\module-developer\Model\View\Asset\PreProcessor\PreprocessorStrategy.php(74): Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation->
  in
  C:\xampp\htdocs\magento\vendor\magento\module-developer\Model\View\Asset\PreProcessor\FrontendCompilation.php
  on line 107

My mode is set it to developer mode.
Any consideration for that?


texts:
I'm using Modifier class to disable some ui components on admin screen. But when I implemented modifyMeta() method, some of the needed ui components not included in the metadata array (eg: gallery)
So how can I modify these component? T4R.
public function modifyMeta(array $meta)
{
    $canEditApplication = ObjectManager::getInstance()->get(AuthorizationInterface::class)->isAllowed('ScPortal_Backend::application_save');

    if (!$canEditApplication) {
        $meta['product-scheduler']['children']['ew_schedule_start_date']['arguments']['data']['config'] = [
            'disabled' => true
        ];
        $meta['product-scheduler']['children']['ew_schedule_end_date']['arguments']['data']['config'] = [
            'disabled' => true
        ];
        $meta['product-scheduler']['children']['ew_schedule_status']['arguments']['data']['config'] = [
            'disabled' => true
        ];

        $meta['gallery']['arguments']['data']['config'] = [
            'componentType' => 'container',
            'disabled' => true
        ];
    }


texts: Fatal error: Call to a member function isRequired() on a non-object in app/code/core/Mage/Captcha/Model/Observer.php on line 167

texts:
I am getting a the fatal error message below appear on random occasions:

  Fatal error: Call to a member function isRequired() on a non-object in
  {SERVER_PATH}app/code/core/Mage/Captcha/Model/Observer.php on line 167

The fatal error takes down both the frontend and admin. The only way that I can seem to resolve the issue when it occurs is by restarting the server. After restarting the server the website can go up to 2 - 3 weeks without the issue repeating itself.

Has anybody come across this same issue before or know how it can be resolved?


texts: How to change Shipping Method title in magento checkout page

texts:
I want to change Shipping Method title on checkout page as shown in below image-

I tried to do following below links, but dont know which block class to overwrite.

http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/

Here is what I tried-

<blocks>
  <methods>
    <rewrite>
      <shipping_method>Emizentech_Restricteway_Checkout_Block_Onepage_Shipping_Method</shipping_method>
    </rewrite>
  </methods>
</blocks>

and created this file in my module--

Emizentech/Restricteway/Checkout/Block/Onepage/Shipping/Method.php

EDIT:-
I want to change 'Shipping Method' title to 'unloading Method' only when my quote grand total is greater than $1100.

Here is my updated files-
config.xml-

<config>
  <modules>
    <Emizentech_Restricteway>
      <version>1.0</version>
    </Emizentech_Restricteway>
  </modules>
  <global>
    <blocks>
      <restricteway>
          <class>Emizentech_Restricteway_Block</class>
      </restricteway>
      <checkout>
          <rewrite>
              <onepage_shipping_method>Emizentech_Restricteway_Block_Checkout_Onepage_Shipping_Method
              </onepage_shipping_method>
          </rewrite>
      </checkout>
    </blocks>
    <helpers>
      <restricteway>
        <class>Emizentech_Restricteway_Helper</class>
      </restricteway>
    </helpers>
</global>
</config>

Emizentech/Restricteway/Block/Checkout/Onepage/Shipping/Method.php-

class Emizentech_Restricteway_Block_Checkout_Onepage_Shipping_Method  extends Mage_Checkout_Block_Onepage_Shipping_Method
{
    protected function _construct()
    {
        $cartGrandTotal = Mage::helper('checkout')->getQuote()->getGrandTotal();
        $conditionOrderAmount = Mage::getStoreConfig('setting/setorder/order_amount');
        if($cartGrandTotal > $conditionOrderAmount)
        {
            $this->getCheckout()->setStepData('shipping_method', array(
                'label'     => Mage::helper('checkout')->__('Unloading Method'),
                'is_show'   => $this->isShow()
            ));
        }
        else
        {
           $this->getCheckout()->setStepData('shipping_method', array(
                'label'     => Mage::helper('checkout')->__('Shipping Method 456'),
                'is_show'   => $this->isShow()
            ));
           parent::_construct();
        }

    }

    /**
     * Retrieve is allow and show block
     *
     * @return bool
     */
    public function isShow()
    {
        return !$this->getQuote()->isVirtual();
    }
}


texts: layered navigation for custom product collection on custom page

texts:
I'm working on a module where some products have an attribute named designer. and for every designer, all products by him displayed as catalog category view. So far I'm able to filter the products collection by designer attribute and successfully display them as the catalog category view page.

But now the problem is, I need to display a layered navigation for those product which may be filtered by price and all.

Is there a way that I could add layered navigation in that filtered product collection?


texts: Magento 1.9X Role Resource Tree customization?

texts:
I want to customize Role Resources module tree that is showing when we add/edit a role.
I found some files that are responsible for this :

For Front End(admin) :
app/design/adminhtml/default/default/template/permissions/rolesedit.php
For Backend(Functionality) : (Check this one)
app/code/core/Mage/Adminhtml/Mage/Block/Permissions/Tab/Rolesedit.php

Please let me know what I can do, I need to hide some modules from this tree.


texts: Magento 1.9 - how to set rules to invalidate old “version numbers” for the cache’s store on the client’s local computers

texts:
I have been suffered from users on my website couldn't see the update because of cache. On searching on Google, most of posts are noted like just flushing cache on back-end site and via FTP.

Btw even me from development team, when i didn't clear cache on my own browser, i couldn't see the image i just updated.

So i want to know about cache management which can control how quickly client's will see updated version of our site.
And option our development team can pursue is cache management via .htaccess. I would need to set rules to invalidate old “version numbers” for the cache’s store on the client’s local computers.

Could you share your opinion about this? Thank you so much!


texts: how to replace text with another like to mail merge?

texts:
I am working in Magento, and i have developed a module to send text messages to customers. In the settings of the module, the admin can set the message that will be sent to the customer. I'm trying to add a features that will allow the replacement of texts with data from my database.

for example, i currently have the following code that fetches the saved settings for the body of the text message:

$body = $settings['sms_notification_message'];

The message that is fetched looks like this:

Dear {{firstname}},

your order ({{ordernumber}}) has been shipped.
tracking#: {(trackingnumber}}

Thanks for your business!
{{storename}}

The goal is to have the module replace the variables in "{{ }}" with the customer and store information.
Unfortunately, i'm unable to figure out how to make it replace the information before sending the message. It is currently being send as is.


texts: 404/410 responses. Either fix the broken links or remove the references to non-existent

texts: following errors are returned when our site is tested on gtmetrix. Could you please share your insights into how to resolve them?


texts: How to display filtered content after clicking on static block link on the basis of attribute?

texts:
I have create static block with some hyperlinks name as "lenovo" "samsang" "HP" and also having attribute drop-down name as "camera_megapixel" with values "2mp" , "5mp" "8mp" . after clicking on "lenovo" link of static block there will be only open those mobile which having "2mp" and after clicking on "samsang" link of static block there will be only open those mobile which having "5mp" and so on. Thanks in advance.

Following is my static block content,

Mobile

lenovo

samsang

HP

I have followed this link https://www.atwix.com/magento/products-list-cms/
but not getting.please help

Thanks in advance.


texts: Magento2 loading admin layout and template in a new page

texts:
I can't get my head wrap around this.

I have this controller

namespace   Vendor\Gift\Controller\Adminhtml\Gift;

use Magento\Backend\App\Action\Context;

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

    /**
     * @param \Magento\Backend\App\Action\Context $context
     */
    public function __construct(
            Context $context
    ) {
        parent::__construct($context);
    }

    public function execute()
    {
        $resultPage = $this->resultFactory->create(\Magento\Framework\Controller\ResultFactory::TYPE_PAGE);
        return  $resultPage;
    }

}

This layout in view/adminhtml/layout/vendor_gift_index.xml

EDIT:

Changed layout to  view/adminhtml/layout/gift_gift_index.xml
after this answer

https://magento.stackexchange.com/a/102800/36102

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="styles"/>
    <body>
        <referenceContainer name="content">
           <block class="Vendor\Gift\Block\Adminhtml\Gift\Index"  name="vendor.gift.index"
                    template="Vendor_Gift::gift/index.phtml"  />
        </referenceContainer>
    </body>
</page>

And a template file in:

view/adminhtml/templates/gift/index.phtml

and a block

namespace   Vendor\Gift\Block\Adminhtml\Gift;

class Index extends  \Magento\Backend\Block\Template
{
    protected $_template = 'gift/index.phtml';

    public function __construct(
            \Magento\Backend\Block\Template\Context $context
    ) {
        parent::__construct($context);
    }

    protected function _toHtml() {
        return $this->_template;
    }
}

Why is my output on the page just showing :

Vendor_Gift::gift/index.phtml

instead of the html from the template. Really stuck on this and so close... someone help, please


texts: Magento 2 Cross Sell products layout are breaking in shopping cart page even in default Theme

texts:
We are facing a issue with the Cross Sell products layout in shopping cart page.
The product items that are rendered are not loading in proper HTML structure and resulting the items layout to beak.
The product Items are rendered from the below file path, and the same will load in PDP page as well. But in PDP page it loads perfectly fine. Only in cart part we are facing this issue.

vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml

We have custom theme but to confirm we switched to Luma and Blank theme. Even in Magento default theme we are facing this issue.

Please help !
I have attached a few screenshots that can explain the issue better.
1. HTML Inspect

2. Frontend


texts: Magento 2 , error {"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"address"}}

texts:
An Error {"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"address"}}

This error appears
while placing an order with a new billing address, even when all field has values/info.


texts: Load custom layout handle after catalog_category_view

texts:
I am currently trying to load a custom layout handle after the catalog_category_view handle through the use of an observer that looks for the event catalog_controller_category_init_after.

The layout handle works when removing blocks, however ignores any layout update that adds a block to the layout.

Am I using the correct event to load the handle?
Is there a better way of loading the custom layout handle?


texts: Create a reminder for incomplete orders in admin

texts:
I need to get a list of customers that did not pay yet every 2 days in my mail or anything to keep track on them.

How can I create a notification for orders that are not completed?


texts: Get custom attribute to transasctional email

texts: I am trying to retrieve a customer attribute in a transactional mail. In my editor at the back-office, I put {{var request.getCustomAttribute ()}, but it doesn't work. What is the method to retrieve the custom attribute?


texts: Magento : Validate Product against shopping cart rule

texts:
I have a Shopping cart rule which applies to a particular category with some discount.

I have a situation wherein I want to validate product against this rule whether this rule can be applied to that product or not.

I have tried following code, but it gives me Boolean true all the time.

protected function validate($product) {

        $coupon_code = Mage::getSingleton('checkout/session')->getQuote()->getCouponCode();
        $oCoupon = Mage::getModel('salesrule/coupon')->load($coupon_code, 'code');
        $oRule = Mage::getModel('salesrule/rule')->load($oCoupon->getRuleId());

        // Sales Rule Id of the coupon we want to validate
         $ruleId = $oCoupon->getRuleId();
        //echo "<br />";
        // Id of Product we want to validate
        $productId = $product->getId();

        /** @var Mage_SalesRule_Model_Rule $salesRule */
        $salesRule = Mage::getModel('salesrule/rule')->load($ruleId);

        /** @var Mage_Catalog_Model_Product $product */
        $product = Mage::getModel('catalog/product')->load($productId);

UPDATE 1: Tried with the following code also. But thats returning nothing.

<?php

set_time_limit(3000);
ini_set('memory_limit', '-1');
include_once 'app/Mage.php';
umask(0);
Mage::app();

$product_ids = array(1199, 1200, 1202);
foreach ($product_ids as $productId) {

    Mage::getSingleton('core/session', array('name' => 'frontend'));

// Get customer session
    $session = Mage::getSingleton('customer/session');

// Get cart instance
    $cart = Mage::getSingleton('checkout/cart');
    $cart->init();
<?php

set_time_limit(3000);
ini_set('memory_limit', '-1');
include_once 'app/Mage.php';
umask(0);
Mage::app();

$product_ids = array(1199, 1200, 1202);
foreach ($product_ids as $productId) {

    Mage::getSingleton('core/session', array('name' => 'frontend'));

    // Get customer session
    $session = Mage::getSingleton('customer/session');

    // Get cart instance
    $cart = Mage::getSingleton('checkout/cart');
    $cart->init();

    echo $coupon_code = Mage::getSingleton('checkout/session')->getQuote()->getCouponCode();
    $oCoupon = Mage::getModel('salesrule/coupon')->load($coupon_code, 'code');
    $oRule = Mage::getModel('salesrule/rule')->load($oCoupon->getRuleId());

    // Sales Rule Id of the coupon we want to validate
    $ruleId = $oCoupon->getRuleId();

    /** @var Mage_SalesRule_Model_Rule $salesRule */
    $salesRule = Mage::getModel('salesrule/rule')->load($ruleId);

    /** @var Mage_Catalog_Model_Product $product */
    $product = Mage::getModel('catalog/product')->load($productId);

    $item = new Varien_Object();
    $item->setProduct($product);
    echo $isValid = $salesRule->getConditions()->validate($product);
}
?>
        $item = new Varien_Object();
        $item->setProduct($product);

        $isValid =  $salesRule->getActions()->validate($item);

        return $isValid; //Returning true always
    }


texts: How to add swatch data in Layered navigation aggregations in graphql?

texts:
How to add swatch data in Layered navigation aggregations in Graphql? Magento provides swatch data to filters [LayerFilter] but this is DEPRECATED so we use aggregations for the filter.
Below query is working
{
  products(filter: {category_id: {eq: "4"}}) {
    filters {
      name
      filter_items_count
      filter_items{
        label
        value_string
        items_count
        ... on SwatchLayerFilterItemInterface {
            swatch_data {
               type
               value
        }
      }
    }
  }
}
}

For Aggregation filter layered navigation not working(Swatch Data)
{
  products(filter: {category_id: {eq: "4"}}) {
  aggregations {
    attribute_code
    count
    label
    options {
    label
    value
    count
      ...on SwatchLayerFilterItemInterface {
        swatch_data {
          type
          value
        }
      }
    }
  }
  }
}

Anyone idea about this? Can anyone help me with this?


texts: Change block type programmatically from controller

texts: How i can change block type programmatically from controller.


texts: how to add my custom js to footer vai reference

texts:
i want to add custom js to footer:

i am using below code in admin > category > custom design

<reference name="footer">
<action method="addJs"><script>design/fabric_with_gestures.js</script></action>
</reference>


texts: How to delete the summary table in minicart page Magento 2

texts:
I want to remove the summary from this page

and how to remove shipping method  and the part of price and product from this page


texts: How do I combine two product collections into one observer?

texts:
Can this be added to an observer like in my code in: How to set products in stock after import ?

I currently have a module I created that will check the sites prices.
It is currently just a page inside the admin that will show all the products that have special prices in a table.
The code itself is simple.
Check if the special price is equal to the product price or if it is equal to 0.
If it is change it to a blank.

<?php
    $_productCollection = Mage::getModel('catalog/product')->getCollection(); /* get the collection */
    $_productCollection->addAttributeToSelect('*'); /* select all attributes */
    $_productCollection->addAttributeToFilter('special_price', ['notnull' => true]); /* check if special_price is not null or empty */
    $_productCollection->addAttributeToSort('special_price', 'asc'); /* sort the special price */
    $_productCollection->getSelect(); /* get selection from database */
    Mage::getModel('review/review')->appendSummary($_productCollection); /* i have no idea what this does */
    $_helper = $this->helper('catalog/output');
    foreach ($_productCollection as $_product):
        $price = $_product->getPrice(); /* value of price */
        $specialprice = $_product->getSpecialPrice(); /* value of special price */
        $tprice = trim($price);
        $tspecialprice = trim($specialprice);
        /* check if special price equal to price and set empty */
        if($tprice==$tspecialprice) {
            $_product->setSpecialPrice("");
            $_product->getResource()->saveAttribute($_product, 'special_price');
        }
        /* check if special price equal to zero and set empty */
        if($tspecialprice==0) {
            $_product->setSpecialPrice("");
            $_product->getResource()->saveAttribute($_product, 'special_price');
        }
    endforeach;
?>

Can this be optimized?


texts: Clone the cart as a new step checkout Magento 2

texts:
I need to change the checkout flow in Magento by adding the cart as part of the checkout.

When the user clicks to add the product go straight to the checkout containing the cart

give me a hint! Thank you!


texts:
I'm trying to overwrite tier_prices.phtml file.

mkdir -p app/design/frontend/Vendor/Namespace/Magento_Catalog/view/base/templates/product/price/

nano app/design/frontend/Vendor/Namespace/registration.php

/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

use \Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Vendor/Namespace', __DIR__);

nano app/design/frontend/Vendor/Namespace/theme.xml

     Custom Tier Prices
     Magento/luma

nano app/design/frontend/Vendor/Namespace/Magento_Catalog/view/base/templates/product/price /tier_prices.phtml

tier_prices.phtml is original file copied from vendor folder with my editing.

rm -rf pub/static/* generated/* var/view_preprocessed/*

php bin/magento setup:di:compile

php bin/magento setup:di:static-content:deploy -f

Check from admin>content>configuration>design configuration of my view -> set my custom theme

SAVE
nothing works!!! Why?
I try to change Magento_Catalog with Magento_ConfigurableProduct but it's not work.
Thanks for any answer


texts: Strip Payment Gateway Issue with Magento 2.3.4

texts: After I integrated the stripe payment gateway. I can see this error. Once I place the order then I can see this error. Once I see in Admin then Order is placed. Can you please help me to resolve this?


texts:
when I use this method to get custom attributes

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_product = $objectManager->get('Magento\Catalog\Model\Product')->load($block->getItem()->getProductId());
echo '<span>' . $_product->getData('custom_attribute'). '</span>';

in this place design/fronend/theme/Magento_Checkou/templates/cart/item/default.phtml (page checkout/cart, list products), this method repeat custom attribute. When a product has no attribute, it takes from the previous product.


texts: Change invoice sequence when currency changes

texts:
I have a store which has 2 currencies INR and EUR, when a invoice is raised against any order it assigns it a invoice number. This invoice number follows same sequence for both the currencies. What I need is to have separate series for both.

Thanks for your help.


texts: Short description can not be edited by Magmi

texts:
Through Magmi I made a mass import.

I did a test by adding to the field short_description the value 'test test test'
Then I added the correct values with a second import.
But this happens

From here it's all ok:

Whether within the product this:

The problem is about 5000 products

I noticed that the change only takes effect if, within the product, I change something in the short description (for example I write 'test test test test'), save and I start the Magmi, so the new import works

How can I fix it?

I've already done reindex and clear cache, but nothing


texts: Remove /home url from sitemap and url site structure

texts:
Remarkably simple problem I have that I'm not finding a simple solution for.

Essentially I have a duplicate url issue with a Magento site's home page.

I have in the url structure the below:

www.domain.com

but also:

www.domain.com/home

Which essentially point to the same page.

I want to remove the latter url which has /home at the end.

I can't simply disable the CMS page that is the home page, as the home page then loads without the home page content in there.

All I want to do is essentially remove the /home from my sitemap generation and from Google's search index.

I still need the main url www.domain.com to index and be found though.

I'm finding that Google is not indexing my main url properly because of the duplication.

I would have thought there would be a basic setting in Magento admin to prevent this? Thanks for any help as always.


texts: Setting up Magento Staging Environment with Restricted Access

texts:
I'm trying to figure out the best way to setup a staging environment with some access restrictions.

The simple solution would be to throw up Basic Authentication, but then I won't be able to point Google Page Speed Insights at it while testing performance optimizations, as well as other similar external services that I want to access it.

Could make it completely public with robots.txt in order to prevent it from showing up in search engines.  But my concern there is that the risk of any mistake in the robots.txt is fairly high, and I'd rather not have to worry about that.

If you don't block search engines (or if some ignore it), then you'll be getting live customers placing orders to your staging site, which won't make them happy.

Or even worse, if you accidentally deploy the robots.txt to production, you'll lose all your Google juice and a good chunk of sales.

So the option that I'm liking is a simple IP address restriction.  But I'd love to be able to add/remove restrictions without having to restart Nginx, just to again minimize risk while making changes.

So I'm beginning to lean towards a quick module that, when enabled, will look at developer IP addresses and only allow access to the site (front and backend) if the user's IP address (or X_FORWARDED_FOR) match it.

Wondering if this sounds like a reasonable solution or if there's something simpler that I'm missing.

UPDATE: Given that the robots.txt can be controlled via a native backend switch and the demo store notice will prevent any legitimate customer orders, and since I'm really not concerned about public access to the staging site, I like Phil's solution.

But for anyone that does want to restrict access to their staging site, I think Kris's solution is the way to go.

UPDATE 2: Not 100% sure what the robots.txt options are supposed to do in System Config > Design > HTML Head, but in my case - and from a brief search this appears to be common - I just have a flat robots.txt text file in place that's being used, so that config option isn't being respected.

So I'm going with the maintenance module for now:
https://github.com/aleron75/Webgriffe_Maintenance


texts: how to keep price of a product with custom options

texts:
I have products that require an 'age verification' tick before adding to basket. i have set this up as a custom option - radio button.

The price however needs to remain the same for the product, but when a customer orders more than one it discounts one of the products by 100%!

I cannot figure out how to have this verification tick on the product still but keep the price the same, regardless of how many items are ordered.

If anyone knows what i am doing wrong in the custom options please let me know.

thank you.


texts: Product Listing Page Image Gallery Loading Big Images

texts:
I am new at Magento and we have over 1500 products, most products has 7-10 color images. We show colors on product listing page. The problem that i am having is magento loading big images instead of thumbnails so page is over 10mb and slow.
Can you help me how can i change this or is there any way to load small thumbnails instead of big images ?
Page is http://www.tdnstores.com/rings/designer-wedding-rings
Thank You,


texts:
I am trying to display cart contents in the stock EE abandon cart email.

The challenge here is that the email doesn't seem to have the same access to the quote as similarly formatted order emails.

Ideally I can do something along the lines of:

{{layout handle="sales_email_order_items" order=$order}}

Though, obviously, with the relevant quote to the email being sent. How would I create a rewrite that would set access to the $quote?


texts: How to add js file to footer end of body in magento2

texts:
I want to add to footer from this code

<?xml version="1.0"?>
 <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    layout="empty"   xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<head>
        <link src="Ntuc_Quote::css/trastyle.css"/>
        <link src="Ntuc_Quote::js/getQuoteTravel.js"/>
    <link src="Ntuc_Quote::js/scripts.js"/>
        <link src="Ntuc_Quote::js/form_elements.js"/>

</head>
 <body>
    <attribute name="class" value="travel"/>
    <referenceContainer name="content">
        <block class="Ntuc\Quote\Block\Quote\Index" name="quote_travel" template="quote/travel.phtml" cacheable="false"></block>
    </referenceContainer>
</body>

Please help me.


texts: Different fixed shipping rates for 6 different destinations

texts:
I want to have the following different shipping rates for 6 different destinations. Is this possible in magento. If so, how?

Ireland & N.Ireland €3.95  (Free on orders over €50)

UK €6.00

EU €10.00

USA & Canada €12.00

Australia & New Zealand €15.00

Rest of World €20.00

Thanks.


texts: magento 2 language of store view display wrong

texts: current store in cookie is japanese but english store view is displaying


texts: My Magento 2 theme not showing up in backend

texts:
I hope somebody can help me out, I've tried doing it a million times again but somehow my theme doesn't show up in the backend of my Magento 2 installation. Here are my files:

app/design/frontend/Company/default/theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Company Default</title>
<parent>Magento/blank</parent>
<media>
    <preview_image>media/preview.jpg</preview_image> <!-- the path to your theme's preview image -->
</media>
</theme>

app/design/frontend/Company/default/registration.php

<?php
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/Company/default',
__DIR__
);

app/design/frontend/Company/default/composer.json

{
  "name": "company/default",
  "description": "N/A",
  "require": {
  "php": "~5.5.0|~5.6.0|~7.0.0",
  "magento/theme-frontend-blank": "100.0.*",
  "magento/framework": "100.0.*"
},
  "type": "magento2-theme",
  "version": "100.0.1",
  "license": [
  "OSL-3.0",
  "AFL-3.0"
],
"autoload": {
  "files": [
    "registration.php"
  ]
 }
}

I've cleaned the cache, added a media folder inside my themes file with a preview.jpg image and ran composer update, which keeps saying there is nothing to install. And cleaned the cache again. Logged in and out of my admin panel, but no luck. What am I missing here?


texts:
My homepage isn't showing up correctly. How do I fix this?

EDIT 1:
I noticed that the page source tries to load this stylesheet, which doesn't exist:

<link  rel="stylesheet" type="text/css"  media="all" href="https://www.example.com/pub/media/styles.css" />

EDIT 2:

I have already tried clearing the cache and doing the static contect deploy.

EDIT 3:

I did not modify less files.


texts: What would prevent me from being able to upload images on migrated products?

texts: I recently did a product migration to Magento 2. If I create a new product I can upload pictures. If a product has images I can upload images. We do a nightly sync with our erp and if a product was created with that I can add images. The only time I can't add pictures is if the product came over as a migrated product and had no images.Everything else about the product works fine. When I upload a picture it shows but when I click save it vanishes. There are no errors. How


texts: Magento 2 : how to convert custom quote field to order field

texts:
I added a new field "management_fee" on table "quote" properly. I add this field on "sales_order" field too.
I would like to update this field on sales_order table while quote is converting to order.

I know how to do with quote items using plugin and Magento\Quote\Model\Quote\Item\ToOrderItem class, but I did not find a class for quote to order.


texts: Adding custom search box to a magento home page

texts: I want to add a search box to my home page. All the products in the catalog have an attribute called "compatible devices". User should be able to select their compatible device from a dropdown list and when hit search, the result should display all the products that have the the selected device as their value for "compatible device" attribute. The form should have no other search field. Can someone please suggest a suitable way to achieve this.


texts: Magento 2 : Update layout handle from XML by condition

texts:
This is my layout file :

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="my_custom_layout_1" />
    <update handle="my_custom_layout_2" />
</page>

I want to update handle my_custom_layout_2 if value from system configuration is "abc" otherwise, I don't want to update that handle.

How to do that ?

Any help would be appreciated.


texts: How to create an event-observer that will help print a log when admin modifies some customer details?

texts: I want to design an event and an observer that will print a separate log containing the details of the fields that was modified by the admin in admin panel (under all Customers -> edit). How can I achieve this?


texts: How would I add products from an XML feed from sage?

texts:
We are creating a website and we are using products from sage. We have a script in PHP that pulls the XML feed for the products we want on sage. How would I go about getting that into Magento?

I just started with web programming and Magento and have been watching tutorials. I am just not sure where to start with all of this. I am thinking that creating a database using PHPmyAdmin would be the best way to go? Also I would need to update the product list daily as new items get added and taken off of sage.


texts:
I want to create an option for my customer that they can select for insurance that will cost 65 cents for every 100$ they spend for the entire order.

Keep in mind I only want to give the option to insure everything not individual items.


texts: Get option/attribute that configurable product is configured by

texts: Is there a simple way to get the attribute code, that a configurable product is configured by?


texts: Validate form data after submission in Magento 2.3 on Newsletters

texts:
I'm writing a module which registers a subscriber to our internal newsletter system, by using the stock Newsletter block in Magento.

I'm creating an observer on the controller_action_predispatch_newsletter event. I intend to check at this point whether a user is already subscribed to our system and if they are, giving a validation error on the email field to say the user exists.

I've found countless questions about adding the form validation classes and data attributes, that is fine, this works as expected. It's this post submit state which I want to check. If the user does exist in our system, I don't want to then subscribe to them in Magento.

My question is, how if the user does exist in our system, do I add a validation error to the email field on the front end?

I've included all the information I can, is this possible, or am I taking the wrong approach here?

Thanks in advance.


texts: I am getting Verified: 10574-This card authorization verification is not a payment transaction in magento 2 for payflow pro credit card transaction

texts:
When I testing the credit card transaction in Magento 2 checkout it is showing
Refused to display 'https://xxx/paypal/transparent/response/' in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('DENY, SAMEORIGIN'). Falling back to 'deny' in the console.

When I checked in the payment.log file it is returning the response message as
Verified: 10574-This card authorization verification is not a payment transaction. I am using payflow pro. I followed all other solutions to fix this. But still, it remains the same. Kindly help me.


texts:
I have created a custom tab in system config and added 1 field Module Enable Yes/No and 1 Dynamic fields which is depends on Module Enable.

When Module Enable is set Yes I created various dynamic fields and save it. which works fine.

When module is set to No and save after page reload all of my dynamic rows are gone. I using a Plugin and aroundSave Method.

The reason is when is set to no the data from dynamic fields does not get send in the post. see post value from Plugin:

Array
(
    [section] => custom_system_config
    [website] =>
    [store] =>
    [groups] => Array
        (
            [general] => Array
                (
                    [fields] => Array
                        (
                            [enable] => Array
                                (
                                    [value] => 0
                                )

                            [filter] => Array
                                (
                                    [value] => Array
                                        (
                                            [__empty] =>
                                        )

                                )

                        )

                )

        )

)

Dynamics Fields have depend on module enable field:

...
<depends>
  <field id="enable">1</field>
</depends>
...

The filter should have an array with fields.

In My Plugin How can I not save the data if enable is set to No?

Because this is still saving empty values obviously.

Appreciate any help!


texts: Show product brand name in minicart, cart and checkout

texts:
I want to show the name of the product in my minicart, cart and checkout page, but it returns string(0) "". This is only occurs in the minicart, cart and checkout page. The brand names are visible on the catalog page. I have also enabled Store > Attributes > Product > Brand > Storefront > Properties > Visible on Catalog Pages on Storefront to Yes.
Here is what I have:

    <?php if ($block->hasProductUrl()):?>
        <a href="<?= /* @escapeNotVerified */ $block->getProductUrl() ?>"><?= $block->escapeHtml($product->getData('brand')); var_dump($block->escapeHtml($product->getData('brand'))); ?>
    <?php else: ?>
        <?= $block->escapeHtml($block->getProductBrand()) ?>
    <?php endif; ?>

How can I fix this problem? Thanks in advance!


texts: Calling Login from template to cms page issue

texts:
I Have problem with calling login form into a page.

I build a .phtml file called members.phtml & login.phtml locate on base/default/template/members

members.phtml

    <?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>
    <?php $loadHtml = 'Hi Logged User...welcome'; ?>

        <?php echo $loadHtml; ?>

    <?php else: ?>
    <?php $loadHtml = 'Please register or login if already registered.'; ?>

        <?php echo $loadHtml; ?>

        <?php echo this->getLayout()->createBlock('members/login')->setTemplate('members/login.phtml')->toHtml();  // show login form ?>
    <?php endif; ?>

login.phtml I copied from standard customer/account login folder

Then I create CMS -> Page -> Members

the content of that page is

{{block type="core/template" name="membersState" template="members/members.phtml"}}

The problem is :

The login block doesn't show when guest user accessing the Member Page, does the code that I used is wrong..


texts: Custom review form field is not saving its value in Magento backend

texts: I have a new Email field in review form.I managed to show it in grid and in edit details page in backend .But the values i have entered are not showing in that field.It is showing a blank field. I am Currently using magento 1.9.


texts: how to get current cart items for different mobile app user with magento database?

texts:
I want to get cart items in json formate for different mobile app user .
It works same as magento cart system how can get ? help me ..


texts: In magento 2 How to get all customer data without using object manager?

texts: In customer module need to show all customer data whatever I want?


texts: I'm a newbie magento, I'm trying to research how to integrate between magento and mongodb, but documents about it in Internet seems not more. I've found this community extension https://github.com/colinmollenhour/magento-mongo and trying this but somethings not working. I want to ask somebody who used this and give me some advices or tutorials for do it. Thanks anyway!


texts:
Magento 2 (2.1.10). I can't get my images to center within this block.

I have three columns. I want the left column to have centered text and images.

Images I can't seem to center (h2/normal text center, including link at end of images):

Title

    Summary.

See more!

I had to add the p style because otherwise the See more! link ended up next to image1.

I have also tried adding the following css, which changed nothing:

img {
margin-left:auto;
margin-right:auto;
}

And tried adding the margins to .left:

.left {
      width: 50%;
      margin-left:auto;
      margin-right:auto;
    }

When I remove float: left; from .column, then my middle/right columns end up below the left column.

I wish  tags would work :'(


texts:
I am trying to access a store view in Magento 1.9.1.1 from a subfolder.

I have:

www.webshop1.nl => store_1 + default
www.webshop2.nl => store_2 + storeview_NL
www.webshop2.nl/en => store_2 + storeview_EN

The first two stores are working now, but I cannot manage to get the folder as a storeview.
In the Magento URL settings I set all the parameters.

This is my htaccess:

RewriteCond %{HTTP_HOST} ^(.*)webshop1.nl
RewriteRule ^ - [E=MAGE_RUN_CODE:default]
RewriteCond %{HTTP_HOST} ^(.*)webshop2.nl
RewriteCond %{REQUEST_URI} ^/en/$
RewriteRule ^ - [E=MAGE_RUN_CODE:storeview_en]
RewriteCond %{HTTP_HOST} ^(.*)webshop2.nl
RewriteRule ^ - [E=MAGE_RUN_CODE:storeview_nl]

What am I doing wrong?


texts: there is a {{/depend}} what is the problem of this?


texts: MAgento 2 import customer with custom attribute?

texts: How to import customer Using CSV with custom attribute?


texts:
When I run this:

http://www.mywebsite.com/store/index.php/api/v2_soap/?wsdl

I get this returned:

0 Unable to load Soap extension on the server

How do I enable it? I also don't understand where to get the key's used for the logins.

Is the REST api avail on the version I have?


texts:
I removed the jQuery elevate script from my site using this in the local.xml:

<catalog_product_view translate="label">
    <reference name="head">
        <action method="removeItem"><type>skin_js</type><name>js/lib/elevatezoom/jquery.elevateZoom-3.0.8.min.js</name></action>
    </reference>
</catalog_product_view>

Only problem, is that there is an error in the console that says it misses this file:

app.js:649 Uncaught TypeError: image.elevateZoom is not a function

Is there any clean way to remove this error, while also removing the script?

UPDATE

I noticed, by removing the script, the image switching does not work anymore (switching between images to display them in the bigger image)


texts: Creating a new entity with existing entity type

texts:
I am fairly new with Magento and not sure if answer to this is very trivial, but looking at available help through search. I was not able to figure out the right way.

For a solution, I am building with Magento I want to add a address for a new entity, which i have created (say Store entity - Multistore setup). My initial thought was to user existing address entity created by Magento base but then realized that it's more specific to customer entity (table name: customer_address_entity). So I decided to create a new entity with name store_address_entity.

However, the store_address_entity attributes are very similar to customer_address_entity and there is no point of repeating the attributes and was wondering, If there is any better way to do this. I mean

Can I create store_address_entity with customer_address_entity type?
Or Use same attribute set for shop_address_entity as for customer_address_entity?


texts:
I want to install Magento 2.4 so I followed the steps from devdocs.magento.com.
After running below command, Show successfully installed.
bin/magento setup:install --base-url=http://www.mage2.test --db-host=localhost --db-name=mage2_dev --db-user=root --db-password=root --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
But when I run below command gives error as attached
php bin/magento deploy:mode:set developer

when I am going to login to admin panel after using username and password, it is giving configure 2 factor authorization to proceed to admin area as per screenshot :

When I tried to uninstall 2 factor authorization with command bin/magento module:disable Magento_TwoFactorAuth, it is giving below error

Please help me.
Thanks in advance.


texts: Where can I find the cache properties in the Magento 2 database?

texts:
I've had some troubles with the caches, they are enabling via CLI using production mode but it's not showing on my admin panel as enabled, it just works using developer mode.

I wondering check the cache state into the database if it's an issue related with third-party modules or my environment.

Where could I check my cache status into the database?


texts: Grand Totals are showing twice with two times to their original value Magento 1.8?

texts:
When I extends Mage_Sales_Model_Quote_Address_Total_Abstract in my custom module it is showing grand total twice with two times to their original value. Here's screenshot.

Here's what I do in my module

config.xml

<?xml version="1.0"?>
<config>
<modules>
    <Ranosys_SpecialPrice>
        <version>0.1.3</version>
    </Ranosys_SpecialPrice>
</modules>
<global>
    <sales>
        <quote>
            <totals>
                <specialprice>
                    <class>Ranosys_SpecialPrice_Model_Total_Address_Grand</class>
                 </specialprice>
            </totals>
        </quote>
    </sales>
</global>
</config>

Grand.php

<?php

class Ranosys_SpecialPrice_Model_Total_Address_Grand extends Mage_Sales_Model_Quote_Address_Total_Abstract {

public function collect(Mage_Sales_Model_Quote_Address $address) {

    parent::collect($address);
    $grandTotal = $address->getGrandTotal();
    $baseGrandTotal = $address->getBaseGrandTotal();
    $paymentMethod = $address->getQuote()->getPayment()->getMethod();

    $store = $address->getQuote()->getStore();
    $totals = array_sum($address->getAllTotalAmounts());
    $totals = $store->roundPrice($totals);
    $baseTotals = array_sum($address->getAllBaseTotalAmounts());
    $baseTotals = $store->roundPrice($baseTotals);

    if ($paymentMethod == 'cashondelivery') {
        $address->setGrandTotal(round(($grandTotal + $totals), 0));
        $address->setBaseGrandTotal(round(($baseGrandTotal + $baseTotals), 0));
    } else {
        $address->setGrandTotal($grandTotal + $totals);
        $address->setBaseGrandTotal($baseGrandTotal + $baseTotals);
    }
    return $this;
}

/**
 * Add grand total information to address
 *
 * @param   Mage_Sales_Model_Quote_Address $address
 * @return  Mage_Sales_Model_Quote_Address_Total_Grand
 */
public function fetch(Mage_Sales_Model_Quote_Address $address)
{
    $address->addTotal(array(
        'code'  => $this->getCode(),
        'title' => Mage::helper('sales')->__('Grand Total'),
        'value' => $address->getGrandTotal(),
        'area'  => 'footer',
    ));
    return $this;
}

}

I Copied code of Grand.php from Mage_Sales_Model_Quote_Address_Total_Grand file and do some modifications as per my requirement. please help what I am doing wrong.


texts: Site was fine until I flushed the Magento Cache Storage then 1045 ERROR

texts:
So I've finally got some progress...then I flushed the Magento Cache Storage and now I no longer can access my site, even from cloning the working repo. YES...I checked my app/etc/local.xml and the login credentials to the db are correct, even checked for XML formatting errors. All clean. Added a new user to the db to test, it still came back with this error:

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

Anyone else experience this problem? I'm getting very frustrated with the stability and delicacy of Magento. :( Not enjoying this learning experience so far as it keeps breaking.


texts: How to Export Customer Accounts AND their Sales Statistics?

texts: I need to export all customer accounts and their sales statistics (more specifically accounts with ZERO ORDERS). When using the Export Profile Feature with Entity Type "Customers" the field mapping feature gives me no option(s) for anything related to sales data. The only way I know how to identify customer accounts with ZERO purchases is to do it manually within "Manage Customers" which is very laborious to say the least.


texts: Debug Detective: Checkout Success Periodically Gets Skipped in Magento 2.2

texts:
I'm having a strange problem after customers complete checkout in Magento 2.2.  About 15-20% of the time when they click "Place Order," the order is placed on the backend and they see the "You have no items in your shopping cart" page on the frontend.  However, the majority of the time it does take them to the checkout success page as it should.

I'm pulling my hair out trying to figure out how it's skipping the checkout success page from time to time. I've tried to eliminate other variables by disabling plugins, payment methods, etc., but it's completely random.  Anyway, I though that if I were in Developer mode and had the debugging log enabled, I'd see some clues when it does skip the checkout success page.  No luck. The debug log is being written, but it doesn't log anything different from when the checkout success is being skipped and when it isn't.

Anyway, I need some input as to the best way to troubleshoot and debug this strange problem.  What is everyone's preferred method to debugging in Magento 2? Any online resources that would help me understand the debug process better? Thanks!


texts:
I've seen this below that MSI can be disabled in Magento 2.3

  https://devdocs.magento.com/extensions/inventory-management/#disable-inventory-management

It says to disable modules.

I can understand how this is done but it does not say which module or modules to disable

Does anyone know?

Or should I just amend the config file to reflect what it shows?


texts: Scroll 100's of attribute sets when creating a new product

texts:
I have to create 100's of different attribute sets for our products. To filter all these products I use:

first filter: scope area second filter: application

So, when I have to create a new product, I have to scroll an endless number of attribute sets.

The current status in Magento is:

1 => select => Attribute Set
2 => select => Product type

My Idea is, to add two selection fields before like:

1 => select => Scope area
2 => select => Select Application
3 => select => Attribute Set
4 => select => Product type

I would be realy glad, if someone could help me to solve this problem.

PS: When I have posted the first time (about 2 month ago), a user (name forgotten) has edited my post concerning to the english grammar. Therefore  I want to appologize in advance if I made some mistakes. Nevertheless I hope, that my english is clear enough. :-)


texts: Magento 2 assets trying to load over https

texts:
I have a weird issue whereby assets are loading over https on my local environment and so cannot be found.
The reference to the asset when I view the source is on http:// but when I check the console it appears they're loading over https:// and giving the error net::ERR_CONNECTION_REFUSED
The base_urls are set to http so I'm not sure why it's loading them over https
Does any one have any ideas why?
Cheers


texts: Creating a cron task to store data into Magento cache (module development)

texts:
This is Magento 1.9.x CE.

I have created some modules that implement a helper to pull data from various APIs and save the output in Magento's cache using the _saveCache method in Mage_Core_Helper_Abstract. The idea here is that if the cache item already exists and is not expired then it is loaded from cache, otherwise an API call is made.

This works well but has the potential to delay page load for the visitor if they hit a page when the item cache is expired and therefore the remote API needs calling.

To workaround this I figured I'd implement a cron task to call the API instead.

Can anyone think of a way to do this which still keeps API calls to a minimum (i.e. only call the API when the cache is nearly expired) but ensures that the cached item is always available?

For reference I am thinking of caching results for around 6 hours but this would be configurable.

I was thinking some kind of logic like this:

Run the cron every minute:
Check whether the item exists in cache

if not: make API call, store result as cache item, exit
if so: continue

Check whether the cache lifetime is approaching (how to do this bit??)

if so: make API call, store result as cache item, exit
if not, exit

So really, the question boils down to how can I check whether the cache lifetime is approaching? And/or can anyone think of a better way to do this?

Many thanks!


texts: Magento 2 isn't generating my pub images

texts: I was running into an issue that my Magento 2 instance wasn't generating images on my Windows 7 machine. The system wasn't producing any errors and it had all installed perfectly. I also was meeting all requirements for installation and no files were modified. I was running Magento 2 0.42.0-beta9 on Apache 2.4.2, PHP 5.5.22, MySQL 5.6.6.


texts: How can get category layered navigation using rest api in magento 2 for mobile api

texts:
I'm creating rest api for mobile app in Magento 2,now i'm wondering to get layered navigation (filters) for a category and  loaded collection like search or custom collection using rest api.

Please help


texts:
How can I get full information of product in cart
I want to get all info of my product which is in cart coz In my cart it will only get name sky and id, but I want custom attributes also ...

 [
    {
        "item_id": 43,
        "sku": "SoundBot SB571",
        "qty": 1,
        "name": "SoundBot SB571 12W Bluetooth Speakers",
        "price": 1399,
        "product_type": "simple",
        "quote_id": "3"
    }
   ]


texts:
I need to know the list of useful commands for Magento 2 in short-cut form

Can anyone help me?


texts:
, or ) expected in Jquery function call in magento 2.
I'm getting this error in custom jquery file.

I'm getting this following error in internet explorer browser.
SCRIPT1006: Expected ')'


texts: Magento : how to add featured products in homepage

texts:
I installed a new theme, I dont know how to add featured products
 in homepage for my magento1.9.0.1.. please help me how to do this?


texts: 502 Proxy error in Orders page Magento 2.0.10

texts:
I recently upgraded from 2.0.6 to 2.0.10 and thought everything went alright, but since then, admin users experience a 502 proxy error when trying to access the orders page.

I'm not able to reproduce the problem myself, each time it seems related to a specific account. If I log in, go to the orders page and user the same filter, it'll work.

The only workaround I found until now is to log with the problematic user, inspect the code of the page, delete the loading overlay and clear the filters.

Any idea?


texts:
I want to load a custom css file for the admin panel from a custom module folder.

My layout xml file looks like this

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="Vendor_Module::test.css" />
    </head>
</page>

I've also tried

<head>
    <css src="Vendor_Module::css/test.css" />
</head>

I tried putting the file in

Vendor/Module/view/web/css/test.css

or

Vendor/Module/view/adminhtml/web/css/test.css

After each I cleared the cache, the page cache and the pub/static folder.

The css file is not loading. Does anyone know why ?


texts: Shopping Cart Rule to discount N 'paired' items

texts:
I'm interested in creating a shopping cart rule that offers a discounted item B for ever item A purchased.

So, if someone purchase 5 of item A they get 30% off of 5 of item B.  But iif they have more than 5 of item B the balance of item B are full price.

I suppose there is also an  alternative approach to create product alternatives that bundle item B with item A.

Clarificatoin:  The question is asking about 'N' paired items, 5 is just an example.   I want there to be a disocunt only want 1 of ItemB for discounted for every 1 of ItemA purchased. This might be 2 of each, 5 of each, or 10 of each.


texts:
i'm trying to use magento soapV2 to create product, here is the script:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php

// Magento login information
$mage_url = 'http://localhost/first/api/v2_soap?wsdl=1';

$mage_user = 'rayapi';
$mage_api_key = 'Abcd1234';
// Initialize the SOAP client
$client = new SoapClient( $mage_url );

$session = $client->login( $mage_user, $mage_api_key );

$catalogProductCreateEntity = new stdClass();
$additionalAttrs = array();

$catalogProductCreateEntity->name = "product name";
$catalogProductCreateEntity->description = "description";
$catalogProductCreateEntity->short_description = "desc";
$catalogProductCreateEntity->status = "1";
$catalogProductCreateEntity->price = "99";
$catalogProductCreateEntity->tax_class_id = "2";
$catalogProductCreateEntity->websites = array(1,2);
$catalogProductCreateEntity->categories = array(7,15);
$catalogProductCreateEntity->status = 1;
$catalogProductCreateEntity->price = 45;
$catalogProductCreateEntity->tax_class_id = 2;
$catalogProductCreateEntity->weight = 1;

// send the request
$product = $client->catalogProductCreate($session, "simple", 9, 'test_sku', $catalogProductCreateEntity);

// end session and enjoy your updated products :)
$client->endSession($session);

var_dump($product);

?>

Error message:

Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in C:\xampp\htdocs\first\soap.php:71 Stack trace: #0 C:\xampp\htdocs\first\soap.php(71): SoapClient->__call('catalogProductC...', Array) #1 C:\xampp\htdocs\first\soap.php(71): SoapClient->catalogProductCreate('7ab47f189292d99...', 'simple', 9, 'test_sku', Object(stdClass)) #2 {main} thrown in C:\xampp\htdocs\first\soap.php on line 71

i tried use
$result = $client->catalogInventoryStockItemList($session, array('693')); // //Products ID
print_r($result);

catalogInventoryStockItemList is work for me but catalogProductCreate not work.

i googled around but their solution not useful to me, how to solve this problem?


texts: Add attribute below product name in cart and invoice - Magento 2

texts:
I want to add the color attribute in the cart info and most importantly in the invoice for the product.

The product has a color attribute assigned for search but it's not an option to select so it doesn't show up in the product details.

I'd like to have it show up.


texts: Magento 2: How to disable Quantity Box for specific product from checkout cart and minicart

texts:
How can we disable Quantity Box for specific product from checkout cart and minicart?

I have already search for the solution but it will disable quantity for all products reference URL

Your help will be greatly appreciated, Thanks.


texts: Trying to show image in admin grid in custom module

texts:
What i was trying to do was to display thumbnail of images in listing in admin side in one of the custom modules created by me, at that time i came across this error.

  Fatal error: Call to a member function setColumn() on a non-object in
  D:\Program
  Files\wamp\www\magento\app\code\core\Mage\Adminhtml\Block\Widget\Grid\Column.php
  on line 291.


texts: Magento 2 : how can i check filter active or not in customer admin grid ui component?

texts: in admin customer grid, i want to check if any filter active or not. if filter is not active data grid be empty, if filter is active then show data. how to do that ?


texts: Magento admin page helper not found error

texts:
I am trying to create new link in admin panel, which leads to helper not found error. My config files are as follows.

  app\code\local\Ddevs\Ebayaff\etc\config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Ddevs_Ebayaff>
            <version>0.1.0</version>
        </Ddevs_Ebayaff>
    </modules>
    <global>
        <resources>
            <add_category_attribute>
                <setup>
                    <module>Ddevs_Ebayaff</module>
                    <class>Mage_Eav_Model_Entity_Setup</class>
                </setup>
            </add_category_attribute>
        </resources>
        <helpers>
            <ebayaff>
                <class>Ddevs_Ebayaff_Helper</class>
            </ebayaff>
        </helpers>
    </global>

   <admin>
        <routers>

           <samplerouter1>
                <use>admin</use>
                <args>
                    <module>Ddevs_Ebayaff_AdminControllersHere</module>
                    <frontName>admin</frontName>

                    <modules>
                        <sintax after="Ddevs_Ebayaff_AdminControllersHere">Mage_Adminhtml</sintax>
                    </modules>
                </args>
           </samplerouter1>

         </routers>
    </admin>

  app\code\local\Ddevs\Ebayaff\etc\adminhtml.xml

<?xml version="1.0"?>
<config>

        <menu>
             <mymenu1 translate="title" module="ebayaff">
                <title>Ebay aff</title>
                <sort_order>200</sort_order>
                <children>

                    <myitem1 translate="title">
                        <title>Simple one column layout with custom template file assigned for viewsss</title>
                        <action>samplerouter1/FreakOut</action>
                        <sort_order>1</sort_order>
                    </myitem1>
                </children>
             </mymenu1>
        </menu>
</config>

  app\code\local\Ddevs\Ebayaff\Helper\Data.php

<?php

class Ddevs_Ebayaff_Helper_Data extends Mage_Core_Helper_Data
{

}

And I am getting the following error.

  Fatal error: Class 'Mage_Ebayaff_Helper_Data' not found in /var/www/html/demoshop/app/Mage.php on line 547


texts: Magento website getting error after login to admin panel

texts:
We are facing below error after login to the admin panel.

http://kopanaacreations.com/admin


texts: Magento 2 - Sales email template override don't work

texts:
I customized store email template on the theme (header, footer, and content by module), however, those related to orders (Magento_Sales) aren’t working and display the LUMA theme email.

The other email are ok (Magento_Customer for example).

I need your help, this stuff will drive me crazy.
Many thanks


texts: Magento 2 - How to remove main navigation from XML

texts:
We want to remove Magento's default main navigation using xml file but don't want to use remove, because ifconfig not working with remove.

We want to remove main navigation only when our custom module is disabled.

We have tried below codes but it's not working.

// CODE 1
<referenceContainer name="store.menu">
    <action method="unsetChild" ifconfig="rootmegamenu_option/general/enable">
        <argument name="alias" xsi:type="string">catalog.topnav</argument>
    </action>
</referenceContainer>

// CODE 2
<referenceContainer name="store.menu">
     <action method="unsetChild"><child>catalog.topnav</child></action>
</referenceContainer>

// CODE 3
<referenceContainer name="store.menu">
     <action method="unsetChild" ><name>catalog.topnav</name></action>
</referenceContainer>

Help will be appreciated.


texts: How to get data from an observer 'sales_quote_product_add_after'

texts:
I have applied this event in my config.xml but I dont know how to get data from this observer. I googled but no article found.

config.xml--

<sales_quote_product_add_after>
    <observers>
        <po>
            <type>singleton</type>
            <class>po/observer</class>
            <method>updateQuote</method>
        </po>
    </observers>
</sales_quote_product_add_after>

Observer file-

public function updateQuote($observer)
{
    Mage::log("testing");
    $quoteItem = $observer->getEvent()->getItems();
    $quote = $quoteItem->getQuote();
    $id = $quote->getId();
    Mage::log($id."hello testing");
}

Getting only "testing" in log file and not getting "hello testing". How can I get info about product added into quote and info of the quote.


texts: Load layout outside magento with translation

texts:
i have to load magento in a cms and want to include the complete header. Everything works fine, but i don't get the right translation of the template. The locale setting of the store view is correct.

require_once 'app/Mage.php';
Mage::app()->setCurrentStore('de');

$layout = Mage::app()->getLayout();
$layout->getUpdate()->addHandle('default')->load();
$layout->generateXml()->generateBlocks();

echo $layout->getBlock('header')->toHtml();


texts: Difference between website, stores and store views

texts:
I have been researching about multi website/store setups and am a little confused.

I completely understand how stores and store views work but my confusion is on the differnece between websites and stores.

From what I can see, websites allow customers to be shared between stores but not products or sales data and this is the primary difference.  Either if this is true or not i am confused either way.

If it is true then why would you want to have customers shared over websites but not anything else

If it is not true then what is the point in websites?


texts: Magento 2 Get all images of a product, getMediaGalleryImages not work

texts:
I have a model, this is the code of getting product collection

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection */
    $productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection');
    $StockState = $objectManager->get('\Magento\CatalogInventory\Api\StockStateInterface');
    /** Apply filters here */
    $collection = $productCollection->addAttributeToSelect('*')->setPageSize($limit)
        ->setCurPage($page)
        ->load();

    $products = array();
    foreach ($collection as $product){
        $products[$product->getId()]['image_list'] = $product->getMediaGalleryImages();
    }

getMediaGalleryImages() return null, i tried to use $product->getData('image') but only return the url of the main images, anyone know what is the problem.


texts: Magento2: existing quote doesn't load through a cron job

texts:
I want to get an existing quote through a cron job, but it returns null.

Want get through this $this->quoteFactory->create()->loadByCustomer($custoemrId)

or

$this->quoteFactory->create()->load($quoteId).

It works without cron job but I need through a cron job.

$checkCartExist = $this->quoteFactory->create()->loadByCustomer($customerId);
  $checkCartExist->getAllVisibleItems();
  var_dump($checkCartExist->getData()); // returns 0 through a cron

 if (!$checkCartExist['entity_id']) {
      $cartId = $this->cartManagementInterface->createEmptyCart(); //Create empty cart
      $quote = $this->cartRepositoryInterface->get($cartId); // load empty cart quote

 } else {

      $quote = $this->cartRepositoryInterface->getForCustomer($customerId);
 }

Cron works because each time it created a new quote item.


texts: Magento create configurable product BUT without child products data

texts:
I checked some existing questions, but none of them explains how to create configurable products without child products data. I don't need to link products, I just need to create configurable product for later use.

So I tried that:

$_prod->setTypeId('configurable');
$_prod->setConfigurableAttributes('color');

But this is not working. When I click in admin on product, the product is created, but I need to choose first configurable attributes. So setConfigurableAttributes didn't make any action, but it also didn't invoke any error. What is the proper way for that?


texts:
[M1]

We are selling some products on Amazon that we are selling on our website. We have plenty of reviews on multiple items, and we'd like to import those reviews on our Magento site. I have successfully exported reviews from amazon in .csv and they are in this format:

SKU
Customer Nickname
Title
Review description
Rating (please note that exported rating has only one value which is average of all the attributes - shipping, delivery time, product as per description, etc.)

How can I import it to my Magento 1 site?


texts: Magento shows blank index management page

texts:
The index management page suddenly showing full blank page. I debugged the code and figured out that the problem is with that function $this->getChildHtml('grid'); at line 78 located at app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php
How to resolve this?
Thank You


texts: Products assigned to category root issue

texts:
So I'm trying to solve a small issue that I noticed in my category setup.

To preface, I'm running a multi-domain install with 2 separate stores. For example purposes, i'll refer to their root categories as domain1 & domain2.

So for domain1, it says there's 0 items assigned to the root. However, when I look at domain2, it says there's 599 items assigned to the root, but when I click on Category Products, it's empty.

In regards to the 599, if I add up the items in the 1st level of categories, they add up to 599. However, if I do the same for domain1, they don't add up to 117, in fact they add up to 865.

Does this seem normal? Also, could having too many products assigned to the root affect pageload?


texts:
We have created pages for 4 categories in the backend under Catalog > Manage categories. So there are 4 categories and are linked to 2columns-left.phtml (I think this is a default Magento page).

The pages work fine overall, and are linked under URLS: /products/[category-name].html

The problem however, is that we are not seeing pagination for the pages/categories. 3 of the categories have more than 10 items and when working on this issue we have selected "Show: 5", so there definitely should be pagination.

What could cause that we don't see this?

Also, after Googling for quite a bit, I tried adding $this->getChildHtml('product_list_toolbar_pager') and $this->getChildHtml('pager') to the page. The pager html returns nothing and product_list_toolbar_pager returns the following error:

  Fatal error: Call to a member function getSize() on a non-object in /mnt/projects/online-shop/www/app/design/frontend/refresh/refresh-child/template/page/html/pager.phtml on line 34

Line 34 is:

  if($this->getCollection()->getSize()):

So to me it seems like the collection hasn't been loaded correctly..

We are otherwise inexperienced with Magento and don't know where to start looking.

Magento ver. 1.9.0.1


texts: Best practices for webapi data manipulation

texts:
I am building a custom subscription module. I have exposed a number of APIs for the frontend to consume.

I have the API hooked into standard repository endpoints:

public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
public function get(int $subId);

These all work fine, however, I want to 'expand' on these endpoints

I want to limit the results of getList() so it only returns the results belonging to the logged-in customer. At the moment I have just added an extra method to the repository getCustomerList() which adds an extra constraint on the search in a repository method.

Whilst this works, the repository doesn't feel like the right place for this additional 'authentication' logic.

Is there a better way to deal with this kind of thing? I read that the web API should always point to either a repository interface or a management interface. So how would an extra layer of logic on top of the repository fit in?


texts:
I am using table rates weight vs destination for  different shipping rate for different weight. The problem is when the user checks out with e.g. 45 kg item in cart, the shipping rate for 15 kg is applied. so whatever the weight of the item in the cart is, the shipping rate remains the same as that of 0 to 15 kg.

Here's the table:


texts: Facing Issue Read timed out after 10 seconds

texts:
I am facing issue "Read timed out after 10 seconds" while placing order, I am getting order confirmation email but order is not saving into database.
Please help me.


texts: Can I change the scope of product's "status" attribute to store level?

texts: In magento backend you only have the choice between global and website scopes for the "status" attribute of a product. Can it be changed to the store level, so that different stores have different products activated? Will it have any side effects or is there another reason why it's not allowed to be on the store level by default?


texts: How to generate a customer id on trigger once registered

texts:
how do i generate lets say a client number on trigger? I would like to generate once a client has registered, could anyone show me some sample codes along with files that i would need?

Thank you


texts:
We have a Magento store that we upgraded to 2.1.8 last week. Everything seemed to be working well till then. However, after the update, I am no longer able to re-index Category Products and Product Categories. The others indexes run fine. We have added more products since then too, however, it seems like too much of a coincidence that this would stop working right after the update.

I have searched for an answer since last week and applied many different solutions, however nothing seems to have fixed this issue. We did not install any new extensions.

The server specs are as follows:

Managed VPS
Dedicated CPU: 2 cores, Xeon E5-2630 @ 2.30GHz
Dedicated RAM: 6 GB
Dedicated Storage: 100 GB on SSD
Monthly Data Transfer: 5000 GB (We launched this store 3 months ago, and right now do not have a lot of traffic.)

Things I have done: (I run reindex from SSH).

1) Increased php memory limit to 1024 MB.
2) Increased the Apache and FastCGI timeout limits to 900 seconds.
3) Increased the memory and CPU limits for SSH:

USER_MAX_CPU_SECS=900
USER_MAX_VIRT_MEM=800000
USER_MAX_RES_MEM=800000

4) I reset all indexes and ran reindex again. It did not work:

php bin/magento indexer:reset
php bin/magento indexer:reindex

5) I tried running them one by one:
php bin/magento indexer:reset catalog_category_product
php bin/magento indexer:reset catalog_product_category
6) Increased [mysqld] innodb_lock_wait_timeout=3600

I have run out of ideas and would greatly appreciate any advice and help. Thank you very much in advance.


texts:
I need to print log info when a button is clicked. I am using the below code, please let me know what are the mistakes in my code. I am trying to call a function like below.
'on_click' => 'execute();',
Button.php
<?php
namespace Dss\CoveoSearch\Block\System\Config;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Backend\Block\Template\Context;
use Magento\Framework\Data\Form\Element\AbstractElement;
class Button extends Field
{
    protected $_template = 'Dss_CoveoSearch::system/config/button.phtml';
    protected $_logger;
    public function __construct(\Dss\CoveoSearch\Logger\Logger $logger, Context $context, array $data = [])
    {
        parent::__construct($context, $data);
        $this->_logger = $logger;
    }

    public function render(AbstractElement $element)
    {
        $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
        return parent::render($element);
    }
    protected function _getElementHtml(AbstractElement $element)
    {
        return $this->_toHtml();
    }
    public function getCustomUrl()
    {
        return $this->getUrl('hello');
    }
    public function hello()
    {
        $test = 'hello';
        echo $test;
    }
    public function execute()
    {
        $this->_logger->info('Hello This is our Custom log file example');
    }
    public function getButtonHtml()
    {
        $button = $this->getLayout()->createBlock('Magento\Backend\Block\Widget\Button')->setData(['id' => 'btn_id', 'label' => __('Create'),'on_click' => 'execute();',]);
        return $button->toHtml();

    }
}

button.phtml
<?php
    $controller = $block->getCustomUrl();
    echo $block->hello();
    echo $block->getButtonHtml();
?>


texts: How to filter product collection by price after tax in magento 2.3?

texts:
I am trying to apply filter product collection by price range:
$productsCollection = $this->_productsCollectionFactory->create();
$collection = $productsCollection->addAttributeToSelect('*');
$collection->addFieldToFilter('status', Status::STATUS_ENABLED);
$collection->addMinimalPrice();
$select = $collection->getSelect();
$select->where('price_index.min_price '.$condType. $filter['value']);

but above code works for only product actual price and min or max price. I want to apply filter price including tax.
How to filter product collection by price after tax?
I tried this solution but it's not working.
please help with this.


texts: running static-content:deploy on multi store-view, fails with following error variable @media-common is undefined on theme where the language en_US


texts: Magento 2 - Get Request Params / Api Request Params From Plugin

texts:
I am trying to access request parameters made to the api url which I am setting a response for via a plugin.

The call is to: rest/default/V1/guest-carts/a9e6330920e85d09a123a396f77a9275/shipping-information

Here is the code that I am currently using, however it provides an empty array.

namespace Vendor\Onepage\Plugin;

class ShippingInformationManagementPlugin
{

protected $_request;

public function __construct(
    \Magento\Framework\App\RequestInterface $request
)
{
    $this->_request = $request;
}

public function beforeSaveAddressInformation(
    \Magento\Checkout\Model\ShippingInformationManagement $subject,
    $cartId,
    \Magento\Checkout\Api\Data\ShippingInformationInterface $addressInformation
)
{
    var_dump($this->_request->getParams());
    die('testing');
}

}


texts:
I was wondering whether anyone could please advise how I can have a certain product that would always be in stock? I can see that you can set this from the config, however this applies to all products where I only need 1 product to always be in stock.

I've tried to change the option for the product to be in stock. But saving the product changes the product to be out of stock since the quantity is set to 0, however we do not want to set a quantity since we do not manage stock for the product.

Any help would be appreciated.


texts: AddJs / CSS in footer. getCssJsHtml() not working

texts:
I've been looking through a lot of posts on how to add CSS / JS file in the footer.

As right now I have followed this path : page.xml

<block type="page/html_head" name="foot" as="foot" template="page/html/foot.phtml"/>

local.xml
I did try all the variant, type/skin_js, addJs, addItem

<reference name="foot">
    <action method="addJs"><script>lebernard/test.js</script></action>
</reference>

foot.phtml
Translator script is rendering as normal, so foot.phtml is getting called. I tested it with a string as well.

<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
<?php echo $this->getIncludes() ?>

Finally I'm calling in 1column.phtml (and others) getChildHtml('foot');

So I though it was a misplaced JavaScript file since the translator script is called properly. I did put it as follow in :

/js/lebernard/test.js
/js/test.js
/skin/[theme]/js/test.js

All I want is to include a js file in the footer using local.xml . I'm on 1.9.0.1.


texts:
On one of my website, sometimes some of my custom js not working, I have embeeded on template file. I have checked console of browser it shows error, also sometimes css or some portion like sign in/sign out or logo will not display.

to fix it i have to run content deploy every time, i just need to know the root cause of it. What will be the best practices to fix these kind of issue, so that i don't have to run content deploy everytime, as website is already live, and it seems very disappointing if suddenly some function stop working.

Also, i have noticed that content deploy is not working with -f, is that was also a issue, which brings these problems.

Thanks


texts: Get Childproducts not visible individually in collection

texts:
I have the following code to get my product collection:

$collection = $this->_productCollectionFactory->create();
$collection->setOrder('id', 'ASC');
$collection->addAttributeToSelect('*');
$collection->addWebsiteFilter($this->_storeManager->getWebsite()->getId());
$collection->addAttributeToFilter('status', ['in' => $this->_productStatus->getVisibleStatusIds()]);
$collection->setVisibility($this->_productVisibility->getVisibleInSiteIds());
$collection->addAttributeToFilter('type_id', array('neq' => 'bundle'));
$collection->addAttributeToFilter('type_id', array('neq' => 'configurable'));
$collection->addAttributeToFilter('type_id', array('neq' => 'grouped'));

I need included in this collection all child products that are set to "Not visible individually" where the parents are enabled and set to visible.
Currently when the product is set to not visible it does not show up.


texts: How can i create custom customer attribute programatically in magento 2?

texts:
Here my question is not how to create customer attribute.
I want to know the running flow explanation of this process?
We can create this by below code in custom module.

<?php

namespace Vendor\Module\Setup;

use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Eav\Model\Config;
use Magento\Customer\Model\Customer;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;

public function __construct(EavSetupFactory $eavSetupFactory, Config $eavConfig)
{
    $this->eavSetupFactory = $eavSetupFactory;
    $this->eavConfig       = $eavConfig;
}

public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
    $eavSetup->addAttribute(
        \Magento\Customer\Model\Customer::ENTITY,
        'test_attribute',
        [
            'type'         => 'varchar',
            'label'        => 'test Attribute',
            'input'        => 'text',
            'required'     => false,
            'visible'      => true,
            'user_defined' => true,
            'position'     => 999,
            'system'       => 0,
        ]
    );
    $testAttribute = $this->eavConfig->getAttribute(Customer::ENTITY, 'test_attribute');

    // more used_in_forms ['adminhtml_checkout','adminhtml_customer','adminhtml_customer_address','customer_account_edit','customer_address_edit','customer_register_address']
    $testAttribute->setData(
        'used_in_forms',
        ['adminhtml_customer']

    );
    $testAttribute->save();
}
}

How can i get this customer attribute to show in grid?

If i want to add another attribute is it ok to add that attribute code below this? and run setup:upgrade? how the versions want to mention?
Please explain.


texts: What do I need to set to make a custom attribute available for related product rules?

texts: I have a custom attribute, and I want my product page to display other products that also have the same value for this attribute. But, when I go to the related product rules configuration page, I don't see this attribute in the list! How do I make it available for use by related products?


texts: Change order date to invoice date on invoice PDF in Magento 2

texts:
How to change the order date in the invoice PDF in Magento 2 to invoice date?
I think it's done in the AbstractPdf.php file, but cannot get the right code to pull the right data.
It's shown in the backend of Magento, how to get it on the PDF?


texts: navigation menu - change individual category text color

texts: let's say i set my navigation categories as (Clothes, Shoes, Accessories, Help).  In the CSS file i am able to change the color of the text to say RED, this changes the color of all categories (Clothes, Shoes, Accessories, Help) to red.  What i want is Help to be Blue so that it stands out, is there any way to do that?


texts:
have created a 'new page' as 'latest products' and i want to show all the products in this page but sorted 'datewise' i.e. new first ..
i got from google was to use this code

<reference name="content">
  <block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
  <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
  <action method="setColumnCount"><columns>4</columns></action>
  <action method="setProductsCount"><count>4</count></action>
  </block>
  </reference>

but with this approach i have to set the product attribute " New from Date" .
in 'backend' i have a table where i have products with "Date Created" column
is it possible to pull products from that table, sorted 'datewise' and show in the 'new page' ??
if yes,
How ??
thanks for the help


texts: Magento 2 show additional message on Checkout Success Page

texts: On the Checkout Success page, I want to show an additional message after Your order is.... I guess I can do that by an after method via plugin but I don't find the right method where to plug in. Can somebody give me a hint?


texts: Need to get Simple Products with Configurable Option from Configurable Product

texts:
I need to get details of all simple products associated with Configurable product along with product attributes

I used the existing magento functionality which returns empty value.

function getConfig($productIds) {
    $configurableData = array();
    $configProdCollctn = Mage::getResourceModel('catalog/product_collection');
    $configProdCollctn->addAttributeToFilter('entity_id',array('in'=> $productIds))
                                   ->addAttributeToFilter('type_id',
        array('eq'=> Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE));
    while ($product = $configProdCollctn->fetchItem()) {
        $prodAttrOptions = $product->getTypeInstance(true)->getConfigurableOptions($product);
        foreach ($prodAttrOptions as $prodAttrOption) {
            $configurableData[$product->getId()] = array();
            foreach ($prodAttrOption as $optionValues) {
                $val = $optionValues['option_title'];
                $configurableData[$product->getId()][] = array(
                     $optionValues['sku'] =>  $optionValues['attribute_code']."=".$val
                );
            }
        }
    }
    return ($configurableData);
}

This returns empty array.

for eg if config prod (A) has option of color and size. i need simple product A1,A2,A3 with color and size associated with options
     A1 = array(color => red,size => M)
     A2 = array(color => red,size => S)

Kindly Let me know how can I achieve this


texts:
What code that trigger the ajax auto reload on payment method and order review on one step checkout?
is it on the

  /skin/frontend/base/default/js/checkout/opcheckout.js


texts: How to load extra column information into braintree settlement report?

texts:
I want to add extra 2 columns into braintree settlement report after Existing Report Columns currently we have override braintree_report.xml file & show extra columns but load information after filter the report

First column as payment method from sales_order_payment table

Second column as credit card type from sales_order_payment table

Can we help me how to load the extra columns information?


texts: Automatically copy product information into store B when updating store A

texts:
I have this setup:

Website                Store          View
www.domain.com         Consumer       Danish
                                      English

wholesale.domain.com   Consumer       Danish
                                      English

When I update product name and product description for the "English" View for "www.domain.com" I want Magento to automatically update "English" for "wholesale.domain.com".

Is that possible?


texts: When is the sales_order_shipment_track_save_before event triggered?

texts:
In Magento 1.9 what action(s) will trigger the sales_order_shipment_track_save_before event?
We have a third-party extension which uses this event and I want to understand when exactly it will be triggered.


texts: Cache issues with logged in users Magento2

texts:
We're facing an annoying issue in Magento 2.2.5. We have customers that are attached to a customergroup with different prices. This is our scenario:

User visits 2 or 3 categories and sees the regular prices
User logs in into his account
User visits same categories again, and should see the different prices but sees the old (cached) prices. After a hard-refresh the different prices are shown, but these should be shown right away.

We also faced this issue before on Magento 2.0.14. For caching we use Varnish.


texts: Can i replace die() with Mage::throwException()

texts:
I have to replace this code

die('Could not open socket');

because of coding standard can i replace with it Mage::throwException()

Mage::throwException('Could not open socket');


texts: PWA Store Deployment on server - Development

texts:
I would like to know how to deploy PWA store (With magento pwa-studio) on staging or any other server without passing the PORT number ?

I am working on currently PWA demo instance (Latest Magento version 2.3.1) - as PWA apps running with port number only - URl like - local.pwa.local:2823 (So URL with Port number)

What i want is to run PWA application on my server without port number,directly with the domain name Like - https://mypwa.com

As of now what i have tried as an prerequisite  is as below :

SSL is already enabled on server
PWA is running with PORT Number on server
Able to set my custom URL with Port number on server
Using nginx reverse proxy i have redirected port number with 443 and store is loading with only domain as well - but issue here is assets are not loading and it gives error.
It giving CORS policy error as well.

Can anybody have achieve the same ? is there any standard practice that we need to follow to deploy the pwa-studio ?

Looking forward to here your thoughts/suggestions on the same.


texts: In Magento 2.1.5, is there a way to render a widget within a template by its ID?

texts:
I would like to render a widget in my template by its ID, just like I have with blocks:

echo $block->getLayout()->createBlock('Magento\Cms\Block\Widget\Block')->setBlockId('widget_id')->toHtml();


texts: Magento 2 Setup Wizard Installation successfully but cannot access the Admin page

texts:
I've installed successfully the Magento-CE.2.1.7 via Setup Wizard installation in Ubuntu16.04 Apache2.4.18 PHP 7.0.18, but cannot access the Magento Admin in the web browser. I've tried command a2enmod rewrite or  a2enmod access_compat, but it does not solve the issue.

when I use the command  php bin/magento cache:status , get the errors below even I have enable openssl extension extension=php_openssl.dll and  extension_dir = "ext"  in the file /etc/php/7.0/cli/php.ini :

The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.#0 /var/www/html/vendor/composer/composer/src/Composer/Factory.php(306): Composer\Factory::createRemoteFilesystem(Object(Composer\IO\BufferIO), Object(Composer\Config))
#1 /var/www/html/vendor/composer/composer/src/Composer/Factory.php(532): Composer\Factory->createComposer(Object(Composer\IO\BufferIO), Array, false)
#2 /var/www/html/vendor/magento/framework/Composer/ComposerFactory.php(47): Composer\Factory::create(Object(Composer\IO\BufferIO), '/var/www/html/...')
#3 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(362): Magento\Framework\Composer\ComposerFactory->create()
#4 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(375): Magento\Framework\Composer\ComposerInformation->getComposer()
#5 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(242): Magento\Framework\Composer\ComposerInformation->getLocker()
#6 /var/www/html/vendor/magento/framework/App/ProductMetadata.php(104): Magento\Framework\Composer\ComposerInformation->getSystemPackages()
#7 /var/www/html/vendor/magento/framework/App/ProductMetadata.php(65): Magento\Framework\App\ProductMetadata->getSystemPackageVersion()
#8 /var/www/html/vendor/magento/framework/Console/Cli.php(81): Magento\Framework\App\ProductMetadata->getVersion()
#9 /var/www/html/bin/magento(22): Magento\Framework\Console\Cli->__construct('Magento CLI')
#10 {main}

Fatal error: Uncaught Error: Class 'Cli' not found in /var/www/html/bin/magento:31
Stack trace:
#0 {main}
  thrown in /var/www/html/bin/magento on line 31

I have googled the issues , but no luck. Would you please help.