texts: How can I editable false description or sort description magento 2?

texts:
I have try but it is not working for me any have idea about this?

<fieldset name="content">
     <argument name="data" xsi:type="array">
       <item name="config" xsi:type="array">
         <item name="disabled" xsi:type="boolean">true</item>
         <item name="collapsible" xsi:type="boolean">true</item>
       </item>
     </argument>
   </fieldset>
<fieldset name="content">
            <field name="container_description">
                <argument name="data" xsi:type="array">
                    <item name="disabled" xsi:type="boolean">false</item>
                </argument>
            </field>
        </fieldset>


texts: What is the impact if I truncate search_query table?

texts:
In my live site currently we have 2.1M records in the search_query table.
Due to this large number of records we are facing search slowness.

Whether it is advisable to truncate that table or remove the low priority search terms from that table?


texts: When i am trying to login from user side for which i registered for it. even if right or wrong credential entered the *required field shows up and stay on same page i am using magento 2.1.2 and chrome browser


texts: Is there a way to add image alt tags to all the images?

texts: I'm looking to add alt tags to all the images on a Magento website, is there a way to do this without going through each individual product and i want to include the alt tag in the thumbnails as well.


texts: I setup this extension in my project it work fine on forntend but its also remove price decimal from admin when i change the price this show the diffretent value may be format issue plz guide extension not effect in admin


texts: Handling templates without a module name specified

texts:
I have a 3rd party extension installed and I needed to overwrite on block because I could not use events or plugins on it.
The block is added in the layout file like this:

<block class="Vendor\Module\Block" name="some-name" template="path/to/template.phtml" />

Notice that there is no module name specified for the template.

I've overwritten it with this in my di.xml

<preference for="Vendor\Module\Block" type="MyVendor\MyModule\Block" />

now when loading a certain page I get the error path/to/template.phtml does not exist.

I know I can solve this by redeclaring the block in my own layout file and making the template Vendor_Module::path/to/module.phtml and it will work but this is not upgrade proof.
If I upgrade the extension and the template to that specific block changes I will have problems.

My question: Is there an upgrade proof way to overwrite blocks and still keep the templates from the original module?


texts: How can i add some custom text to Cart Page?

texts:
Right when we click the cart icon we are taken to cart page where all product or products added to cart are shown.
On this page I want to add some custom text and icons below the cart summary by removing Estimated Shipping Tax and placing my text instead of Estimated Shipping Tax.
Please just tell where I can add these changes ?


texts: How can I get consumer authorization in Postman - Magento2?

texts:
I am trying to get result for the existing magento api service ex.customer details (or) product details by sku, I am facing issue like below, give solution

"message": "Consumer is not authorized to access %resources",
"parameters": {
    "resources": "Magento_Customer::customer"
}


texts:
I'd like to change the title of certain blocks per storeview in my local.xml, however, I've tried numerous things and it doesn't seem to pick up on my changes, not even when I 'unset' the data, and then add nothing.

This is what I have so far:

  <reference name="content">
        <block type="catalog/product_list" name="product_list_bars"  template="catalog/product/list_custom.phtml">
            <action method="setData">
                <name>category_custom_id</name>
                <value>18</value>
            </action>
            <action method="setData">
                <name>category_custom_title</name>
                <value>German</value>
            </action>
        </block>

This is what sets the default block title. This works for the default storeview. But then, I want to change the title to English for the English storeview as follows:

  <STORE_english_eu>
    <reference name="product_list_bars">
        <action method="unsetData">
            <name>category_custom_title</name>
        </action>
    </reference>
</STORE_english_eu>

So to test it, I'm trying to unset it first, and then set it. That doesn't seem to work. What am I missing?


texts: Foreach Loop Pulling Wrong Value From Collection

