texts: Setting emails to be sent at a specific times using Transactional Emails?

texts:
Is it possible to set up an email process, using the Transactional Email system, so that the system will send out follow up emails at specific times? I've already set it up so that when the order is placed, a follow up email is sent providing the customer with their order number. I would like to add a couple more emails to follow up after that such as "your order has been processed" or another one providing a coupon thanking them for ordering through us and so forth. There are probably solutions to this by coding it but I wanted to save some time and see if it can be created through the Admin side.

Hopefully this will help clear it up a little further in case my write up didn't make sense:

"You placed an order through the site, about 5 mins later you will receive the order confirmation with your order number. Then, about 3 days later you would receive another email notifying you that your order has been shipped with the providing tracking number. Around 10 hours later you'll receive another email with a coupon provided inside showing thanks for making the purchase."

Ideally that's how I would like the system to process it out as.

Thanks!


texts: I want to add a button to abc.com/customer/account page when the user click it, it will redirect to a new page e.g. customer/account/upgrademember. How can I do this? I find it difficult to route it to my module. In Magento_Customer module, the \Magento\Customer\etc\frontend\route.xml defines when the frontName is customer, Magento will go to Magento_Customer module. But I create a new Controller upgrademember.php in my module. How can the Magento go to my upgrademember.php when the user clicks the abc.com/ccustomer/account/upgrademember.?


texts: How do I get new products from each category in Magento home?

texts:
What I got: I have Magento CE 1.8.1.0 installed

What I need: I want to show a few recent products for each category in my home, like they've done in Instacart's home.

How do I picture the solution: This view is way similar to the one generated by the New Product List, however the New Product List do not accept category filtering. Therefore, I'd want to edit the New.php file to accept category filtering.

What I have tried: I have tried to edit a copy of New.php in the [app/code/local/Mage/Catalog/Block/Product] directory, to alter the _beforeHtml function, as showed in this StackOverflow question, as well as updating both _beforeHtml and getCacheKeyInfo while creating the new getCategory support function as proposed in this StackExchange question. Neither seems to work for me, changes in the getCacheKeyInfo makes the block disappear altogheter, while other changes ignore the category_id filter in the block call.


texts: Magento 2.3.2 - Last 5 orders on Dashboard showing empty on total column after migrating database from osCommerce

texts:
I am facing issues on the dashboard at the Last Orders section, as the total column is showing empty.
The same code is running on my local server without any issue, but not working on the live server after migrating the database from osCommerce.

blow is the snapshot of the issue:

Please suggest a way to fix this issue.


texts:
I have some problems during importing products and I have repeated this error in exception.log file.

exception 'Exception' with message 'Error during unserialization' in /home/mywebsite.com/xfhrhhemvy/public_html/lib/Unserialize/Parser.php:60
Stack trace:
#0 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Helper/UnserializeArray.php(44): Unserialize_Parser->unserialize('')
#1 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Dataflow/Model/Profile.php(136): Mage_Core_Helper_UnserializeArray->unserialize('')
#2 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Model/Abstract.php(319): Mage_Dataflow_Model_Profile->_afterSave()
#3 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Adminhtml/controllers/System/Convert/ProfileController.php(184): Mage_Core_Model_Abstract->save()
#4 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_Convert_ProfileController->saveAction()
#5 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
#6 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/mywebsite.com/xfhrhhemvy/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/mywebsite.com/xfhrhhemvy/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#9 /home/mywebsite.com/xfhrhhemvy/public_html/index.php(86): Mage::run('', 'store')
#10 {main}

Do you have any idea what this error is about? Or how I can find more about it?


texts: How to add default header and footer to a custom mail on magento 2.2

texts:
I have created a module where I send a custom mail.
For this, I have a custom email template.

Now what I want to do is to include the default header and footer that appears in all my Magento emails, in my custom mail.

I tried to include the header and the footer like this but is not working:

{{template config_path="design/email/header_template"}}
 ...content
{{template config_path="design/email/footer_template"}}

and my email_templates.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
        <template id="myid" label="mylabel" file="myfile.html" type="html" module="mymodule" area="frontend"/>
</config>

I need to include also the header template and footer in my custom module because I think that my custom mail doesn't know what is header_template and footer_template? If yes, from where I can take this file and where I should put it?

Thank you in advance!


texts: Logout by programming from observer in magento 2

texts: How to logout from customer session by programming from observer in magento 2?


texts: Enabling Use Flat Catalog Products Results In Frontend Pages Not Loading

texts:
I am running Magento 1.9.3.8 and would like to enable Use Flat Catalog Product as I have over 100k skus.

After enabling it, rebuilding the indexes, and clearing cache, the frontend will not load. It continuously spins until the server crashes. There are no errors regarding this in any of the logs, and I believe that is because the page never finishes loading?

Magento Admin works fine after enabling.

Use Flat Catalog Category works without issue.

How can I debug this issue if I do not receive any errors and the pages never load? Does anyone have any idea where to start? I can provide additional details if needed.


texts: Dropdown menu with different product to link to

texts:
I have now completely searched google but unfortunately without result. I am looking for the following:
One type of product has been added to the website several times with different properties. I want to have a dropdown menu with the different properties on each product page. If someone selects it, I want the website to automatically switch to the product page that is selected.
Is there a possibility for this?
Magento 2 is the one that I am using at the moment


texts:
Magento2 moving terms & conditions checkbox under shipping method 'Flat rate' or adding a new checkbox field when flat rate shipping method is selected
Any guidance on how can I achieve this?


texts: Magento 2 | Can't reset customer password and change name

texts:
I am listening to following event with an observer:

  customer_address_save_after

The problem:
Whenever the customer wants to reset the password or change his name or email address this observer is being executed and magento says the customer couldn't be saved.

The observer itself doesn't throw an error.

Any suggestion what to do?


texts: Products is not showing up on Magento2.1 Frontend

texts:
When setting is catalog_flat_product = YES than below error is display when we do re-index using ssh

SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs, query was: CREATE TEMPORARY TABLE catalog_product_entity_varchar_tmp_indexer............

Eav and catalog search is skipping  Kindly help i am stuck on this why this is coming.. almost 550 attributes is there.

Product EAV index is locked by another reindex process. Skipping.
Catalog Search index is locked by another reindex process. Skipping.


texts: Authorize.net direct post failing with hash

texts:
I have a Magento 1.9 CE installation that was recently upgraded from 1.7.  Authorize.net direct post worked in 1.7, but now it does not work. When I try to checkout, I get the standard message about "Response hash validation failed. Transaction declined."

I made a new hash key and entered it in both Magento and authorize.net.  I then cleared the Magento cache.  I still get this error though.  I rebooted the server.  I tried a different browser.  Any thing I am missing?


texts: Filter Collection By Multiple Values From Multiselect Attirbute Using addFieldToFilter() Method

texts:
I am currently developing a banner manager module that allows the admin to upload banners and select which store views those banners will appear on. I have everything working fine when a single store view is selected using a multi select attribute, however when you select multiple store views Magento seems to look for the selected store ID's as a string rather than individually.

For example for a banner I have 3 store views selected. Magento returns '1,3,4' as the value. Rather than looking for each number individually Magento looks for the string'1,3,4'. See the function I am using below:

   function getHomePageBanners() {

    $storeId = Mage::app()->getStore()->getStoreId();
    $customerId = Mage::getSingleton('customer/session')->getCustomerGroupId();

    $collection = Mage::getModel("homepagebanner/homepagebanner")->getCollection()
            ->addFieldToFilter('status', array('eq' => 0))
            ->addFieldToFilter('store_view_id', array('in' => array(0,$storeId)))
            ->addFieldToFilter('customer_group_id', array('in' => array($customerId)))
            ->setOrder('position', 'ASC')
            ->toArray();

    return $collection['items'];
   }

The same applies when I am filtering via customer group as well.

Would anyone know how I can get Magento to check each value individually in the string rather than as a whole?


texts: Magento 2 Discount Label and Amount are not showing on checkout cart summary?

texts:
I have created 10%off cart rule and then applied it.

It's applying correctly but Discount Label and Amount are not showing in checkout cart.

** UPDATE **

When I'm changing my theme to default luma then

Discount is showing.(Below Image)

What to do to show that row?


texts: How to add new block (without phtml) with links to header content in Magento 2?

texts:
What is the correct way to add block with some links and few css classes to header content?
This is correct?

    <referenceContainer name="header-wrapper">
        <container name="header.decor" as="headerDecor" label="Header Decor" htmlTag="div" htmlClass="header-decor">
            <block class="Magento\Framework\View\Element\Html\Link" htmlClass="link-1" name="link-1">
                <arguments>
                    <argument name="css_class" xsi:type="string">link-1</argument>
                    <argument name="path" xsi:type="string">link-1</argument>
                </arguments>
            </block>
            <block class="Magento\Framework\View\Element\Html\Link" htmlClass="link-2" name="link-2">
                <arguments>
                    <argument name="css_class" xsi:type="string">link-2</argument>
                    <argument name="path" xsi:type="string">link-2</argument>
                </arguments>
            </block>
        </container>
    </referenceContainer>

But no class...


texts: Move the position of company field before street in shipping form in magento 2.2.4

texts:
I am using magento 2.2.6 i want to change the position of company field in billing and shipping form in checkout before street field.

i was trying following code but not worked

<item name="company" xsi:type="array">
    <item name="sortOrder" xsi:type="string">1</item>
</item>


texts: I have created observers for dispatch events in Magento, for example customer_save_after. Are there events to observe similar events handled through the API?


texts: Programatically move category in magento?

texts:
I have created an New category called Mobile(ID : 646).

I already have another category Mobile cover(ID : 516).

So i need to move all Mobile cover under Mobile category

Mobile is root category and Mobile cover is sub category

How i can move Programatically


texts:
I am using i18n:collect-phrases command but seems that it collects only frontend phrases.

I need to collect only admin panel phrases!

