texts: Magento 2.1.2 installation readycheck failed

texts:
At my clients webserver I'm trying to install Magento 2.1.2.

We have secured the domain with a Let's Encrypt SSL certificate and this seems to work fine.

Unfortunately I get two errors in the readycheck of Magento 2:

  PHP Version Check Your PHP version is. The required PHP version is.
  Hide detail

  Download and install PHP from www.php.net using this PHP
  Documentation.

  For additional assistance, contact your hosting provider.

and

  Cannot determine required PHP extensions: Warning: is_dir():
  open_basedir restriction in effect. File(/etc/pki/tls/certs) is not
  within the allowed path(s):
  (/home/devcbs/:/tmp/:/var/tmp/:/usr/local/php56/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/lib/php/)
  in
  vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php
  on line 914

  PHP Extensions Check missing PHP extensions. Hide detail

  The best way to resolve this is to install the correct missing
  extensions. The exact fix depends on our server, your host, and other
  system variables.  Our PHP extension help can get you started.

  For additional assistance, contact your hosting provider.

To get through the readycheck I edited composer.json and added "disable-tls":true. This fix will get me through the readycheck but does not solve the problem, because it causes more errors after the setup has been completed.

Edit: I've tried to readycheck Magento 2.1.2 setup on another webserver without any problems. On this server there're no cron jobs set so far.

Does anyone know what kind of problem with the webserver might be and better how to fix this?

I hope someone can help me out with this because I'm clueless.


texts: How to add custom data in admin dashboard?

texts:
My module have product questions.

Now i want to display latest 5 question in dashboard using my custom module

How can i do this??


texts: Magento 2 rest api to get customer password using customer id

texts: I want to get customer password using customer id. I developed mobile application. Magento use a backend service. Any options to get customer password using get method.


texts: Making Payment via Paypal sends two confimation emails

texts:
When I do payment using other payment methods its sending only one confirmation email one to user and one to admin , but when I use paypal as payment method it send two confirmation emails to admin and two to user ? Not sure whats happening here ?

UPDATE

I debugged more and found that I can make changes to send() method of OrderSender class , I tried changing it in core file vendor/magento/module-sales/Model/Order/Email/Sender/OrderSender.php and it worked for me .

but I don't want to make changes to the core file so I created a custom plugin to achieve this

module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="rahul_Sendorderplugin" setup_version="1.0.0"/>
</config>

registration.php

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

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">
    <preference for="Magento\Sales\Model\Order\Email\Sender\OrderSender" type="rahul\Sendorderplugin\Model\Order\Email\Sender\OrderSender"></preference>
</config>

OrderSender.php

<?php

namespace rahul\Sendorderplugin\Model\Order\Email\Sender;

use Magento\Sales\Model\Order;

class OrderSender extends \Magento\Sales\Model\Order\Email\Sender\OrderSender
{

    public function beforeSend(Order $order, $forceSyncMode = false)
    {
        echo "hello";exit; // but its not working
    }
}

Please suggest what am I doing wrong here .

Thanks


texts:
Error #410301 : Products not available between this origin and
  destination (network segment) for DHL in Magento 2.3.2

Hi everyone.

I've a problem with DHL integration in Magento


texts:
I have a magento theme installed which comes with a banner. But I'm trying to add more functionality to the banner to make it catchy for customers. I want the banners to zoom in or out when any image slides in.

I have a sample code which I added to the banner static page but the issue here is that if the page loads and a banner is slides in, my zoom in/out function doesn't work on each the banners separately. Instead, it continues zooming in or out from where another banner stops.

What I'm trying to achieve is for each banner to either zoom in or out when it loads and if another banner slides in, it starts the zoom function afresh without continuing from where another banner stops.

I'll be really grateful for any support or if there is a better way I can get this done.
Below is my code;


texts: Add custom attribute to sales order address

texts:
I have a custom attribute for customer address which I setup using EAV, I load the custom attribute for customer address using order like this:

// Magento\Customer\Api\AddressRepositoryInterface
$order = $objectManager>create('\Magento\Sales\Model\Order')>load($orderId);
$shippingAddress = $order->getShippingAddress();
$customerAddressId = $shippingAddress->getCustomerAddressId();
$address = $this->addressRepository->getById($customerAddressId);
$customAttribute = $address->getCustomAttribute();

The problem is when the guest makes an order, the guest address was not saved in customer address table. But, it was saved inside sales_order_address table, So, that was the problem. I need to make the custom attribute for sales_order_address.


texts:
In My website i want to show in this way

Grand total = subtotal + tax

Even i can't under stand how it will display and how taking tax based on product. Can you please explain some one?


texts:
I have a Shop with a whole bunch of configurable products. There are some attributes for Size and color, whereby technically everything is working fine.

But there is one thing I cannot get my head around: How to make Magento print the right label of the Attribute in the right language?

Instead of the Label, which can be set in the »manage Label / Options« tab (inside the attributes' manage view), it prints the attribute code…

How can I make Magento print the Label?

Please see the image below:
The values within the »Manage Titles (Size, Color, etc.)« are just not used in the frontend.

Thanks in Ahead!


texts: How to change product list grid and image size?

texts:
How to change product list grid image size and how to change grid from 4 to 3? Because the images are so small now.

I want to have larger images and change grid from 4 to 3.

I am using Magento 1.9.1.


texts: Magento 2 - Use Bootstrap 4 (Uncaught Error: Script error for: bootstrap)

texts:
I try to install bootstrap 4.

  Note: THEME_LOCATION => app\design\frontend\company\base

First I downloaded the Compiled CSS and JS from here.

I moved the file bootstrap.min.css to THEME_LOCATION\web\css\bootstrap.min.css

and bootstrap.bundle.min.js to \web\js\bootstrap.bundle.min.js

Then I added the requirement to

  THEME_LOCATION\Magento_Theme\requirejs-config.js

var config = {
    paths: {
        'bootstrap':'Magento_Theme/js/bootstrap.bundle.min'
    },
    shim: {
        'bootstrap': {
            'deps': ['jquery']
        }
    }
};

Then in default_head_blocks.xml I added the css:

  THEME_LOCATION\Magento_Theme\layout\default_head_blocks.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

        <css src="css/bootstrap.min.css" />

</page>

And at last but not least I added this line:

to

  THEME_LOCATION\Magento_Theme\templates\html\header.phtml

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

// @codingStandardsIgnoreFile

/**
 * @var \Magento\Theme\Block\Html\Header $block
 */
$welcomeMessage = $block->getWelcome();
?>

<?php switch ($block->getShowPart()):
    case 'welcome': ?>

            <span class="logged-in" data-bind="text: new String('<?= $block->escapeHtml(__('Welcome, %1!', '%1')) ?>').replace('%1', customer().fullname)">

            <span class="not-logged-in" data-bind='html:"<?= $block->escapeHtml($welcomeMessage) ?>"'>
            <?= $block->getBlockHtml('header.additional') ?>

    <?php break; ?>

    <?php case 'other': ?>
        <?= $block->getChildHtml() ?>
    <?php break; ?>

<?php endswitch; ?>

At the end I executed php bin/magento cache:flush to clear the cache.

But I get require.js:166 Uncaught Error: Script error for: bootstrap if I load a site.


texts: Retrieve the Magento product data from Apache Solr

texts:
Folks,

I am fairly new to Magento.

I intend to use Magento for a purely search driven solution where in the products will be primarily be displayed upon search by product name.

My search infrastucture is Solr based with an existing index in place , I need to know if I can source the product data solely from an index in Apache Solr and if the products can be displayed only when a search is made by the product name with in the Magento app.

I have seen posts where apparently the search with in Magento is supported by Solr, but I was not sure if the product data can be solely sourced from a Solr index.

EDIT

I have been asked to clarify , when I say source data from Solr , I mean all the attributes  for a product , like name , price, description, images(urls) , etc.

I have a solr index which has all the attributes of a product.


texts: CE.1.9.1 Magento Product Prices Massive Upgrade

texts:
I'm new over here and also new in Magento!

My issue is the following, I'm developing my first "Simple Products" Magento ecommerce site and my client ask me he needs to be able to upgrade product prices frequently - increase or decrease them, cause of those prices depend of the markets and/or competitors behavior -

So, my question: Is there any way to tag, attribute, group etc the products in order my client could change the products prices by entire blocks of them, instead to do it one by one?

It's important you to know that my client also need use the Client Groups functionality in order to offer discounts in reference to the normal price according with the client profile. So I can't use this function.

Thanking all of you in advanced for your answers.


texts: $item->getQtyBackordered() in magento 2?

texts:
i can't find the right way to get if a product is backordered.
In magento 1 was

$item->getQtyBackordered()

In magento 2?

this is my cart.phtml:

<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?php
/**
* Shopping cart template
*
* @var $block \Magento\Checkout\Block\Cart
*/

$check = false;

foreach($block->getItems() as $item) {

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$GP = $objectManager->create('Magento\Catalog\Model\Product')->load($item->getProductId());
$disp = $GP->getResource()->getAttribute('selezione_disponibilita')->getFrontend()->getValue($GP);

if(strpos($disp, 'disponibile') !== false){

    $check = true;

}

if($item->getQtyBackordered() > 0){
   $check = true;
};

}

if($check == true){

?>

<div style="display:block; background-color: #f5f5f5; padding: 20px; margin: 20px 0px 20px 0px;">
    <?php
    echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('avviso_spedizione')->toHtml();
    ?>
</div>

<?php

}

if ($block->getItemsCount()) {
echo $block->getChildHtml('with-items');
} else {
echo $block->getChildHtml('no-items');
}


texts: Confirm email after Customer signup magento 2

texts:
I am developing a e-commerce mobile application using magento 2 REST apis.

The sign up api is working perfectly.

Signup Api->   http://{{domain_name}}/index.php/rest/V1/customers

Also I  changed my system configuration for confirming the mail is.

1.Go to System -> Configuration -> CUSTOMERS -> Customer Configuration

2.Click Create New Account Options

3.Set Require Emails Confirmation to Yes

4.Click  Save Config.

Here the problem,after signup.The confirmation mail is not sending to the customer.Please help me?


texts: Magento 2 how to create custom index.php and pass store code programmatically?

texts:
I have a multi-vendor e-commerce platform, everytime I create a new store I need to create a folder for the store and include an index.php
for example:
var/www/html/magento/stores/store2/index.php

Inside the index.php I add the store code like this:
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'store2_code'; //this is the important line
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'store';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);