texts:
I have a foreach loop that I am running over a Magento collection so I can run pull in the info for multiple patients (it's a pharmacy). However, after each iteration of the foreach loop, it returns the values for the first value in the collection every time. If I manually pass the values for what should be values 2, 3, 4, etc in the collection, it does work properly.

Here is my function.

<?php foreach($this->getPatients() as $pat): ?>
    <?php //Pass patient ID to the collection so it can filter by patient ID ?>
    <?php $autoreorderCollection = null; ?>
    <?php $patientId = $pat->getId(); ?>
    <?php $autoreorderCollection = $this->getCollection($patientId); ?>
    <?php echo $autoreorderCollection->getSize(); ?>
<?php endforeach ?>

It returns the value for the first entity in the collection every time the foreach is iterated through. If I pass the value for the second entity manually, collection for that entity is returned. That tells me it's an issue with the foreach loop and not with the function. What am I doing wrong?


texts: How to show related products in product view page in Magento 2?

texts:
How can I show related products on bottom section of the product view page?

I want to show 3 related products in bottom part of product view page in Magento 2


texts: "You'll receive payment instructions via E-mail” payment method

texts: Due to various organizational reasons, it is not possible to determine the actual payment method during checkout. I need empty payment method, which just says you'll be informed within a hour.


texts: Magento2 : How to apply different image size in multiple categories?

texts:
I want to show different size images on multiple categories.

let suppose I have 3 categories :
- cat1, cat2, cat3

I want to show images as below:

  => cat1 want to show 240 x 240 images

  => cat2 350 x 350

  => cat3 500 x 500

How can I achieve this functionality?

Can I use different size images for multiple categories?

Any help? Thank in advance.

I also tried with a showing list view on one category and grid view for the second category.
also, change the product image size in theme view.xml but not working.

<image id="category_page_grid" type="small_image">
    <width>240</width>
    <height>300</height>
</image>
<image id="category_page_grid-1" type="small_image">
    <width>240</width>
    <height>300</height>
</image>
<image id="category_page_list" type="small_image">
    <width>500</width>
    <height>500</height>
</image>

But still, images size is showing 240 * 300 in the list view. Don't know why it is not resized?


texts: Display layered navigation links in footer

texts:
I want to display the links layered navigation which shows all products that have a certain attribute value.

For example, I have 3 categories with products in them. Each category can have different manufacturers for products. I want the footer to have a link for manufacturer which shows all products with that manufacturer regardless of which category they are in. I want to have multiple sections in the footer where each section will do this for a different custom attribute.


texts:
I added new sizes, filled the entire list. When trying to save it receives an error. Does anyone know how to solve it.

Admin is a required field in the each row.


texts: Admin Security, Lockout Attempts, PW Resets

texts: A recent article went out about improving admin security.  In it they suggest setting the maximum PW resets and Lockout Time, and for Magento 1.x, this is supposed to live under System > Configuration > Advanced > Admin > Security.  Unless I'm mistaken, this doesn't exist in Open Source 1.x.  Is this an enterprise only feature?  The article is actually tagged with "Open Source", so this should be specific to the OS version, yet these settings don't exist in my copy.


texts: Magento 2.3.4: How to keep AMP enabled yet allow the homepage to load its images for mobile devices?

texts: How do I ensure mobile devices can load the homepage with all its images with AMP enabled? The homepage for mobile devices is missing all the images present on the homepage unless the AMP is disabled from the Magento admin.


texts: Magento 2 - I would like to understand the mechanism of running the "setup:di:compile" command

texts:
I would like to understand the mechanism of running the setup:di:compile command in Magento 2.

Example:

Step 1: it is checking...
Step 2: it is generating...
...

Anybody can explain it to me?


texts: how to set search result page as a landing page?

texts: I want to show all products and the filter attributes on landing page. How to configure Magento to show search result?


texts: Magento 2 Edit admin Order Create Address Form

texts:
I have a problem I have been facing for days now.
I want to override the magento the city (in the admin order create) to be a dropdown list of cities. This has already been done in the Checkout for users. I also want it to in the backend when creating orders.
I am unable to do so. Have searched through the internet for resources but found none.
I have checked the layout for the page ans seen the template responsible for rendering. But the form is generated by magento.
So I tried creating a plugin to Magento\Sales\Block\Adminhtml\Order\Create\Form\Address on the getForm method to modify the form elements. But unfortunately the $_form property is protected so I cannot access it from outside the class. So that is blocked. I don't know how else to go about it.
Any piece of code or help will be grateful
Here is an image of the order create form.


texts: Magento 2: Topmenu 4th level categories out of place

texts:
I use Magento 2 (Version 2.3.2) with standard luma theme. If i navigate the topmenu down to the 3rd level and hover over some category, that opens up the 4th level, i often cant reach the 4th level categories with the mouse, cause they always open up on top of the 3rd level window. If i try to reach it with my mouse, the whole menu closes. So in many cases i cant navigate to a 4th level category.

Searched all over the internet for this problem. It seems its not even been known so far.


texts: Correct way of adding images programmatically?

texts:
I have the following problem, right now my program uploads the images and does it good, however when i go to the edit product page, the following are empty or uncheked:

Role
Alt text

Here is the code i use:

<?php

namespace Vendor\Module\Model\Adminhtml\Product\MediaGallery;

use \Magento\Catalog\Model\Product\Gallery\EntryFactory;
use \Magento\Catalog\Model\Product\Gallery\GalleryManagement;
use \Magento\Framework\Api\ImageContentFactory;

class ImageUpload extends \Magento\Framework\App\Helper\AbstractHelper
{

/**
 * @var \Magento\Catalog\Model\Product\Gallery\EntryFactory
 */
private $mediaGalleryEntryFactory;

/**
 * @var \Magento\Catalog\Model\Product\Gallery\GalleryManagement
 */
private $mediaGalleryManagement;

/**
 * @var \Magento\Framework\Api\ImageContentFactory
 */
private $imageContentFactory;

/**
 * @param \Magento\Catalog\Model\Product\Gallery\EntryFactory $mediaGalleryEntryFactory
 * @param \Magento\Catalog\Model\Product\Gallery\GalleryManagement $mediaGalleryManagement
 * @param \Magento\Framework\Api\ImageContentFactory $imageContentFactory
 */
public function __construct(
    EntryFactory $mediaGalleryEntryFactory,
    GalleryManagement $mediaGalleryManagement,
    ImageContentFactory $imageContentFactory
)
{
    $this->mediaGalleryEntryFactory = $mediaGalleryEntryFactory;
    $this->mediaGalleryManagement = $mediaGalleryManagement;
    $this->imageContentFactory = $imageContentFactory;
}

/**
 * @param string $filePath
 * @param string $sku
 */
public function processMediaGalleryEntry($filePath, $sku, $productName, $additional = false, $position = 0)
{
    $entry = $this->mediaGalleryEntryFactory->create();

    $entry->setFile($filePath)
        ->setMediaType('image')
        ->setDisabled(false)
        ->setLabel($productName);

    if($additional)
    {
        $entry->setPosition($position);
        $entry->setTypes(['thumbnail']);
    }
    else
    {
        $entry->setTypes(['thumbnail', 'image', 'small_image']);
        $entry->setPosition($position);
    }

    $imageContent = $this->imageContentFactory->create();

    $imageContent->setType(mime_content_type($filePath))
        ->setName($productName)
        ->setBase64EncodedData(base64_encode(file_get_contents($filePath)));

    $entry->setContent($imageContent);

    $this->mediaGalleryManagement->create($sku, $entry);

}

}

What happens in edit page is this:


texts: how to fix magento 1.9.3 ERR (3): Notice: Undefined variable: productId

texts: Hi Magento log show ERROR Notice: Undefined variable: productId  in /home/myhomestoreco/public_html/app/code/local/Sm/Cartpro/controllers/IndexController.php on line 31


texts: Order confirmation email sent multiple time - same order confirmation sent to all - unable to stop sending

texts:
I am using Magento Enterprise 1.9.1.0.

After creating two client account to run tests, I placed two order, one for each client.
An order confirmation for the first order is sent to both client 61 times per hour since then.
I tried removing all mention of the sending sales@ email address from the configuration panel and disabling  email sending from config. Both the server and the template support indicate that it stems from a bug in Magento.

How can I :
1. Stop the flow of email
2. Ensure proper functioning of automated order confirmation sending


texts: How to delete default code from store url in Magento2

texts:
On the magento 2.1.5 website i add new store view, and i have:

website.com/default

website.com/uk

i need remove "default" from url, for get this

website.com/

website.com/uk

If i set "Add Store Code to Urls" to NO, website.com/uk doesn't working

Please help me with this issue. Thank


texts: Transfer all products from one magento installation to other

texts:
How can I transfer all product from one magento installation to another (both are 1.9).

I tried to export all products and then import them in other store, but it failed. No product is imported.

Please help and please explain the process.

Thanks in advance.


texts:
I've the following problem:

I've a product and I've defined a price for 'normal buyers' and one for 'logged in people' which is the group of re-sellers. The resellers get a special price, which is working.
But now there are some products which you can config and make the product more expensvie.

If a reseller is logged in and buys a product, he gets is to the cheaper re-seller-price, but if he adds a special configuration to the product this config has the 'normal' price.

Can I define a 'reseller-price' for the different configurations anywehere???


texts: Magento 2 how to add product dimensions using rest api

texts:
I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following:

    $data = '{
"product": {
    "sku": "' . $row["item_number"] . '",
    "name": "' . $row["name"] .'",
    "attributeSetId": 4,
    "price": ' . $row["price"] . ',
    "status": 1,
    "visibility": 4,
    "typeId": "simple",
    "createdAt": "' . date('Y-m-d H:i:s') . '",
    "updatedAt": "' . date('Y-m-d H:i:s') . '",
    "weight": ' . $row["weight"] . ',
    "custom_attributes": {
        "description": "' . $row["condition_description"] . '
' . 'Brand: ' . $row["brand"]  . '
' . 'MPN: ' . $row["mpn"] . '
' . 'Fitment: ' . '
' . $fitment . '",
        "short_description": "' . $row["condition_description"] . '",
        "MPN": "' . $row["mpn"] . '",
        "brand": "' . $row["brand"] . '"
    },

Adding "length": "10" below the weight attribute results in an error. Magento 2 allows the adding of height, width and length when adding a product manually so it must be possible. I would like to avoid storing these in a custom attribute to keep the shipping calculations easier.

Is length not called length but something else? I have tried ts_dimensions_length, packagedimensions and dimensionslength.


texts: How to import customers with more than 2 address?

texts:
I use a csv file to import customers into Magento.
This is the csv file header :

  website, email, group_id, group, firstname, lastname, password_hash, billing_firstname,  billing_lastname, billing_company, billing_street1, billing_street2, billing_city,billing_region,  billing_country, billing_postcode, billing_telephone,billing_fax, shipping_firstname, shipping_lastname, shipping_company, shipping_street1, shipping_street2, shipping_city, shipping_region, shipping_country, shipping_postcode, shipping_telephone, shipping_fax, created_in, is_subscribed

But if the customer have more than 1 billing / shipping address, which modification have I to do on the header ?


texts:
Need a suggestion for sprite image use. I am using single sprite image for website buttons. But I am little bit confused for this. I created a single sprite image for all buttons in website. Is that okay?

OR I need to create multiple sprite images on page base. Like separate image for Cart page buttons and separate image for Checkout page.


texts: How to send different order emails to admin and customer in magento 2

texts: I want to send different transnational mail template for admin and customer. I know Magento gives the functionality for the CC transactional mail template. But in my case I want a different mail template for the administrator. So i want to create the functionality for the different mail template for the customer and admin after placing the order.


texts:
I am new in Magento 2, now I am struggling about how to show featured brands lists on the main Home Page (On the top of Recently Viewed widget).

I have googled to everywhere but still have no clue how to start.

Any help would be very appreciated.


texts: Bug in translation add to cart: translation resets to default value after adding product to cart (only in production mode)

texts:
I experience a problem on a Magento 2.4.1 store.
The problem: the Add to cart button on the product page is translated correctly on initial load. This is in Dutch in my case: "In Winkelwagen". After clicking the button it changes to untranslated text "Adding..." and then "Added" and finally it changes to "Add to Cart" so it resets from Dutch to English when using the add to cart button.
This only happens in production mode. In developer mode the several translations work as expected.
I did some research I found similar issues but those are dated.

https://github.com/magento/magento2/issues/3423
https://github.com/magento/magento2/issues/14024
https://github.com/magento/magento2/issues/4181

Questions:

Is this a known bug for this version? (M2.4.1)
How can I fix it?


texts: Mageto2: How to change onepage success URL to custom URL?

texts:
I'm using Magento 2.2.7 with 10+ third party extensions (Amasty checkout, multiinventory etc) and 20+ custom extensions.

How do I change the checkout/onepage/success URL to my custom controller, with same design and functionality without affecting native Magento functions and extension functions?

I can change the URL redirect from

vendor/magento/module-checkout/Model/DefaultConfigProvider.php

Does that cause any issues? Please provide some advice.


texts: sales_flat_order table "created_at" field time not adjusted to time zone

texts: I have placed a test order at 09:40 AM on 16/04/2015 from front-end and the time in the Magento back-office is correct but in the sales_flat_order table "created_at" field time is wrong which is 08:40 AM. I understood that time zone is not adjusted to GMT+1. can anyone please tell me how do i adjust to GMT +1 for sales_flat_order table. Thanks in Advance.


texts: magento 2.3 Design Configuration > Global page keep loading

texts:
I'm using magento 2.3 ver, i getting some issue about Design Configuration > Global > page keep loading. but Main Website and Main Website Store is working.

i already rm -rf generated/code var/* pub/static/ and then php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f but no luck.

This is Global page message. please help, thank you!

file-uploader.min.js:1 Uncaught ReferenceError: Base64 is not defined
    at UiClass.processFile (file-uploader.min.js:1)
    at Array.map (<anonymous>)
    at UiClass.setInitialValue (file-uploader.min.js:1)
    at UiClass.initialize (abstract.min.js:1)
    at UiClass.initialize (wrapper.min.js:3)
    at new UiClass (class.min.js:3)
    at Object.initComponent (layout.min.js:8)
    at fire (jquery.min.js:212)
    at Object.fireWith [as resolveWith] (jquery.min.js:218)
    at Object.deferred.(/index.php/admin/theme/design_config/edit/scope/default/key/3d098cdba6b78b5b34afeb20d3e1f3d052972a2b3b29bc3d63761/anonymous function) (http://www.domain.com/pub/static/version154399332/adminhtml/Magento/backend/en_US/jquery.min.js:220:56)


texts:
Is there any shipping integration for Canada Post and Magento 2?

I see a few Canada Post modules for 1.x but they don't seem to be updated for 2.x.


texts: How to get block from controller in magento 2

texts:
I want to get block Magento\Catalog\Block\Product\ProductList\Toolbar, I tried this code but it not work and show error

Type Error occurred when creating the object: `Vendor/Module/Block/Search`

My code

$resultPage = $this->layoutFactory->create();
$blockToolbar = $resultPage->getLayout()->createBlock('Magento\Catalog\Block\Product\ProductList\Toolbar');
var_dump($blockToolbar->getCurrentOrder());
exit;

I tried " Code phtml " in phtml file, it works

Code phtml

$blockToolbar = $block->getLayout()->createBlock('Magento\Catalog\Block\Product\ProductList\Toolbar');
var_dump($blockToolbar->getCurrentOrder());exit;

UPDATE

I used $objectManager and it works

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$blockToolbar = $objectManager->create('Magento\Catalog\Block\Product\ProductList\Toolbar');
var_dump($blockToolbar->getCurrentOrder());
exit;


texts: How many images I can upload for one product in my Magento store? I want to know the maximum number of images per one item. It's really important for my clothes store


texts: Is there any library for this error or something else?

texts:
$_helper = $this->helper('catalog/output');

i received this error on browser when I run the code.

Using $this when not in object context in C:\xampp\htdocs\magento\test.php

What should i do for this .


texts: I would like to link to a PDF from a custom page but don't know where to put the pdf in the file structure and how to link to the PDF so that it can be downloaded?


texts:
Store process payment manually or over phone but needs to track what method used on order and reflect this on invoice.

When client checks out i need to show 4 radio buttons

- Credit Card
- Check
- Money Order
- Cash

Then just track what option was selected on invoice, no need for extra fields or third party processors, how can i do it?

I tried to look for tutorial on how to create custom payment method, but its a nightmare most tutorials are for old versions and not compatible with 1.9, other tutorials even official ones are incomplete.

e.g. http://www.magentocommerce.com/wiki/5_-_modules_and_development/payment/create-payment-method-module

i followed this have payment method showing in admin, but not in front end. I assume from other tutorials that i need to specify .phtml to load somewhere in code but why its not in official tutorial?!

I am not trying to learn everything about Magento or MVC at this point just need quick and dirty fix.


texts: magento 1 'Stop Further Rules Processing' setting acting strange

texts:
I added a cart rule with 10% of product price discount to all products. I selected 'Yes' for Stop Further Rules Processing drop-down, but its not giving 10% discount, instead it gives almost a 1% discount.

When i set Stop Further Rules Processing to 'NO' then i get the correct discount.

Is there any other setting which is effecting the discount value ?


texts: Magento 2.4 - add custom discount amount and tax amount to each cart item when an order is created programmatically

texts:
I'm creating an order programmatically and I would like to add a custom discount to each quote item.
I have something like this ...
$quote = $this->_quote->create();
...
foreach($products as $item) {
....
   $quoteItem = $quote->addProduct($productBySku, intval($item->quantity));
   $quoteItem->setCustomPrice($item->price);
   $quoteItem->setOriginalCustomPrice($item->price);
   $quoteItem->setDiscountAmount(5);
   $quoteItem->setTaxAmount(5);
....
}

I'm not interested in verifying totals and others, because I set the totals by myself after the quote is saved and the order is created. This is an order migration script and I would very much like to set the discount amount and tax for each row, but it doesn't work.
I also tried to set the quote item discounts after the quote is saved, but it doesn't work as well.
Can you help me with this?


texts:
I'm quite puzzled by this one.  I'm fairly new to the Magento architecture, so forgive me if this is a simple issue. I've got my caches disabled.

I'm on Magento 1.7.0.2, and I've created a vertical category navigation to sit in my left sidebar on all pages. I then tried to add a layout update to local.xml. Nothing happened. I checked the valudation on the xml - no errors.

Here's the update I'm trying:

<reference name="left">
    <block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/vert_nav.phtml" />
</reference>

Next, I tried placed it in catalog.xml, and sure enough, it appeared in the right spot on the home page. When I click through to the category pages, however, it disappears. I assume this means that catalog.xml is not in play on category pages? Is there another xml for this?


texts:
I'm trying to set a product with different prices depending on quantity "chosen from drop-down"

But I have no idea how to create this. basically I have a product which comes in this quantities: 20, 32, 42, 56, 65, 75, 88 ,106, 126, 138 so user should select one of this options to have corresponding price, I cannot use the increment option as the quantity is not multiple.


texts: Magento 2.3.2 Inventory Reservation, adding entries for open order before inventory upgrade

texts:
My salable quantity is off.

I figured out why it's off and how salable quantity is calculated.

Example proper order:

User: New order with product sku SKU-AAA x 1

System: Create a Reservation for SKU-AAA x 1...

table inventory_reservation fields reservation_id,stock_id,sku,quantity,metadata

1 1 SKU-AAA -1.0000 {"event_type":"order_placed","object_type":"order","object_id":"12345"}

After Shipped...

System: Counter the Reservation... (and cleaned by cron later on)

2 1 SKU-AAA 1.0000 {"event_type":"order_placed","object_type":"order","object_id":"12345"}

System: Finally deduct the physical quantity of the SKU-AAA.

My problem is that I have orders that are still open, and are made before the new inventory system!

I also know that I have to somehow manually create those missing reservation entries, but I was hoping that there is a built-in way of doing that...

Thanks in advance.


texts:
Synopsis

What is the difference between getChildHtml and getBlockHtml?
How can I get the cms/block title in the template?

I have essentially replaced the footer with my own footer and set my own <?= $this->getChildHtml('...') ?> This didn't work until I used: <?= $this->getBlockHtml('...') ?>.

Layout XML:

<layout>
    <default>
        <block type="core/template" name="custom_footer" as="footer" template="page/html/footer.phtml">
            <block type="cms/block" name="child_1">
                <action method="setBlockId"><block_id>footer_child_1</block_id></action>
            </block>
         </block>
    </layout>
</default>

Template (doesn't work):

<?= $this->getChildHtml('child_1') ?>

Template (Works):

<?= $this->getBlockHtml('child_1') ?>

Solution:

First of all I had to override the footer inside my local.xml by:

<default>
    <block type="core/template" template="page/html/custom_footer.phtml" name ="custom_footer" as "footer" />
</default>

The I had to add my children (in order for getChildHtml() to work):

<reference name="footer">
    <block type="cms/block" name="child_1">
         <action method="setBlockId"><block_id>footer_child_1</block_id></action>
    </block>
</reference>


texts: how to create our own custom product page?

texts: After successfully created my own custom theme in magento 1.9,  I have to create my own custom product page. Is it possible to create our own custom product page?


texts: How to get a configurable parent product from catalog in Magento2?

texts:
In Magento 1 I had an extension that did the following to get the configurable parent product by child ID:

// $full_product holds the child in the first place
$configurable_product_model = Mage::getModel('catalog/product_type_configurable');
$parentIds= $configurable_product_model->getParentIdsByChild($full_product->getId());
if (count($parentIds) > 0) {
    $full_product = Mage::getModel('catalog/product')->load($parentIds[0]);
}

How can I do the same in Magento2?


texts: SKU switcher based on configurable selection

texts:
I am trying to update the product SKU based on the product selection chosen..

I have the following code that works, but only works if the configurable product is in stock (eg at least one of the configurations is marked as "stock")

define([
    'jquery',
    'mage/utils/wrapper'
], function ($, wrapper) {
    'use strict';

    return function (targetModule) {

        var updatePrice = targetModule.prototype._UpdatePrice;
        targetModule.prototype.dynamic = {};

        $('[data-dynamic]').each(function () {
            var code = $(this).data('dynamic');
            var value = $(this).html();

            targetModule.prototype.dynamic[code] = value;
        });

        var updatePriceWrapper = wrapper.wrap(updatePrice, function (original) {

            var dynamic = this.options.jsonConfig.dynamic;

            for (var code in dynamic) {
                if (dynamic.hasOwnProperty(code)) {
                    var value = "";
                    var $placeholder = $('[data-dynamic=' + code + ']');
                    var allSelected = true;

                    if (!$placeholder.length) {
                        continue;
                    }

                    for (var i = 0; i < this.options.jsonConfig.attributes.length; i++) {
                        if (!$('div.product-info-main .product-options-wrapper .swatch-attribute.' + this.options.jsonConfig.attributes[i].code).attr('option-selected')) {
                            allSelected = false;
                        }
                    }
                    if (allSelected) {
                        // DO SOMETHING HERE

                    } else {
                        value = this.dynamic[code];
                    }
                    $placeholder.html(value);
                }
            }
            return original();
        });
        targetModule.prototype._UpdatePrice = updatePriceWrapper;
        return targetModule;
    };
});

If all of the configurations are marked as "Out of stock" then this code does not work, no errors, just simply doesn't work.

Can any one help?


texts: Access shipping address auto-filled values with JavaScript

texts:
I'm trying to access the pre-filled values during the Magento onepage checkout (index.php/checkout/onepage/). Magento pre-fills the address if you select the "Shipping Address" to be the same as the "Billing Address" but later return one step back to edit the "Shipping Address" manually.

I'm having trouble to find the pre-filled values in the entire DOM. It's not possible to access the value with JavaScript what so ever.

Here's how I'm currently trying it:

document.getElementById('shipping:city').val

The DOM element looks like the following (no trace of the actual value):

    <input type="text" title="Stadt" name="shipping[city]" class="input-text  required-entry" id="shipping:city" onchange="shipping.setSameAsBilling(false);">
    Stadt

How can I actually access those values using JavaScript?


texts:
I tried to install ADDTHISS social networks extension, on first attempt it installed successfully but it was not working properly so I tried re-installing. Now if I try installation, I am getting this error:

./app/code/community/AddThis/SharingTool/Block/Share.php' already exists

and ADMIN panel and Website shows ERROR 503, Error 503 was maintenance.flag and I can get website back. How should I remove this extension completely so that I can reinstall it again.


texts: How to remove "Paypal" from error text on credit card decline

texts: When a customer attempts to place an order that gets declined they get an error along the lines of (paraphrasing): "Paypal Gateway decline: some error code". Is there any way to remove the "Paypal" part of that message? We have a number of business & government customers that are not allowed to use paypal and freak out when they see that message and cannot be made to understand that Paypal business is not the same as "Paypal" that they're thinking of.


texts: How to remove automatic applied coupon in magento 1.9

texts: I want to remove automatic applied coupon when user enter another coupon code.


texts: Please specify the product's option(s) After update 1.6 > 1.9

texts:
After adding a simple product to cart it gives: Please specify the product's option(s).

How can i check which data is sended with javascript? If i debug in app/code/core/Mage/Catalog/Model/Product/Option/Type/Default.php
$values is empty. That is where the exception is thrown.


texts: Page product. For a attribute size select box vs small rectangle

texts:
In page product, for select the size, i want to use not a select box but a small rectangle.

My web site(for size use a select box):
http://vispateresa-shop.com/it/prodotto-1

The exemple (use a rectangle box):
http://ultimo.infortis-themes.com/demo/second2/top9.html

how make this? I thick it's a simple setting from backend.

Thanks.
Ale


texts:
I need help troubleshooting my issue. I don't know what to look for. Magento 1.9.1.0. For what it's worth, this issue is probably related to the extension Webtex_CustomerGroupsPrice.

When I go to Customers > Customer Groups then I click Add New Customer Group, the page /index.php/admin/customer_group/new/key/.../ displays.

Then I type in a group name and hit Save. The next page is:
/index.php/admin/customer_group/save/key/.../?code=stuff&tax_class=3

and I get a 404 Not Found error from the frontend theme.

I have tried disabling the extension Webtex_CustomerGroupsPrice which does not change the symptom. I am just beginning to learn how the database works so if it's as simple as fixing a row in a table I can do that.

A rewrite exists in
app/code/local/Webtex/CustomerGroupsPrice/etc/config.xml:

<config>
    ...
    <global>
        ...
        <rewrite>
            <customergroupsprice_customer_group>
                <from><![CDATA[#^/admin/customer_group/save/#]]></from>
                <to>/customergroupsprice/group/save/</to>

Is this the issue? Why isn't that rewrite taking place? I have no idea what to do. Where should I be looking to troubleshoot this?


texts: Calling 3rd level categories of current category

texts:
I am trying to call all subcategories of the current category and grab their subcategories (3rd level).

I am using the following code to call all children of the current category:

<?php
$category = Mage::getSingleton('catalog/layer')->getCurrentCategory();
$categories = $category->getCollection()
        ->addAttributeToSelect(array('name'))
        ->addAttributeToFilter('is_active', 1)
        ->addIdFilter($category->getChildren())
        ->setOrder('name', 'asc')
?>

    <?php foreach ($categories as $category): ?>

          <a href="<?php echo $category->getUrl() ?>"><img class="" src="" alt="<?php echo $this->htmlEscape($category->getName()) ?>" alt="<?php echo $this->htmlEscape($category->getName()) ?>" />

          <a href="<?php echo $category->getUrl() ?>">
<?php echo $category->getName() ?>

 // Want 3rd level categories listed here

    <?php endforeach; ?>

This gives me a nice list of all the subcagetories of the current category but how would I insert the 3rd level categories inside this part?

Trying to accomplish a list like this:

Clothing
   Shirts
   Shoes
Accessories
   Scarfs
   Jewelry


texts: getActiveFilters not working on the cms page and working on the category page

texts:
I am trying to get applied active filters on layered navigation. Below is my code which i had tried:-

<?php $r = new Mage_Catalog_Block_Layer_State(); ?>
<?php $_filters = $r->getActiveFilters(); ?>

    <?php foreach ($_filters as $_filter):?>

            <?php if ($_filter->hasData('children')): ?>
                <?php foreach ($_filter->getData('children') as $child): ?>
                    <a href="<?php echo $child['url'] ?>"><?php echo $child['label'] ?>&nbsp;&times;
                <?php endforeach ?>
            <?php else: ?>
                <a href="<?php echo $_filter->getRemoveUrl() ?>" ?>><?php echo $_filter->getLabel() ?>&nbsp;&times;
            <?php endif ?>

    <?php endforeach; ?>

this code is working on the category page with layered navigation

and this code is not working on the cms page with the layered navigation


texts: how to override getlabel() function in Magento\Customer\Block\Account\AuthorizationLink in magento 2

texts: Can anyone guide me how to override the getlabel() function in Magento\Customer\Block\Account\AuthorizationLink  (Magento 2)


texts:
Fatal error: Cannot redeclare spl_autoload_register() in /home/jef2mcggxor1/public_html/app/code/core/Mage/Core/functions.php on line 69
i have this error in the 69 libe i observed it only have flower brases
please let me know how can i solve it


texts: Klarna payment option not showing Magento 2.3

texts: I have enabled Klarna in the magento store->paymentoptions section. But it does not show on the frontend when going to the checkout and trying to select the payment option. If I enable other payment options then those are shown but not Klarna. Any ideas?


texts: Force Trailling slash and problem with pop up

texts:
Hi I have found this code about the trailling slash and it works perfect.

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [L,R=301]

RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^index.php
RewriteCond %{REQUEST_URI} !\.(html|jpg|png|gif)$
RewriteRule ^(.*)$ $1/ [L,R=301]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]

</IfModule>

My problem is that it doesn't work properly the add to cart button.
In my site when i push the add to cart then shows a pop up and inside the popup shows 2 buttons. "Continue Shopping" and "View cart and checkout".

Now when i click the add to cart it shows the pop up but instead of the buttons it shows the message "error".

Can someone help me ?

regards


texts: Magento migration 1.9.2.3 to 2.0.2 issue

texts:
I am trying to migrate magento 1.9.2.3 to 2.0.2. I have installed both magento 1.9.2.3 and 2.0.2.

Migration tool was not installed so i downloaded files from git and used in my path E:\wamp\www\migr20\vendor\magento.

Now i trying to execute this code:

php migr20\bin\magento migrate:data -r E:\wamp\www\migr20\vendor\magento\data-migration-tool\etc\config.xml

And I get this error:

  [InvalidArgumentException] Command "migrate" is not defined.

What was the mistake here? How to solve this?


texts: VariationMatrix error with configurable product in admin

texts:
When trying to edit a configurable product I'm given the error Notice: Undefined offset: 0 in /var/www/html/magento2/httpdocs/vendor/magento/module-configurable-product/Model/Product/Type/VariationMatrix.php on line 39 which prevents anything from showing:

I'm at a loss as to what's causing this and how to fix it.


texts:
Here what happen I am trying to add my custom phtml file in catalog_product_view.xml.

Underneath:

<referenceContainer name="content">
  <container name="product.info.main" htmlTag="div" htmlClass="product-info-main" before="-">
<!--My custom container-->
  <container name="product.info.extension" htmlTag="div" htmlClass="product-info-extension" before="product.info.price">
      <block class="Magento\Catalog\Block\Product\View" name="product.info.extension.layout" template="Magento_Catalog::product/view/customattributes.phtml" after="page.main.title"> </block>
  </container>
<!----------------------->

phtml called proper.
But what happen Review tab removed. Once I add this custom phtml.

Can please anyone tell me what I did wrong here.


texts:
Customers can not login to Magento using IE or Safari. I have tested with secure and not secure and it doesn't make a difference. Login works fine on Firefox and Chrome.

Attaching login from Safari

Here are the PHP and Apache items that Vladimir asked for

Server PHP API would be php-fpm or fastcgi. (I'm assuming that's what he meant anyway.)

Here is the list of installed Apache modules:

core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
cgi_module (shared)
authz_user_module (shared)
authn_file_module (shared)
auth_basic_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
include_module (shared)
deflate_module (shared)
log_config_module (shared)
env_module (shared)
mime_magic_module (shared)
expires_module (shared)
headers_module (shared)
unique_id_module (shared)
setenvif_module (shared)
proxy_module (shared)
proxy_connect_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
info_module (shared)
suexec_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
fastcgi_module (shared)
ssl_module (shared)
watch_module (shared)
wsgi_module (shared)


texts:
Any Help Regarding to this highly Appriciated.

I see wordpress is light weight , fast and easy to work on it more over very cheap hosting like shared hosting is compatible for wordpress however also have very low amount of bugs

when i compared with Magento. Magento is High Level of coding, complex to install, and very complex CLI interface and and very slow than wordpress, and also need expensive hosting..

i need to know the difference between them please only reliable answer


texts: How to fix Front controller reached 100 router match iterations

texts:
I'm getting this error sometimes. When I remove var/cache/ and flush cache, Site works fine without error.

Why this error come and how I fix it permanently?


texts: I successfully created a module which outputs "Hello World" on my CMS homepage. Now, I want to make this module a header / navigation bar which replaces the one of the blank theme. I also successfully created my own theme. So I am basically good to go but I don't know where to start. The structure and workflow of Magento completely confuse me. How do I change the styling of a certain block / module? How do I tell the module to be on the very top of all pages? I know it has something to do with the default.xml but... how? I got a "normal" HTML website with a gallery. I linked my shop there. I want to have a smooth transition from my HTML website to my magento shop meaning the design should match. So how do I get my header in magento to look like this?


texts: It's possible or Not : paypal personal account to get Api-(username,password and Signature) in Magento2

texts:
I have paypal personal account I need to configure paypal express checkout.

I don't have Paypal Business account So -

I need to know any trial possibility for Configure paypal express checkout in Magento2 ?


texts: Magento 2.4.0 : Create account without an email Address

texts:
I have created a custom REST API to create a customer account programmatically. Now while creating a customer account user may or may not have an email ID. But user will update while placing order in the checkout page. (Magento Headless Implementation)
So Is there any way to avoid adding a customer email ID only while creating account.
Below is my code to create customer Account.
    $customerData = $this->customerFactory->create();
    $customerData->setEmail("EMAIL_HERE"); // This could be blank sometime.
    $customerData->setFirstname("FIRST_NAME_HERE");
    $customerData->setFirstname("LAST_NAME_HERE");
    $customerData->setCustomAttribute('custom_attribute_code_here', 'Value_here');
    $this->customerRepository->save($customerData);

Note: All above values I will be getting in a REST API request.
I see the below changes would be required:

make the customer "email" attribute as not required from eav table via patch script.
Override Core Files as below
Magento\Customer\Model\ResourceModel\Customer.php; beforeSave()

I am assuming there will be more core files to override that I am still looking into it. I know this is not a right requirement. But still I want to see what are the modification needed and what are the challenges and what would be issues if somehow we make this happen.


texts: Where in the database is robots.txt content saved?

texts:
According to M2 docs.

You do not have to generate a robots.txt because it generates on demand and stores the contents in the database. It does not create a file, but you can view the content in your browser with the url: /robots.txt

Where in the database, which table is this information saved?


texts:
I'm using {{store url=""}} to build the URL for a CMS block. The block is later loaded within the HEAD tag to include a rel="stylesheet" link pointing to a CSS file.

My problem is that the store directive used in this context is giving the unsecure address (http instead of https).

How do I get the rel="stylesheet" link to point to the proper URL (in this case, the secure version)?


texts: does anyone know of lightboxes or image zoomers which are compatible with SCP?

texts:
SCP,(Simple Configurable Product), is a very popular extension for configurable products in magento. However, when attempting to change the image in response to configurable options chosen it seems to break as it was only designed to work with the default Magento image zoomer.

Searches on Google reveal that dozens and dozens of people have the same issue. The community would really benefit from a basic list of compatible lightboxes or image zoomers (other than the default).

Does anyone know of a compantible one (or, at least, instructions of how to make one compatible)?


texts: How are magento lib files loaded - Sage lib class not being accessed by model

texts:
On a mage site using sagepay, inside the Sagepaysuite model there is a call to a class

file: Ebizmarts/SagePaySuite/Model/Api/Payment.php

   $xml = new Ebizmarts_Simplexml_Element('<customer />');

The class 'Ebizmarts_Simplexml_Element' can be found in - root/lib/Ebizmarts/Simplexml/Element.php

   class Ebizmarts_Simplexml_Element extends Varien_Simplexml_Element

I can see from checking apache logs that this cannot be found

   Class 'Ebizmarts_Simplexml_Element' not found in <path to payment.php

I assume an include of this file before the class is called would work but this cannot be best practice and may not be enough if the class is required in other areas of the extension that I have not yet noticed. How exactly are lib files loaded in Magento and any ideas why it is not getting it in this case.


texts: What is best approach to create 100+ stores in Magento?

texts:
Magento CE 1.9.x
Assume the case that we need to create 100+ stores having 10k products in each store.

each store will have 100+ products.
there are very high chances that each store can have their own root categories.
some products can be unavailable in certain stores.
language can vary across two stores (within the same Magento instance)
currency may also vary if between two stores.
product quantity may also vary between two stores and price too.

In this approach what will be the best method to be used?

create a separate website for each 100+ stores (i.e 100 stores + 100 website + 100 store view )
keep one main domain (website) and create 100+ stores and stores view. (i.e 100 stores + 1 website + 100 store view )

Base currency may be same or different both and language also may be same or different both.

For example 15/100 store is in India , at different states. So base currency will be INR for those 15 stores. Prices also may vary , depend on the state or city in which store resides.(example taxes are different so price may vary). Rest 85/100 stores may be divided on other parts of world like USA (dollars base currency , language en_US) , Singapore ( Singapore dollar base currency , language en_US) , UK (base currency euro , language en_UK )

I heard that creating multiple websites may cause system performance issues. Please advice if this is true.


texts: Total amount of complete orders of a customer

texts:
I'm trying to do the sum of the amount of all complete orders by a particular customer.
I write this to do so:

$collectionOrders = Mage::getModel('sales/order')->getCollection()->addFieldToFilter('customer_email', $email)->addFieldToFilter('status', 'complete');
foreach ($collectionOrders as $order) {
    $total += $order->getGrandTotal();
}
echo $total . "\n";

But when i check in the admin section the orders, i find the value of is actually higher. I think i've got something wrong in the loop.


texts: How to achieve single domain > multiple stores > different products and prices per store

texts:
I need to build out multiple Magento 'stores' on a single website, with each 'store' representing a unique partner who offers a different combination of products from our global catalog.

For example, if our global catalog contains 10 products [p1,p2,p3,...p10], and we want the following configuration...

"Partner A" store at "//domain.xyz/store/partner-a" only offers products p1, p3, p5, p7, and p9.
"Partner B" store at "//domain.xyz/store/partner-b" only offers products p2, p4, p6, and p8.
"Partner C" store at "//domain.xyz/store/partner-c" offers all 10 products, but with different retail prices from partners A and B.

...is this possible with Magento 2.x?

My current overall understanding of Magento 2.x is:

Multiple stores on one website is possible.
Each product can have a different price per store if we define our price scope as 'website' rather than 'global'.
Each store can feature a different (but not mutually exclusive) list of products if we set each store up with a new 'root category'
defining that store's available products.

Am I off-base? If so, are there any proven ways, or even easier ways, to accomplish what I'm looking to do?


texts: Is there sample data of other products Like eletronics available for Magento 2? Where can I find it?

texts:
I am looking for other Sample data like electronics, or Apple products for Magento 2.
Is there such data out there just like there is the default Sample data for Luma theme.
I tried googling but I just can't find anything


texts: Magento2: How to add custom attributes into CustomerGroups

texts:
I've already added some custom attributes into order and customer, now, I'm trying to do the same with CustomerGroups and it's not working. I'm failling on the first step, the setup script:

class InstallData implements InstallDataInterface
{

    private $customerSetupFactory;

    public function __construct(
        \Magento\Customer\Setup\CustomerSetupFactory $customerSetupFactory,
    )
    {
        $this->customerSetupFactory = $customerSetupFactory;
    }

    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);

        $customerSetup->addAttribute('customer_group', 'custom_code', [
            'type' => 'varchar'
        ]);
    }
}

When I run setup:upgrade it shows that:

[Magento\Framework\Exception\LocalizedException]
Wrong entity ID

Why? I searched on module-customer and I found the model I want to attach the custom attributes: vendor/magento/module-customer/Model/Group.php and it has the constant:

const ENTITY = 'customer_group';

So why it's failing?

What I'm missing?

EDIT:

After @Sohel Rana response, I'm trying this way, but it's harder than I expect. I did the following steps:

I added a column on customer_group table with InstallSchema.
Defined the plugin for intercept the get and save methods:

<type name="Magento\Customer\Model\ResourceModel\GroupRepository">
    <plugin name="Gsp_CustomerCrm::GroupRepository" type="Gsp\CustomerCrm\Plugin\GroupRepository"/>
</type>

Created the plugin, based with another plugin I have of order:

class GroupRepository
{

    protected $groupExtension;

    public function __construct(\Magento\Customer\Api\Data\GroupExtension $groupExtension)
    {
        $this->groupExtension = $groupExtension;
    }

    public function afterGetById(\Magento\Customer\Model\ResourceModel\GroupRepository $groupRepository, $group)
    {
        $extensionAttributes = $group->getExtensionAttributes();
        if ($extensionAttributes === null) {
            $extensionAttributes = $this->groupExtension;
        }
        $value = $group->getData('gsp_code') ? $group->getData('gsp_code') : null;
        $extensionAttributes->setData('gsp_code', $value);
        $group->setExtensionAttributes($extensionAttributes);

        return $group;
    }
}

But when I call getById method it shows that error:

Call to undefined method Magento\\Customer\\Model\\Data\\Group::getData()

I see that the Group object hasn't got getData method, getGspCode doesn't exists neither. so how I can retrieve my attribute?

The only way I see it's doing by a custom query. But I feel a bit messy this solution. Is there a proper way to get my attribute?

After that I tried to do the same with afterSave method, and I have the same problem.

I don't get what is going on. I created a beforeSave and afterSave

with this code:

var_dump($group->__toArray());

And this is the result:

array(4) {
  ["code"]=>
  string(4) "test"
  ["tax_class_id"]=>
  int(3)
  ["tax_class_name"]=>
  string(6) "string"
  ["extension_attributes"]=>
  array(1) {
    ["gsp_code"]=>
    string(4) "test"
  }
}
array(4) {
  ["id"]=>
  string(1) "6"
  ["code"]=>
  string(4) "test"
  ["tax_class_id"]=>
  int(3)
  ["tax_class_name"]=>
  string(15) "Retail Customer"
}

Why on beforeSave appears my attribute but on afterSave doesn't?

Seems that this should work without any plugin, just saving and retrieving by itself, but for some reason is not working.


texts:
How to Move my custom phtml call after payment information before continue button in xml

this is the code

<checkout_onepage_review>
        <reference name="checkout.onepage.review.info.items.after">
            <block type="ordercomment/checkout_onepage_review_commentfield" name="cdr_order_comment" template="cdr/ordercomment/onepage/review/commentfield.phtml" />
        </reference>
    </checkout_onepage_review>

Thanks


texts:
Installed extension vsourz-html-sitemap
And executed

php -dmemory_limit=5G bin/magento setup:upgrade

I am getting this strange issue .

            Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::getEntityPkName() must be an instance of Magento\Eav\Model\Entity\AbstractEntity, instance of Magento\Catalog\Model\ResourceModel\Product\Flat given, called in /home/pocketgrocery/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 1369 and defined in /home/pocketgrocery/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:1532 Stack trace: #0 /home/pocketgrocery/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1369): Magento\Catalog\Model\ResourceModel\Product\Collection->getEntityPkName(Object(Magento\Catalog\Model\ResourceModel\Product\Flat)) #1 /home/pocketgrocery/public_html/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1476): Magento\Eav\Model\Entity\Collection\AbstractCollection->_addAttributeJoin('status', 'inner') #2 /home/pocketgrocery/public_html/vendor/magento/module-c in /home/pocketgrocery/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 1532

Even compiled and cleaned the cache.


texts:
I'm Currently using magento2.3, i have added a cron job to update products stock every 20 min from external inventory which will create a CSV file to magento directory, i will read this file and loop
to the quantity and create a SQL query to update it to cataloginventory_stock_item table and run reindex.

Quantity get updated but not showing add to cart in front-end , after product save manually from admin it's working fine. It is proper method to update qty or else there is any other method for performance using this method, because our store having more then 20K+ products


texts: Is it possible to downgrade Magento from 2.3.4 to 2.2.1? Which command should I use?


texts: Uploading File (Downloadable Information) Magento 1.9x

texts:
Weird problem: When I try to upload a product file in the "downloadable information" section it begins to load but does not complete. Then it returns automatically to the admin login screen.

Is there someone who can help me, please ?


texts: If you install Magento and add Products and want to add a Price Slider you see The Price looks like that 0.2000 to 200.0000 on the left navigation bar. But in Europe you need only 2 digits after the decimal point so it should look like 0.20 to 200.00 how can I change that?


texts: Magento 2.2.2 How to implement EAV database structure

texts:
Up till now i had been working in (Simple)flat database structure in my custom modules, but now i have to use EAV database structure but i don't have any idea, how to implement EAV structure.

Any help or suggestion will be appreciated.

Thanks


texts: Magento 2 Can't change theme after move to new server

texts:
I have moved my Magento 2.3.3 to a new server. Every seems work fine, But I can't change theme.

Configure:
CONTENT > Elements > Design > Configuration > Select Edit > Default Theme > Applied Theme > select Magento Luma > Save Configuration
But it show a bug

Forbidden
You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.25 (Debian) Server at mydomain.com Port 80

Thank you for your advanced!


texts: Is it possible to use the checkout model login as default for all pages in custom theme which inherited form blank theme? As I see on checkout site is using some wrapper.


texts: API Magento catalogCategoryUpdate function not working after moving to SSL

texts:
I was working with SOAP on Magento like

$client = new SoapClient('http://host/index.php/api/v2_soap/?wsdl');

and after moving to

    $client = new SoapClient('https://host/index.php/api/v2_soap/?wsdl');

the functions of categories like

$client->catalogCategoryMove

or

$client->catalogCategoryUpdate

stop working, and I'm having:

SoapFault exception: [HTTP] Service Unavailable

this is my Stack Trace

Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://admin.c...', 'urn:Mage_Api_Mo...', 1, 0)

#1 /opt/bitnami/apps/magento/htdocs/ws/categorias_v2.php(161): SoapClient->__call('catalogCategory...', Array)

#2 /opt/bitnami/apps/magento/htdocs/ws/categorias_v2.php(161): SoapClient->catalogCategoryUpdate('e90af090b02de56...', '9', Array)

Any ideas?

Thanks.


texts: How to change the field Product Brand to Manufacturer?

texts:
Can someone please explain to me how I can change the field 'Product Brand' to 'Manufacturer'?

From :

To :


texts:
When I upload an image for a product Magento is deleting my admin cookie, so when I go to 'save' I am returned to the admin login page. I am really not sure what's going on. Any ideas?

My cookie path is /
My cookie domain is empty
Use http only is no
Restriction mode is no

ALL session validation settings are no including 'Use SID'

I get no errors or exceptions and nothing in the console.

Also, my WHOLE site is severed over HTTPS and I don't seem to have any other session or cookie issues.

Thoughts?


texts: Magento 2 : Upload multiple images from custom form at Frontend

texts:
I am trying to upload multiple images from frontend with multiple fields.

I can able to save the single image but I would like to save multiple images.

Here is my controller.

 class Index extends \Magento\Framework\App\Action\Action
{
  protected $_resultPageFactory;
  protected $groupFactory;
  protected $uploaderFactory;
  protected $adapterFactory;
  protected $filesystem;
  protected $request;

  public function __construct(
    Context $context,
    \Magento\Framework\View\Result\PageFactory $resultPageFactory,
    GroupFactory $groupFactory,
    \Magento\Framework\App\Request\Http $request,
    \Magento\MediaStorage\Model\File\UploaderFactory $uploaderFactory,
    \Magento\Framework\Image\AdapterFactory $adapterFactory,
    \Magento\Framework\Filesystem $filesystem
 )
 {
    parent::__construct($context);
    $this->_resultPageFactory = $resultPageFactory;
    $this->groupFactory = $groupFactory;
    $this->request = $request;
    $this->uploaderFactory = $uploaderFactory;
    $this->adapterFactory = $adapterFactory;
    $this->filesystem = $filesystem;
}

public function execute()
{
    //echo  "<pre>";

    /*$groupCode = $this->request->getParam('group_code');
    $groupTotalMembers = $this->request->getParam('total_members');
    $groupValidity = $this->request->getParam('group_validity');
    $groupMembersName = $this->request->getParam('members_name');
    $groupIndividualShippingAmount = $this->request->getParam('individual_shopping_amount');
    $groupShoppingAmount = $this->request->getParam('group_shopping_amount');
    $groupLink = $this->request->getParam('group_link');*/

    try{
        $uploaderFactory = $this->uploaderFactory->create(['fileId' => 'member_profile_image'],['fileId13' => 'group_image']);
         // Not sure about above line !! I've add second param but not seems working.
        $uploaderFactory->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
        $imageAdapter = $this->adapterFactory->create();
        $uploaderFactory->setAllowRenameFiles(true);
        $uploaderFactory->setFilesDispersion(true);
        $mediaDirectory = $this->filesystem->getDirectoryRead(DirectoryList::MEDIA);
        $destinationPath = $mediaDirectory->getAbsolutePath('group_image');
        $result = $uploaderFactory->save($destinationPath);
        if (!$result) {
            throw new LocalizedException(
                __('File cannot be saved to path: $1', $destinationPath)
            );
        }

        $imagepath = $result['file'];
        //
    } catch (\Exception $e) {
    }

    //print_r($uploader);
    //exit;

    //$group = $this->groupFactory->create();
    //$group->setCode('My Final123')->save();

    $resultPage = $this->_resultPageFactory->create();
    return $resultPage;

}

}