For example, I have downloaded some language pack, but it does not fully translate the admin panel.

Is there any way to collect custom language pack admin panel phrases together with untranslated phrases so I could translate untranslated phrases manually and after import it back?

If it's not possible then I really would be grateful for possibility collect only admin panel phrases.


texts: get product item category and attribute_set name and id in order export

texts:
I am trying to modify order export extension
I Wan to include product item category_id, category_name, attribute_set in the export array.

Current array look like this

protected function getOrderItemValues($item, $order, $itemInc=1)
{

    return array(
        $itemInc,
        $item->getName(),
        $item->getStatus(),
        $this->getItemSku($item),
        $this->getItemOptions($item),
        $this->formatPrice($item->getOriginalPrice(), $order),
        $this->formatPrice($item->getData('price'), $order),
        (int)$item->getQtyOrdered(),
        (int)$item->getQtyInvoiced(),
        (int)$item->getQtyShipped(),
        (int)$item->getQtyCanceled(),
        (int)$item->getQtyRefunded(),
        $this->formatPrice($item->getTaxAmount(), $order),
        $this->formatPrice($item->getDiscountAmount(), $order),
        $this->formatPrice($this->getItemTotal($item), $order)
    );
}

Is there a method like $this->getItemCategory($item), or getAttribute etc in magento which i can use?
Thanks


texts:
I am trying this syntax but it returns no results. I am trying to get a single order based on increment_id. I have no issue getting an order thru the entity_id.

/rest/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=increment_id&searchCriteria[filterGroups][0][filters][0][value]=12345

returns

{"items":[],"search_criteria":{"filter_groups":[{"filters":[{"field":"increment_id","value":null,"condition_type":"eq"}]}]},"total_count":0}

Internal ID 12345 is valid, and you can see it's not passed back as filter result.


texts: Using RWD theme on mobile, is it possible to get product images to swipe to the next/prev image instead of clicking the thumbnail. I dont think elevatezoom has an option for this.


texts: Magento 2 - Unable to access the Category page without index.php

texts:
I have Magento 2.3.0 recently upgraded. In which, I removed index.php from the base url, every where its working fine.

Even in Category Page, except for one category page.

I can only access that page using index.php only. unless its showing as 404 error.

Can any one guess about the issue.?


texts: Retrieve a custom module collection within a Static Block

texts:
Built a very simple custom module, name, description and image.

I want to display all custom mod items on a static block, any ideas of the process?

I want to then attach the static block to a category.


texts: Magento1.9 - Selected option with explode array exception

texts:
We're having an issue with getting a selected option from our database. It's a custom made plugin, but it contains a few option values, like these:

array(
   'value' => 17529,
   'label' => Mage::helper('storelocator')->__('Qwic'),
),
array(
   'value' => 18789,
   'label' => Mage::helper('storelocator')->__('Victoria'),
),
array(
   'value' => ('17500,17156,17154,17446,17300,17379,17400,17394,17387,17392,17377,17436,17167,21353,17513,17184,21352,17386,17401,17456,20335,17186,17370,17417,17390,17511,17367,17366,17373,17393,17422,17389,17188,17388,17358,17357,17415,19548'),
                'label' => Mage::helper('storelocator')->__('Andere merken'),   ),

But now, the bottom option value never stays selected after saving, because the values are being exploded when got from database, like this:

$manuArr = explode(',',$storePU->getManufacture());

How can I make sure the final value is selected? So, make an exception or something in the explode part? I'm not a Magento expert, so I have no clue how to fix this.


texts: Magento 2 add session/cookie value to guest customer session

texts:
How can I add a value to a guest session?
I have tried with the following model session:
\Magento\Customer\Model\Session

and setter and getter for value like this:
$this->getCustomerSession()->setMyValue($token);

$this->getCustomerSession()->getMyValue();

However as far as I know customer is just for logged in customers, right? so how can I add a session value to guest session?
Greetings!


texts: override JS based on system configuration

texts:
How can I override Magento 2 core js based on system configuration (Yes/No)? For example
Currently I am overriding checkout default js into my module. And it works fine for me. Now I want to override this based on my system configuration setting. Is there any way to achieve this ?

var config = {
    "map": {
        "*": {
            "Magento_Checkout/js/model/shipping-save-processor/default" : "VENDOR_MODULENAME/js/shipping-save-processor-default-override"
        }
    }
};


texts: How to redirect product error 404 to catalog search

texts:
I want to redirect every 404 product to catalog search because I have anothers products with similar name.

I have a lot of products are more them 1000 products with 404, that dont exist any more, but those old link are published in another websites and users still came from that links, so to keep the user on my website I want to redirect this broke link to catalog search, NOTE: "cant do it on magento rewrite url product by product because those product dont exist anymore"

I am thinking to do some route on source code to do some like this:

OLD link: http://www.mywebsite.com/iphone-5-16GB.html -> broke link

REDIRECT TO: http://www.mywebsite.com/catalogsearch/result/?q=iphone+5+16gb

I cant find any solution here on stackoverflow and nothing on Google results.

How can I do that?


texts:
When I add /api/v2_soap?wsdl=1 to the url I get:

This page isn’t working

local.example.en is currently unable to handle this request.
HTTP ERROR 500

With dev mode and error messages enabled I get this instead:

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/public/app/code/core/Mage/Api/Model/Wsdl/Config/Element.php on line 235

But /api/soap/?wsdl works fine.

WS-I Compliance is set to "Yes" in Magento backend.

exception.log has this message (Ebizmarts/SagePaySuite is not my module):

exception 'Exception' with message 'String could not be parsed as XML' in /var/www/public/app/code/local/Ebizmarts/SagePaySuite/Model/Feed/Updates.php:35
Stack trace:
#0 /var/www/public/app/code/local/Ebizmarts/SagePaySuite/Model/Feed/Updates.php(35): SimpleXMLElement->__construct('<html>??<head><...')
#1 /var/www/public/app/code/local/Ebizmarts/SagePaySuite/Model/Feed/Updates.php(101): Ebizmarts_SagePaySuite_Model_Feed_Updates->getFeedData('http://store.eb...')
#2 /var/www/public/app/code/local/Ebizmarts/SagePaySuite/Model/Feed/Updates.php(90): Ebizmarts_SagePaySuite_Model_Feed_Updates->_getUpdates('Ebizmarts_SageP...')
#3 /var/www/public/app/code/core/Mage/Core/Model/App.php(1339): Ebizmarts_SagePaySuite_Model_Feed_Updates->check(Object(Varien_Event_Observer))
#4 /var/www/public/app/code/core/Mage/Core/Model/App.php(1312): Mage_Core_Model_App->_callObserverMethod(Object(Ebizmarts_SagePaySuite_Model_Feed_Updates), 'check', Object(Varien_Event_Observer))
#5 /var/www/public/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#6 /var/www/public/app/code/core/Mage/Core/Controller/Varien/Action.php(531): Mage::dispatchEvent('controller_acti...', Array)
#7 /var/www/public/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#8 /var/www/public/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#9 /var/www/public/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#10 /var/www/public/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /var/www/public/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#12 /var/www/public/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /var/www/public/index.php(87): Mage::run('', 'store')
#14 {main}


texts:
For some reason I am unable to install: Magento Core Modules French Language Pack.

First I was getting this error:

Couldn't resolve host 'magento-core'

I discovered later that I needed change the key to this: connect20.magentocommerce.com/community/Locale_Mage_Core_fr_FR

I did but then I got this error:

community/Locale_Mage_Core_fr_FR: Extension is 'beta' please check(or change) stability settings on Magento Connect Manager

I am using Magento CE.

What am I doing wrong?


texts: Magento 1.7. - Update status attribute via Dataflow Profile

texts:
We are trying to UPDATE the status attribute via Dataflow Profiles and CSV file.
The CSV is processed correctly (no error messages in the popup showing the process), so the settings in the Dataflow Profile are OK. We can use both of these:

and

The CSV just holds the SKU and status values and looks like

But no matter which values we are using for ‚status‘ in the CSV – ‚Enabled‘ or ‚Disabled‘ – ‚enabled‘ or ‚disabled‘ (no captal letters) and even ‚1‘ or ‚2‘ (or ‚0‘ instead of 2) as it would be used in the normal import like answered under a similar question here
unable to update Status of product from csv
the status doesn’t get updated. The CSV is UTF-8 encoded.

Sorry for asking such a basic question here, but I have googled for hours to find a reason/solution to our problem, but haven’t found any hint or indication as to why the status attribute is not updated via Dataflow Profile.

The system is on Magento 1.7.0.2.


texts: Banner Slider doesn't show up .gif images

texts: I'm using Banner Slider on my magento 2.0.7, it works fine with .jpeg and .png , but if I try to load a .gif , it doesn't show it.


texts: Magetno 2 custom theme's css not deploying on production mode

texts:
I've set magento 2.2.2 on production mode.

I have a custom theme with a custom css main.css:

Now when I do changes to css file when magento in production mode it doesn't add straight away because it;s not symlink as developer mode.

then I   go ahead and do:
php bin/magento setup:static-content:deploy en_GB -t MYTHEME/default

php bin/magento cache:clean

and changes are not there.

What am I missing?

Thanks.


texts: Restrict reservation for Customer membre Magento 2

texts: I have to restrict reservation( just membre can proceed to pay ) for membre to buy new arrivals products. so how can I proceed in that. Any idea? thanks in advance


texts: Call to a member function getMetaTitle() on a non-object on product without category URL

texts:
When I disable a product and access the product by full category URL I am sent to a 404 page. Good.

When I attempt to access the disabled product by http://domain.com/disabled-product.html I get

Fatal error: Call to a member function getMetaTitle() on a non-object in /app/code/core/Mage/Catalog/Block/Product/View.php on line 57

Could it be that an extension is attempting to load prior to the redirect?

EDIT: Lines 50-59