How could I programmatically create an index.php file and add the store code?
Currently I know how to create the store programmatically, but just the index.php is missing.
Thanks!


texts: Consumer is not authorized to access %resources REST API

texts:
I use MAGENTO 2 REST API in MobileFIrst project (Worcklight)
in my adapter :

function _retrieve(token) {
    if (!token)
        return { 'isSuccessful': false, 'errorMsg' : 'params is ' + params};
    var authtok = "Bearer "+ token;
    var input = {
        method : 'get',
        returnedContentType : 'json',
        path : 'rest/default/V1/categories/41/products',
        parameters: { },
        headers: {"Accept":"application\/json", "Authorization":authtok}
    };
    return WL.Server.invokeHttp(input);
}

and get this result :

{"message":"Consumer is not authorized to access %resources","statusCode":401,"isSuccessful":true,"statusReason":"Unauthorized","parameters":{"resources":"self"},"responseHeaders":{"Content-Length":"95","Expires":"Thu, 19 Nov 1981 08:52:00 GMT","X-XSS-Protection":"1; mode=block","Connection":"Keep-Alive","Server":"Apache\/2.4.17 (Win32) OpenSSL\/1.0.2d PHP\/5.6.15","X-Powered-By":"PHP\/5.6.15","Cache-Control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","Pragma":"no-cache","X-Content-Type-Options":"nosniff","Date":"Mon, 21 Mar 2016 13:04:35 GMT","Access-Control-Allow-Origin":"*","Keep-Alive":"timeout=5, max=100","Content-Type":"application\/json; charset=utf-8"},"responseTime":1899,"totalTime":1899}*/

whene i use the RestClient it works !

Status:200: OK


texts: Minimum Qty Allowed in Shopping Cart for Simple Products effects Bundle Products

texts:
Steps to reproduce

Create a Simple Product
Set the "Minimum Qty Allowed in Shopping Cart" for that Simple
Product e.g. to 5
Create a Bundle Product
Add the Simple Product to an Option of the Bundle Product
Open the Bundle Product on Frontend
Select the Simple Product and set the desired quantity below the
defined "Minimum Qty Allowed in Shopping Cart" (e.g. < 5)
Try to add the Bundle Product to the Shopping Cart

Expected result
The Bundle Product will be successfully added to the Shopping Cart even when the quantity of the Simple Product is below the defined "Minimum Qty Allowed in Shopping Cart".
Actual result
The Bundle Product can not be added to the Shopping Cart, the page refreshes and the error message "The fewest you may purchase is %1." is shown.


texts: Product count mismatch in magento default product export

texts:
I have a doubt when i check product count in catalog -> manage product section it showing some count ex: "Total 28000 records found" But when i export that all products in System -> import/export -> Exports sections i got an 26800 product only some products are gone.

I have a confident this related core functions would not change any time.
So please give me your idea regarding what are the possibility available to happened this issues.


texts: Magento 2 Frontend panel not working after ssl

texts:
In the backend, I've enabled Use Secure URLs in the Frontend and I changed all the setting but my site is not working.
see below screenshot:


texts: Magento 1: Skip payment depending on shipping method selected

texts:
I have this problem where I need to skip payment options when a user choose flat rate shipping method and show payment if user choose other shipping method.

I looked for similar problem but couldn't find any. Can you guys suggest me a snippet or idea on how to achieve it?

Edit:

This question (Filter Payment Method besed on Shipping Method) is just hiding or removing specific payment method not skipping the payment method itself.

I just want to skip the whole payment method and continue to order review. Just skip the payment method.

Example:

Shipping Method => Flat rate (Selected and click continue button)
Payment Method => Skip (auto selected payment = Custom Payment)
Order Review Loaded

Update[09/29/2016]:

This post magento.stackexchange.com/questions/45166/… help a bit but doesn't really skip the payment itself. So what I did is auto select the payment and add javascript/jQuery script to fire automatically the continue button.

Thanks


texts: How can I track Add To Cart values using Facebook Pixel custom pixel for Magento 2 without plugins?

texts:
I would appreciate any help with setting up a custom Facebook Pixel for Magento which tracks the values for when customers add products to their cart. My store requires for the swatch option to be selected before a product can be successfully added to the cart (eg click/select your size before clicking on add to cart).
Does anyone have an idea on how I can track the value of the swatch options and pass them into my Facebook pixel? I am using the custom pixel option:
<!-- Facebook Pixel Code -->

!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1234567890');
  fbq('track', 'AddToCart', {
  content_type: 'product'
});
  fbq('trackCustom', {content_name: '{{Click Text}}'});

Any tips or advice would be appreciated, thanks.


texts:
buddy:
   Recently i build a new magento 2.2.1 vesion site, but i feel it running very slow! I first contact the magento 2.0 vesion, so i have many things need to study.
   Now I want to know how to optimization the magento 2.0 vesion? I have via google to search the methods, but i don't found the good methods. Maybe i'm not intelligence, so i need your help or advice?
   Thank you very much!


texts: Magento 2 data migration table or view not found

texts:
I'm migrating Magento 1.7.2 to Magento 2.3.4 with respect to Magento data migration documentation. However I'm getting below error after post processing.

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mgn_' doesn't exist, query was: SELECT COUNT(*) FROM  mgn_

I'm unable to figure out issue, since error comes with prefix alone and no table is mentioned.

  [WARNING]: Mismatch of entities in the document: mgn_inventory_source_item Source: 3311 Destination: 3307
  [WARNING]: Volume Check failed

  [INFO][mode: data][stage: data migration][step: PostProcessing Step]: started
  92% [=========================>--] Remaining Time: 1 sec In Mysql.php line 110:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mgn_' doesn't exist, query was: SELECT COUNT(*) FROM mgn_


texts: Magento 1 : How to know which cron run first

texts:
I have setup 2 cron for same time At 08:45 on every day-of-week from Monday through Friday

Lets assume there are two cron A and B

Cron A change status of order and in Cron B I want to use that changed status to do some calculation

How can I insure that cron A call first and cron B call after that

I know I can change cron timing to 08:45  but I want to if there is any sort order I can set for cron in magento 1


texts: How to get billing address and shipping address in Magento 2 Invoice API?

texts:
Any options to get billing address and shipping address in magento2 rest api. I want to get billing address and shipping address in invoice api.
Method: Get
Url: http://127.0.0.1/jaipur/rest/V1/invoices/1


texts: Customers can't login and can't create an account

texts:
On some browsers users are unable to login. Users also don't get feedback. The Magento system just doesn't respond. Sometimes the login does work in incognito mode.

Some things I already checked
- formkeys are integrated in the forms
- "web/cookie/cookie_domain" are for all storeviews set to null. - We run multiple storeviews eg; example.com/en/ , example.com/de/

I also tried modifying the cookie settings in the code as suggested on this url http://blog.chapagain.com.np/magento-admin-login-problem/ (however this article is related to the magento admin, where our problem is the frontend) but also that didn't work.


texts:
My Magento shop has the Dutch Tax settings, but I cannot get them to work. I have enabled all the right settings but it will not make any tax changes.

When I add a product to the cart it displays:

In the backend I give the product a 21% tax rate  with it, and the tax settings are as followed:

Has anybody any clue what i am doing wrong? I have been searching through scripts but didn't edit anything. Please help, cant launch now.

TAX RATES


texts: Admin not loading _toHtml(): Cannot load resource

texts:
I have installed Magento 2.4.1, Frontend pages are working fine but while loading admin page it is throwing exceptions.

1 exception(s): Exception #0 (Exception): Warning:
Magento\Framework\View\Element\Html\Calendar::_toHtml(): Cannot load
resource element '0' in
C:\xampp\htdocs\test\vendor\magento\framework\View\Element\Html\Calendar.php
on line 114

I have tried running the following commands:
bin/magneto setup:upgrade
bin/magneto setup:di:compile
bin/magneto setup:static-content:deploy
also tried clearing cache and re indexing etc.
Please guide me to fix this.


texts: Get product collection based on custom attribute (drop down attribute value)

texts:
I created a custom drop down attribute in Magento2 from admin. I tried to collect all associated products by using filters. I am able to filter product collection based on text field attributes, for example

$productcollection = $this->_productCollection
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('sku', '24-MB01')
    ->load();

But when I try to filter using dropdown custom attribute value I'm getting an empty array

$productcollection = $this->_productCollection
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('tag', 'popular')
    ->load();

How am I supposed to filter product  collection using a dropdown attribute. Can someone help with this?


texts: How to replace final_price.phtml with custom.phtml file only on product view?

texts:
Using Magento ver. 2.3.0. I want to display my custom final price block only on catalog product views. I try to replace final_price.phtml with my custom_price.html that I have created in \app\design\frontend\company\themename\Magento_Catalog\templates\product\price\custom_price.phtml

I understand that I need to edit \app\design\frontend\company\themename\Magento_Catalog\layout\catalog_product_view.xml

I have tried:

<referenceContainer name="product.info.main">
    <block class="Magento\Catalog\Pricing\Render" name="custom.final.price" after="product.info.price" template="Magento_Catalog::product/price/custom_price.phtml"/>
</referenceContainer>

What XML part do I need to insert or edit to make this work ?


texts:
How can i print array values in magento 2?
I am using below code to print log in magento 2 but it will only print string values.

\Magento\Framework\App\ObjectManager::getInstance()
    ->get('Psr\Log\LoggerInterface')->debug('message');

Thanks for your reply in advance.


texts: Remove shipping method step from checkout page for particular country like US