Thanks in Advance.


texts: How to create custom tab in search results page magento 2

texts: i want search results page like this, and can switch the 2 tabs by clicking, how to make it?


texts:
I created a import order button in sale tab in magento 1 like this in Model/Observer:

public function addButton($observer) {
        $block = Mage::app()->getLayout()->getBlock('sales_order_edit');
        if (!$block){
            return $this;
        }
        $order = Mage::registry('current_order');
        $block->addButton('export order', array(
                'label'     => Mage::helper('sales')->__('Export order'),
                'onclick'   => 'setLocation(\'' . $this->getButtonUrl($order->getId()) . '\')',
                'class'     => 'go'
        ));
        return $this;
    }

    /**
     * Retrieve the URL for button click
     *
     * @return string
     */
    public function getButtonUrl($id)
    {
        return Mage::helper('adminhtml')->getUrl('*/button/expButton/order_id/'.$id, array(
            //'_current'   => false,
            //'back'       => 'edit',
            '_secure' => true
        ));
    }
}

Now this button goes to a controller.
How can i make this button to be a "upload file" button, and let me choose a file and upload this file in magento?

I already found this article Add custom button to upload a file
but it not help me to much.

Does anyone know how it's the right way to do this? or can anyone give ma an advice?


texts: Installing Magento 2.2.4 on windows localhost using xampp