protected function _prepareLayout()
{
    $this->getLayout()->createBlock('catalog/breadcrumbs');
    $headBlock = $this->getLayout()->getBlock('head');
    if ($headBlock) {
        $product = $this->getProduct();
        $title = $product->getMetaTitle();
        if ($title) {
            $headBlock->setTitle($title);
        }
 ...
}


texts: custom view.phtml for configurable product

texts:
i want to call custom view.phtml page for configurable product

i wrote below code in local.xml

<PRODUCT_TYPE_configurable>
        <!-- Mage_Catalog -->
        <reference name="root">
            <action method="setTemplate"><template>page/2columns-left-configurable.phtml</template></action>
        </reference>

</PRODUCT_TYPE_configurable>

what else changes have i to made to make it work


texts: How to add additional douane costs on magento2?

texts:
The products which I use to send from Europe and China to Africa, at moment I don't pay any douane costs.
But in the future maybe I will have to pay it for that.

I would like to know if there's anyway to implement something like percentage over the products prices?

Or what is the best way to calculate the additional douane costs?


texts: Magento 2 How can I show custom options on product list page?

texts: Like given in this blog for magento1 i want to add custom options in list page for magento 2. is there any module available for same or can someone guide me to achieve this?


texts: Magento 2 Category tree not showing on admin's product edit page? How can I solved it?


texts: Magento registration returns 'Last name cannot be empty'

texts:
I am trying to deploy Magento 1.9.2.1. I used the package from the official site.

But a strange thing happened to me. Among all the instances I deploy, it fails at any page that requires validation of a customer information (registration, etc.). It returns the error 'Last name cannot be empty'. But even stranger, there were 1 or 2 times of success before the errors. That is, the error only happens after I have created 1 or 2 accounts.

I found that the validation method is in the model, as:

if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
            $errors[] = Mage::helper('customer')->__('The last name cannot be empty.');
}

So I added some lines before it.

$errors[] = Mage::helper('customer')->__('The first name cannot be empty.');
$errors[] = Mage::helper('customer')->__($this->getFirstName());
$errors[] = Mage::helper('customer')->__($this->getLastName());
$errors[] = Mage::helper('customer')->__($this->getEmail());

This time there are 5 errors displayed at the registration page. As expected, the first is 'The first name cannot be empty.'. But the second and third are all empty. The fourth is the email address I typed in.

Here comes another problem. The validation of the first name comes before that of the last name. Were they all empty, how could the error message be only 'The last name cannot be empty.'?

And more substantially, why can I register at the very beginning? What is the substantial problem?

UPDATE: If I comment the validation for the two names, there are no more errors. But the account created has its last name empty, while first name as I typed in.

UPDATE 2:

print_r($this->getRequest()->getPost('lastname'));
print_r($this->getRequest()->getPost('firstname'));

These lines gives the posted data as expected.


texts: show different products related product on product detail page by id

texts: i want to show related of product other than current product on product details page by product id , how can i do this is there way to call related.phml block with different id than of current product .


texts: Magento 2 : How to set Product Image Programatically multiple store wise

texts:
I want to set product image programatically and also assign role to them as image,small-image and thumbnail in multi store wise.
I tried Save product image labels programmatically magento 2
but it not helps me to set image in multi store
Can anyone help me about this?


texts:
I have try to import bulk images through system->import/export->dataflowprofiles.
there is nothing changes both front end and backend

excel format :


texts: How can i can run install script from controller without error

texts:
I am running this code and it worked for me but added error in error log

$installer = new Mage_Core_Model_Resource_Setup();
$installer->startSetup();

$installer->run("
         DROP TABLE IF EXISTS {$installer->getTable('test')};
         CREATE TABLE {$installer->getTable('test')} (
                        ci tinyint(3) unsigned NOT NULL auto_increment,
                        cc char(2) NOT NULL,
                        cn varchar(50) NOT NULL,
                        PRIMARY KEY (ci)
                        ) AUTO_INCREMENT=1 ;
                        ");

$installer->endSetup();

but is generating error in error log.

  Warning: Missing argument 1 for
  Mage_Core_Model_Resource_Setup::__construct(), called in
  /opt/lampp/htdocs/magento_9_1_3/app/code/local/Namespace/Modulename/controllers/Adminhtml/tesController.php
  on line 512 and defined  in
  /opt/lampp/htdocs/magento_9_1_3/app/code/core/Mage/Core/Model/Resource/Setup.php
  on line 127 2017-01-09T12:49:41+00:00 ERR (3): Notice: Undefined
  variable: resourceName  in
  /opt/lampp/htdocs/magento_9_1_3/app/code/core/Mage/Core/Model/Resource/Setup.php
  on line 130

any idea how remove this error?


texts: After doing a small change in the home page i get some error, even after reverting it back it doesnt fix

texts: Please visit the website kiabzanew.site (will load a bit slow at the start). I get an error on the home page. Error filtering template: Invalid block type: item-image. Even after reverting the codes back it doesnt fix, please anyone know any fix?


texts:
Actually i am trying to find out why category is showing less products count but backend it has more products.
product category not showing exacts products means it is showing less
products count in category grid view (Items 1-12 of 10000) in
frontend but in admin panel it has 43000 products magento 2
If anyone have idea about it please give some suggestions.


texts: On try to access product in admin I get "Fatal error: Class 'Mage_Uploader_Block_Multiple' not found in ../Block/Media/Uploader.php on line 39"

texts:
I pulled whole site from a git repo. Now I am getting this message when I try to access product in admin:

Fatal error: Class 'Mage_Uploader_Block_Multiple' not found in /Applications/XAMPP/xamppfiles/htdocs/libraccio/app/code/core/Mage/Adminhtml/Block/Media/Uploader.php on line 39

Everything else in admin seems to work fine. Displays fine, menus appear fine and other functionalities. What is causing this?

Edited: I copied over whole directory app/code/core/Mage/Uploader from Magento 1.9.3 per Rafael's advice and now I get this message when I try to get to admin product page:

Fatal error: Uncaught Error: Call to a member function getConfig() on boolean in /Applications/XAMPP/xamppfiles/htdocs/libraccio/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php:50

Again, what can cause this?


texts: Add Free Promotional Gift for purchase of more than 200$ and different gift after more than $380 from same category

texts:
I want to run the Christmas promo on site. I have to promote the gifts after purchase of 200$ and $380 respectively.

If someone buy a products more than $200, I want to give a free gift product Sports Band.
If someone buy a products more than $380, I want to give a free gift product Sports Belt.

If they purchased the products from "Sports" category.

In other words:

Sport Category Products Total more than $200

=> Free Sport Band
Sport Category Products Total more than $380

=> Free Sport Belt


texts: How do I remove the div `col-right sidebar` from the default theme html?

texts:
I want to completely remove the div col-right sidebar from the default magento 1.9 theme.

I've tried creating a local.xml file containing:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
      <remove name="catalog.compare.sidebar" />
    </default>
</layout>

But this only removes the content of the div. I want to completely remove it from the html code so the page can contain more products on a single page.

Now:

Goal:

What should I try next?


texts: Is There A Way To Force Customers To Only Checkout With Billing Address?

texts:
On one of my sites, we sell high value items, and to protect against fraud, we need to make sure we only ship to the billing address.

Is there a way of disabling the shipping address option? This will need to support a multi-store installation, as the other sites on the installation sell lower value items that are ok to send to alternative addresses.


texts:
I have just migrated my M1 site to a newer M2 site, however, this new site will be for wholesale only customers, each of whom are assigned to a different group to reflect their prices.

how can I delete all customers who are currently in the Retail group?

I would preferably like to delete everything associated to the customer, such as their addresses and previous orders if possible.


texts:
Why are importing (standard CSV import, not dataflow) product lists and the field is_in_stock does not seem to have an effect.

In the backend it is shown properly, but not in the frontend.

Clearing the cache does not help.

I suppose, that the problem is the cataloginventory_stock index, but rebuilding that one on the command line does not help though (forcing rebuilding in the backend seems no longer possible in EE 1.13)

When I save the product once again in the backend, it works.

Is this a known behavior?

edit
From Enterprise support I got the answer to try a full reindex - using the indexer.php.


texts: Layered Navigation: 404 Error when browsing via certain filter

texts:
We have an issue that occurs when filtering by layered navigation. It's 3rd party. The issue is (at least at our end) very easy to reproduce.

Our catalog structure is pretty simple, having two major categories defined in admin back-end:

Men (website.com/browse-men-products) - shown inside mega menu
Women (website.com/browse-women-products) - shown inside mega menu too

These Product Categories are listed in our layered navigation as 'Filter by Category', which looks like this:

Clicking on any category (i.e. Watches) filters just fine.

But when trying filter more by Brand, it throws a 404 not found error. Note that filtering the other way around, like brand first (Aigner) and then category (Watches) works perfectly.

We noticed that this issue happens only when clicking brand after category via layered navigation. Its respective 404 link looks like:

website.com/browse-women-products/watches/filter/brands/aigner/cat/aigner-for-women.html

The corresponding successfully working link is:

website.com/browse-women-products/filter/brands/aigner/cat/watches-for-women.html

Additional Note:

Use Web Server Rewrites: No
Index was performed recently.

We thought we'd look into the 3rd party layered navigation (which lost its support because they shut down business), but we don't want to yet.

Thank you for any hint


texts: Magento1.9 : How to set value of deafult store when other store is select

texts:
my problem is currently I'm in English store and want to set counter to default
store counter but every time English store counter is updated.

below image is deafult store.

update counter value using following query:

Mage::getConfig()->saveConfig(self::ORDER_COUNTER,$counter,'stores',$order->getData('store_id'));


texts:
I try to add product Short Description in the Related Products section in Magento 2.4 version.
I overwrite this file:/app/design/frontend/Theme/MyTheme/Magento_Catalog/templates/product/list/items.phtml in my custom theme and I add the following code:
<?=/* @noEscape */ $_helper->productAttribute($item, $item->getShortDescription(), 'short_description')?>

The code work only for Simple Products if there in the related products are some configurable products the code is not return anything.
Is there any way to have the short description for both types of products?
Thank you


texts:
I need to make the code snippet work.In file
magento\app\design\frontend\Webkul\agorae\Magento_Wishlist\templates\catalog\product\view\addto\wishlist.phtml

Code snippet

Code taken from path

magento2\vendor\magento\module-wishlist\view\frontend\templates\item\column

   echo $block->getItemRemoveParams($block->getItem()); ?>' title="@escapeNotVerified */ echo __('Remove Item') ?>" class="btn-remove action >delete">

For some reason item object

$block->getItem()

seems not working

I need to use above code snippet in file

magento\app\design\frontend\Webkul\agorae\Magento_Wishlist\templates\catalog\product\view\addto

I have included the required block to make above code snippet work.

my code in wishlist.phtml

<?php
        $blockObjx = $block->getLayout()->createBlock('Magento\Wishlist\Block\AbstractBlock');

        // echo $productID . gettype($productID);

        // echo $blockObjx->getRemoveParams((object)$productID);

        // // echo $blockObjx->getItemRemoveParams($blockObjx->getItem());

        // exit;
        ?>

    <a href="#" class="action towishlist" data-role="remove" data-post-remove='<?php echo $blockObjx->getItemRemoveParams($product); ?>' title="<?php /* @escapeNotVerified */ echo __('Remove Item') ?>" class="btn-remove action delete">
        <?php echo __('Remove from Wish List');?>

Do I need any missing js to remove the items from wishlist after clicking ?


texts: How to make a magento 1.9 client currency model?

texts:
Webservicex has stopped working, how can I make my custom Currency Rates? Maybe someone has already done, or advise the site with open api.

  config.xml

<?xml version="1.0" ?>
<config>
    <modules>
        <Icandy_ForeignCurrency>
            <version>1.0.0</version>
        </Icandy_ForeignCurrency>
    </modules>
    <global>
        <currency>
            <import>
                <services>
                    <foreign>
                        <name>Foreign currency</name>
                        <model>foreigncurrency/currency_import_foreign</model>
                    </foreign>
                </services>
            </import>
        </currency>
        <models>
            <foreigncurrency>
                <class>Icandy_ForeignCurrency_Model</class>
            </foreigncurrency>
        </models>
    </global>
</config>

  model->currency->import->foreign.php

class Icandy_ForeignCurrency_Model_Currency_Import_Foreign extends Mage_Directory_Model_Currency_Import_Abstract
{
    protected $_url = 'https://api.ratesapi.io/api/latest?base={{CURRENCY_FROM}}&symbols={{CURRENCY_TO}}';
    protected $_messages = array();

    protected $_httpClient;

    public function __construct()
    {
        $this->_httpClient = new Varien_Http_Client();
    }

    protected function _convert($currencyFrom, $currencyTo, $retry=0)
    {
        $url = str_replace('{{CURRENCY_FROM}}', $currencyFrom, $this->_url);
        $url = str_replace('{{CURRENCY_TO}}', $currencyTo, $url);

        try {
            $response = $this->_httpClient
                ->setUri($url)
                ->setConfig(array('timeout' => Mage::getStoreConfig('currency/foreign/timeout')))
                ->request('GET')
                ->getBody();
            $xml = simplexml_load_string($response, null, LIBXML_NOERROR);
            if( !$xml ) {
                $this->_messages[] = Mage::helper('directory')->__('Cannot retrieve rate from %s.', $url);
                return null;
            }
            return (float) $xml;
        }
        catch (Exception $e) {
            if( $retry == 0 ) {
                $this->_convert($currencyFrom, $currencyTo, 1);
            } else {
                $this->_messages[] = Mage::helper('directory')->__('Cannot retrieve rate from %s.', $url);
            }
        }
    }
}

Why does not see my model.

When trying to print my model gives

  /var/www/i/icandy/web/app/code/core/Mage/Adminhtml/controllers/System/CurrencyController.php:74: bool(false)


texts: Update product price using migrate:delta

texts:
Why the product price dont update using migrate:delta after data migrate?
Versions: 1.9.3.2 > 2.1.7
Cache clean.
Reindex all.

Log:

$ sudo php bin/magento migrate:delta vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.3.2/config.xml

[2017-06-06 07:59:59][INFO][mode: delta][stage: delta delivering][step: Customer Attributes Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: Customer Attributes Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: delta delivering][step: Map Step]: started
.
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: Map Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: delta delivering][step: Log Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: Log Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: delta delivering][step: OrderGrids Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: OrderGrids Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: delta delivering][step: SalesIncrement Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: SalesIncrement Step]: started
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: SalesIncrement Step]: Migration completed successfully
[2017-06-06 07:59:59][INFO][mode: delta][stage: volume check][step: SalesIncrement Step]: Automatic restart in 5 sec. Use CTRL-C to abort