texts: Remove shipping method step from checkout page for particular country like us how can i do this ....after disable all method  from admin side only free shipping is enable.If any one know reply me.


texts:
Ok, this sounds like it should be really simple but its driving me crazy. All I want to do is change the title above the Newsletter subscribe form in the footer of Magento 2. I have a child theme of Luma.

I thought I could just copy module-newsletter from vendor/magento/module-newsletter in to my theme directory and it would override. But this doesn't seem to be the case. There must be a way of altering the /vendor/magento/module-newsletter/view/frontend/templates/subscribe.phtml file from my child theme?


texts: Can I change custom attribute scope from Global to Website so it does not appear in my second store?

texts:
I do not want the custom attribute "SCOTT#" which is currently in use in my live Magento store to appear in a second store I am setting up.

If I change the scope of this attribute "Global" to "Website", will I lose all the data I currently have on my live website?

(I will only make this change if it will not affect the attribute in my current live site, as it is critical for that site's operation.)


texts: How to set Promotion cart rules that customer can use only one Rule

texts:
my question :

How to set up cart rules that customer can use only one Promotion .

example

Today we offer free shipping ( without coupon ) but in promtion rule .
customer have also coupon 5% discount)

so today automatic Free shipping , but customer insert coupon code and get two promotions two discounts !

what we want is . if customer insert coupon code so the other promotion is lost .

any suggestion .?


texts: new registration page refreshing without any changes

texts:
I patched the magento 1.9.0.1 with SUPEE-6788-1.9.0.1 now it is not registering customers. page simply refreshes and showing no error or any change.
I added the code

<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
    **<?php echo $this->getBlockHtml('formkey') ?>**

<input type="hidden" name="form_key" value="<?php //echo Mage::getSingleton('core/session')->getFormKey() ?>

To

   app/design/frontend/base/customer/form/register.phtml
   app/design/frontend/base/customer/form/resetforgottenpassword.phtml
   app/design/frontend/base/persistent/customer/form/register.phtml

i am using an extension clarion and changed it there as well

app/design/frontend/base/clarion/customerattribute/form/register.phtml

Still the issues has not been fixed. please help


texts: Magento 2 MSI does not respect the "Display out of stock products" setting

texts:
Create a configurable with 2 simples
Set qty > 0 for one simple, the other has qty = 0 and is_salable = 0
Set "Display out of stock products" = 1 in Store -> Configuration -> Catalog -> Inventory

Expected result
The swatches belonging to the simple with is_salable = 0 should be displayed and striked through, indicating that the simple is out of stock

Actual result
The swatches belonging to the simple with is_salable = 0 is NOT displayed at all


texts: Notice: Undefined index: is_in_stock in vendor/magento/module-configurable-product/Model/Product/VariationHandler

texts:
When attempting to create Configurable products, we are receiving the error below. I've disabled any 3rd party modules I thought could be causing the issue, we were using both Bss_CustomProductAttributeExport and Elgentos_LargeConfigProducts, but the error persists with both of them disabled. Has anybody else encountered this issue?

Notice: Undefined index: is_in_stock in /home/complete/bookletstomorrow.com/vendor/magento/module-configurable-product/Model/Product/VariationHandler.php on line 206

We are running Magento 2.3.0 on PHP7.1.32


texts: Adding QTY+Location to order view page, Demac Magento-Multi-Location-Inventory Extension

texts:
DemacMedia Magento-Multi-Location-Inventory extension installed to 1.9.2.4 store. Working good and mass stock upload is also working

Added picture to show module and explaining what I want to do.

https://github.com/DemacMedia/Magento-Multi-Location-Inventory

It is showing Multi-Location QTY info only inside of Edit Product Page

I tried many things to put Location+QTY info to Order view page (sales_order/view/order)

Tried to add variation of below data to

  app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml

but nothing changed. I want see below data (location+qty) at view order page.

$this->getLocationsInventories() as $_location)

$_location['code'], $_location['qty']

Below code is original Multi-location file of module.

  app\design\adminhtml\default\default\template\demac\catalog_multilocationinventory.phtml

<?php foreach ($this->getLocationsInventories() as $_location): ?>

                            <?php echo $_location['name'] ?>

                            <input type="text"
                                   name="multilocationinventory[<?php echo $_location['id'] ?>][quantity]"
                                   class="input-text validate-number"
                                   <?php echo ($_location['manage_stock'] === "1") ? '' : 'style="visibility:hidden;"' ?>
                                   value="<?php echo $_location['qty'] ?>"/>


texts: For a cms/block entity, why are the subordinate data deleted from cms_page_store explicitly?

texts:
cms/block entities have a join table cms_block_store, the records in which link a given block to one or more stores. Prior to CE 1.6, the resource model Mage_Cms_Model_Mysql4_Block (link) does not separately remove these records before the entity is deleted, effectively relying on the cascade to remove them. As of 1.6.0.0, the relocated resource model explicitly removes these records in Mage_Cms_Model_Resource_Block::_beforeDelete (link) before the entity is deleted from cms_block:

protected function _beforeDelete(Mage_Core_Model_Abstract $object)
{
    $condition = array(
        'block_id = ?'     => (int) $object->getId(),
    );

    $this->_getWriteAdapter()->delete($this->getTable('cms/block_store'), $condition);

    return parent::_beforeDelete($object);
}

Is there an apparent reason for performing this operation in two separate queries rather than relying on the cascade as it did before?


texts: Set default locale for bin/magento setup:static-content:deploy

texts:
When running deploy static content on my store i always need to add the locale at the end of the command or my store breaks.

bin/magento setup:static-content:deploy en_GB

I was wondering if I am doing anything wrong here and if i can set this so the locale is not required.


texts: Magento 2: available options for grid column config (UI Component)

texts:
I add custom grid to adminhtml in Magento 2. This is definition of my UI Component

  ./view/adminhtml/ui_component/my_own_grid.xml

```

    ...

    <column name="id">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">number</item>
                <item name="filter" xsi:type="string">text</item>
                <item name="label" xsi:type="string" translate="true">ID</item>
            </item>
        </argument>
    </column>

</columns>

```

Where can I find list of available options for column configuration (dataType, filter, label, ...)?


texts: Layout xml naming convention format magento 2

texts:
Can u confirm if the layout xml file im using is of the proper format

routerfrontname_controllerfrontname_controlleraction.xml

Eg:

routes.xml

<router id="standard">
    <route id="something" frontName="s"/>
</router>

Controller path:

Controller/Result/Index.php

Then my layout file will be as :

s_result_index.xml?  Am I correct.

1) Can the "route id" and "frontName" be different?

2) If it is different too, then we use route frontname (ie 's' in my case).
Correct?


texts: Admin role have no permissions, when I log in I just see only a extensions. How to reset permission in database MAGENTO 2 version?


texts: If i rename "setup" folder in root directory

texts: There is folder named "Setup" in magento 2, what if i changed the folder name? is it affect anything on front-end?


texts: Magento 2.2.9 Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) magento setup:upgade command

texts:
I received the error when I try to run on the live site. ( I was able to upgrade to 2.2.9 for the test site, which was cloned from the live site).

after i did

  composer require magento/product-community-edition 2.2.9 --no-update

  composer update

for updating from magento 2.2.6. to 2.2.9 (which went fine), then ..

  php bin/magento setup:upgrade

error message is .........

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/username/m2stagenew/generated/code/Magento/Framework/App/Config/Value/Interceptor.php on line ....

magento version is 2.2.7 - > 2.2.9

php -v ---> shown php version is 7.0.033

but in siteground cpanel, shown "PHP 7.1.30" is selected"

I have searched and found a few answers, but all applied to 2.3.x version, which required high php versions (7.1 or 7.2).
so i also tried the following command

  php72 bin/magento setup:upgrade

which came out with another error..


texts:
I wanna insert a block in the review part of the checkout process, but it will not work. I did the following in my local.xml file:

<checkout_onepage_review>
    <reference name="root">
        <block type="myblock" name="myblock" as="myblock" template="mytemplate.phtml"/>
    </reference>
</checkout_onepage_review>

if i include the block in the base layout checkout.xml it works... Is the reference root correct? Can't find any mistake...


texts: Magento 1.9.2.4 : Product Images and browse and Upload button Missing

texts:
I am using Magento ver. 1.9.2.4, I have tried all solution available on different threads but unable to get "Browse Button" and "Upload Button" in product image tab. I have tried chrome, MicrosoftEdge, Opera and Firefox but not successful. Please suggest me a solution as soon as possible.
Thanks


texts: How to restore core_confg_data in magento

texts: I deleted the core_confg_data and now I can't access my magento store, does anyone know how to re install it or recover it ? I am already trying for several hours...


texts:
I imported products in magento 2 backend. All are properly imported

Now when i trying to edit any of those imported products none of them get imported.

I can make changes but save button not working.

I can update imported products by same csv method
And i can also edit or update manually added products.

There is No error on console.

Now i also want manually edit imported products too..


texts: set product attribute where attribute is string

texts:
To set an attribute val I would use:

$product->setNameofmyattribute('somestuff');

Now I have the name of my attribute in a string.

So how can I merge:

$attribute = 'Nameofmyattribute';
$product->set[here comes my string]('somestuff');


texts:
I have been working with project where client requires dynamic pricing to be displayed on each product depending up on customer region and customer type. The issue is when i enable full page cache that price block get cached for every customer and display same price for non logged in and logged in user.

I want to hole punch price.phtml file block but i am unable to find the exact name of same block.

I have tried searching solution everywhere but i haven't found any.

How can i hole punch price block with any full page caching mechanism.


texts: Multiselect attribute not saving in Magento 2.3.0

texts:
I have created the multi-select attribute for customer address using below code.