texts:
I am trying to install Magento 2.2.4 on windows localhost using XAMPP.

My XAMPP is installed I C:\xampp7.1

To use command line I using Command prompt in C:\xampp7.1\php>

And the following command:

  php C:\xampp7.1\htdocs\Magento2_2_4\bin\magento setup:install
  --db-host=localhost --db-name=magento224 --db-user=root --db-password=root --base-url=http://127.0.0.1/Magento2_2_4/ --backend-frontname=admin --admin-firstname=admin --admin-lastname=admin --admin-email=admin@email.com --admin-user=admin --admin-password=admin@123

But it always giving error:
Can't create directory

  C:/xampp7.1/htdocs/Magento2_2_4/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/.
  in [Magento\Framework\App\Config\ConfigSourceAggregated\Proxy]

I have given Magentonto root directory permission 777 using Cygwin

Please guide me in setting proper permissions to Magento's root directory and its ownership on windows localhost


texts: Magento 2 : Hide Product Images Using Database

texts: I have migrated my products from Magento 1 to Magento 2. How to hide bulk product images? For example, I have product with 4 images found on backend, I want only one product will display on frontend. Aside from using backend is there another way to make it easier without manually hiding each product image on backend?


texts: SOAP order inserting: How do you stipulate the payment method?

texts:
I'm attempting to add orders through the soap api.
I am wondering about how to fill in the payment method array