texts: How create a custom category programmatically in magento 2.3.x

texts: Hi im looking a custom module for insert a custom category on frontend, so i learn a some post to create that, ok i found this post https://community.magento.com/t5/Building-Extensions/create-module-to-add-new-Category-in-magento-2-2/td-p/95284 , ok now where i put this code?, i need create a one file external of the controller folder?


texts: Magento2 Programmatically apply cart price rule

texts: I have created a cart price rule in admin, now I want to apply this rule programmatically in my code. How can I achieve this?


texts: Magento 2 how to get all cms pages in system configuration

texts:
System Configuration

<field id="test" translate="label" type="multiselect" sortOrder="11" showInDefault="1" showInStore="1" showInWebsite="1">
 <label>Cms Page</label>
<source_model>Namespace\Module\Model\Test</source_model>
</field>

Test.php

public function toOptionArray()
    {
        $options = [
            [
                'label' => __('-- Please select --'),
                'value' => '',
            ],
            [
                'label' => __('Home Page '),
                'value' => 'cms_index_index',
            ],
            [
                'label' => __('404 Page'),
                'value' => 'cms_page_view',
            ],
            [
                'label' => __('Product'),
                'value' => 'catalog_product_view',
            ],
            [
                'label' => __('Category'),
                'value' => 'catalog_category_view',
            ],

        ];
        return $options;

How to get all pages dynamically ?


texts: Free Shipping adds a cost if product quantity is 2 or more

texts: I have free shipping set for orders over $79, but if I make any 1 product a quantity of 2 or more it adds a small shipping cost. I can't figure out why. I have the free shipping set through Shopping Cart Price Rules to restrict shipping to Alaska and Hawaii, so all other free shipping methods are turned off. My only shipping carrier is UPS. I am using Magento version 1.9.2.4


texts:
I would like to know if it is possible to have access to information regarding the performance that a shop is having in a specific country, such as what are their overall ratings and their overall sales.

I am going to start my online shop and I would like to gather some insights from the best shops that there is out there, but I did not find this functionality anywhere.

Thank you!


texts:
Hi I've been working with this website but I'm not a Magento Pro.

In this link http://www.joliefi.com/cabinet this item is simple product just using Custom option. When you choose a size it should change the color. Before it was working fine and didn't find any problem just so recent that it's not. The price always changed to 0, but when you add it to cart and/or checkout the prices are correct. It's just on the product page.

In this link also, http://www.joliefi.com/test-fashion/test-men/t722-brown , it is changing the price accordingly, but this item is configurable product. So I was wondering what went wrong and why so sudden. I hope someone here can help me with this. Thank you!


texts: Why Magento Ajax Layered Navigation showing all category for landing page

texts: Why Magento Ajax Layered Navigation showing all category? I don't want show other category which are not associated with category.


texts: Magento 2 - How to retrieve the products id, price, quantity on successful order placement?

texts:
My Observer Class
<?php

    namespace GCV\GenerateCSV\Observer;

    use Magento\Framework\Event\ObserverInterface;

    class GenerateCSV implements ObserverInterface
    {
     protected $_objectManager;
     private $logger;
     private $productFactory;

      public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager,
        \Psr\Log\LoggerInterface $logger,
        \Magento\Catalog\Model\ProductFactory $productFactory
      ) {
          $this->_objectManager = $objectManager;
          $this->logger = $logger;
          $this->productFactory = $productFactory;
      }

      public function execute(\Magento\Framework\Event\Observer $observer)
      {
        $order = $observer->getEvent()->getOrder();
        $order_id = $order->getIncrementId();
        $this->logger->info($order_id);
        $this->logger->info("observer working");
        $productIds = array();
        $product_qty = array();
        $product_price = array();
        $i = 0;
        foreach ($order->getAllItems() as $item)
        {
        $productIds[] = $item->getProductId();
        $product_qty[] = $item->getQtyOrdered();
        $product_price[] = $item->getPrice();
        $this->logger->info($productIds[$i]);
        $this->logger->info($product_qty[$i]);
        $this->logger->info($product_price[$i]);
        $i++;
        }
    }
    }

events.xml
<?xml version='1.0'?>
<config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='urn:magento:framework/Event/etc/events.xsd'>
   <event name='sales_order_place_after'>
        <observer
                name='sales_order_place_after'
                instance='GCV\GenerateCSV\Observer\GenerateCSV'
        />
    </event>
</config>


texts: Get list of ALL customers using REST API

texts:
I know I can get a specific customer by running:
curl -X GET "http://127.0.0.1:32769/index.php/rest/V1/customers/2" -H "Authorization: Bearer token"
How do I get the list of ALL customers?..
GET "http://127.0.0.1:32769/index.php/rest/V1/customers" produces "{"message":"Request does not match any route.","trace":null}"


texts: How to assign category to all subcategory products?

texts:
I have to assign all subcategory products to parent category in bulk. I searched a lot but i didn't get any option in backend.

parent category

Sub category -1

product-1
product-2

Sub category -2

product-1
product-2


texts: Magento 2 Join other tables using SearchCriteria JoinProcessor