Setup/UpgradeData.php

        $customerEntity = $customerSetup->getEavConfig()->getEntityType('customer_address');
        $attributeSetId = $customerEntity->getDefaultAttributeSetId();

        $customerSetup->addAttribute('customer_address', 'address_purpose', [
            'type' => 'text',
            'label' => 'Address Purpose',
            'input' => 'multiselect',
            'required' => false,
            'visible' => false,
            'user_defined' => true,
            'sort_order' => 1000,
            'position' => 1000,
            'system' => 0,
            'backend' => 'Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend',
            'source' => 'Vendor\Module\Model\Entity\Attribute\Source\AddressPurpose'
        ]);

        $attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'address_purpose')
            ->setData([
                'used_in_forms' =>  ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address','customer_address']
            ]);
        $attribute->save();

Here is my AddressPurpose.php

  use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;

 class AddressPurpose extends AbstractSource
  {
   public function getAllOptions()
    {
        return [
           'option1' => [
            'label' => 'Delivery',
            'value' => 'delivery'
        ],
        'option2' => [
            'label' => 'General',
            'value' => 'general'
           ]
        ];
     }
   }

Using above code customer address attribute created successfully.

When I open any customer in admin and selected the option and click Save, The customer getting saved but the selected options are not getting saved.

Again I edit the same customer, Address purpose attribute values empty with none selected.

Have anyone face this issue? Please help me on this. Thanks


texts: Resend email confirmation after customer changed his email address

texts: Magento's default behavior is to send a confirmation email to new customers, but if a customer that already has an account change his/her email address, Magento does not verify the new one. Is it possible to resend the confirmation email?


texts: Google conversion tracking in Magento Fooman/Inchoo

texts:
we use Google Analytics+ from Fooman to track in google analytics.

http://store.fooman.co.nz/magento-extension-googleanalyticsplus.html

Now we want to really track the conversions also. There is a field in the extension from Fooman that says: conversion Id, but this does not seem to work.

On the other hand I see this extension from Inchoo that seems to focus on the conversion

http://inchoo.net/ecommerce/magento/magento-and-google-adwords-conversion-tracking/comment-page-1/#comment-54344

Question:
Is there an extension that does both/all in one?

And of not, would I need to install both extension separately to be complete? or does Fooman's extension also support the latter?


texts: Magento quantity increment/decrement problem

texts:
I used Increment & Decrement qty in Shopping Cart page

        <button title="Decrease Qty" onclick="changeQty('<?php echo 'qty_'.$_item->getId() ?>',0); return false;" class="decrease"><?php echo $this->__('decrease') ?></button>

        <button title="Increase Qty" onclick="changeQty('<?php echo 'qty_'.$_item->getId() ?>',1); return false;" class="increase"><?php echo $this->__('increase') ?></button>

it's working fine while increment one by one if i type 5 and press enter it automaticall reduce 1 product it shows 4 only. What is the problem


texts: Magento2 Hide/Show custom product types in catalog and search based on condition

texts:
I've setup a custom product type and now I want to filter them out of the catalog and search without changing the visibility attribute.

Then I want to show them selectively base on a specified condition (ie. if that product is associated with the specific customer ID, but the logic for this part is already in place).

I am trying to reverse engineer the code to find where the catalog module generates the query to get the product list and intercept it with a plugin or override the class entirely. I feel that I am close but I can't quite find the exact point.

Does anyone know how can I approach this?

Thank you!


texts: add to cart programmatically doesn't work

texts:
I'm building rest api to dd product to cart but it doesn't work and returns quote = null.

here is my code

 /**
* @api
* @param int $productId
* @return \Magento\Quote\Model\Quote
*/
 public function addItem($productId){
    $customer = null;
    $isGuest = true;
    if($this->isLoggedIn()){
        $customerId = $this->userContext->getUserId();
        $isGuest = false;
    }

    $_product = $this->productRepository->getById($productId);
    $customerId =  $this->userContext->getUserId();
    $quote = $this->cartObj->getQuote()->loadByCustomer($customerId);
    $quote->setCustomerIsGuest($isGuest)
    $this->item->setProduct($_product);
    $quote->addItem($this->item);
    return $quote;
}

 /**
* @return bool
*/
public function isLoggedIn(){
    $customerId = $this->userContext->getUserId();
    $userType = $this->userContext->getUserType();
    if($userType == UserContextInterface::USER_TYPE_CUSTOMER){
        return true;
    }
    return false;
}


texts: Magento2: shared cart, shipping costs for each store

texts:
I'm making a magento installation and i'm looking to do something like this.
Have a main website, and multiple small ones. All the products will be available in the main website. Now if a user shops from the main website he will be charged for the shipping costs for the store the item is in. If those items are from multiple other stores then those fees will all add up.

Any way i can do this ? Any extension even available or similar to this ?

Thank you


texts: Category Custom Layout Update XML - Magento

texts:
I'm trying to use a different phtml file in an layout update for a category for the product_sublist.

Here's the catalog xml:

<reference name="content">
    <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
        <block type="catalog/product_list" name="product_sublist" template="catalog/product/subcatlist.phtml">
            <action method="setColumnCount"><count>5</count></action>
            </block>
        <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
            <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                <block type="page/html_pager" name="product_list_toolbar_pager"/>
                <!-- The following code shows how to set your own pager increments -->
                <!--
                    <action method="setDefaultListPerPage"><limit>4</limit></action>
                    <action method="setDefaultGridPerPage"><limit>9</limit></action>
                    <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                    <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                    <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                    <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                    <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                -->
            </block>
            <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
            <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
            <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
            <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
            <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
            <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
        </block>
    </block>
</reference>

Trying to set in update, product_sublist to subcatlist_hardware.phtml.

Here's what I have and it's not working...

    <reference name="content">
            <block type="catalog/product_list" name="product_sublist" template="catalog/product/subcatlist_hardware.phtml">
                </block>
    </reference

What am I missing or doing wrong?


texts: Magento 2 indexer not working in PHP 7 (7.0.4)

texts:
Steps to reproduce

Install Magento 2.0.2. (apache 2.4.18, php 7.0.4, mariadb 10.0.24)
Import products from Magento 1.7.x store.
In Magento backend, set indexes to update on schedule.
Run php bin/magento indexer:reindex.

Expected result

All indexes reindexed.

Actual result

[~/www/dev]# bin/magento indexer:reindex -vv

  [InvalidArgumentException]
  There are no commands defined in the "indexer" namespace.

Exception trace:
 () at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:501
 Symfony\Component\Console\Application->findNamespace() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:535
 Symfony\Component\Console\Application->find() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:192
 Symfony\Component\Console\Application->doRun() at /home/dev/public_html/dev/vendor/magento/framework/Console/Cli.php:49
 Magento\Framework\Console\Cli->doRun() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at /home/dev/public_html/dev/bin/magento:25

Workaround

if i run /opt/bin/php56/bin/php bin/magento indexer:reindex indexing succeeds.


texts: Magento 1.9 Product page is not visible for logged in customers

texts:
Logged In customers couldn't view the product page but they can view the category page.

No issue with the Non-logged in or guest customers, they can view both the product page and category page.


texts:
Seems that Magento hasn't this functionality, maybe it's not so useful but I need to.

For locking a customer I mean preventing them of using their account. He can't be able of login, it has to be like this account doesn't exist.

Even from admin panel, if the customer is locked, orders can not be placed for it.

I was searching but I found anything, seems I the only one who needs this? :(

I see that in the DDBB customer_entity there is a field named is_active but seems it does anything.

Then I found the functionality of blocking the account for introducing multiple times incorrect password. I thought about using this, like when I want to block some customer, I fake that. But it's not the best proper way to do that... Also the msg error will be something like "You introduced so many times..." and this is not good.

EDIT
I decided to create an extensionAttribute field on customer_entity.
Then a plugin: Magento\Customer\Api\AccountManagementInterface with the method: afterAuthenticate preventing the login if the field is set to block the customer.

So this is working fine, now the problem is with the customers that are already logged in. If you set the field to block it, the session doesn't finish.

How can I solve this? I was thinking about: if you login and then deletes the customer, when you refresh the page, it finishes the session. How it detects that? I want to intercept this method and check my field too. With this, the problem will be solved.


texts:
In default magento checkout page, mobile version, clicking the minicart icon opens a modal containing cart contents.

When checkout page is loaded for the first time, clicking that minicart icon gives javascript error:

Uncaught TypeError: No method named "openModal"
    at HTMLDivElement.<anonymous> (bootstrap.min.js:6)
    at Function.each (jquery.js:370)
    at jQuery.fn.init.each (jquery.js:137)
    at jQuery.fn.init.o._jQueryInterface [as modal] (bootstrap.min.js:6)
    at Object.show (sidebar.js:24)
    at UiClass.showSidebar (estimation.js:44)
    at HTMLButtonElement.<anonymous> (knockout.js:4255)
    at HTMLButtonElement.dispatch (jquery.js:5226)
    at HTMLButtonElement.elemData.handle (jquery.js:4878)

After refreshing page, modal opens normally.

Modal is defined in file vendor/magento/module-checkout/view/frontend/web/template/sidebar.html:

Is there any way to fix this and force Magento_Ui/js/modal/modal to load earlier in page? Any ideas?


texts: Shopping Cart Price Rule not applying when specifying the category in "actions"

texts:
Magento Shopping Cart Price Rule not applying when i add the Rule for the specific category. It is working fine for SKU but not for the category.
Any admin section settings that are preventing it from this?


texts: Meter Number, Key, Password Fields Missing for FedEx Setup

texts: I am trying to add FedEx as a shipping option in Magento UPS is currently enabled. I have registered, have my production password, FedEx account number, production meter number and production URL. However, there is no place to enter these, only Title, Gateway URL and Account ID is showing up. Is the production URL the same thing as Gateway URl? See attached snippet of what I am seeing. Much thanks in advance.


texts: Difference Between @magentoAdminConfigFixture and @magentoConfigFixture

texts:
When writing integration tests, there are two quite similar annotations:

@magentoAdminConfigFixture (GitHub)
@magentoConfigFixture (GitHub)

The latter one is used much more often:
$ grep -R '@magentoAdminConfigFixture ' vendor/magento/ | wc -l
110
$ grep -R '@magentoConfigFixture ' vendor/magento/ | wc -l
1828

However, I cannot find any documentation about the difference (see related DevDocs issue). Some config values are even used in both ways in the core:
$ grep -R '@magentoAdminConfigFixture admin/security/use_form_key' vendor/magento/ | wc -l
8
$ grep -R '@magentoConfigFixture admin/security/use_form_key' vendor/magento/ | wc -l
5

What is the difference between the two? When should I use which one?


texts:
Please explain what is the difference between collections and repositories.

What is the difference between those two?
Which shall I use in custom module?


texts: Magento 2 layout_render takes long time to execute

texts:
I have a multistore freshly installed (ca. 100 simple products on one store, the other is empty) on a shared hosting server and it went from a situation where it was fast and usable to incredibly slow, in a matter of a day. No significant changes were made so I can't understand the problem.

Enabling the profiler shows that magento->LAYOUT->layout_render takes more than 25 seconds to execute, both in admin and frontend.

CPanel shows limitations on CPU usage and I/O usage.

Could you put me in the right way to debug the problem?

UPDATE EDIT: the slow behavior was due to the merging and minify options of js and css set to Yes in the configuration


texts: Magento 2.3: Show custom attribute value for configurable products

texts:
Is there a way to show the value of a custom attribute that changes for every child product?
I mean something like: user selects "blue" color for shirt and, under the swatches a text appears (like, say, "you selected blue").
I did this (catalog_product_view.xml):

<?xml version="1.0"?>

        <referenceContainer name="product.info.main">
            <block class="Frostmage\Attrishow\Block\Product\View\Extra1"
                name="product.view.extra1"
                template="Frostmage_Attrishow::product/view/extra1.phtml"
                before="product.price.tier">
            </block>
        </referenceContainer>

and this (extra1.phtml):

    <?php $_product = $block->getProduct() ?>

    <?php

        $ciao = $_product->getData('entitacanone');

        echo 'Canone Mensile: '.$ciao.'€';
        echo '/mese';

    ?>

But, obviously, it doesn't change the frontend text based on the product variation, it only shows the value of the parent product, if it has one. I assume there is some kind of js to add, but I don't know how or what... Any clue? Thanks :)