The docs gives this as a sample

$paymentMethod =  array(
        'po_number' => null,
        'method' => 'checkmo',
        'cc_cid' => null,
        'cc_owner' => null,
        'cc_number' => null,
        'cc_type' => null,
        'cc_exp_year' => null,
        'cc_exp_month' => null
    );

How about when the payment is not CC.. How do we put external transaction numbers in here?  For instance when the order was entered via paypal, I'd like to include the PayPal transaction information (client name, or at least transaction number)

Am I missing something?


texts: Deleting Product gives StateException (code:0)

texts:
The codes:

public function __construct ( ProductInterfaceFactory $product_factory,
                              ProductRepositoryInterface $product_repository,
                              Registry $registry,
                              LoggerInterface $logger ) {
    $this->productFactory = $product_factory;
    $this->productRepository = $product_repository;
    $this->registry = $registry;
    $this->logger = $logger;
}

public function execute () {
    $this->registry->register('isSecure',true);
    $product = $this->productRepository->get('Test Product A');
    $this->productRepository->delete($product);
}

Also, tried deleting by calling delete() and deleteById(), both also does not work. And putting 'isSecureArea' inside registry gives me error "Registry key already exists"

And - deleteById expects Product's SKU? Not ID? Bug or just bad naming?

I got this error:

[2018-05-21 01:45:16] main.CRITICAL: Unable to remove product Test Product A {"exception":"[object] (Magento\\Framework\\Exception\\StateException(code: 0): Unable to remove product Test Product A at /var/www/magento2/vendor/magento/module-catalog/Model/ProductRepository.php:661)"} []

Help please.

Solution:
I just needed to call unregister first before I register, I have no idea why.

$this->registry->unregister('isSecureArea');


texts: Permission Denied (Windows) - M2Devbox Installation Issue

texts:
I'm new to Magento, and to Docker for that matter...
Managed to get as far as executing the ./m2devbox-init.bat script which pulled the necessary files from the repo and did the installation but towards the end of the installation I got this error:

[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: /admin
Executing shell command:
mysql -h db -u root -proot -e "CREATE DATABASE IF NOT EXISTS
magento_integration_tests;"
Executing shell command:
cd /var/www/magento2 && php bin/magento deploy:mode:set developer
Enabled developer mode.
Executing shell command:
touch /home/magento2/state/enable_sync
touch: cannot touch '/home/magento2/state/enable_sync': Permission denied

If I was running Linux I would know my way around a little better but I'm a bit lost using Windows with Docker and Virtualbox.
Anyone can advise whereabouts I can find the location mentioned above to adjust the permission?
Also noticed that during installation, another terminal opens following the execution of the ./m2devbox-unison-sync.bat script and has the following error:

(./shared/webroot: No such file or directory)
or to its parent ./shared
(./shared: No such file or directory)
Try 'timeout --help' for more information.
Contacting server...
Fatal error: Cannot find canonical name of ./shared/webroot: unable to cd either to it

Not sure if the two issues above are in some way related.
Any help or direction appreciated. Have tried troubleshooting the issue without any success.


texts: Override Admin module's Grid to frontend (Magento 1)

texts:
I have a custom module in magento 1 admin and i am looking for a way to make it available for customers, this means that there will be a link in customer's dashboard then he will be available to see the exact Grid from admin.
In the admin there is also a "approve/decline" option for every record in this Grid so the same functionality should be available to the customer to update the database record.
From what i understand i will have to use the override method and somehow the collection will be filtered by the customer's email , then he will only have access to his own records in the Grid.
not quite sure how to start so any thoughts please!


texts: Magento2 Under which conditions magento order can be cancelled

texts:
Magento2 I would like to know under which conditions an order can be cancelled or other vice under which conditions order can't be cancelled?
I am facing a strange issue where my orders are not getting cancelled.
I am not clear on which conditions should I check first to debug why my orders not getting cancelled Manually from admin or via script.
Can some once guide me on this? It will be a great help.
Thanks in advance.


texts: Page Title Move for All Pages - Magento2

texts:
        My Account

How can i move page-title-wrapper div between columns and column main ?

I have try this one by one but not working:

<move element="page.main.title" destination="content" after="columns"/>

<move element="category.image" destination="page.title.wrapper" after="page.main.title" />

<move element="page.main.title"  destination="headerlinks" after="columns" />

<move element="page.title.wrapper" destination="header.panel" before="-"/>

<move element="page.main.title" destination="headerlinks" before="-"/>

Any help will be appreciated.... Thanks in advanced.


texts: Custom Tab in My account Page goes to 404 in Magneto 2

texts:
It added the Buttton but when i click on it it goes to 404 error.
My Folder Structure be Like

And my code is :
index.php
<?php
namespace Demo\Mod\Controller\Index;

use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\App\Action\Context;

class Index extends \Magento\Framework\App\Action\Action
{

    public function execute()
    {
        $this->_view->loadLayout();
        $this->_view->renderLayout();
        /*echo 'Hello World 11111  ajjjjjjjjjjjjj';
        exit;*/
    }

}

routes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
       <route id="routename" frontName="routename">
            <module name="Demo_Mod" />
        </route>
    </router>
</config>

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="Demo_Mod" setup_version="2.1.1" active="true"/>
</config>

customer_account.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
      <referenceBlock name="customer_account_navigation">
         <block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-
   account-navigation-custom">
            <arguments>
               <argument name="path" xsi:type="string">routename/customer/index</argument>
               <argument name="label" xsi:type="string">Setup</argument>
            </arguments>
         </block>
      </referenceBlock>
   </body>
</page>

routename_customer_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/e
    tc/page_configuration.xsd">
<update handle="customer_account"/>
<body>
    <referenceBlock name="page.main.title">
            <action method="setPageTitle">
                <argument translate="true" name="title" xsi:type="string">My
Setup</argument>
            </action>
 </referenceBlock>
 <referenceContainer name="content">
    <block class="Magento\Framework\View\Element\Template" name="my_tab" template="Demo_Mod::mytab.phtml">
    </block>
</referenceContainer>
</body>
</page>

mytab.phtml
<?php
 // Add Some Code Here for design
?>
<span> My Setup Custom Tab.. </span>

and last file registration.php
<?php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Demo_Mod',
    __DIR__
);