texts:
Has anybody been able to join another table using SearchCriteria, JoinProcessor and virtual types. I have read the documentation (https://devdocs.magento.com/guides/v2.3/extension-dev-guide/searching-with-repositories.html) but for me at least it is very hard to grasp. Also, the example on the Join Processor described in the documentation page, which looking through the code is also the only implementation of this kind, is soooo vague and hard to understand (seems almost experimental).

So if there is anybody who did this or who understands how this should be done, can you please provide more details into it?

P.S. I think that understanding this concept can add much value in terms of leveraging the ViewModel concept even more and decoupling the Block classes from the templates (ex: at this point if you want to perform collection joins and add pagination for the results you're pretty much tied to the Block class and the _prepareLayout method).


texts: How to upgrade magento 1.8.1.0 to magento 1.9.2.4

texts:
I am in a need to upgrade my magento store from v1.8.1.0 to v1.9.2.4.

Can anyone please tell me the way to achieve this?
What are the stuffs needed to be taken care of?NOTE: I am using nginx server.

Is there any script developed by someone so as to achieve this in less time?


texts:
I have a right login credentials, but after login it shows me a wrong customer account information like Email, Id, Name etc.

Can anybody solve it.


texts: 500 Internal Server Error when trying to access admin pages

texts:
In a new installation of Magento (Ubuntu LEMP) I'm unable to access the admin page.

Error.log says:

2014/08/20 12:04:30 [error] 7404#0: *6 rewrite or internal redirection cycle while processing "/index.php",

My site config file looks like this:

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /var/www;
        index index.php index.html index.htm;

        server_name localhost;

location / {
        index index.html index.php;
        try_files $uri $uri/ @handler;
        expires 30d;
    }

    ## These locations would be hidden by .htaccess normally
    location ^~ /app/                { deny all; }
    location ^~ /includes/           { deny all; }
    location ^~ /lib/                { deny all; }
    location ^~ /media/downloadable/ { deny all; }
    location ^~ /pkginfo/            { deny all; }
    location ^~ /report/config.xml   { deny all; }
    location ^~ /var/                { deny all; }

    location /var/export/ {
        auth_basic           "Restricted";
        auth_basic_user_file htpasswd;
        autoindex            on;
    }

    location  /. {
        return 404;
    }

    location @handler {
        rewrite / /index.php;
    }

    location ~ .php/ {
        rewrite ^(.*.php)/ $1 last;

 }

        location ~ \.php$ {
                if (!-e $request_filename) { rewrite / /index.php last; }
                expires        off; ## Do not cache dynamic content
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param  MAGE_RUN_CODE default;
                fastcgi_param  MAGE_RUN_TYPE store;
                include fastcgi_params;
}
}

It's been quite hard to install Magento with nginx and during installation there were problems with file permissions. So not sure if it may have something to do with it.


texts: Magento 1.9.1 - Shopping cart price rules - Condition subselection issue

texts:
After upgrade from Magento 1.8.1 to 1.9.1 I got not working add to cart button for configurable products, fatal error:

Fatal error: Maximum function nesting level of '1000' reached, aborting! in /home/igor/vhosts/www/***/magento/lib/Varien/Object.php on line 625

Full exception here.

I found that issue occurred because of this rule:

Fix for this issue located at GitHub Gist.

Would be great to add this fix in next release.


texts: How to get payment method and shipping method in grid view magento 1

texts:
I want to show payment method and shipping method along with other attributes here is my grid view code

<?php
    class Mb_Orderprocessing_Block_Adminhtml_Wholesales_Grid extends
        Mage_Adminhtml_Block_Widget_Grid
    {
        public function __construct()
        {
            parent::__construct();
            $this->setId('id');
            $this->setDefaultSort('name');
            $this->setDefaultDir('DESC');
            $this->setSaveParametersInSession(false);

            $this->setUseAjax(true);
        }
        protected function _prepareCollection()
        {
            $collection = Mage::getModel('sales/order')->getCollection();
            $this->setCollection($collection);

            parent::_prepareCollection();
            return $this;
        }
        protected function _prepareColumns()
        {
            $helper = Mage::helper('maxoptra');

            $this->addColumn('increment_id', array(
                'header' => $helper->__('Order #'),
                'index'  => 'increment_id',
                'type'   => 'text',
            ));
            $this->addColumn('expected_delivery', array(
                'header' => $helper->__('Delivery Date'),
                'index'  => 'expected_delivery',
                'type'   => 'text',
            ));
            $this->addColumn('shipping_method', array(
                'header' => $helper->__('Shipping Method'),
                'index'  => 'shipping_method',
                'type'   => 'text',
            ));
            $this->addColumn('status', array(
                'header' => $helper->__('Status'),
                'index'  => 'status',
                'type'   => 'text',
            ));

            $this->addColumn('base_grand_total', array(
                'header' => $helper->__('Paid'),
                'index'  => 'base_grand_total',
                'type'   => 'text',
            ));
        //here i want to show these 2 attributes also how can i get them

            return parent::_prepareColumns();
        }

        public function getGridUrl()
        {
            return $this->getUrl('*/*/orderstatusgrid', array('_current' => true));
    }
}


texts:
facing the cache issue.

Cache Clean issue - HTML/CSS changes are not reflected on normal browsers. It shows in private or Incognito window. We can't tell each customer to open the website in Incognito window.

Is there any method to solve this issue. We are facing this issue. Please let me know if any solution.


texts:
Hosting Magento, as everyone knows, isn't like hosting other PHP applications. How feasible is it to run Magento in an Amazon Web Services environment in 2013?

What magic combination of AWS services does it make sense to use with Magento? What levels are smart defaults for a "run of the mill" store? (yes, I know, there are no run of the mill stores)

Which ones (EBS?) should be avoided?

Any tips, tricks, deployment strategies to avoid weeks of pain getting this setup?


texts: Magento 2 .1: second store view with symlinks: "Requested store not found"

texts:
I have created a second store view with symlinks in my store in Magento 2.1.

Theme is coming in admin but not showing in frontend. In admin when I save data it getting "requested store is not found error".

Can anyone help me?


texts: Magento 2 Admin form dropdown static options

texts:
How can I add some static dropdown option in admin from by uiComponent.

I am using this but it's not working.

        <field name="gender">
            <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">
                    <item value="0" xsi:type="string">Doesn't Matter</item>
                    <item value="1" xsi:type="string">Male</item>
                    <item value="2" xsi:type="string">Female</item>
                </item>
                <item name="config" xsi:type="array">
                    <item name="label" xsi:type="string" translate="true">Gender</item>
                    <item name="visible" xsi:type="boolean">true</item>
                    <item name="dataType" xsi:type="string">number</item>
                    <item name="formElement" xsi:type="string">select</item>
                    <item name="source" xsi:type="string">job</item>
                    <item name="dataScope" xsi:type="string">gender</item>
                    <item name="sortOrder" xsi:type="number">60</item>
                </item>
            </argument>
        </field>


texts: Whats the best way to replace an old store with a new Magento store

texts:
I have a Cubecart store which I am not getting enough functionality from and have decided to install a Magento store.

I need to be able to install Magento, edit its design and theme and add the SSL certificates but I wish to keep the Cubecart store running until I am finished the Magento store.

When I finish the Magento store I wish to replace the existing Cubecart store.

Should I install it to a sub-folder then when complete move it to the root or should I develop it locally then when complete upload it to the live site?


texts: update product using magento 2.2 rest api but result in error %fieldName is a required field

texts:
i'm  trying to use rest api (magento 2.2.2) to update a custom attribute as the below script

$productData =  '{
  "product": {
    "sku": "test1",
    "custom_attributes": [
      {
        "attribute_code": "localisation",
        "value": "Test Description"
      }
    ]
  }
}';

                $token = getToken();

                $str = "http://m22.example.com/index.php/rest/V1/products/test1";

                $ch = curl_init($str);
                curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($productData));
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token)));

                $result = json_decode(curl_exec($ch));

Below is the error which i get :

object(stdClass)#1 (3) { ["message"]=> string(31) "%fieldName is a required field." ["parameters"]=> object(stdClass)#2 (1) { ["fieldName"]=> string(7) "product" } ["trace"]=> string(1903) "#0 /home/m22/public_html/vendor/magento/framework/Webapi/ServiceInputProcessor.php(142): Magento\Framework\Webapi\ServiceInputProcessor->processInputError(Array) #1 /home/m22/public_html/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(101): Magento\Framework\Webapi\ServiceInputProcessor->process('Magento\\Catalog...', 'save', Array) #2 /home/m22/public_html/vendor/magento/module-webapi/Controller/Rest.php(322): Magento\Webapi\Controller\Rest\InputParamsResolver->resolve() #3 /home/m22/public_html/vendor/magento/module-webapi/Controller/Rest.php(239): Magento\Webapi\Controller\Rest->processApiRequest() #4 /home/m22/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http)) #5 /home/m22/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array) #6 /home/m22/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #7 /home/m22/public_html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(39): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array) #8 /home/m22/public_html/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #9 /home/m22/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #10 /home/m22/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch() #11 /home/m22/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #12 {main}" }

anyone know what is the problem?


texts: Limit order quantity per customer magento2

texts: Is there any way i can set a min and max limit on order quantity per customer.


texts: How to use of 'around' in plugin, and when it execute

texts:
In Magento 2 plugins there are 3 ways to attach your method with any public function.

And around is one of the way.

But I am not sure how to use this and when I used to add my method with around, not sure when it will be executed.

Like before runs before calling of method and after runs before returning of method. So around when will be get executed?


texts: Magento 2 contributing tests to the new MFTF

texts:
I would like to know if it's possible to contribute tests to the new MFTF framework. In the documentation it talks about contributing to the MFTF core itself, but not how to contribute tests for it, which are located outside the MFTF repository.

Also, I know the Magento team is working on allot of new tests right now, is there some place where I can see what tests are being worked on?


texts:
what can I do?