texts:
In vendor/magento/module-theme/view/base/templates/root.phtml:11 there is this code:

<html <?= /* @escapeNotVerified */ $htmlAttributes ?>>
    ...
</html>

It looks like we can use layout XML to add attributes to the <html> element, but I can't figure out how.

How is $htmlAttributes used?

Similar functionality

I presume it works in a similar way to adding attributes to the body or head, but I can't get it working with <html> at all.

<body>
    <attribute name="class" value="page-with-filter"/>
</body>


texts:
I have one project in Magento 2.2.5 and in that the CSS is stopped generating
I have run all grunt command and in that it show below error when i run grunt exec

pub/static/frontend/Magento/luma/en_US/css/source/_reset.less: [L7:C3] Cannot read property 'eval' of null


texts:
I needed to apply patch 8788 on a Magento 1.9.0.1. I did it in my test environment (previously mirrored from live environment) and I did it with no errors, applying first the 3941 and then the 8788.v2 for 1.9.0.1.

But when I did it in LIVE environment I got errors:

root:web$ sh PATCH_SUPEE-3941_EE_1.14.0.1_v1-2015-02-10-08-32-02.sh
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.

root:web$ sh PATCH_SUPEE-8788_CE_1.9.0.1_v2-2016-10-14-09-37-14.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

checking file downloader/Maged/Model/Connect.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file downloader/lib/Mage/Connect/Backup.php,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
checking file downloader/lib/Mage/Connect/Command.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored
checking file downloader/lib/Mage/Connect/Command/Install.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored
checking file downloader/lib/Mage/Connect/Packager.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
10 out of 10 hunks ignored
checking file downloader/lib/Mage/Connect/Rest.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
checking file downloader/lib/Mage/Connect/Singleconfig.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
checking file downloader/lib/Mage/Connect/Validator.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored
checking file downloader/lib/Mage/HTTP/Client/Curl.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored
checking file downloader/template/settings.phtml
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored

In the app/etc/applied.patches.list file I find this:

2017-01-04 15:08:33 UTC | SUPEE-3941 | EE_1.14.0.1 | v1 | d35110621d80be22922611e2b0a502da054a95f0 | Tue Jul 15 11:57:57 2014 +0300 | v1.14.0.1..HEAD
patching file downloader/Maged/Model/Connect.php
Hunk #1 succeeded at 489 (offset 3 lines).
patching file downloader/lib/Mage/Connect/Backup.php
patching file downloader/lib/Mage/Connect/Command.php
patching file downloader/lib/Mage/Connect/Command/Install.php
patching file downloader/lib/Mage/Connect/Packager.php
patching file downloader/lib/Mage/Connect/Rest.php
patching file downloader/lib/Mage/Connect/Singleconfig.php
patching file downloader/lib/Mage/Connect/Validator.php
patching file downloader/lib/Mage/HTTP/Client/Curl.php
patching file downloader/template/settings.phtml
Hunk #1 succeeded at 64 (offset 1 line).

My question is that now I don't know the "status" of the files ...

It's clear that 3941 was applied succefully, buy I don't understand the information of the patch output and the applied.patches.list file about the patch 8788.

Thank you!

P.D. Still thinking why I had no errors in test environment if it's an exact copy of live environment :-(


texts: Can someone explain what the @magentoDbIsolation annotation does for an integration test?

texts:
Looking through the integration tests written for the core modules, I see many instances of the annotation @magentoDbIsolation enabled appear above test functions.

There's no mention of this anywhere in the MTF documentation, and even after looking at Magento\TestFramework\Annotation\DbIsolation I'm still not quite clear as to its purpose.

Can anyone provide some insight? Thanks.


texts: Call front end controller action in my observer

texts:
How can I call my custom front-end controller action in my Observer function?
Is dispatch function worked?

<?php
    ....
    public function salesOrderSaveAfter(Varien_Event_Observer $observer)
    {
        $order = $observer->getEvent()->getOrder();
        $order_id = $order->getId();
        $state= $order->getStatus();
        //here I can call the action controller
    }
    ...


texts:
I want to mass update the meta titles for all products, and I have been able to update the the default/global for the products with MAGMI with the column title meta_title

But I want to have different meta titles for different store views.Its seems that the store view meta titles are stored in the catalog_product_entity_varchar table but I can't see how this is linked back to the product sku.

Is there a easy way to do this?


texts: how to add refer to friend option on my order page

texts: I want share product link that I had order, for that added email option on my order page in , but dont know what should i write at herf in anchor tag i.e that will redirect to refer to friend page


texts: Magento 2.2.3 How to export products with SKU filter in admin?

texts:
Hi, I need to export products with .csv file. But I need to export products with specific SKU.
For example, I wanted to export the products which SKU was 60010, 60012 and 45580
I know I should apply filter for this. But I really tried to apply SKU filter but not working.
How can I apply multiple SKU filter?

Actually, its working with only one SKU filter, But I'm not sure how to separate each sku in the filter field.
I tried with , ,; and even space, i.e 60010, 60012, 45580. But never worked.
Can anyone please let me know how can I export these products by using SKU filter?
Thanks in advance.


texts: How to display checkout session value in ZIP/Postal code textbox in checkout page - Magento 2.0.1

texts:
How we can display checkout session postcode value in Zip/postcode text-box under "Estimate Shipping and Tax" in cart page.

Please help me to find solution for this issue.


texts: How to change product pages structure , layout for multiple categories in magento 2?

texts:
I want to change product page structure and layout by categories wise, high customization. For example if I have 3 categories then it should have 3 different category page view.

(whatever I change should reflect on each category page).


texts:
I was wondering if there is a way to require a customer to have a company email address in order to view our website. I found a solution that requires a visitor to sign in/sign up in order to view the store but nothing for specific email address. I want something to require our company's email address in order to see anything. Free and simple is the best.

Thanks!


texts: Magento 2 Migration Error (eav_attribute)

texts:
I'm in the process of data migration, using the data migration tool.  I'm getting the following error. Any help would be much appreciated.  I'm migrating 1.9.2.4 to Magento 2.2.5.

2018-07-09 14:55:56][INFO][mode: data][stage: volume check][step: EAV Step]:
started
100% [============================] Remaining Time: < 1 sec
[2018-07-09 14:55:56][ERROR]: Class fileattributes/attribute_backend_file does
not exist but mentioned in: eav_attribute.backend_model for attribute_id=146
[2018-07-09 14:55:56][ERROR]: Class fileattributes/attribute_frontend_file
does not exist but mentioned in: eav_attribute.frontend_model for
attribute_id=146
[2018-07-09 14:55:56][ERROR]: Class fileattributes/form_element_file does not
exist but mentioned in: catalog_eav_attribute.frontend_input_renderer for
attribute_id=146


texts: How does magento create bundle option selections?

texts:
I've been looking at programmatically creating bundle products, and got stuck on adding a selection to the options.

The problem is that when you create a new selection (Mage_Bundle_Model_Selection) object (whatever method is used to generate that object), it does not initially have a selection_id. It can't, because the id is generated through the auto_increment column.

The problem comes when you go to save your new object. The model class has a _beforeSave function, which calls getResource()->saveSelectionPrice, which inserts a row into bundle/selection_price table... where one of the values is the selection id!

So, you get a catch 22 - you can't save the object, because it needs a selection_id to insert the price, which must happen before it saves. But you can't get the selection_id, because that is not generated until the save completes.

So how are new selection objects created?


texts: How to add jQuery Chosen plugin to Magento 2 checkout fields

texts: How to add jQuery Chosen plugin to the checkout fields in Magento 2 so that customer can search in country list for example.


texts: Add attribute under currency setup on configuration page

texts:
I have successfully built a custom module to integrate an additional section on configuration page "Hide price option" with help of this tutorial create custom module

Now I want to have this form under Currency setup configuration page if possible otherwise after currency setup page under general config page.

I tried with changing namespace but its not working.


texts: I have installed Magento2 on my localhost. But it doesn't load the CSS and JS files. Admin interface is as below. Frontend also have the same issue. I set the file permissions. How to fix this?