texts: Use my domain for sales emails instead of my hosting domain

texts:
All my automated sales emails (like order confirmation, shipment...etc ) are sent from username@myhostingdomain.com,

I want emails to be sent from my Magento domain exemple: sales@mydomain.com

thank You.


texts: magento 2 : show all attributes even after filters applied in layered navigation

texts:
I'm using Magento-CE-2.1.7.and i want to use Layered Navigation.I have added an attribute from stores-->Product.
catalog input type: Multiple select
under manage options, I have added 4 Attributes (Cup, Instant Large, Instant small & Regular)
under Advanced Options
Scope: Global
Add to Column Options: No
Use in Filter Options: Yes
under Storefront Prop
use in search: no
Comparable on Storefront: no
Use in Layered Navigation: Filterable(with results)
Use in Search Results Layered Navigation: Yes

and assigned it to Attribute set also.and after that I have created a product and assigned attributes to them.Category is "IS Anchor =Yes"

Default Category (1851)  --Shop Here (0)---Grocery (0)  ----Biscuits (2)    ----Noodles (15)

Category Display mode: product only
is anchor: Yes

Layered Navigation shows on the product page.but when I click on an option it disappears.

I want the layered Navigation to stay visible with filter option like in the First Image.


texts: Magento 2 Payment Method error bad request 400

texts:
When I try to pay with Mastercard credit card module I get an error

  bad request 400

If I go to my var/log/exception.log file I receive the following error:

main.CRITICAL: The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly at /var/www/html/emall/vendor/composer/composer/src/Composer/Factory.php:641)"} []

I have tried many commands found in Internet, but I don´t know if the problem is with composer or with the module itself.
This is the module that im using: https://marketplace.magento.com/ontap-module-mastercard.html

Hope someone can help.
Thank you and regards!


texts: Weird issue, attribute value in catalog_product_entity_text but empty when I do an export

texts:
Very strange issue, when I open a product I can see the value of my attribute (EAN), the value is also in the catalog_product_entity_text table.

But when I do an export I get this result

"sku","ean"
"002",""

The issue is getting more weird every second. What I now found out is that the field EAN is a textarea field, but when he hits the flat table it becomes a int(11) and he adds the max int 2147483647 in that field for every SKU


texts: As capture the token that came through the head and send it to a function that I created myself?

texts:
I'm trying to customize the Magento API Engine 2.
I would like to know if there is any time of the request, before arriving at webapi.xml to capture the token that came through the head and send it to a function that I created myself?
If yes, how and where can I do this?


texts: Creating default attribute values for an attribute set

texts:
Let's say I have an attribute set for "cats" and attribute set for "dogs."

I want each attribute set to automatically populate my product attributes with a set of default values that are different. For example, if I choose to create a "cat" product, I want the default cat attributes to load as part of the attribute set. I want to set "ear type" to "cat" rather than "dog" by default.

So basically I am looking for a way to set default attribute values for each attribute set.

How do I go about doing this?


texts:
The Magento site can send emails from the contact form and when someone signs up.

BUT If a customer purchases an item, it does not send a confirmation receipt to that customer.


texts:
Hi I am getting collection using the below function and then calling this on homepage and its working but I want to use this collection and show it in slider.
my block
public function getProductCollection()
{
    $collection = $this->productCollectionFactory->create();
    $collection->addAttributeToSelect('*');
    $collection->addAttributeToFilter('enable_slider_deal', 1);
    $collection->addAttributeToFilter('status', 1);
    $collection->addAttributeToFilter('visibility', 4);
    $collection->setPageSize(3);
    foreach ($collection as $product)
    {
        echo"
";
        print_r($product->getData());
    }
}

phtml
<?php
//$dailydeal_products = $block->getProductCollection();
?>

<?php
$productCollection = $block->getProductCollection();
if (count($productCollection)) {
?>

Featured Products

<?php } ?>

  <a href="<?php echo $product->getProductUrl(); ?>">
      <img class="img-fluid mb-2 border" src="<?php echo $resizedImageUrl; ?>" alt="<?php echo $product->getName(); ?>" />
      <img class="img-fluid mb-2 border pic-hover" src="<?php echo $resizedHoverImageUrl; ?>" alt="<?php echo $product->getName(); ?>" />

<a href="<?php echo $product->getProductUrl(); ?>" class="text-uppercase font-weight-bold"><?php echo $product->getName(); ?>

  <?php echo implode(', ', $genders) . '
'; ?>

  <?php if($price != $salePrice && $salePrice > 0) { ?>
    <?php echo $block->getCurrencyPrice($price); ?><?php echo $block->getCurrencyPrice($salePrice); ?>

  <?php } else { ?>
  <?php echo $block->getCurrencyPrice($price); ?>
  <?php } ?>
  <?php  $_ratingSummary = $block->getRatingSummary($product);?>
  <?php if ($_ratingSummary) { ?>

            <div title="<?php echo (int)$_ratingSummary; ?>%" class="rating-result">
                <span style="width:<?php echo (int)$_ratingSummary; ?>%"><?php echo (int)$_ratingSummary; ?>%

    <?php } ?>

<?php  ?>

any help on this


texts:
I have some products which are displaying on the frontend in category and search but when I click on the product to see the detail then nothing is shown. Can anyone advise on a process to debug?

Other products are still showing OK

I had a quick look and there doesn't appear to be a difference in setup between the two.
I'm not receiving an error message there's just no content where the product details should be, the div's however are there.

Here's the error I receive in error log:

  [05-Oct-2015 21:18:34 UTC] PHP Fatal error:  Call to a member function
  productAttribute() on a non-object in
  /home/mysite/public_html/app/design/frontend/mytheme/default/template/catalog/product/view.phtml
  on line 69

Can anyone help?


texts: How to allow third party to access Magento API?

texts:
How can I allow third party to access Magento API? Can anyone provide brief description on this. I'm using Magento CE 1.7.

Any suggestion will be appreciated.
Thanks in advanced.


texts: Magento 2.3 installation PHP requirement

texts:
I'm trying to update Magento 2.2 to version 2.3 using this command:

composer require magento/product-community-edition=2.3.0

When doing so, I receive the following error:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
- magento/framework 101.0.7 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.6 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.5 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.4 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.3 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.2 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.1 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.0 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.7 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.6 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.5 requires php ~7.0.13|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.4 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.3 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.2 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.1 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.0 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.
- magento/framework 101.0.4 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.2.13) does not satisfy that requirement.

Which is weird, since I have the recommended PHP version for Magento 2.3 which is PHP 7.2.13

How can I fix this problem?


texts:
I want to make own recently viewed widget, cause this standard loads items with javascirpt (I want to have items directly). So I made this code, based on other posts:

namespace AA\WidgetRecently\Block\Widget;

use Magento\Framework\View\Element\Template;
use Magento\Widget\Block\BlockInterface;

class Data extends Template implements BlockInterface
{
  protected $_template = "widget/recently.phtml";

  protected $recentlyViewed;

  public function __construct(
      \Magento\Catalog\Block\Product\Context $context,
      \Magento\Reports\Block\Product\Viewed $recentlyViewed,
      \Magento\Catalog\Block\Product\ImageBuilder $imageBuilder,
      array $data = []
      ) {
      $this->recentlyViewed = $recentlyViewed;
      $this->imageBuilder = $imageBuilder;

  parent::__construct( $context, $data );
  }

  public function getRecentlyViewedProducts(){
      return $this->recentlyViewed->getItemsCollection();
  }

}

and this code in template

<?php if ($exist = ($block->getRecentlyViewedProducts() && $block->getRecentlyViewedProducts()->getSize())): ?>

returns nothing, is false.

But when I add block in layout file:

    <block class="Magento\Reports\Block\Product\Widget\Viewed" name="recently_viewed" cacheable="false" template="Magento_Reports::widget/viewed/content/viewed_grid.phtml">
      <action method="setPageSize">
          <argument name="page_size" xsi:type="number">5</argument>
      </action>
    </block>

the widget phtml is working and shows products (and obviously recently products are repeated cause of adding block in xml layout).

Why widget is not working, it looks like something more should be initialized?


texts: Mass Action is not redirecting to defined controller Magento 2

texts:
I created a custom grid for my extension with mass action like this:

<listingToolbar name="listing_top">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="sticky" xsi:type="boolean">true</item>
        </item>
    </argument>
    <bookmark name="bookmark"/>
    <columnsControls name="columns_controls"/>
    <filters name="listing_filters"/>
    <massaction name="listing_massaction">
      <action name="sync">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="type" xsi:type="string">sync</item>
                <item name="label" xsi:type="string" translate="true">Sync</item>
                <item name="url" xsi:type="string">namespace_module/test/massSync</item>
            </item>
        </argument>
      </action>
    </massaction>
    <paging name="listing_paging"/>
</listingToolbar>

the problem is after i checked some row and click the sync massaction, the page seems not running my controller and redirecting to the same page but with url like this:

http://same_page_url/namespace_module/test/namespace_module/test/namespace_module/test/namespace_module/test/namespace_module/test/namespace_module/test/namespace_module/test/massSync

here's my Namespace/Module/Controller/Adminhtml/Test/MassSync.php:

namespace Namespace\Module\Controller\Adminhtml\Test;

use Magento\Backend\App\Action\Context;
use Magestore\Rewardpoints\Model\ResourceModel\Rate\CollectionFactory;
use Magento\Ui\Component\MassAction\Filter;
use Magento\Framework\Controller\ResultFactory;
use Magestore\Rewardpoints\Model\ResourceModel\Rate\Collection;

class MassSync extends AbstractMassAction
{

   public function __construct(
       Context $context,
       Filter $filter,
       CollectionFactory $collectionFactory
   ) {
       parent::__construct($context, $filter, $collectionFactory);
   }

   public function execute(){
     $data = $this->getRequest()->getParam();
     print_r($data);
     exit;
   }

   protected function massAction(Collection $collection)
   {
       $data = $this->getRequest()->getParam();
       print_r($data);
       exit;
   }

   protected function _isAllowed()
   {
       return $this->_authorization->isAllowed('Magestore_Rewardpoints::Earning_Rates');
   }

}


texts: Update price in multiple areas on product page

texts: I imagine this is something simple but can't seem to find the answer after searching through various stack exchange sites. I have a layout for a product page where we need to have 2 places that display the price. The product has custom options that change the price, so getting the price on page load isn't an issue, it's getting that second price to update when someone changes an option. Right now the span with a class of "price" is wrapped in a span with a class of "regular-price" and an id of "product-price-28". Is this just a case of labeling the 2nd price area with the correct ids and classes or will I have to do something else to accomplish this? Thanks for your help.


texts: Shipping information in sales order email

texts: Is it possible to replace the shippingDescription string in the order email templates for a custom phtml file to add a login functionality and a text that has to be translated with a custom language translator class.


texts: 2.3.5-p1 Deployment - Plugin class Temando\Shipping\Plugin\View\MinificationPlugin doesn't exist

texts:
We're trying to do a deployment of M2 open source 2.3.5-p1 using the Webgriffe M2 recipe for Deployer. Whilst running:
bin/magento setup:static-content:deploy  en_GB en_US
We're getting:
In PluginList.php line 182:
  Plugin class Temando\Shipping\Plugin\View\MinificationPlugin doesn't exist

So it looks as though PluginList.php sees this as being an active plugin, but the class hasn't been defined.
Looking at the Composer files, it looks as though temando/module-shipping now requires temando/module-shipping-remover, so it's trying to remove this module, but it's still required for generating the static content. We're deploying in production mode.
Does anyone know the cause of this problem and how to fix?


texts: Magento 2 Add dropdown list to shipping method

texts:
I develop shipping method for some logistic company. This company has many offices where customer can get his order. I can get offices list by сity in API but i don't now how better represent this step?

For now i just set new \Magento\Quote\Model\Quote\Address\RateResult\Method
  to every  office in town, in big town it's count > 100 and i think it's not very good to set 100 lines in checkout.

It will be public module for different checkout design so how can I render near selected my shipping method some dropdown list with list of offices and set price and method after user select one.


texts: I set up the exceptions in the Config tab to load a different theme for mobile devices and I would really love it if I could set a different home page also. I would like mobile visitors to see completely different content than desktop visitors. Is there a way to do this?


texts: While taking database backup in admin, Frontend Shows Fatal Error in Magento 1.9.3.3

texts:
When I take database backup in admin

while the database backup is in progres, the loading sign appears in admin and  the frontend shows this error

instead of showing maintenance page to any user who visit the site during the backup process.
As soon as the database backup finish, the frontend returns back to normal


texts: Magento Model - View - Controller - how that works in short?

texts: can anyone describe me in short version how Magento works with MVC, models i somehow understand, but how view and controllers in magento are diffrerent than in onther mvc systems? magento says that  View has been separated into Blocks and Templates. But what in real life do they do? what then is phtml file which i can load into controller? and what for example is system.xml file, where i define fields that i am going to have? is that view - template? i am really confused, i hope someone can describe this short.


texts: Magento 2.4.1: how to a separate and reuse a large database for products and categories from M2.4 shop db

texts: any idea of how can I have products and categories in M 2.4.1 community in a separate database from the actual shop and reuse products and categories in for a new M 2.4? The database I need to share is about 250GB. Thanks


texts: how to set two Languages (Hebrew and English) single view store in magento

texts:
I want to set two language (Hebrew and English) in Magento single store view. By Default set language its a Hebrew.

i am using magento 1.9.0 and using magento porto theme.

please help me..


texts: on one page checkout I am facing issue not allow to place order button not working even address also not update

texts:
Uncaught TypeError: items is not a function
    at collection.js:276
    at Function._.each._.forEach (underscore.js:150)
    at UiClass._updateCollection (collection.js:275)
    at UiClass._insert (collection.js:253)
    at Registry._resolveRequest (registry.js:418)
    at Array.forEach (<anonymous>)
    at Registry._updateRequests (registry.js:400)
    at later (underscore.js:821)

collection.js

_updateCollection: function () {
        var _elems = compact(this._elems),
            grouped;

        grouped = _elems.filter(function (elem) {
            return elem.displayArea && _.isString(elem.displayArea);
        });
        grouped = _.groupBy(grouped, 'displayArea');

        _.each(grouped, this.updateRegion, this);

        _.each(this.regions, function (items) {
            var hasObsoleteComponents = items().length && !_.intersection(_elems, items()).length;

            if (hasObsoleteComponents) {
                items.removeAll();
            }
        });


texts: Identifying Registered Users That Have Never Made a Purchase

texts: When someone registers on a Magento Enterprise site (v 1.13), where is that information stored? It could be under "Newsletter Subscribers" or "Customers", but that list wouldn't necessarily include everyone, correct? I'm trying to create a list of people that have registered but have never made a purchase.


texts: I am required to get Inventory Source While Saving product

texts:
I have tried couple of events but unfortunately i am failed to achieve the Inventory Source data while saving new product.

catalog_product_save_after
catalog_product_save_commit_after


texts:
I'm trying to curl a docker dev install from itself
using Magento\Framework\HTTP\Client\Curl
I get a failure and the result SSL certificate problem: self signed certificate
Got the options set
$this->curl->setOption(CURLOPT_SSL_VERIFYHOST, 0);
$this->curl->setOption(CURLOPT_SSL_VERIFYPEER, 0);

Because it's local/docker I can't resolve the host
Therefore using CURLOPT_PROXY. Syntax looks like this: https://web.magento2.docker:443
Also tried this option: CURLOPT_HTTPPROXYTUNNEL
If I tail nginx logs they look like this
2020/06/21 23:41:48 [info] 16#16: *75 SSL_do_handshake() failed (SSL: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:SSL alert number 48) while SSL handshaking, client: 172.27.0.3, server: 0.0.0.0:443

Has anyone experienced similar issue and got workaround?
On command line I can use this curl https://web.magento2.docker --insecure