[ERROR] LogicException: Unknown module in the requested list: 'Magento_BundleSampleData' in /home/sd378070/gigatyre.com/www/magento2/setup/src/Magento/Setup/Model/Installer.php:469
Stack trace:
#0 /home/sd378070/gigatyre.com/www/magento2/setup/src/Magento/Setup/Model/Installer.php(428): Magento\Setup\Model\Installer->readListOfModules(Array, Array, 'enable-modules')
#1 /home/sd378070/gigatyre.com/www/magento2/setup/src/Magento/Setup/Model/Installer.php(358): Magento\Setup\Model\Installer->createModulesConfig(Array, true)
#2 /home/sd378070/gigatyre.com/www/magento2/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#3 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#4 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#5 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#6 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#7 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#8 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /home/sd378070/gigatyre.com/www/magento2/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#11 /home/sd378070/gigatyre.com/www/magento2/setup/index.php(39): Zend\Mvc\Application->run()
#12 {main}

Thanks.


texts: Attribute Set to much load in product page admin side in magento 2.3.3!

texts:
I have Magento site in 2.3.3 version, I have created the attribute set in the admin side using the default Magento attribute set option. - https://prnt.sc/qs3wiq

on my site like 100000+ products with different attribute options.

but when I open attribute set option - https://prnt.sc/qs3wsm

so gives this error( AW, Snap error )

I think this issue is loading because one attributes have many options.

but how can I solve this problem Please anyone tell me.

I have tierd to solve this problem.


texts: How to execute custom controller action for product in magento2?

texts:
I would like to write some custom code product actions in a controller is executed.

When I have click on the product than showing multiple brands and after that click on brand then show product detail page. I am not able to how to achieve this functionality

Please give me any solution?


texts: Magento2 acl xml equivalent of magento1x

texts:
I need the equivalent api xml in Magento2

<?xml version="1.0"?>
<config>
<api>
    <resources>
        <testmodule_product translate="title" module="module1">
            <model>module1/api</model>
            <title>MyModule API</title>
            <acl>module1/product</acl>
            <methods>
                <get translate="title" module="module1">
                    <title>Get products by limit</title>
                    <method>getProduct</method>
                </get>
                <get_update_queue_size translate="title" module="module1">
                    <title>Get Product Update Count</title>
                    <method>getProductUpdateCount</method>
                </get_update_queue_size>
            </methods>
        </testmodule_product>
    </resources>

    <resources_alias>
        <product>testmodule_product</product>
    </resources_alias>

    <v2>
        <resources_function_prefix>
            <product>module1Product</product>
        </resources_function_prefix>
    </v2>

    <acl>
        <resources>
            <module1 translate="title" module="module1">
                <title>MyModule</title>
                <sort_order>5</sort_order>
                <product translate="title" module="module1">
                    <title>module1</title>
                </product>
            </module1>
        </resources>
    </acl>
</api>
</config>

The above acl.xml is in Magento1, need the equivalent in Magento2x


texts: Authorization failed during category creation using REST API

texts:
I am playing with magento 2 Rest API to add category in magento admin. I am writing below code, but showing "401 Unauthorized" and showing message

  Consumer is not authorized to access %resources

    Magento_Catalog::categories

I am using below code to add category in magento console, can anyone help me on this? Thanks in advance.

POST Method: [MAGENTO URL]/index.php/rest/V1/categories/

Request Body:
{
  "id": 0,
  "parentId": 0,
  "name": "test category",
  "isActive": true,
  "position": 0,
  "level": 0,
  "includeInMenu": true,
  "extensionAttributes": {},
}

but not working. any solution?

Thanks

Rahul Anand.


texts:
How to create custom "Duplicate" buttons for Adminhtml Form in Magento2?

I need to create a duplicate button in adminhtml form just like product edit page in admin side.


texts: Missing function Implementation in Magento2

texts:
I just observe that when I put below class declaration in constructor to avoid object manager usage, below function is showing that it not defined anywhere but with this no error coming.

use Magento\Backend\Model\Session as backendSession;

class Save extends \Magento\Backend\App\Action
{
/**
     * @var _backendSession
     */
    private $_backendSession;

public function __construct(
        Context $context,
        backendSession $backendSession
    ) {
        parent::__construct($context);

       $this->_backendSession = $backendSession;
    }
public function execute()
    {
     $this->_backendSession->setFormData(false);
}

However failed to find definition of this function, I noticed it is
being used in some places in core files too.

For eg. In vendor\magento\module-email\Controller\Adminhtml\Email\Template\Save.php around line#57

$this->_objectManager->get('Magento\Backend\Model\Session')->setFormData(false);

Can anyone tell how it is working(if at all working) and not giving error?


texts: Magento 2 display color Attribute value in Minicart

texts:
I have added a config product which have two attributes size and color.Size attribute is displaying in see detail section but  color is not displaying in mini cart detail section.

Please let me know what we need require to settings to display color attribute value.

Thanks.


texts: Get Stores Details by website id in one website - multiple stores scenario

texts: I am working on one website - multiple stores platform. How i can get store details by website id.


texts: Magento2: How to add custom attribute value in Email template?

texts:
I want add custom attribute value in new order email template.

Please help me in this.


texts: bestseller how is it determined? Can it be based on number of orders instead of quantity?

texts:
I just want to know how bestseller is determined. Is it simply based on the quantity of a product ordered? Can it be based on how many orders you have for the product?

For example Product 1 has a minimum qty to order of 500 and product 2 has no minimum qty to order. Say I order 500 orders of product 1 and then order 5 of product 2 in 2 separate orders to total 10 quantity. Could I have my bestseller section setup to show product 2 as the bestseller seeing as two orders were placed opposed to product 1 with 500?


texts:
I wrote an observer that filters payments based on another post from here. This works fine for Magento's default payment methods but not for the methods in Buckaroo and this is because Buckaroo has it's own isActive / isAvailable functions. Now i'm trying to do a rewrite but i can't get it too work. Anyone can see what i'm doing wrong? Here comes my code:

Module.xml

<codePool>local</codePool>
            <depends>
                <TIG_Buckaroo3Extended/>
                <Idev_OneStepCheckout/>
                <Mage_Sales/>
                <Mage_Payment />
            </depends>

config.xml

<models>
    <buckaroo3extended>
                <rewrite>
                    <paymentMethods_paymentMethod>Mycompany_PaymentRestriction_Model_PaymentMethods_PaymentMethod</paymentMethods_paymentMethod>
                </rewrite>
            </buckaroo3extended>
        </models>

PaymentMethod.php

class Mycompany_PaymentRestriction_Model_PaymentMethods_PaymentMethod extends TIG_Buckaroo3Extended_Model_PaymentMethods_PaymentMethod {

    public function isAvailable($quote = null) {

        Mage::log('rewrite active');
        return false;
    }

}

I have tried all kinds of variations with the camel casing but nothing seems to work. Thanks in advance for the help.


texts: find which user uploaded magento product

texts:
We gave admin panel password to many employees of our company.

but created different users and different roles for each employee.

Is there any option to find out which "user" uploaded or edited a product.


texts: Show Simple Product Customizable Options for Configurable products

texts:
My goal is to minimize SKU amount on Configurable products
However, I have multiple configurations that I want to display on a PDP...

Gender
Type (T-shirt, Pants, Hoodie)
Colour
Size

My idea is to have Size as a Customizable Option on the Simple Product level, however, Magento seems to not have any output this way. It does show Customizable Options on the Configurable product level.
Any workaround for this?


texts: Product images lost when editing a product

texts:
I have a client with a Magento 1.9.1.0 store. This has been upgraded from version 1.7.x.

This problem has affected the store since the 1.7.x series and we have been unable to fix it with any of the fixes that we have found online.

It appears the problem occurs when an admin goes to edit a product. Once selecting the edit option, some times but not always, the product image will disappear. The admin does not have to save the product, and by the time the cache re-generates the image is missing.

To detail at least some of the fixes we've tried:

Folder/file permissions
Re-indexing
Clearing cache
Disabling various caches
New server
Checking PHP error log

Does anybody have any ideas about this one? Come across it before? Found a fix? Even just how we could begin to gather more information on the problem?


texts:
Can anyone explain what salable quantity is and how do you change it?
Each time I change the stock quantity the salable quantity changes too. I don't understand why.

salable quantity seems to be 4, when I change stock to 2 salable quantity goes to -2.

On the product page it is not editable.

Any tips or explanation would be much appreciated. I've gone through the docs but I cant seem to make sense of it.


texts: Magento2 : How to set filter for an insert listing component while loading edit view form

texts:
I want to display all contacts of a supplier on the supplier edit page.

For this, I use an insert listing component and I include the contact grid in a field set.

How can I use the supplier_id to show only the contacts of the current/selected supplier?

Much Appreciated your help, Thanks in Advance :)


texts: ERROR: “/app/etc/” must exist for proper tool work magento 1.9

texts:
I am trying to install the newly release security patch for magento 1.9. I am working on window system.

and I am getting the following error.

D:\xampp\htdocs\magento>sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh
ERROR: "/app/etc/" must exist for proper tool work.

I am running command by CMD and SH is working fine too

I tried with Git too. but getting same error

Not working on Linux too

can anyone tell me what is the exact issue and how it could be fixed.

Thanks


texts:
If the product price is $50 and the tier price is $40 for 3 products and catalog rule applied is $5 flat off for that product. What will be the final product price?

Select one:

a. $35

b. $45

c. $50

d. $40

Please suggest right answer with explanation.


texts: Magento2 : Something went wrong while saving the rule data. Please review the error log

texts:
I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error.

  "Something went wrong while saving the rule data. Please review the
  error log."

Kindly guide me I am beginner in Mangeto.

Thanks


texts: How to get parent product id in magento 2?

texts:
How to get a child's parent product id in Magento 2 for the configurable products?

I want to get the parent product id of child product in Magento based on child product id.


texts: product_count dont work when calling product to frontpage