texts: Data migration Eav step error - duplicate

texts:
Anyone having this issue?
data migration > EAV Step
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '9-product-details' for key 'EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_CODE'


texts: magento - price is different for cart and catalog

texts:
Problem:

Some shown price in the catalog(right one) is different from the shown price in the cart(wrong, old price).

Other information:

I compared some - working and not - Products and I found no difference    (Dashboard and CSV.table).
The Data Base contains about 300.000 Products
I'm using Magento 1.8


texts: Need help finding a wholesale pricing solution based on discounting list price rather than marking up cost

texts: I am about ready to launch a new M2 store and the website will have two stores. One for retail sales and one for dealer sales. I need to be able to set the pricing in the dealer store to be based on discounting MSRP (list price) rather than a discount off of normal pricing or off of cost. For example, brand X, we receive 48% off of MSRP. For dealers, we sell at 35% off MSRP. Retail price is 20% off list. So everything revolves around list price. Are there any off the shelf modules out there that do this? I have been searching in vain and come up empty. Thanks


texts: How to send email with invoice programatically in Magento2?

texts:
In my custom module I want to send email with invoice to another email.
I have created the following script

<?php
namespace My\CustomScripts\Cron;

class SendInvoice
{

    protected $_invoiceSender;

    protected $_invoice;

    public function __construct(
        \Magento\Sales\Model\Order\Email\Sender\InvoiceSender $invoiceSender,
        \Magento\Sales\Model\Order\Invoice $invoice
    )
    {
        $this->_invoiceSender = $invoiceSender;
        $this->_invoice = $invoice;
    }

    public function execute()
    {
        $invoice_id = '000000025';
        $invoiceData = $this->_invoice->loadByIncrementId($invoice_id);
        $this->_invoiceSender->send($invoiceData, true);

        return $this;
    }

}

inresult i resievd en error:
Warning: DOMDocument::schemaValidate(): Invalid Schema in /var/www/html/projecttest/vendor/magento/framework/Config/Dom.php on line 311

What is wrong ?


texts: Magento 2 - Redirect user to a specific page if not logged in

texts: I need to redirect user to a landing page if not logged in. I find a similar work in this link. Is there a solution for Magento 2?


texts: How to get what bundled products a simple product was sold in

texts:
I am trying to find out, for a product, for a date range, the following

How many times was it sold individually
How many times was it sold as part of another product ( bundled or grouped ) and what that product is.

I think I can use the $collection = Mage::getModel('sales/order') but am not sure how to interrogate what I am getting back from that collection in PHPStorm.  Would someone be able to help me with this?


texts: How to show products to customer which is customer specific

texts: I need to have an idea how we can do the product to be visible to specific customer. Something like there are two customers when a product is assign to customer1 he could see the product when he is login and also the product should not be visible to the customer2.


texts: Validator on OneStepCheckout in review step

texts:
From my module I added a block with a checkbox into checkout_onepage_review. Now I could like to make sure this checkbox was selected. Therefor I am observing the sales_order_place_after event where I can capture the result.

How do I use the the Magento JavaScript validator in the last checkout step (review).

If I add class="checkbox required-entry" nothing happens because the button uses review.save() which does not call the validator. Also it does not send my checkbox value...


texts: shoppingCartOrder SOAP returns wrong orderid

texts:
When submitting an order via SOAP v2 shoppingCartOrder, the order completes fine and I can see it in the backend, however the order ID is wrong.

In the backend when an order is placed it increments the orderid from the last order placed, for example if the previous order was 1000003 the next order should be 1000004, however using the API it instead started from 0000001 and whenever I run the API it increments on a different counter, 000002, 000003, etc.

Does anyone know how I can make it use the same counter as the back/front end?

Thanks


texts:
is it possible in Magento 2 to randomly show the products on a category page, like everytime the page is opened, random products are shown?

Thanks!


texts: Empty attributes displaying as No - I've rewritten the block and it still displays No

texts:
I have rewritten the Mage_Catalog_Block_Product_View_Attributes block with the following to not display N/A or No attributes. However, some blank attributes are still displaying as No on the front end. I want to be able to keep Yes/No type attributes on the front end so I can't just apply an if statement for "No". Is there somewhere else Magento could be changing an empty attribute to No?

EDIT: After further research it appears this is happening on dropdown attributes.

public function getAdditionalData(array $excludeAttr = array())
{
    $data = array();
    $product = $this->getProduct();
    $attributes = $product->getAttributes();
    foreach ($attributes as $attribute) {
//            if ($attribute->getIsVisibleOnFront() && $attribute->getIsUserDefined() && !in_array($attribute->getAttributeCode(), $excludeAttr)) {
        if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) {
            $value = $attribute->getFrontend()->getValue($product);

            if (!$product->hasData($attribute->getAttributeCode())) {
                $value = Mage::helper('catalog')->__('N/A');
            } elseif ((string)$value == '') {
                // $value = Mage::helper('catalog')->__('No');
            } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) {
                $value = Mage::app()->getStore()->convertPrice($value, true);
            }
            if($value === 'N/A' || $value === ''){
                //do nothing makes sure N/A and empty attributes don't show up on product view page
            }
            elseif(is_string($value) && strlen($value)) {
                $data[$attribute->getAttributeCode()] = array(
                    'label' => $attribute->getStoreLabel(),
                    'value' => $value,
                    'code'  => $attribute->getAttributeCode()
                );
            }

        }
    }
    return $data;
}


texts: How to block ordering feature from backend when company/customer is set inactive in magento 2.2

texts: How to block ordering from admin panel, when a company/customer status is blocked or inactive state. I am using B2B feature which has company module and version is magento 2.2.2 i am able to block orders from front-end when they are not active but how to achieve from back-end..?


texts: Change text and Relink the "Add To Cart" button in the product list page (list.phtml)

texts:
Do you know how to Change text and Relink the "Add To Cart" button in the product list page (need to change code in the file list.phtml).

In my magento server, the list.phtml file is located in the theme directory. I'm using magento 2.2.6:
/public_html/app/design/frontend/Hiddentechies/pixtron/Magento_Catalog/templates/product/list.phtml

I can change the button text from "Add To Cart" to "Find Out More", but can not relink it.

To relink the button, I created an atrribute 'get_link' for each product to store the external URL from admin's input, when customer click "Find Out More" button, it will direct user to the external URL's page in the web browser.

<button type="button"
    title="<?php echo $block->escapeHtml(__('Find Our More')); ?>"
    class="action tocart primary"
    onclick='window.location.href="<?php echo $_product->getData('get_link'); ?>"'>
    <?php /* @escapeNotVerified */ echo __('Find Our More') ?>
</button>

It's difficult because I don't know how to take the value in the 'get_link' atrribute in file list.phtml, it's not the same way to take the 'get_link' atrribute in file addtocart.phtml:

(/public_html/app/design/frontend/Hiddentechies/pixtron/Magento_Catalog/templates/product/view/addtocart.phtml)

and there is also a FOR loop to print all products in the same category, so that I don't know how to get the value of 'get_link' for each product:

<?php foreach ($_productCollection as $_product): ?>

I know it's not easy but hope you will take a time to help. Or just give me somewhere I can find solution for this.

Thank you a lot.


texts: IN STOCK FILTER FOR Magento 2 Product collection

texts:
i am trying to filter inStock product in Magento 2 Using
I am trying to filter inStock product in Magento 2 Using

  \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory,

by

$collection = $this->_collectionFactory->create();
        $collection->addAttributeToSelect('*');
        //$collection->addAttributeToFilter('rand()');
        //$collection->addAttributeToFilter('flavor',$flavorId);
        $collection->addCategoriesFilter(['in' => $searchCategory]);
        $collection->addAttributeToFilter('status', ['in' => $this->productStatus->getVisibleStatusIds()]);
        $collection->setVisibility($this->productVisibility->getVisibleInSiteIds());
        $collection->getSelect()->orderRand();
        $collection->setPageSize(3);
        $collection->getSelect()->orderRand();
        $collection->joinField(
        'qty', 'csvp_cataloginventory_stock_item', 'qty', 'product_id=entity_id', '{{table}}.stock_id=2', 'left'
            );
        //$collection->joinField('stock_item', 'cataloginventory_stock_item', 'qty', 'product_id=entity_id', 'qty=0');
        return $collection;

but the result is also shown out of stock products.
can any one suggest me how to get only in stock products collection.


texts: Magento 2, template changes only show when static folder is removed

texts:
I'm new to Magento 2, but it's really inconvenient and time taking that every time I edit something in my template file, I need to do the following to make the changes displays on the web browser.

I need to delete everything from pub/static
I need to run php bin/magento cache:clear
I need to run php bin/magento cache:flush
I need to run php bin/magento setup:static-content:deploy

If I miss any of the steps above, the changes will not show on the web browser, this is really crazy. Is this how Magento 2 works or did I miss something?

I'm using Magento 2.1.9

I have set application mode to developer


texts: After we run the data-migration tool in Magento 2, MSRP(click for price) will not work

texts:
This is an issue in default Magento 2 instance. To fix this issue, we have to apply product type for MSRP product attribute. we can only do this from MySQL query. please update the below query:

  update catalog_eav_attribute set apply_to =
  'simple,configurable,bundle,grouped' where attribute_id = '120';

Please note that the attribute_id('120') is MSRP Product attribute.


texts: Which license should I use for my own extension to prevent others to use it without my permission/paying?

texts: I developed a few extensions and I try to figure out which license I should use to "prevent" others e.g. our agencies to copy them and spread them to their own customers w/o my permission.


texts:
Is it possible to create an online refund to PayPal?  I am going to Sales -> Orders Selecting the order I want, then select Invoices from the menu at the left and click Credit Memo, however the only option is to Credit Offline.

Am I missing something or do I need to need to configure anything extra in Magento?

I am using PayPal Websites Standard on Magento Community Edition 1.8.


texts: Magento 2 get admin url with key and parameters

texts:
I don't understand why but in many topics I see that to get and admin route url with secure key and parameter I only need to use :

$this->urlBuilder->getUrl('adminhtml/myroutename/mycontroller/myaction', array('myparam' => 'myvalue'))

and urlBuilder I a Magento\Framework\UrlInterface object.

But in front, I get this URL: http://mysite.lan/adminhtml/myroutename/mycontroller/myparam/myvalue/

And if I remove the adminhtml I get this URL: http://mysite.lan/myroutename/mycontroller/myaction/myparam/myvalue/

So how can I create a correct admin URL with the key and the params?


texts: Version 1.8 fully patched vs latest build

texts:
From a security point of view what's people's views on having version 1.8 running and it being fully patched vs the running the latest build.

My view is that the latest build may have bug fixes and additional features but from a purely security point of view it should be fine to still run 1.8 as long as it patched and maintained.


texts: where does magento set frontend cookie in response headers for first time request?

texts: Please tell the location or file where magento set the value of key 'set-cookie' as 'frontend= hashcode' when you hit the request for the first time.


texts: Event/Observer After password change Automatically logout

texts: I'm looking for a way to hook into the event of customers changing their passwords. So if someone changes the password in the customer front end, I'd like to logout automatically when user change password in account page. please help for Automatically logout after change password.


texts: Magento 2: Cannt do overriding addtocart.phtml for Configurable Products

texts:
It doesn’t work to do an override addtocart.phtml file for configurable products, for single products it works well.

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="Module_AddCart::css/disableaddtocart.css"/>
    </head>
    <body>
        <referenceBlock name="product.info.addtocart">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Module_AddCart::catalog/product/view/addtocart.phtml</argument>
            </action>
        </referenceBlock>
    </body>
</page>


texts: Magento Coupon code doesn't work as it shoud?

texts:
So, I have this coupon code MYFIRSTORDER which is based on the following

1. for "New Customers" that sign up

2. Spend a minimum of £20

to get a £5 off their first order. The below image depicts the relevant settings in magento admin panel. Now, the coupon validates if the customer has logged in and the sub-total is £20. (which is perfect).

However, if a customer adds products worth £20 and then removes some / all items bringing the sub-total below £20, Magento doesn't remove the coupon code (as the conditions are not being met) and still honours it.

Is this a bug? Shouldn't magento remove the coupon code automatically?


texts: Magento 2 to translation of variable is not working in cart page

texts:
I'm working on Magento 2.2.3 CE.

I have faced one issue on the cart page while applying coupon code.

The coupon code is applied properly. But cart summary it's showing like Discount (%1) instead of Discount (coupon description)

I have cross-checked the core file code

  vendor/magento/module-sales-rule/Model/Quote/Address/Total/ShippingDiscount.php

/**
 * @inheritdoc
 *
 * @param \Magento\Quote\Model\Quote $quote
 * @param \Magento\Quote\Model\Quote\Address\Total $total
 * @return array
 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
 */
public function fetch(Quote $quote, Total $total): array
{
    $result = [];
    $amount = $total->getDiscountAmount();

    if ($amount != 0) {
        $description = (string)$total->getDiscountDescription() ?: '';
        $result = [
            'code' => DiscountCollector::COLLECTOR_TYPE_CODE,
            'title' => strlen($description) ? __('Discount (%1)', $description) : __('Discount'),
            'value' => $amount
        ];
    }
    return $result;
}

On line number 95, the %1 will be replaced by value of description.

While debugging this code, I have confirmed the $description contains the value ( coupon code description).

But it returns an output like below.

Thanks in advance.


texts: Begin & Commit - Lock rows to prevent user from receiving same code

texts:
Hi have a bunch of unique codes in a database which should only be used once.

Two users hit a script which assigns them at the same time and got the same codes!

The script is in Magento and the user can order multiple codes. The issue is if one customer orders 1000 codes the script grabs the top 1000 codes from the DB into an array and then runs through them setting them to "Used" and assigning them to an order. If a second user hits the same script at a similar time the script then grabs the top 1000 codes in the DB at that point in time which crosses over as the first script hasn't had a chance to finish assigning them.

This is unfortunate but has happened quite a few times!

I have been told that I should do something along these lines:

START TRANSACTION;
SELECT * FROM codes WHERE used = 0 LIMIT 1000 LOCK IN SHARE MODE;
// save ids
UPDATE codes SET used=1 WHERE id IN ( ...ids....);
COMMIT;

In Magento as far as I can gather I can use something like this:

$model->getResource()->beginTransaction();
$model->load($id);
// do stuff...
$model->save();
$model->getResource()->commitTransaction();

I have tried to put this in my code around the part that loads in the collection of serial codes to test it with no luck. The $codes variable pulls back the top X amount of codes in the DB that haven't been used and puts them in an array.

What i want to do is lock the table (or the top X rows) and then grab the array, run through it and use the codes, then unlock it.

$codes = $this->getCollection()->addFieldToFilter('sku', array('like' => $sku))->addFieldToFilter('status', array('eq' => 0))->setPageSize($qty);
$codes->getResource()->beginTransaction();
$codes->load();
$codes->save();
$codes->getResource()->commitTransaction();

I am really stuck on this one if anyone can give me any advice on how to implement this that would be great.

EDIT:
Makes sense and I understand the query, but I’d need it to bring back the same formatted array as this – do you have an idea how I could do this?

$this->getCollection()->addFieldToFilter('sku', array('like' => $sku))->addFieldToFilter('status', array('eq' => 0))->setPageSize($gqty)->load();


texts:
I had created some custom attributes in my 1.9.1 install (basically for item color and size).  Well, I've noticed that upon trying to create a Configurable Product, I get this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 360169 bytes) in /home/(sitename)/public_html/app/code/core/Mage/Core/Model/Translate/Inline.php on line 207

Then when I go into the inline.php file, I see this on line 207:

$body = preg_replace('#' . $this->_tokenRegex . '#', '$1', $body);

I've changed the memory in the php.ini file and the .htaccess to 512M, and the .htaccess to the actual bytes number.

I'm now out of ideas.  Any help would be awesome.


texts: Adding product thumbnail on new order transactional email?

texts:
I would like to add <img src="{{var product_image}} “ border="0" /> to the "new order" email template but I didn't see a clear place to insert it. I'm using CE 1.9.1.0

I see the product info is contained within {{layout handle="sales_email_order_items" order=$order}} which points to sales.xml and from there I see the template used is email/order/items.phtml but even then I notice the template doesn't match whats sent when I place a new order.

I know the template used is app/locale/en_US/template/email/sales/order_new.html but I don't understand how I can insert the image thumbnail when all the product data is contained within the layout handle above. Any guidance would be very helpful.


texts: Magento if product option selected then open text field

texts:
i want to create a product (shirt) which can be tailored.  The customer would click the option to tailor, adding cost of tailoring to price and a text field would open letting the customer enter their length, width, etc.  I am able to do the first part when I customize the product, but I need it to be linked to the text input from the customer letting me know their tailoring measurements.

I have tried looking everywhere but what I am finding are ways to customize a configurable product using drop down menu.  Anyone know how this can be done?  Besides shirts this could be useful in multiple situations.


texts: Copy product data from one store to another

texts:
Due to some changes in website I need to copy product data (name, description, price, etc.) from one store, to another. The setup is simple. There is a product which has some default values and then for each store some changes are applied (usually translated default values). Now, one store must use the same values as another one for all of the products. What's the best way to do that?

Currently I have shell script that gets product collections from both stores (so I can check if product is present in both stores). But I'm a little stuck on the copying part. Do I go through every product in collection of the first store, and go through all of its data with foreach and set this data to product in the 2nd store? There must be a cleaner way for that.


texts: Magento 2 How to disable html date input type in choosing future dates?

texts:
I am trying to disable future dates in my Magento custom modal. here is my script. I work perfectly fine in my html file. But when I apply it in Magento, it does not work.

Can someone suggest a better solution? Thanks.

$(function() {
    $(document).ready(function () {
        var todaysDate = new Date();
        var year = todaysDate.getFullYear();
        var month = ("0" + (todaysDate.getMonth() + 1)).slice(-2);
        var day = ("0" + todaysDate.getDate()).slice(-2);
        var maxDate = (year +"-"+ month +"-"+ day);
        $('#customer-bday').attr('max',maxDate);
    });
});


texts: Magento 2.2: Weird $_files array after image upload

texts:
currently I'm trying to develop an image upload in the Magento admin area with ui components. My fieldset declarations looks like this:

<fieldset name="slide">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string" translate="true">Slide Konfiguration</item>
            </item>
        </argument>

        <!-- other fields -->

        <field name="image">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item>
                    <item name="required" xsi:type="boolean">true</item>
                    <item name="label" xsi:type="string">Bild*</item>
                    <item name="visible" xsi:type="boolean">true</item>
                    <item name="formElement" xsi:type="string">fileUploader</item>
                    <item name="uploaderConfig" xsi:type="array">
                        <item name="url" xsi:type="url" path="cssslider/configuration/upload"/>
                    </item>
                </item>
            </argument>
        </field>
    </fieldset>

My upload action contains this line

$result = $this->imageUploader->upload('slide');

If I stop code here with a breakpoint and inspect the $_files array, it looks like this:

Every item in the slides array contains another array?! (Whyyy?!!) And because of this my code throws an exception in the Magento\Framework\File\Uploader class in line 162 where it checks, if the file already exists:

if (!file_exists($this->_file['tmp_name'])) {

$this->_file contains the slide-array of the $_files array.

Anybody got an idea what I need to do to fix this issue?


texts: How to get the URL of the shipping step in the checkout?

texts:
I am using magento 1.9.

As you know when you are going to pay your order you go thrue the checkout steps.

My checkout URL is looking like this: http://www.mymagento.com/checkout/onepage/ and this URL is not changing while you are going thrue all the steps.

My qeustion is:

Is it possible to get the direct link of the shipping step from the checkout for example ?

Thanks in advance!


texts: Translate "Account Information" Block content in Magento Order page

texts:
I figured out that in the Order detail page the "Account Information" block has the last two lines that are not being translated on language selector change.
They always remain in english.

In my case the two labels are "Date of birth" and "Tax/Vat Number".

I tried to open

app/design/adminhtml/default/default/template/sales/order/info.phtml

and i figured out that the last two lines are called by a foreach function:

<?php foreach ($this->getCustomerAccountData() as $data):?>

<?php echo $data['label'] ?>
<?php echo $data['value'] ?>

<?php endforeach;?>

Any idea on how to translate that to labels?


texts: Magento 2 EE elastic search module not enabled

texts:
I am running Magento 2.1.2 Enterprise Edition instance.

I have installed and enabled elastic search on the same. When I click on TEST CONNECTION button it says Successful! Test Again?

However the search suggestions does not display product names.

Do I need some additional settings or information to pass to elastic search?

Configuration for Elastic Search in Admin:

name    "My First Node"
cluster_name    "mycluster1"
version
number  "2.3.1"
build_hash  "bd980929010aef404e7cb0843e61d0665269fc39"
build_timestamp "2016-04-04T12:25:05Z"
build_snapshot  false
lucene_version  "5.5.0"
tagline "You Know, for Search"


texts: How can I change the position of a tab on product page Magento 2

texts:
https://www.cloudways.com/blog/add-custom-tab-product-page-magento-2/

Here we can see an example of how to add a new custom tab to a product page. I'd like to know how we can sort positions for tabs.


texts:
I need my module folder structure like app/code/local/ABC/MyNameSpace/MyModule
edit
I am working on a project and client insist of overriding any module in local/ABC folder. If I want to override PQR_XYZ module, then it must be added as local/ABC/PQR_XYZ.
There are many other modules overridden with this method but they only overrides models or blocks, and they all work fine.
Please find below code references.
config.xml
<config>
    <modules>
        <ABC_Amasty_Shopby>
            <version>2.8.2.1</version>
        </ABC_Amasty_Shopby>
    </modules>
    <global>
        <blocks>
            <amshopby>
                <rewrite>
                    <top>ABC_Amasty_Shopby_Block_Top</top>
                </rewrite>
            </amshopby>
        </blocks>
    </global>
</config>

My Block File is in:
app/code/local/ABC/Amasty/Shopby/Block/Top.php

This is working.
Now for overriding a controller,
config.xml
<config>
    <modules>
        <ABC_Amazon_Payments>
            <version>1.3.0.1</version>
        </ABC_Amazon_Payments>
    </modules>
    <frontend>
        <routers>
            <amazon>
                <use>standard</use>
                <args>
                    <module>ABC_Amazon_Payments</module>
                    <frontName>abcamazon</frontName>
                </args>
            </amazon>
        </routers>
    </frontend>
    <global>
        <rewrite>
            <ABC_amazon_payments_onepagecontroller>
                <from><![CDATA[#^/amazon_payments/onepage/#]]></from> <!-- Amazon_Payments_OnepageController  -->
                <to>/abcamazon/amazon_payments_onepage/</to> <!-- ABC_Amazon_Payments_OnepageController  -->
            </ABC_amazon_payments_onepagecontroller>
        </rewrite>
    </global>
</config>

My controller file:
app/code/local/ABC/Amazon/Payments/controllers/OnepageController.php

This is not working.
I need to override a controller and for a controller, this structure is not working.
Is it possible?


texts: I had read an article about Flat and EAV. However, I don't understand much about it in Magento 2. Is Magento 2 also use both EAV and Flat? Or just only EAV? And what for?


texts: Add WYSIWYG to order comments - Magento 1.7

texts:
I want add a WYSIWYG editor in the order comments on the order view page.

When I go to Sales->Orders and I access an order I can add a comment but not only in plain text.

Does anyone know how to change this to a WYSIWYG editor?


texts:
How to get product in product edit page...

In model file

XXX\Stock\Model\ResourceModel\Edit\Grid\Collection

protected function _initSelect()
{
    parent::_initSelect();
    $order = $this->registryManager->registry('current_product');
}

I can't get id in this file....

Thanks.


texts:
When I view the route : http://url.co.uk/customer/address/ i get a 404.

My local.xml looks like:

<customer_account>
        <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
            <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path>Dashboard</action>
            <action method="addLink" translate="label" module="sales"><name>orders</name><path>sales/order/history/</path>My Orders</action>
            <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path>Information</action>
            <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path>Address Book</action>
            <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path>Newsletter Subscription</action>
            <action method="addLink" translate="label" module="review"><name>reviews</name><path>review/customer</path>My Product Reviews</action>
        </block>
 </customer_account>

Any ideas?


texts: Installing a Magento Extension manually via FTP or SSH

texts:
How to Install magento extensions manually. i had created a new database but i want to add

  classic theme

and

  augurio slide

extension. how to instally manually.
help me out here


texts:
First of I would like to apologize if there is some rule of this forum I am not following. This is my first post but I am getting desperate, so, here I am.

I already posted this on:
https://community.magento.com/t5/Technical-Issues/Problems-with-backups/m-p/20434#U20434

with not luck. I am not very good on javascript, but it seems that for some reason I am on a construct loop, which makes no sense, cause I am using magento 1.9.2.1 with SUPEE-9788 patch, but I don't believe I did anything to deserve this. :-D

Anyway, I was looking into firebug and it seems there is a construct loop going on and eventually, prototype.js says its too much.

I have no problems on doing the heavy work, but I need help to get going. I don't really know javascript that well, but as I said, I do have firebug and a desperate need to fix this. ;-)

thanks for any feedback.


texts: How to get website and customer group list in catalog price rule in Magento 2

texts:
I'm trying to retrieve the website list and customer group list from a record of catalog price rule.
Here what I have done
$dataArray = $this->objectManager->create(Magento\CatalogRule\Model\Rule::class);
$test = $dataArray->getCollection();
$data = $test->getData();
foreach ($data as $value) {
      print_r($value);
}

and the data return like this
Array ( [row_id] => 29 [rule_id] => 17 [created_in] => 1 [updated_in] => 1613617277 [name] => test tungnt [description] => 123122 [from_date] => 2021-02-18 [to_date] => [is_active] => 0 [conditions_serialized] => {"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Combine","attribute":null,"operator":null,"value":true,"is_value_processed":null,"aggregator":"all"} [actions_serialized] => {"type":"Magento\\CatalogRule\\Model\\Rule\\Action\\Collection","attribute":null,"operator":"=","value":null} [stop_rules_processing] => 0 [sort_order] => 98 [simple_action] => by_percent [discount_amount] => 30.000000 )
Array ( [row_id] => 31 [rule_id] => 18 [created_in] => 1 [updated_in] => 1613618213 [name] => test tun gn t [description] => tunfsd sssss [from_date] => 2021-02-18 [to_date] => [is_active] => 0 [conditions_serialized] => {"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Combine","attribute":null,"operator":null,"value":"1","is_value_processed":null,"aggregator":"all","conditions":[{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Combine","attribute":null,"operator":null,"value":"1","is_value_processed":null,"aggregator":"all","conditions":[{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Product","attribute":"category_ids","operator":"==","value":"5","is_value_processed":false},{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Product","attribute":"attribute_set_id","operator":"==","value":"4","is_value_processed":false}]},{"type":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Product","attribute":"category_ids","operator":"==","value":"6","is_value_processed":false}]} [actions_serialized] => {"type":"Magento\\CatalogRule\\Model\\Rule\\Action\\Collection","attribute":null,"operator":"=","value":null} [stop_rules_processing] => 0 [sort_order] => 98 [simple_action] => by_percent [discount_amount] => 20.000000 )

I could not find where website and customer group information to retrieve it like $value['website']


texts: Coupon code working on checkout/#payment but not working on cart page:Magento2

texts:
I'm trying to apply coupon code on Magento2 store.
I have created normal coupon code (without any condition) When I applied it on cart page it not working give me an error "The Coupon code is invalid" But when I go for checkout then apply it so it work there (same coupon code )..

Please look into below images.

Please assist me !!


texts: Inject a class when extending the CatalogWidget component

texts:
I want to extend the Catalog Widget to filter Out Of Stock products.
To do this, I have created a component to extend the Catalog Widget's ProductsList class, which contains the following code to replace its createCollection function.
class ProductsList extends \Magento\CatalogWidget\Block\Product\ProductsList
{

    public function createCollection(
    )
    {
        /** @var $collection \Magento\Catalog\Model\ResourceModel\Product\Collection */
        $collection = $this->productCollectionFactory->create();
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $this->_stockFilter = $objectManager->create('Magento\CatalogInventory\Helper\Stock');
        $this->_stockFilter->addInStockFilterToCollection($collection);

        ... CODE CONTINUES AS PER THE FUNCTION IN app\vendor\magento\module-catalog-widget\Block\Product\ProductsList.php

        return $collection;
    }

}

This works as I want it to.  However, I know we should not use the object manager to load Magento\CatalogInventory\Helper\Stock
I've tried adding a __construct function, but this just causes a "Type Error occurred when creating object" error.
How should I be loading the Stock helper?


texts: convert Guest Checkout to customer check if email exists in database

texts: I would like to know if there is a feature in Magento where in if a guest checksout and his email address is already in the system, can Magento log him in before checkout?


texts: Magento upgrade gives pearmage.php not found?

texts:
I'm trying to update magento 1.4.0 to 1.7 for a client.
first I installed magento from the host server to my local server for test purpose.
I have windows 7/cygwin.
when I try to execute the command ./pear mage-setup I get the following

I have been working around this issue but I haven't found anything yet.


texts:
How can i change the sort order in invoice PDF?

Now i have:

But i want the following:

Subtotal
Shipping
Total
TAX 6%
TAX 21%
Total TAX

Thanks!


texts: Magento Watermark have black background when transparent

texts:
I've updated to the last version of magento.
Then I changed my watermark that was transparent.
Now I see a black background instead of the transparency. I tryed to find some solution, like to create another Gd2.php, but it doesn't work... What can I try?