texts:
Im trying to call 3 products from each category on my frontpage.

im using this code to call one category

  {{block type="catalog/product_list" product_count="3" category_id="3"
  template="catalog/product/list.phtml"}}

but it takes alle products from the category.
Why is the product_count dont work?

UPDATE:
After i tried a new magento installment, it worked for a while, but now it dosen't again. Can someone please tell me why? its a pretty annoing thing :(


texts: Magento 2 - Order best sellers products by period

texts:
For now, I'm getting my best sales like this.
I would like to be able to influence the order of my products in the collection.

In my Block :

use Magento\Sales\Model\ResourceModel\Report\Bestsellers\CollectionFactory;
// ...
public function __construct(Template\Context $context,CollectionFactory $bestSellersCollectionFactory)
{
    $this->bestSellersCollectionFactory = $bestSellersCollectionFactory;
    parent::__construct($context, []);
}

public function getBestSellersProducts()
{
    $collection = $this->bestSellersCollectionFactory->create()->setModel(
        'Magento\Catalog\Model\Product'
    )
    ;

    return $collection;
}
// ...

In my template :

$collection = $block->getBestSellersProducts();
// improvised part that doesn't work
$collection->setPeriod('month')->setOrder('period','DESC')->load();
// result data period -> 2015,2016,2017,2018,2019...

The problem is that these products arrive in a chronologically increasing way and I would like the opposite of course  :)


texts: I want to migrate data from Magento 1.x to Magento 2.x. So which one is the best method or tool to migrate data. I am working on Magento 2.1.0.


texts: Module skin css file not included when merging

texts:
When I disabled CSS merge files in Magento 1.9.0 , my css extension's css file is successfully being loaded to the head. But when I enable css meging, it won't merge my css file content to the generated merge css file.

Anyone has any idea ?

My layout file:

<?xml version="1.0"?>
<layout version="1.0.0">
    <default>
        <reference name="head">
            <block type="core/template" name="test.variables" template="ext/test/variables.phtml"/>
            <action method="addItem">
                <type>skin_css</type>
                <name>css/ext/test/test.css</name>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="core/template" name="test.libraries" template="ext/test/libraries.phtml"/>
        </reference>
    </default>
</layout>

In overal my module is 100% functional without css merging. I chcked caching and similar things.


texts: Remove "required field" validation in street[0] input Magento 2.3.5

texts:
I need to separate the street field into two inputs (street and number), but send them as the same field to the database.
One solution was to create these inputs, concatenate their value with Javascript and insert it into the input street [0]. This works quite well, but at the time of going to the billing section I can't move forward because it indicates that the field is empty, even when I insert a value with javascript.
how can i disable this validation?
It is not an option to use more street lines. I already use the 4 available
I know this seems strange, but because we migrate from M1 to M2 we need it in that way


texts:
I am in the process of speeding up my site so i am getting rid of CSS file and Javascript files which are not needed, i have managed to do this a lot through my local.xml. But for the following files there is no reference to them in the local.xml.

options.css.php?store=default

print.css

So my question is apart form the local.xml file where else do CSS and javascript files get called from?

Thank you


texts: Why do freight charges over $1,000.00 roll back to $1.00 on my site?

texts: I am having an issue with my site where if my freight costs go above 1000.00, the cost for shipping returns $1.00. Any help would be awesome!


texts: Magento 2 : How to programmatically create and display bearer token on admin screen?

texts:
Is it possible to create and display a bearer token in my custom admin setting screen for my plugin?.

In short, I want to be able allow customer to install my plugin, copy a Bearer Token from the a settings page for my plugin and allow my external server to access to their Magento store view Magento's API interface given the Bearer token.

With Magento 1.x we were able to something like this, display a token from the admin page which then gave our external server access to their Magento site using the token.


texts: Modify catalog based on parameter is URL

texts:
When user is on products list page and there is ?sale=1 parameter to URL, I want Magento to display only products that are on sale.

I already found how to filter collection, so it contains only items on sale - https://stackoverflow.com/questions/11292208/or-and-and-statement-addattributetofilter-magento

I'm trying to modify the collection in catalog_block_product_list_collection event, but no matter what changes I apply to it - old products are displayed in catalog.

<catalog_block_product_list_collection>
    <observers>
        <my_custom_observer>
            <class>Some_Module_Model_Observer</class>
            <method>catalog_block_product_list_collection</method>
        </my_custom_observer>
    </observers>
</catalog_block_product_list_collection>

-

public function catalog_block_product_list_collection(Varien_Event_Observer $observer) {

        $params = Mage::app()->getRequest()->getParams();

        if( isset($params['sale']) && (int)$params['sale'] === 1  ) {

            // this part works and test text prints at the beginning of catalog
            echo "test text";

            $collection = $observer->getCollection();
            // this part doesn't work - old collection is displayed in catalog
            $collection->getSelect()->limit(5); // even simple limit doesn't work

        }

}

Should I be using some other event? Please recommend what's the best way to modify product collection output for catalog pages.

Thank you.

EDIT: Started digging in Magento code to find out why the collection isn't modified and found that the problem is caused by default Magento Review observer that uses same event, added in app/code/core/Mage/Review/etc/config.xml:

        <catalog_block_product_list_collection>
            <observers>
                <review>
                    <type>model</type>
                    <class>review/observer</class>
                    <method>catalogBlockProductCollectionBeforeToHtml</method>
                </review>
            </observers>
        </catalog_block_product_list_collection>

And the function which it refers to:

 public function catalogBlockProductCollectionBeforeToHtml(Varien_Event_Observer $observer)
{
    $productCollection = $observer->getEvent()->getCollection();
    if ($productCollection instanceof Varien_Data_Collection) {

        $productCollection->load();
        Mage::getModel('review/review')->appendSummary($productCollection);
    }

    return $this;
}

If I comment line $productCollection->load(); - everything starts working correctly and my initial filter works. Anyone has any idea how to fix this without editing core file?


texts: backend sales order view filter are not working in magento 2?

texts:
Sales order view page, we have added some custom columns, but filters are not working.
Please, check below screen-shot.

    <?php

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

namespace Custom\Sales\Model\ResourceModel\Order\Grid;

use Magento\Sales\Model\ResourceModel\Order\Grid\Collection as OriginalCollection;

/**

 * Order grid extended collection
 */
class Collection extends OriginalCollection {

    protected function _initSelect() {

        parent::_initSelect();

        $this->getSelect()->joinLeft(
                ['sales_order_item' => $this->getTable('sales_order_item')], //2nd table name by which you want to join mail table
                'main_table.entity_id = sales_order_item.order_id',
                ['CONCAT(sales_order_item.name,"(",sales_order_item.sku,")") as pname']
        );
        $this->getSelect()->joinLeft(
                ['sales_order' => $this->getTable('sales_order')],
                'main_table.entity_id = sales_order.entity_id', ['user_id']
        )->group('main_table.entity_id');
    }

}

List of column

sku,user_id,status,warehouse_id,customer_id,increment_id,base_grand_total,grand_total,store_id

What could be reason behind it?

Thanks in advance


texts: How to label products to indicate cart rule has been applied?

texts:
I want to display a product label if a cart rule has been applied to a product but the label is being displayed for all products even those who don't qualify for the cart rules.

Here is the code I am testing:

$rules =  Mage::getModel('salesrule/rule')->getCollection();?>
        //echo count($rules);

    <?php foreach ($rules as $rule) :?>
        <?php   $hasPromo=$rule->getConditions()->validate($_product) ;
            if ($hasPromo)
            {
                $Tag = $rule->getDescription();
                ?>

<?php echo $Tag; ?>

                <?php
            }
            else { ?>

            <?php }
          ?>
        <?php endforeach;?>


texts:
We have to import the products in from magento1.8 to magento1.9,
but we are facing the issue while importing products like
Error: Image does not exist.

screenshot:

we have image path in csv file like:

  /t/_/t_negro_earl_grey_infusiones_chas_tetique_tienda_te_online.jpeg

So, Please help me how to resolve this issue.

Thanks


texts: Amazon Payment agreement checkbox not working

texts:
Checkbox for agree not work currently and always show this message. I think does this is javascript or Ajax conflict.

Please agree to all the terms and conditions before placing the order.


texts: Magento 2.3.3 - Error while uploading image to products in admin - A technical problem with the server created an error

texts:
I am facing this error.

I have tried various things like changing fileUploader to ImageUploader, flush, clean cache etc..

But nothing so far is working.

I further checked the Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Files getCount function and it is returning 0 count. Checked and no modules overriding this file.

Permissions is 777. n the admin even images are not showing however the image do exist in folders.

Checked logs and they are not updating when I am trying to upload the file. The file is uploading but not shown on admin.

cms/wysiwyg_images/contents/?form_key=dsfdf&node=sdfdsfs--&isAjax=true -- it is throwing 500 Error

Magento version 2.3.3


texts: Magento 2 - Fetch Product Thumbnail Image

texts:
<?php

namespace Vendor\Module\Controller\Result;

use Magento\Framework\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\Controller\Result\JsonFactory;
use Magento\Catalog\Model\ResourceModel\Product\Collection;
use Magento\Eav\Model\Config;
use Magento\Catalog\Model\ProductFactory;
use Magento\Catalog\Helper\Product;
use Magento\Catalog\Model\Product\Attribute\Source\Status;
use Magento\Catalog\Model\Product\Visibility;

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

    /**
     * @var Magento\Framework\View\Result\PageFactory
     */
    protected $resultPageFactory;
    protected $resultJsonFactory;

    /**
     * @param Context     $context
     * @param PageFactory $resultPageFactory
     */
    public function __construct(Context $context, PageFactory $resultPageFactory, JsonFactory $resultJsonFactory,
                                    Collection $productCollection, Config $eavConfig, ProductFactory $productFactory, Product $productHelper,
                                    Status $productStatus, Visibility $productVisibility
    ) {

        $this->resultPageFactory = $resultPageFactory;
        $this->resultJsonFactory = $resultJsonFactory;

        $this->productCollection = $productCollection;
        $this->eavConfig = $eavConfig;
        $this->productFactory = $productFactory;
        $this->productHelper = $productHelper;
        $this->productStatus = $productStatus;
        $this->productVisibility = $productVisibility;
        return parent::__construct($context);
    }

    public function execute() {

            $productModel = $this->productFactory->create();
            $module_products = array();

            $this->productCollection->addAttributeToFilter(
                'status', ['in' => $this->productStatus->getVisibleStatusIds()]
            );
            $this->productCollection->setVisibility($this->productVisibility->getVisibleInSiteIds());

            foreach ($this->productCollection as $product) {

                $productId = $product->getId();
                $product = $productModel->load($productId);
                $thumbnailImageUrl = $this->productHelper->getThumbnailUrl($product);

                $my_product[$productId]['name'] = $product->getName();
                $my_product[$productId]['thumbnail'] = $thumbnailImageUrl;
            }

            if(isset($currentId)){
                $module_products[$currentId] = $my_product[$currentId];
            } else{
                $module_products = $my_product;
            }

        $result = $this->resultJsonFactory->create();
        $resultPage = $this->resultPageFactory->create();

        $template = 'Vendor_Module::result.phtml';

        $block = $resultPage->getLayout()
                ->createBlock('Vendor\Module\Block\Index')
                ->setTemplate($template)
                ->setData('module_products', $module_products)
                ->toHtml();

        $result->setData(['output' => $block]);
        return $result;
    }

}

Here method getThumbnail gives product name but not with complete path. Under module-catalog/Helper/Product.php - I have used the method getThumbnailUrl to display the image, but it
is thowing 500 Internal Server exception

How do I get product thumbnail image with URL in order to display it ?


texts: Hello in Magento2 where is the xml file that stores the state/regions we believe "California" is being saved when customers place an order as "Cal" and we need to confirm if this is how Magento has the abbreviation for California and if so change it to CA.


texts: Migration/Exception : Invalid config filename

texts:
I am migrating Magento 1.9.3.9 to Magento 2.2.5 and getting below error

The command I run from my Windows machine

php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.9/config.xml

Getting error in command prompt

 [Migration\Exception]
 Invalid config filename: vendor/magento/data-migration-tool/etc/opensourc
 e-to-opensource/1.9.3.9/config.xml

EDIT

When remove below part it start process but nothing import as all are in comment or removed

<steps mode="data">
    <step title="Data Integrity Step">
        <integrity>Migration\Step\DataIntegrity\Integrity</integrity>
    </step>
    <step title="EAV Step">
        <integrity>Migration\Step\Eav\Integrity</integrity>
        <data>Migration\Step\Eav\Data</data>
        <volume>Migration\Step\Eav\Volume</volume>
    </step>
    <step title="Customer Attributes Step">
        <integrity>Migration\Step\Customer\Integrity</integrity>
        <data>Migration\Step\Customer\Data</data>
        <volume>Migration\Step\Customer\Volume</volume>
    </step>
    <step title="Map Step">
        <integrity>Migration\Step\Map\Integrity</integrity>
        <data>Migration\Step\Map\Data</data>
        <volume>Migration\Step\Map\Volume</volume>
    </step>
    <step title="Url Rewrite Step">
        <integrity>Migration\Step\UrlRewrite\Version191to2000</integrity>
        <data>Migration\Step\UrlRewrite\Version191to2000</data>
        <volume>Migration\Step\UrlRewrite\Version191to2000</volume>
    </step>
    <step title="Log Step">
        <integrity>Migration\Step\Log\Integrity</integrity>
        <data>Migration\Step\Log\Data</data>
        <volume>Migration\Step\Log\Volume</volume>
    </step>
    <step title="Ratings Step">
        <integrity>Migration\Step\Ratings\Integrity</integrity>
        <data>Migration\Step\Ratings\Data</data>
        <volume>Migration\Step\Ratings\Volume</volume>
    </step>
    <step title="ConfigurablePrices step">
        <integrity>Migration\Step\ConfigurablePrices\Integrity</integrity>
        <data>Migration\Step\ConfigurablePrices\Data</data>
        <volume>Migration\Step\ConfigurablePrices\Volume</volume>
    </step>
    <step title="OrderGrids Step">
        <integrity>Migration\Step\OrderGrids\Integrity</integrity>
        <data>Migration\Step\OrderGrids\Data</data>
        <volume>Migration\Step\OrderGrids\Volume</volume>
    </step>
    <step title="Tier Price Step">
        <integrity>Migration\Step\TierPrice\Integrity</integrity>
        <data>Migration\Step\TierPrice\Data</data>
        <volume>Migration\Step\TierPrice\Volume</volume>
    </step>
    <step title="SalesIncrement Step">
        <integrity>Migration\Step\SalesIncrement\Integrity</integrity>
        <data>Migration\Step\SalesIncrement\Data</data>
        <volume>Migration\Step\SalesIncrement\Volume</volume>
    </step>
    <step title="PostProcessing Step">
        <data>Migration\Step\PostProcessing\Data</data>
    </step>
</steps>

When Comment below part from config.xml it start reading but gives error Integrity check failed whats wrong with this part

<step title="Map Step">
        <integrity>Migration\Step\Map\Integrity</integrity>
        <data>Migration\Step\Map\Data</data>
        <volume>Migration\Step\Map\Volume</volume>
    </step>


texts: How to add STORES > Attributes -> RATINGS > New Attributes (Rating / Price / XYZ) - [SOLVED]

texts:
I searched alot on internet but did not find a solution for this and finally got this working on my own:
Requirement: Add a new attribute under STORES > RATINGS > (Rating i.e Not coming out of the box in magento)
Solution:
Add the below code in your module file under {namespace}{modulename}\Setup\Patch\Data;
Replace the strings with bracket in the code based on ur project needs.
rating_code - Is the name of the new attribute needed.

namespace {namespace}\{modulename}\Setup\Patch\Data;

use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Magento\Framework\Setup\Patch\PatchVersionInterface;
use \Magento\Review\Model\RatingFactory;
use Magento\Store\Api\StoreRepositoryInterface;

class AddRatingsAttribute implements DataPatchInterface, PatchVersionInterface
{
    /**
     * @var \Magento\Framework\Setup\ModuleDataSetupInterface
     */
    private $moduleDataSetup;

    /** @var StoreRepositoryInterface */
    private $storeRepository;

    /**
     * PatchInitial constructor.
     * @param \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup
     */
    public function __construct(
        \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup,
        \Magento\Review\Model\RatingFactory $ratingFactory,
        StoreRepositoryInterface $storeRepository
    ) {
        $this->moduleDataSetup = $moduleDataSetup;
        $this->_ratingFactory = $ratingFactory;
        $this->storeRepository = $storeRepository;
    }

    /**
     * {@inheritdoc}
     */
    public function apply()
    {
        $data = [
            \Magento\Review\Model\Rating::ENTITY_PRODUCT_CODE => [
                ['rating_code' => 'Rating', 'position' => 0],
            ],
        ];
        foreach ($data as $entityCode => $ratings) {

            $entityId = $this->_ratingFactory->create()->getEntityIdByCode('product');

            foreach ($ratings as $bind) {
                //Fill table rating/rating
                $bind['entity_id'] = $entityId;
                $this->moduleDataSetup->getConnection()->insert(
                    $this->moduleDataSetup->getTable('rating'),
                    $bind
                );
                //Fill table rating/rating_option
                $ratingId = $this->moduleDataSetup->getConnection()->lastInsertId(
                    $this->moduleDataSetup->getTable('rating')
                );
                $optionData = [];
                for ($i = 1; $i <= 5; $i++) {
                    $optionData[] = ['rating_id' => $ratingId, 'code' => (string)$i, 'value' => $i, 'position' => $i];
                }
                $this->moduleDataSetup->getConnection()->insertMultiple(
                    $this->moduleDataSetup->getTable('rating_option'),
                    $optionData
                );

                $storeCode = {'ur store code for which you want to add this attribute'};
                $store = $this->storeRepository->get($storeCode);
                $storeid = $store->getId();
                $store_data[] = ['rating_id' => $ratingId, 'store_id' => $storeid];
                $this->moduleDataSetup->getConnection()->insertMultiple(
                    $this->moduleDataSetup->getTable('rating_store'),
                    $store_data
                );
            }
        }
    }

    /**
     * {@inheritdoc}
     */
    public static function getDependencies()
    {
        return [];
    }

    /**
     * {@inheritdoc}
     */
    public static function getVersion()
    {
        return '2.0.0';
    }

    /**
     * {@inheritdoc}
     */
    public function getAliases()
    {
        return [];
    }
}


texts:
I have a preprod Magento environment and I want to allow symlinks in template setting.

I allowed it via Configuration->Advanced->Developer->Template Setting but it's not working. It has worked before.

I have disabled the Magento cache.


texts:
I need to customize the JSON response of the Magento REST services when an exception is thrown.

Examples:

{
    "message": "Request does not match any route.",
    "trace": null
}

{
    "messages": {
        "error": [{"code":500,"message":"Fatal Error: 'Uncaught TypeError: Argument 4 passed to etc..."}]
    }
}

Example unique customization:

{
    "error": true,
    "code": 124,
    "message": "Error etc.."
}

As you can see Magento has different formats for the exceptions.

Do you known where are the Magento classes to override in my module?


texts: How to show the categories filters on the left sidebar in magento?

texts:
Ho to show the categories filter in the left sidebar in the categories pages similar to search results page?
I have enabled the left sidebar template for categories apges but it only shows the price filters.


texts: how add custom javascript file in UI_component?

texts:
I have a layout:

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
    <referenceContainer name="content">
        <uiComponent name="name_name2_form"/>
    </referenceContainer>
</body> </page>

and want to add custom JS file, so that it only works here (this UI component)
How I can do this? Ty for answer