texts:
I upgraded to V 1.8, now I'm having problems with all my configurable products. I'm not able to remove the associated products, and I can't create new configurable products. When I try to create a new configurable product, it lets me go through the whole process, but when I save the product, it just goes back to not associating with the associated products.

I didn't get any errors when I upgraded to 1.8 nor am I getting any errors now, the system is just ignoring me.

Anyone have the same problem, or better yet, anyone with a solution to this problem?


texts: Never rewrite for existing files, directories and links

texts:
I install my Magento CE 1.8.1 on Nginx server.

My nginx conf file is like this: Configuring nginx for Magento

I created a subfolder in Magento root folder, then put in it some php files.
I tried to execute those files by visiting urls (http://example.com/magento/subfolder/myfile.php) but it displays Magento 404 page. That means it was forced to rewrite by conf.

I looked into Magento default .htaccess file and found these lines:

############################################
## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

How to convert this into nginx conf and make existing files executable?


texts: is it possible to get products filtered by out of stock by date?

texts: Is it possible to get all products filtered by out of stock by date? This will give the function to see when the products was last in stock, and give us the information to delete product if necessary.


texts: Magento 2 : Which Step Need to Follow For Standard Extension Development

texts:
I create magento 2 extenstion. I need to follow standard coding.
Which steps need to follow for standard Magento 2 Extension development.


texts: Magento External Shipping Costs through a Custom API

texts:
I am trying to accomplish the following. I need to be able to add a custom shipping module that grabs shipping costs from an external system through an API.

Once a customer gets to the point of shipping costs, magento would send product information (weight, cost) through the API and the result would return the shipping costs for the order.

If anyone has dealt with anything similar, I would really appreciate any help that you can give me.

Thank You in advance!

Branislav


texts: Magento 2.2.4 Customer are unable to logout

texts:
i´ve just installed a fresh Magento2 on my webspace to prepare the migration of my Magento 1.9.

I installed my theme (Infortis) and created my products and did the first test-salse. Everything fine...

But if I try to logout as a Customer this error appears:

  There has been an error processing your request
  Notice: Undefined index: form_key in vendor/magento/module-customer/Model/Plugin/CustomerFlushFormKey.php on line 48

Since there isn't even a valid google result on this file, I hope that you can tell me what to do.


texts: Magento 2.4 admin keep on infinite loading

texts:
I updated my magento from 2.1 to 2.4 .
My admin panel keeps on loading since long.
Below is error i see in console.
Failed to load resource: the server responded with a status of 404 (Not Found)
require.js:166 Uncaught Error: Script error for: mageTranslationDictionary
http://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:166)
    at HTMLScriptElement.onScriptError (require.js:1681)

It is calling some js file : adminhtml/Magento/backend/en_US/mageTranslationDictionary.js
which gives 404 , i can not see any such js file .
Please help me with it


texts: Images Import Successfully But Images Not shown - Import By Magmi?

texts: How can I solve the error, images import successfully and images saved into catalog/product/desired folder, but images not shown front end backend. Images imported by using MAGMI.


texts:
I have an issue with my magento store.

Only when I'm on the shopping cart page (checkout/cart) and I want to navigate to a CMS page a 404 error appears and the link is (checkout/cart/cms-page-name).

Someone can help me to solve this issue?


texts: Saving Product Attribute First Time Erases Store Labels, Second Time Saves the New Addition

texts:
We have the loop below, which is supposed to update the store labels and options and then save the product attribute. The first time the attribute repository saves the attribute, it completely wipes out all the store labels, the second time it saves the new addition to the now empty store labels. What's going on here? I've also tried to use setStoreLabels() and getStoreLabels() instead of using getFrontendLabels() and setFrontendLabels(), but issue persists. Happens on enterprise 2.3.4 and 2.4.1 (at least). Here is the loop:
        foreach ($targetStoreIds as $targetStoreId) {
        $optionsArray = [];

        $stores = [0];
        $stores = array_merge($stores, $this->helper->getAllStoresIds());
        foreach ($stores as $storeId) {
            $optionsAttribute = $this->attributeRepository->get(
                ProductAttributeInterface::ENTITY_TYPE_CODE,
                $entityId
            );
            $optionsAttribute->setStoreId($storeId);

            $options = $this->attributeOptionManagement->getItems(
                ProductAttributeInterface::ENTITY_TYPE_CODE,
                $entityId
            );

            foreach ($options as $option) {
                $optionId = $option->getValue();
                if (empty($optionId)) {
                    continue;
                }
                $optionsArray['order'][$optionId] = (int)$option->getSortOrder();
                if ($storeId == $targetStoreId && !empty($translatedData['options']['entity_'.$entityId][$optionId])) {
                    $optionsArray['value'][$optionId][$storeId] = $translatedData['options']['entity_'.$entityId][$optionId];
                } else {
                    $optionsArray['value'][$optionId][$storeId] = $option->getLabel();
                }
            }
        }

        $attribute = $this->attributeRepository->get(
            ProductAttributeInterface::ENTITY_TYPE_CODE,
            $entityId
        );
        $storeLabels = $attribute->getFrontendLabels();
        $labelAlreadyExists = false;
        foreach($storeLabels as $label){
            if($label->getStoreId() == $targetStoreId){
                $label->setLabel($translatedData['attributes']['frontend_label']);
                $labelAlreadyExists = true;
            }
        }
        if(!$labelAlreadyExists){
            $storeLabels[] = $this->frontendLabelFactory->create()->setStoreId($targetStoreId)->setLabel($translatedData['attributes']['frontend_label']);
        }
        $attribute->setFrontendLabels($storeLabels);
        $attribute->setOption($optionsArray);
        $this->attributeRepository->save($attribute);
    }


texts: Magento 2 layered navigation text swatches blank

texts:
I am using text swatches for colour and size. These work fine in all listings where they're used (home page, product listing etc) but they are blank in layered navigation. For an example, see this page on my site: https://buylingerie.co.uk/buy-lingerie/bras.

I have no idea what's causing this, any suggestions?


texts: Magento Fatal error: Call to a member function getMethodInstance() on a non-object in app/code/core/Mage/Payment/Model/Observer.php on line 46

texts:
I’m trying onepage checkout. When I'm exiting 2co payment page by clicking on Place order button I'm navigating back to my site and the URL looks like this.

https://www.example.com/index.php/checkout/onepage/

and I got an error on the page as shown below

  Fatal error: Call to a member function getMethodInstance() on a non-object in /home/xxx/public_html/store/app/code/core/Mage/Payment/Model/Observer.php on line 46

I have no idea and PHP knowledge to fix it.

Could anyone help me?


texts: Magento 2 - How to translate strings to a specific locale?

texts:
Is there any way to translate strings in Magento 2 to a specific locale (not necessarily the current one)?

Hypothetical example:

$translatedString = __("Some String", "de_DE");


texts: Magento 2: How can change in the frontend sortOrder of Grand Totals and Tax positions in my account order detail page?

texts:
I need to change sort order in order_totals block in the frontend order view page.
I want to swap the position of Grand Total & Tax in order_totals child items.

Please help to change to order of Tax & Grand Total.


texts: Magento 1.7.0.1 : After installing magento SUPEE 6788 patch iframe stop working in product description

texts:
I have website with magento 1.7.0.1 and i have recently installed magento security patch SUPEE 6788 and all working fine but however iframe stop loading in product description. There are 3 iframe in product description and only 1st one is loaded.

<iframe src="---" frameborder="0" width="590" height="332"></iframe>

Can anyone face this type of issue?


texts: How to change magento home page with non cms page?

texts:
I have one page www.abstract.id/landingpage and I wanna make it as my home page, and the url changed to www.abstract.id

I have a block, controller, etc, helper and the frontend xml & page.phtml


texts: Uncaught SyntaxError: return 32 - new Date(year, month - 1, 32).getDate();

texts:
I have this code in my magento onecolumn etc. and I'm getting

Uncaught SyntaxError: Unexpected identifier swing-step-brush-guard-flat-black-with-stainless-cross-bars-by-ami.html:3918

On this line the code is:

return 32 - new Date(year, month - 1, 32).getDate();

Snap of error File:

<script type="text/javascript">
//<![CDATA[
var DateOption = Class.create({

    getDaysInMonth: function(month, year)
    {
        var curDate = new Date();
        if (!month) {
            month = curDate.getMonth();
        }
        if (2 == month && !year) { // leap year assumption for unknown year
            return 29;
        }
        if (!year) {
            year = curDate.getFullYear();
        }
        return 32 - new Date(year, month - 1, 32).getDate();
    },

    reloadMonth: function(event)
    {
        var selectEl = event.findElement();
        var idParts = selectEl.id.split("_");
        if (idParts.length != 3) {
            return false;
        }
        var optionIdPrefix = idParts[0] + "_" + idParts[1];
        var month = parseInt($(optionIdPrefix + "_month").value);
        var year = parseInt($(optionIdPrefix + "_year").value);
        var dayEl = $(optionIdPrefix + "_day");

        var days = this.getDaysInMonth(month, year);

        //remove days
        for (var i = dayEl.options.length - 1; i >= 0; i--) {
            if (dayEl.options[i].value > days) {
                dayEl.remove(dayEl.options[i].index);
            }
        }

        // add days
        var lastDay = parseInt(dayEl.options[dayEl.options.length-1].value);
        for (i = lastDay + 1; i <= days; i++) {
            this.addOption(dayEl, i, i);
        }
    },

    addOption: function(select, text, value)
    {
        var option = document.createElement('OPTION');
        option.value = value;
        option.text = text;

        if (select.options.add) {
            select.options.add(option);
        } else {
            select.appendChild(option);
        }
    }
});
dateOption = new DateOption();
//]]>
</script>


texts: Magento Persistent cart cookie is not generated for guests and I want that guest must be able to add items for 24 hrs in cart

texts:
I am facing problem with persistent shopping cart for guest (Not logged in user),

Cookie Lifetime - 31536000 - 365 days // Cookie lifetime
Persistence Lifetime (seconds) - 2100000 // Persistent shopping cart lifetime
Cookie path - / // Cookie path set to /
Cookie Domain - set it to blank // I have kept it blank
Session Lifetime (seconds) - 2100000 - 24 hrs // Set session Lifetime for 24 hrs

but it it always expire after 1 hr for guest user(not logged in user). Please tell me the solution. I am getting stuck now.

Thanks to everyone in advance!.


texts: How to use modman in windows for xampp server

texts:
I want to use modman in localhost in xampp for windows.

How can I achieve this? Is there any example for usage of modman for custom modules as well as 3rd party modules?


texts: How to Consolidate Color Swatches in Layered Navigation?

texts:
hoping someone can help me with a question on Magento 1.9.1.

I set-up multiple configurable products where some products do not share a common global color such as "Blue".

Example, there are colors that are Blue but are named differently:

-Blue
-Ocean Blue
-Marine Blue
-Sky Blue

For each color, I created swatch image files - blue.png, ocean-blue.png, marine-blue.png, sky-blue.png.

Everything works well but when I enable the "COLOR" attribute to display in Layered Sidebar Navigation it displays the color swatches for all the variations of "Blue" ?

Is there any way I can group all these very similar instances under the main color "BLUE" so that when a visitor in a category clicks on the swatch it will list all products that are related to this color?

I can't seem to find a way to do it.

If anybody has any ideas, it would be greatly appreciated.

-Pavel


texts: I am trying to save product url key.When i open product admin product url key is empty for some products so i am trying to place url and saving product product is saving but url key field not changing still empty all fields changes working fine only url key not working when i change some other which is alredy existing url it effecting changes any idea


texts: Positioning static blocks side by side on a cms page

texts:
First of all I should say I am not a web designer because I think my problem is really simple to solve but I don't know how:

I created static blocks with these images but I can't bring it to this position.


texts:
i am setup authorised.net in localhost

when i pay using this payment method it gives error Root element is missing.

http://prntscr.com/ncmprk

anyone have a solution for this type of error

admin configuration
http://prntscr.com/ncmquc
http://prntscr.com/ncmqzz


texts: Tax Configuration setting is not working properly

texts:
Shopping Cart Display Settings is not working properly.

after selecting Including and Excluding Tax both price is coming same as per below screen. In product listing page coming proper.


texts: Get Dropdown Value from Custom Customer Attribute - Magento 2

texts:
I want to get the value of a custom dropdown attribute however its proving more difficult that i anticipated. I have tried:

return $this->_customerSession->getCustomer()->getCp_permissions();
return $this->_customerSession->getCustomer()->getCp_permissions()->getValue();
return $this->_customerSession->getCustomer()->getCp_permissions()->getLabel();

No luck any ideas?


texts: I changed password for admin user in magento backend but on others browser user is logged in backend. How I can clear admin user session programmatically


texts: css/js not loading after changing base url magento 2

texts:
I have started working on magento migrating 1.9 to 2.3.0 where I faced the issue of css/js not loading after changing base url. What I want to do is move my local site to live. So obviously base url need to change. So I change this url from admin panel. Next time when I want to open my local magento site, I went to core_config_data table and update all live url with my local url. now all js & css files are missing for frontend as well as admin. actually magento is taking wrong path for all css, it is likedomain_name/version_directory/frontend/ but instead of this the path should be domain_name/pub/static/version_directory/frontend/. Search a lot on web but nothing has worked. run too many commands like

php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f(f for developer)
clear static directory(except .htaccess)

Finally I decide to restore all db backup. but accidentally I truncate core_config_data table & voila site is up. then I restore core_config_data table from my old backup. I am sure this is not the way & should not follow this method. but just want to know how should it be done? or is it also one of the correct method?


texts:
I would like to know if someone finds a way to get these:

Product Alerts in the Customer account, with Delete options (so that
customers can proactively manage their subscriptions).
Products Alert in the Customer account (the one an administrator can access in backend).

This is very useful if you use Product Alerts in your store. A customer can see what are the subscriptions.

As administrator visiting customer accounts you can see Product Alerts section like in product editing and there are the subscriptions of that customer.


texts: SQLSTATE[hy000] [2002] No such file or directory

texts:
error when command php bin/magento indexer:reindex

php version : 7.3.14

magento : 2.3.4


texts: Magento 2 Change order of include/exclude tax

texts:
I'm trying to find the best way to change the order in which magento 2 displays the product(s) total for included and excluded tax. By default magento shows the price including tax, then the price excluding tax. But I want to swap that around so the price excluding tax is first and including tax is second.

I've managed to do this for the product page by changing the final_price.phtml file in my theme:

  Magento_Catalog\templates\product\price\final_price.phtml

by swapping around the span tags:

    <?php echo $block->renderAmount($priceModel->getAmount(), [
        'display_label'     => __('Regular Price'),
        'price_id'          => $block->getPriceId('old-price-' . $idSuffix),
        'price_type'        => 'oldPrice',
        'include_container' => true,
        'skip_adjustments'  => true
        ]); ?>

    <?php echo $block->renderAmount($finalPriceModel->getAmount(), [
        'display_label'     => __('Special Price'),
        'price_id'          => $block->getPriceId('product-price-' . $idSuffix),
        'price_type'        => 'finalPrice',
        'include_container' => true,
        'schema' => $schema
    ]); ?>

The problem is it still shows the default order in the mini-cart and checkout areas. Do I need to edit template files for cart and checkout too (and which ones), or is there a better way to change the order across the entire site, e.g a layout, config setting somewhere or modification?

Any help much appreciated!


texts: Can we launch website on LUMA theme magento-2.2.4?

texts:
We are working on Magento-2.2.4 community version.

We'd like to use the default LUMA theme for the development as of now. We have completed the website and it is ready to launch.

Suddenly, we have fixed to continue on and want to launch our website on LUMA theme.

If we launch website on LUMA theme, Will make any problem ?


texts: Why have I seen a blank screen after installing Magento 2.4?

texts:
I have installed new Magento 2.4 following the guide on Magento website using command line no composer, but all I'm getting is blank pages so far,
it's installed on AWS using Nginx, any ideas on how to troubleshoot the problem?
Thank you


texts: Change language and icon doesn't show in Magento 2.2

texts:
I changed language from US to Persian, after that the icon doesn't show.
I did the solution that is in this link:
admin backend icon fonts missing
But it didn't solve it, when I use

php bin/magento setup:static-content:deploy

all content added to  en_US, I think if can change en_US to Persian the problem will be solved.


texts: Magento 2.3.2: Uncaught Error: Call to a member function setUseContainer() on boolean

texts:
I'm facing this error when i try to login as customer, but when i go back or at Home i was logged in but every time i logout & login back, i face this error, also when i was logged in and go to My Account i get this error, don't know why.

  Fatal error: Uncaught Error: Call to a member function setUseContainer() on boolean in /var/www/html/vendor/magento/module-wishlist/Block/Customer/Wishlist.php:127 Stack trace: #0 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(283): Magento\Wishlist\Block\Customer\Wishlist->_prepareLayout() #1 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout(Object(Magento\Framework\View\Layout\Interceptor)) #2 /var/www/html/vendor/magento/framework/View/Layout/GeneratorPool.php(81): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #3 /var/www/html/vendor/magento/framework/View/Layout.php(343): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #4 /var/www/html/vendor/magento/framework/View/Layout/Builder.ph in /var/www/html/vendor/magento/module-wishlist/Block/Customer/Wishlist.php on line 127


texts: When using my Magento webshop I noticed that sometimes I am logged in on a customers account. How can this be happening?


texts: HTML Map Tag in Category Description Not working

texts:
Summary:  I have a graphic map on the top of my Categories to show the relative location of some reefs.  I am trying to allow the user to select a reef (product) by clicking on the red X on the map.  I wrote some test code for two spots, placed it in the Category Description and pressed Save.  When I open my website, it displays the map OK but the mouse flyover (label) and links (href) do not work.  Presently coded at https://reefsnwrecks.com/manatee.html
I have created the HTML code as follows:

Copied and pasted into the Category Description field and hit Save.

When the page returns after the save, the display returns to the WYSIWUG mode, the map is shown and the mouse flyover labels work. (See yellow highlighting below:)

When I go to the website it properly displays the map and products but the flyover labels and href links do not work.

When I try the html code by itself in a browser it works fine. Below is the inspect screenshot of the webpage:
What I have tried:

I am using Magento revision 2.3.4
I have cleared the cache and verified changes are reflected in website.
I have tried the code by itself with a local copy of the map picture file in a browser and it works fine.  Flyover and link to page.
I have tried accessing the website using multiple web browsers, Edge, IE and Chrome.
I have researched HTML5 documentation and believe all the lines of code are compliant.
I changed the map Name, no white space, just in case there is another similar named map.
I have verified the two href links are correct

Is there anything I need to do?
Does Magento support the Map HTML function?
Is this a bug in Magento?
Any suggestions?


texts: What is the use of addExpressionFieldToSelect over addFieldToSelect?

texts: I'm studying Magento and I don't really understand what is the use of addExpressionFieldToSelect over addFieldToSelect? I haven't found the answer anywhere in my reading. As far as I can tell, it seems to be rewriting field names--but only if you pass in an array with the rewrite. Why couldn't you just do this with addFieldToSelect in the first place, if you know what the field should be rewritten as?


texts: category name is not show after save category` in backend in magento 2

texts:
I create new sub category under default category after save category name is not show ?

help me please


texts: Move Customer from one website to another

texts:
I am able to move the customer from one website to another from the list view.
However, I am not able to change the associated website after clicking edit
Also, after moving customer from one website to another, the customer is not receiving any email.
Is it a Magento Bug? or there is solution to it.


texts: Magento 2: Uicomponent grid filter with multiple values as url params

texts:
In this example
<argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
        <item name="update_url" xsi:type="url" path="mui/index/render"/>
        <item name="filter_url_params" xsi:type="array">
            <item name="status" xsi:type="string">*</item>
        </item>
    </item>
</argument>

How to filter uicomponent grid with multiple url param values ? Like 1,2 not all the values


texts: Product attributes and label attribute group

texts:
I would like to show the various attributes divided into groups as created in the set of attributes, such as

general

attribute 1
attribute 2
...

other info

attribute 1
attribute 2
...

How do I retrieve the attribute groups and their labels?

or is there a module to do this?

Thanks


texts: How to create next and previous product links?

texts:
Question speaks for it self.
I found 2 blog posts about it. Should I create my own helper class like Here or do it right in view.phtml like here. Which would be best approach and isn't there a better one?


texts: Magento mini-cart getSummaryCount inaccurate after removing from cart

texts:
I have a function that removes all of a product from the cart.

public function removeFromCartByProductIdAction()
{
    $productIdToRemove = $this->getRequest()->getParam('productIdToRemove');
    $cartHelper = Mage::helper('checkout/cart');
    $items = $cartHelper->getCart()->getItems();
    foreach ($items as $item) {
        if ($item->getProduct()->getId() == $productIdToRemove) {
            $itemId = $item->getItemId();
            $cartHelper->getCart()->removeItem($itemId)->save();
        }
    }
}

If I had 4 of the product in the cart, it will remove all 4 from the cart. But the function getSummaryCount provided by Magento Mage/Checkout/Block/Cart/Minicart.php will return 3. This persists until  I visit the cart page, after which it will return the correct amount  of 0.

I use the result of getSummaryCount to preview how many items are in the cart on my cart icon. How can I ensure it gets the correct summary count after I run my function?


texts:
I've got this code in phtml file:

<script type="text/x-magento-init">
{
    "*": {
        "Magento_Ui/js/core/app": {
            "components": {
                "livePriceComponent": {
                    "component": "LivePrice"
                }
            }
        }
    }
}

Now, I want to pass some config variables to the LivePrice component. How do I do it using the code above?


texts:
I'm gonna start with a new Magento webshop project very soon. I've did some research on which modules I need to have / install to make the shop performance, experience and back-end a better fit. During my research I've came to the conclusion that many modules (free or payed) aren't compatible with the newest (stable) Magento version.

It made me realize I maybe need to install a lower Magento version. A version which is still stable but a bit more compatible with the most modules out there. I would like to get some advice / feedback on which version you guys prefer (maybe experienced) to install.


texts:
I've some troubles while trying to override a Enterprise Adminhtml's block.

Here is the Block that I want to override :

  app/code/core/Enterprise/Reward/Block/Adminhtml/Customer/Edit/Tab/Reward/Management/Upgrade.php

Here is the top of my config.xml :

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Myself_Reward>
            <version>0.1.0</version>
            <depends>
                <Enterprise_Reward/>
            </depends>
        </Myself_Reward>
    </modules>
    <global>
        <blocks>
            <adminhtml>
                <enterprise_reward>
                    <rewrite>
                        <customer_edit_tab_reward_management_update>Myself_Reward_Customer_Edit_Tab_Reward_Management_Update</customer_edit_tab_reward_management_update>
                    </rewrite>
                </enterprise_reward>
            </adminhtml>
        </blocks>

And the file I've created : app/code/local/Myself/Reward/Block/Adminhtml/Customer/Edit/Tab/Reward/Management/Update.php :

class Myself_Reward_Customer_Edit_Tab_Reward_Management_Update
extends Enterprise_Reward_Block_Adminhtml_Customer_Edit_Tab_Reward_Management_Update
{
    protected function _prepareForm(){
        DIE("I'll KILL YOU");
    }
}

But I didn't see my sweet message...
What do I wrong ?


texts: Magento2 and Docker-Compose is incredible slow on Linux

texts:
We are working on a local env for developers and a Magento 2 Docker-Compose Stack.

We are using nginx, PHP 7.2, Elasticsearch and Varnish.

However, we experience unbearable loading times with and without xDebug enabled.

A bigger Magento 1 Codebase works fine with a similar setup.

I've found out that it does not matter if I let every service has its own mount to a directory or if I inbound it via volumes_from command...


texts: Shipping methods are still showing even disabled

texts:
I am working on Depoto website.

In this, I have disabled all shipping methods in admin panel but still those all available shipping methods are showing on the frontend.


texts: Create filterable admin grid from external database table

texts:
As the title says - I am trying to create an admin grid from an external database-table.
I was able to create one with an ui_component and some dirty tricks in my data provider - but the problem is, that I dont know how to get the values from the filter inputs.
Is there a best-practice on how to do this?
*edit: see my answer


texts:
In UI component form, input fields(text and text area) are working allright. But when i try to replace it with a label it gives an error.

Code:

<field name="name">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string">Name</item>
                <item name="visible" xsi:type="boolean">true</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="formElement" xsi:type="string">label</item>
            </item>
        </argument>
</field>

Error:

  Exception #0 (Magento\Framework\Exception\LocalizedException): The requested component ("label") is not found. Before using, you must add the implementation.

I have researched a lot and couldn't find any worth mentioning solution.


texts: Display a message regarding cart discount in header of all the pages in Magento 2

texts:
I am showing one message regarding cart discount in the header of all the pages, but on some pages, the discount is not showing as if the cart is empty.

How to fix this issue.


texts:
I followed the advices of https://magento.stackexchange.com/a/8785/9489 and succeed to get that :

        $fieldsetImage->addField('logo_big', 'image', array(
            'label'     => Mage::helper('brands')->__('Logo'),
            'title'     => Mage::helper('brands')->__('Logo'),
            'class'     => 'required-entry required-file',
            'required'  => Mage::getStoreConfig('clzbrands/general/logo'),
            'name'      => 'logo_big',
            'value'     => $brand->getLogoBig()
        ));

Unfortunately, the html is not generated as expected and I get that :

    Logo*

    <input id="logo_big" class="input-file" type="file" title="Logo" value="" name="logo_big">

I use a magento 1.9.2 ce without any other module than the one i develop.

The display is correct but I would love to have this validation work. Can anyone help me please ?


texts: how to create option for grid column select in magento

texts:
I want to create select type for a grid column in magento admin panel.inside  _prepareColumns() function

protected function _prepareColumns()
    {
        if (!$this->getCategory()->getProductsReadonly()) {
            $this->addColumn('in_category', array(
                'header_css_class' => 'a-center',
                'type'      => 'checkbox',
                'name'      => 'in_category',
                'values'    => $this->_getSelectedProducts(),
                'align'     => 'center',
                'index'     => 'entity_id'
            ));
        }
        $this->addColumn('entity_id', array(
            'header'    => Mage::helper('catalog')->__('ID'),
            'sortable'  => true,
            'width'     => '60',
            'index'     => 'entity_id'
        ));
        $this->addColumn('name', array(
            'header'    => Mage::helper('catalog')->__('Name'),
            'index'     => 'name'
        ));
        $this->addColumn('position', array(
            'header'    => Mage::helper('catalog')->__('Position'),
            'width'     => '1',
            'type'      => 'select',
            'index'     => 'position',
            'editable'  => !$this->getCategory()->getProductsReadonly()
            //'renderer'  => 'adminhtml/widget_grid_column_renderer_input'
        ));

        return parent::_prepareColumns();
    }

Magento uses addColumn() function to create grid column, I want to create a column with select type, but I don't know how to provide it with options


texts: magento 2 restrict phone number field in admin panel

texts:
I want to restrict phone number field and it should accept only 10 digits number in admin panel.
ie

  admin panel >> customers >>address >>add new addresses >> phone number
  field

And

  admin panel >>customers >>address >>select any address which is
  already present >>edit phone number field


texts: Magento Change Order Status to Complete Without Capturing Payment

texts: We had to roll back our Magento Install to a backup that was made 9 hours previous. In that time we had already processed some orders and captured payment. We use Authorize.net as our payment gateway. Now that we are rolled back to the backup the orders are there with a status of processing. Any ideas how I can push these orders through without re-capturing payment? Thanks


texts: Magento 2.3 - REST API - Fetch first n order

texts:
I need to fetch the first n order with status processing or any other.

Does anyone know the API string?


texts: Getting full image URL of product in template

texts:
I'm trying to create a static block for showing dynamic products. This is code that is supposed to get every child category and print the image for each product in each category.

<?php
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');
    ?>
<?php
    foreach ($category->getChildrenCategories() as $child_category) {
        ?>

<?php
                foreach ($child_category->getProductCollection() as $product) {
                    ?>
<img src="<?php echo $product->getImage();?>"/>
<?php
                }
            ?>

<?php
    }
    ?>

It is almost working except for the img srcs are only "/a/b/ab001.jpg" as an example and not the full path e.g. "/pub/media/catalog/product/cache/1/small_image/240x300/abc123def456/a/b/001.jpg" so the images cannot be found. What is the correct way of getting product images?


texts: How do we install the authorize.net patch using composer

texts:
Magento CE 2.1.9
Composer Based Download (Authorize.net Direct Post Signature Key Patch)

Sorry for such a basic question but what is the syntax to install the patch?...using composer.

Do I put the file in the "magentodocroot/vendor" directory then magentouser@magentodocroot>composer install vendor/Auth.net.md5.composer-2019-02-27-11-51-12.patch
Insert downloads access tokens


texts: Correct category attribute for inclusion in Topmenu -- is_active vs. include_in_menu?

texts:
Two attributes on the Category model seem possibly relevant to determining whether a category should be shown in the Topmenu: Is Active (is_active) and Include in Navigation Menu (include_in_menu).

Despite the seemingly obvious intended purpose for Include in Navigation Menu, a review of the code shows that Magento doesn't even check it when adding categories to the Topmenu--it only checks the is_active attribute.

Am I missing the point of the Include in Navigation Menu attribute, or is this potentially a bug?

For completeness, here's an overview of how I understand Magento's process of  rendering the Topmenu:

The top.menu block's getHtml() method is called.
The page_block_html_topmenu_gethtml_before event is fired to get items added to the block's $_menu attribute.
Mage_Catalog_Model_Observer::addCatalogToTopmenuItems observes the event, retrieves the store's top-level categories, and calls its sibling method _addCategoriesToMenu() to add them to the menu.
_addCategoriesToMenu() recursively adds the categories and their subcategories to the menu, using if (!$category->getIsActive()) { continue; } to pass on categories that are not active, but does not check include_in_menu at all.
Back in the top.Menu block's getHtml method, the menu is rendered, either using a renderer class (if a catalog.topnav.renderer block is configured), or otherwise the default rendering method.

Aside from the question of whether categories must also be Active in order to appear, shouldn't _addCategoriesToMenu use if (!$category->getIncludeInMenu()) { continue; } instead?


texts:
As my webshop homepage I want to show a statis html page index.html. How can I accomplish this with .htaccess rewrites?

All other pages are from the Magento installation.

event:

    example.com  redirect to example.com/index.html (which is not an magento page)
    example.com/index.php  redirect to example.com/index.html (which is not an magento page)

but  i want to show other magento pages ...


texts:
Does anyone know what part of this code is causing the page layout to break? The layout goes wrong just under Revolution slider and around the parallax section.

It did work fine but I tried to edit something (without backing up) and when I put it back how I thought it originally was the layout is broken.

{{revslider alias="Home Slider"}}

  View the Full Range

  View the Full Range

  Visit the Website

FEATURED PRODUCTS

{{block type="filterproducts/featured_home_list" name="new_list"  product_count="10" template="filterproducts/list.phtml"}}

&nbsp;

Auto Tuning

Auto parts

 Shop Now &gt;

Auto Tuning

UK dealer backup &amp; warranty

Shop Now &gt;

Auto Tuning

All parts 100% genuine

Shop Now &gt;


texts: Cookie-/ Session Problem after SSL Proxy Configuration

texts:
I recently set up my store to use an SSL proxy for secure connections.

On Frontend everything works fine since I activated the configuration otion "Use SID in Shop frontend". A session variable is added to each URL and the Session sharing between the proxy and my website works.

As an example the url looks like this:

https://ssl.webpack.de/{{shopname}}/customer/account/login/?SID=6j807xxwgbtvlj1qns3abc1a50

However this does not work for the backend. There is no option to add the SID to admin URLs.
Does anyone now how to get the backend working with ssl proxy.

Another option would be to set the cookie correctly for .webpack.de - but whenever Magento tries to set a cookie with the session information, it takes the shopname as Domain. Which is not correct for the secure environment. I am using Magento CE Version 1.7.0.2.


texts: Magento under XAMPP very slow on windows

texts:
Config 8gb ram,250gb sdd , xamp , magento 2.3
Still magento runs slow on windows 10.
i can see disk usage stays on 0% through out magento surfing.
Any idea what's wrong ?


texts: Magento2 - How to maintain custom log the order status changes?

texts:
In Magento2.3, I want to maintain the custom log table when order status change.

How to achieve this?


texts: display a custom value from added database table in product view

texts:
I have created a module who I create too table for alternate group price & alternate client price :

id | client_id | product_id | price
 5 |    24     |    84      | 45

id | group_id | product_id  | price
 0 |    1     |    20       |  20

My table are full but I fail to display the value on product front view I don't know who to process. I understand I need to override the phtml and maybe the controller but I always found for create a new controller not for override existent.

<?php
namespace miaou\CreateTable\Setup;

use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\DB\Ddl\Table;

class InstallSchema implements InstallSchemaInterface
{
    /**
     * Installs DB schema for a module
     *
     * @param SchemaSetupInterface $setup
     * @param ModuleContextInterface $context
     * @return void
     */
    public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
    {
        $installer = $setup;

        $installer->startSetup();

        $table = $installer->getConnection()
            ->newTable($installer->getTable('prix_client_conseil'))
            ->addColumn(
                'entity_id',
                Table::TYPE_INTEGER,
                null,
                ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true],
                'ID'
            )
              ->addColumn(
                'user_id',
                Table::TYPE_TEXT,
                null,
                ['nullable' => false, 'default' => ''],
                'User ID'
            )
              ->addColumn(
                'product_id',
                Table::TYPE_TEXT,
                null,
                ['nullable' => false, 'default' => ''],
                'Product ID'
            )
            ->addColumn(
                'prix',
                Table::TYPE_DECIMAL,
                null,
                ['nullable' => false, 'default' => '0'],
                'prix'

            )
            ->setComment('Prix conseillé pour un article par client');
        $installer->getConnection()->createTable($table);

        $table2 = $installer->getConnection()
            ->newTable($installer->getTable('prix_groupe_conseil'))
            ->addColumn(
                'entity_id',
                Table::TYPE_INTEGER,
                null,
                ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true],
                'ID'
            )
              ->addColumn(
                'groupe_id',
                Table::TYPE_TEXT,
                null,
                ['nullable' => false, 'default' => ''],
                'Proupe ID'
            )
              ->addColumn(
                'product_id',
                Table::TYPE_TEXT,
                null,
                ['nullable' => false, 'default' => ''],
                'Product ID'
            )
            ->addColumn(
                'prix',
                Table::TYPE_DECIMAL,
                null,
                ['nullable' => false, 'default' => '0'],
                'prix'

            )
            ->setComment('Prix conseillé pour un article par groupe');
        $installer->getConnection()->createTable($table2);

        $installer->endSetup();
    }

}

I have also created the Collection file and Model Resource

Thanks in advanced!


texts: How to get subscribers collection in Magento 2.3

texts:
I'm trying to get the collection of subscribers but can't find how to do it in Magento 2, the ones I found were about 1.9.
Is there a way to get it just like the users?
I've tried
<?php

namespace vendor\module\file;

use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;

class Export extends Action
{
    public function __construct(
        Context $context,
        \Magento\Newsletter\Model\ResourceModel\Subscriber\CollectionFactory $subscriberCollection
    ) {
        $this->subscriberCollection = $subscriberCollection;
        parent::__construct($context);
    }

    public function execute()
    {

        $subscribers = $this->subscriberCollection->create()->getCollection();

    }
}

But it doesn't seems to be like this.
Best regards


texts: Magento Patch SUPEE 8788 - 1.9.2.4 - uploaderSingle.swf

texts:
I'd like to be able to quickly and efficiently apply this patch to my 1.9.2.4 stores, however getting problems with the uploaderSingle.swf file

1 out of 1 hunk ignored -- saving rejects to file skin/adminhtml/default/default/media/uploaderSingle.swf.rej
Reversed (or previously applied) patch detected!  Assume -R? [n]

Considering it's meant to be deleting the file, bit of a pain.

Anyone else experiencing this issue?


texts: How do import sample-data before setup new site magento2?

texts: i tried setup  magento2-1.0.0-beta branch Develop but get error relate to installing data. So i want import sample-data before setup new site magento2. How do it ?


texts: Magento Product More Views Not working in Responsive Mobile Theme

texts: I am using magento 1.9.3.2. In Product Detail page, more views working fine in website view. But Not working in Responsive Mobile Theme.


texts: How to change account and basket icons in RWD theme?

texts:
I would like to change these icons to my own custom ones:

Anyone know how I can do this?


texts: Magento 1.9 Loop all customized product attributes

texts:
I have created different custom attributes for a product, as shown in screen-shot.

I want to show All attribute texts, and I have the following code to retrieve the value. It worked fine, but I don't want this "hardcoded" code. How can I loop all the attributes and get it's value without writing the lable manually?

$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$this->getSku($_item));
$productOption = $product->setStoreId(Mage::app()->getStore())->getAttributeText('farve_materiale')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('stelfarve_flet')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('flet_materiale')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('stelfarve_bordplade')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('stelfarve')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('plastfod')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('materiale')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('flet')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('formelt_vaegt')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('lounge_hynde')
. $product->setStoreId(Mage::app()->getStore())->getAttributeText('stelfarve_saede');


texts: Not able to see other images in Product view of Configurable Product in Magento 2

texts:
I'm creating a configurable product in Magento 2, and I added 3 images (let's say A,B,C) in the configurable product section Images and Videos.

Then I create configuration based on color and select 2 colors (black and blue). I also add 2 images for each color (let's say BC1, BC2 for black and BL1, BL2 for blue).

After saving when I view it in front end, on selecting black color swatch I see BC1, A, B, C images and on selecting blue color swatch I see BL1, A, B, C.

What I wanted to see is on selecting black, BC1 & BC2 images should display and on selecting blue, BL1 & BL2 images should display.

Is there any configuration that needs to be done?


texts:
What I should do if Product Attributes index gives an error like this:

Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '12692-214-1-11745' for key 'PRIMARY'' in /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#4 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#5 /home/uitlaat/domains/uitlaatcity.nl/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(1974): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...', Array)
#6 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Source.php(276): Varien_Db_Adapter_Pdo_Mysql->insertArray('catalog_product...', Array, Array)
#7 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Source.php(257): Mage_Catalog_Model_Resource_Product_Indexer_Eav_Source->_saveIndexData(Array)
#8 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Source.php(84): Mage_Catalog_Model_Resource_Product_Indexer_Eav_Source->_prepareMultiselectIndex(NULL, NULL)
#9 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Abstract.php(50): Mage_Catalog_Model_Resource_Product_Indexer_Eav_Source->_prepareIndex()
#10 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav.php(185): Mage_Catalog_Model_Resource_Product_Indexer_Eav_Abstract->reindexAll()
#11 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Eav->reindexAll()
#12 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()
#13 /home/uitlaat/domains/uitlaatcity.nl/public_html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()
#14 /home/uitlaat/domains/uitlaatcity.nl/public_html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything()
#15 /home/uitlaat/domains/uitlaatcity.nl/public_html/shell/indexer.php(198): Mage_Shell_Compiler->run()
#16 {main}

Who has some solutions, maybe It helps me if I truncate some tables.


texts:
While switch the store i want the configuration filed should be Blank.
 By default means One store information should not contain in another store . Right now i need to edit the information manually . What i need text filed should be bank . Is there is way to achieve this Programatically


texts:
I have a fresh Magento 2.2 installation.
I only want to sell online products, so I disabled the modules Dhl, FedEx, OfflinePayments, AmazonPayment, Ups and so on, because I don't need them.
I only want to be able to pay with credit card and CoinGate module.

I created some products and wanted to test the process of buying some items.

After I added the product to cart I click on Proceed to checkout and then the following exception appears:

1 exception(s):
Exception #0 (Exception): Warning: array_keys() expects parameter 1 to be array, null given in /is/htdocs/webroot/vendor/magento/module-shipping/Model/Config.php on line 68

Exception #0 (Exception): Warning: array_keys() expects parameter 1 to be array, null given in /is/htdocs/webroot/vendor/magento/module-shipping/Model/Config.php on line 68
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'array_keys() ex...', '/is/htdocs/...', 68, Array)
#1 /is/htdocs/webroot/vendor/magento/module-shipping/Model/Config.php(68): array_keys(NULL)
#2 /is/htdocs/webroot/vendor/magento/module-checkout/Block/Checkout/LayoutProcessor.php(196): Magento\Shipping\Model\Config->getActiveCarriers('1')
#3 /is/htdocs/webroot/vendor/magento/module-checkout/Block/Checkout/LayoutProcessor.php(168): Magento\Checkout\Block\Checkout\LayoutProcessor->processShippingChildrenComponents(Array)
#4 /is/htdocs/webroot/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Block\Checkout\LayoutProcessor->process(Array)

The same error appears in the admin panel when I click on "Taxes" in Stores > Configuration > Sales > Tax.

Why is this happening and how can I fix that?


texts: Make record field as a hyperlink in Magento 2 Grid

texts:
I've created a custom grid, and in my custom grid there is a product id column, I've created it like this:

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

The problem is that I need to make each record of product id in grid as hyperlink to redirect to product page, is there a way to do this?


texts: How do I get sale_order_item table data by using injection method?

texts:
I am trying to use the itemFactory to get last 30 minutes (updated_at) data from sales_order_item table , but not success. Anyone can hep to verify where I did wrong?
use Magento\Sales\Model\Order\ItemFactory as itemFactoryCollection;

   protected $itemFactory;

  public function __construct(
        itemFactoryCollection $itemFactory
    ) {
        $this->itemFactory = $itemFactory;
    }

public function getOrderItems(): itemFactory
    {
        $orderItemCollectData = $this->itemFactory->create()->getCollection();

         $orderItemCollectData->getSelect()
          ->where(
                'updated_at >= ?',
                $orderItemCollectData->getConnection()->getDateSubSql(
                    new Zend_Db_Expr('NOW()'),
                    '30',
                    AdapterInterface::INTERVAL_MINUTE
                )
            );
        return $orderItemCollectData;
    }

$OrderItems = $this->getOrderItems();


texts: Magento2.4 stop ajax add to cart redirect

texts:
Magento2.4 How do I stop Ajax add to cart?
Following is the code in addtocart.phtml
<script type="text/x-magento-init">
    {
        "#product_addtocart_form": {
            "Magento_Catalog/js/validate-product": {}
        }
    }
</script>


texts: Add new checkout step to force user registration

texts:
I want to add a new checkout step, and It checks whether the user is logged in or not. If yes, the user can skip this step and go to next step (shipment step), if not, the user needs to register in this step.

I am very new in Magento so I need your help on how to do it.
I have read this

http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_new_step.html

but I don't know how to collect the input field and create a customer. I want this happen only when the place order is clicked and the order can link to this newly created customer.

Could anyone help me on this!!


texts: Magento 2.2.2 Differet Store Category page was give 404 error

texts:
Magento 2.2.2 website Category Page Give 404 Error into Different Store , Into Default Store it is worked Fine .

I have Reindex Many time and also i have cleared Cache Many Times But No any kind of Solution Find .


texts: How can I set data from controller to .phtml file in magento

texts:
I have created a custom module and there are some drop downs in it. I have done all the things in .phtml file as pure php.

How can I change that to correct way code in my .phtml file:

<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$resource = $objectManager->get('Magento\Framework\App\ResourceConnection');
$connection = $resource->getConnection();

$tableColor = $resource->getTableName('color_price');

$sql = "SELECT * FROM " . $tableColor;
$color = $connection->fetchAll($sql);
?>

drop down like below its in .phtml file too:

Frame Color

<select id="color">
<?php
foreach($color as $c){ ?>
    <option value="<?php print_r($c['price_component']);?>"><?php print_r($c['color']);?></option>
<?php
}
?>
</select>

below code is my layout.xml file

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"
layout="1column">

        <referenceContainer name="content">
            <block class="Test2\Helloworld\Block\Helloworld"
            name="helloworld" template="helloworld.phtml" />
        </referenceContainer>

</page>

  what is the correct way of doing this. now all the things in .phtml file


texts:
I want to Manually change all order address to a specific city. So right now user can just input and city. But I would like to add some validation or change the behavior of save order function. So basically when someone enters a billing address then clicked on the Place Order, I would then change it's city to a default value regardless if they inputted a value in the city. How do I achieve this? I tried using plugin but didn't work. I also tried to override the behavior of SavePaymentInformationPlaceOrder but still now luck below is what I did
in my plugin I have this
 public function beforeSavePaymentInformationAndPlaceOrder(
    \Magento\Checkout\Api\GuestPaymentInformationManagementInterface $subject,
    $cartId,
    $email,
    \Magento\Quote\Api\Data\PaymentInterface $paymentMethod,
    \Magento\Quote\Api\Data\AddressInterface $billingAddress = null
) {

    $billingAddress->setPersonalMessage("Abc123"); // Personal Message is a custom message that we have
    $billingAddress->save();

}

And this is the value of my di.xml
<type name="Magento\Checkout\Api\GuestPaymentInformationManagementInterface">
    <plugin name="validate-billing-information" type="Vendor\Module\Plugin\Checkout\BillingValidation"/>
</type>

The plugin works but when it execute the Save method I got this error
[2020-09-26 15:37:06] main.CRITICAL: Report ID: webapi-5f6f60228b3a3; Message: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_database`.`quote_address`, CONSTRAINT `QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE), query was: INSERT INTO `quote_address` (`save_in_address_book`, `prefix`, `firstname`, `lastname`, `company`, `street`, `city`, `region`, `postcode`, `country_id`, `telephone`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) {"exception":"[object] (Exception(code: 23000): Report ID: webapi-5f6f60228b3a3; Message: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_database`.`quote_address`, CONSTRAINT `QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE), query was: INSERT INTO `quote_address` (`save_in_address_book`, `prefix`, `firstname`, `lastname`, `company`, `street`, `city`, `region`, `postcode`, `country_id`, `telephone`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) at /home/vagrant/code/vendor/magento/framework/Webapi/ErrorProcessor.php:208, Zend_Db_Statement_Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_database`.`quote_address`, CONSTRAINT `QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE), query was: INSERT INTO `quote_address` (`save_in_address_book`, `prefix`, `firstname`, `lastname`, `company`, `street`, `city`, `region`, `postcode`, `country_id`, `telephone`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) at /home/vagrant/code/vendor/magento/framework/DB/Statement/Pdo/Mysql.php:110, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_database`.`quote_address`, CONSTRAINT `QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE) at /home/vagrant/code/vendor/magento/framework/DB/Statement/Pdo/Mysql.php:91)"} []


texts: Magento2 : Change the number of an existing invoice

texts:
We moved from a different shop sytem to Magento 2.3 and customers already made some orders (Yay!). Due to some regulations all invoice numbers must be continuous.

How can I change the number of an already existing invoice?

Currently the latest invoice in Magento has the number "000000012" and I'd like to change it to "000004108" (for example) since the latest invoice was "000004107" in the old system.

I already found out about the table sequence_invoice_1 which I can modify to set the correct value for the next orders. Modifying existing values in this table did not affect exiting invoices. I suspect there must be some modifications done in the tables sales_invoice or sales_invoice_grid.

Any help is appreciated!


texts: Maximum number of orders can hold by Magento in its lifetime

texts:
By default, the magento order increment id is 9 digits something like #000000034 and wanted to know what if the order increment id reaches #999999999. So I have edited the table eav_entity_store, updated the increment_last_id value as 999999999 and placed two orders. I got the new increment Ids as 11000000000 and 11000000001. So its clear for me that the order is not stopping at 999999999 and its still growing. However I am not sure about the maximum limit.

Do anyone having any idea on what will be the maximum number of orders can a Magento website hold in its lifetime, since our current store can be filled up with thousands of orders everyday and not sure if it reaches any maximum limit?


texts: Accessing directly one server from a load balancer

texts:
I have my magento website at http://www.domain.com. This is linked to the load balancer with 4+ webserver behind.

I need to set up an url like http://www.front1.domain.com to access directly one of the front office server. But I'm always redirected to the base url.

I want to know if a trick exist to allow having only 1 website, 1 store, with multiple url allowing to bypass or not the load balancer.


texts:
When I run the Magento check file (http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento)

On a new Amazon server install it returns the following:

You need PHP 5.2.0 (or greater)'; } else { $pass .='
You have PHP 5.2.0 (or greater)
'; } if(!ini_get('safe_mode')) { $pass .='
Safe Mode is off
'; preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version); if(version_compare($version[0], '4.1.20', '<')) { $fail .= '
You need MySQL 4.1.20 (or greater)
'; } else { $pass .='
You have MySQL 4.1.20 (or greater)
'; } } else { $fail .= '
Safe Mode is on
'; } foreach($extensions as $extension) { if(!extension_loaded($extension)) { $fail .= '
You are missing the '.$extension.' extension
'; } else{  $pass .= '
You have the '.$extension.' extension
'; } } if($fail) { echo '
Your server does not meet the following requirements in order to install Magento.'; echo '
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:'; echo '

'.$fail.'
'; echo 'The following requirements were successfully met:'; echo '
'.$pass.'
'; } else { echo '
Congratulations! Your server meets the requirements for Magento.

'; echo '
'.$pass.'
'; } } ?>

Magento runs fine and I have no problems?


texts: Magento 2: How to hide address information during register new account

texts: I don't remember where is option in backend how to hide fields with address information during reg new account.


texts: Pull through just a template and not the whole site via ajax

texts:
I am creating an attribute filter. When you click on an attribute value I would like an ajax request to pull through just the part of the module that displays the product list. However, I am getting the entire site fired back to me through console!

In my index controller:

public function indexAction()
{

    if ($this->getRequest()->isXmlHttpRequest()) {
        $this->loadLayout();
        $this->getLayout()->getBlock('product_list');
        $this->renderLayout();
    } else {
        $this->loadLayout();
        $this->renderLayout();

    }
}

How can I just push through the product_list block?

Any help is appreciated.

--- UPDATE ----

I did it like this... is this the best way?

    if ($this->getRequest()->isXmlHttpRequest()) {
        $this->loadLayout();
        echo $this->getLayout()->getBlock('toxicfox.giftfinder.view')->getChildHtml('product_list');

    } else {
        $this->loadLayout();
        $this->renderLayout();
      }


texts: How Proxy object declaration helps in DI?

texts:
My understanding is Object Manager instantiates objects before there were injected into any other class's Constructor OR whenever new classes use OM's create method. from then on only instances will be given to dependent class's constructors. can you point that spot in code where object manager creates list of all classes objects may be at the bootstrap time ? Please correct . can you point that spot in code.

Assuming that,  when one of some_other_class's _constructor() has  a parameter as slow loading object , how  declaring proxy argument make difference because object manager only providing instance of object at that time of DI ?


texts: Move product review before quantity on product detail page in magento 2

texts: I have override product.info.review block and now I want to display my output before quantity field . This is the code of catalog_product_view file for move this but it is not working


texts: How to override getAddUrl in class Mage_Checkout_Helper_Cart?

texts:
I have a problem with changing getAddUrl() method in magento. In this method:

public function getAddUrl($product, $additional = array())
    {
        $routeParams = array(
            Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->_getHelperInstance('core')
                ->urlEncode($this->getCurrentUrl()),
            'product' => $product->getEntityId(),
            Mage_Core_Model_Url::FORM_KEY => $this->_getSingletonModel('core/session')->getFormKey()
        );

        if (!empty($additional)) {
            $routeParams = array_merge($routeParams, $additional);
        }

        if ($product->hasUrlDataObject()) {
            $routeParams['_store'] = $product->getUrlDataObject()->getStoreId();
            $routeParams['_store_to_url'] = true;
        }

        if ($this->_getRequest()->getRouteName() == 'checkout'
            && $this->_getRequest()->getControllerName() == 'cart') {
            $routeParams['in_cart'] = 1;
        }

        return $this->_getUrl('checkout/cart/add', $routeParams);
    }

we have line:

Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->_getHelperInstance('core')
                ->urlEncode($this->getCurrentUrl()),

I need to change the current url to another:

Mage::getSingleton('core/session')->getLastUrl()

But i do not know what is the proper way to do this.
Thanks in advance for all tips.


texts: Unable add product to cart after changing from production mode to developer mode

texts:
After changing magento2 from production mode to developer mode, I cannot add product to cart.
When click "add to cart" button, it just shows "Adding" and nothing happen.

Environment :
Window 8
PHP 7
Properly set permission on pub/static and var/generation var/view_preprocessed according http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html


texts: How to override a method in a vendor module?

texts:
Hi so i wrote this code to override a method in the woom cmstree module. But it seems like, something is wrong and i have used an entire day to figure it out, without any success.
My Vendor/MyModule/Block/Widget/Children.php
<?php

namespace Vendor\MyModule\Block\Widget;

class Children extends \Woom\CmsTree\Block\Widget\Children

{

protected $belongsToMenu = "";

public function prepareLinks($treeChildren, $first = false)
{
    $html = '';

    some random code

    return $html;
}
}

My etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Woom\CmsTree\Block\Widget\Children" type="Vendor\MyModule\Block\Widget\Children" />
</config>

So this is how i did it. And i of course got the registration file and module.xml
But when i go to the page where this widget is used i get this error
[2021-03-04 20:56:22] main.CRITICAL: Error: Class 'Vendor\Mymodule\Block\Widget\Children' not found in /home/sonose2/public_html/generated/code/Vendor/Mymodule/Block/Widget/Children/Interceptor.php:7

I have been look at some examples but the are exact as mine and i have been trying alot of other stuff and now i ran out of ideas what to do.


texts: Send Order Confirmation after payment successful

texts:
I am new to Magento and took over an already developed site which required some changes.

One of these changes are that an order confirmation should not be sent when the order is placed, but rather after payment is completed. I only have one payment option (Paygate).

How do I go about sending confirmation emails AFTER payment is completed by Paygate? Hell, if I could send the invoice that would even be better.

I don't know what to post, so any comments, and I'll update the question.


texts: How can I build a redirect URL in a magento 2 js component?

texts:
I have added a payment method renderer javascript file to a magento 2 module. I want one of the functions in the js to redirect to another page on the site.

How do I get the base url so that I can generate the full url correctly?

Currently I have this js method renderer:

define(
    [
        'Magento_Checkout/js/model/quote',
        'Magento_Checkout/js/view/payment/default'
    ],
    function (quote, Component) {
        'use strict';

        return Component.extend({
            defaults: {
                template: 'VendorName_ModuleName/payment/mypaymentmethod'
            },

            startPayment: function(){
                var url = "modulename/mypaymentmethod/generatepaymentrequest"
                console.log(url);
                // TODO prepend base url before redirecting
                window.location.href = url;
            },
        });
    }
);


texts: Place order not going to checkout success Magento2

texts:
Why is my payment page redirecting from

checkout/#payment to checkout/cart/?


texts: Orders grid not loading magento 2 (Something went wrong with processing the default view...)

texts:
Info:
Magento 2.3.5
PHP 7.2
database: mariadb-10.2
Hi guys! Had someone already faced this issue on Magento order sales grid? "Something went wrong with processing the default view and we have restored the filter to its original state."

After digging a bit, I saw that it was being caused by a NoSuchEntityException.
Digging a little deeper, it is being thrown in OrderRepository, method get.

I saw that the ID being passed to get method, is actually the increment_Id. I think it it's the wrong behavior, but I have no clue what is causing this issue and how to fix it
Thanks
PS: I tried cleaning the ui_bookmarks table and it didn't work


texts: How can we setup fixed price discount for bundled product?

texts: I want to apply fixed price discount on the bundled product discount. For eg., it should not apply for each bundled item. It should apply for whole bundled product.


texts:
When I want to add a product to compare list I get the error "page not found".
The wishlist works fine, if I access the link from "mydomain/catalog/product_compare/add" it is redirected to "mydomain/catalog/product_compare/index" and it says that there are no product to compare. It happen only when I add product to compare list.


texts:
I'm creating a mailchimp form in CMS page but this line of code is removed once I saved it. That's why once I send a form, no validation to a user if their request was sent or not.

How can I make it stay?

Thanks!


texts: Undefined index: title in Unknown on line 0 while add new integration

texts:
I am getting below message

Notice: Undefined index: title in Unknown on line 0
#0 /var/www/html/projects/humblechic/vendor/magento/module-integration/Helper/Data.php(24)

on clicking Add New Integration under System -> Integrations.
How I can debug this to find out exact reason for this.
I have gone through few articles and came to know that it is due to missing title in any of the modules acl.xml
I want to know exactly which module's acl.xml file missing the title tag.
Is there any way other than turning off the module one by one and check.


texts:
We already know design fallback logic from Magento 1.x:

Current package / Current Theme
Current Package / Default theme
Base Package / Default theme

Now. i want to know What is the design fallback logic in Magento 2.x for theme, layout & template files?

Please describe briefly.


texts: PHP Version Conflict Error While install Composer in Windows7

texts: I cannot able to install composer, PHP version conflict,


texts: how to override framwork class in magento2

texts:
I am trying to override magento/framework/Search/Search class for which I have used in  di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
     <preference for="magento\framework\Search\Search" type="vendorname\moudelname\Search\Search"/>
</config>

I am not able to override the Magento class.


texts: How to put a product in a specific category magento 1.5

texts:
So I have a question, I'm doing a Cron Job for magento where evaluates the date that the administrator puts in one attribute and the category where the product it's going in another attribute(drop-down list), and when the Cron Jobs execute it has to put that product in that specific category that was set on the attribute.

So far I have

   //gets actual date
   $date = Mage::getModel('core/date')->date('Y-m-d H:i:s');
   $collection = Mage::getModel('catalog/product')->getCollection();
   $collection->addfieldtofilter('news_from_date', array(array('to' => $date)));
   foreach($collection as $product) {
      //here it should put the product in the specific category
   }

I hope you guys can help me!

Thanks in advance!


texts: Captcha in Footer newsletter not working after customer login

texts:
I was trying to add a Captcha in footer newsletter form and it worked fine when customer is not logged in, but the Captcha is not showing when I login as a customer. Please help me to fix this.

Config file is as follows

<?xml version="1.0"?>
<config>
    <modules>
        <Vendor_Captcha>
            <version>0.1.0</version>
        </Vendor_Captcha>
    </modules>
    <default>
        <captcha>
            <frontend>
                <areas>
                    <newsletter_captcha>
                        <label>Newsletter form</label>
                    </newsletter_captcha>
                </areas>
            </frontend>
        </captcha>
    </default>
    <global>
        <models>
            <vendor_captcha>
                <class>Vendor_Captcha_Model</class>
            </vendor_captcha>
        </models>
        <events>
            <controller_action_predispatch_newsletter_subscriber_new>
                <observers>
                    <captcha>
                        <type>model</type>
                        <class>vendor_captcha/observer</class>
                        <method>checknewsletter</method>
                    </captcha>
                </observers>
            </controller_action_predispatch_newsletter_subscriber_new>
        </events>
    </global>
</config>

Please check the layout file.

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="footer.newsletter">
            <block type="core/text_list" name="form.additional.info">
                <block type="captcha/captcha" name="captcha">
                    <reference name="head">
                        <action method="addJs"><file>mage/captcha.js</file></action>
                    </reference>
                    <action method="setFormId"><formId>newsletter_captcha</formId></action>
                    <action method="setImgWidth"><width>230</width></action>
                    <action method="setImgHeight"><width>50</width></action>
                </block>
            </block>
        </reference>
    </default>
</layout>

and added the below code in the phtml below the email input box.

<?php echo $this->getChildHtml('form.additional.info'); ?>

observer is as follows

    <?php class Vendor_Captcha_Model_Observer extends Mage_Captcha_Model_Observer{
    public function checkNewsletter($observer)
    {
        $formId = 'newsletter_captcha';
        $captchaModel = Mage::helper('captcha')->getCaptcha($formId);
        if ($captchaModel->isRequired()) {
            $controller = $observer->getControllerAction();
            if (!$captchaModel->isCorrect($this->_getCaptchaString($controller->getRequest(), $formId))) {
                Mage::getSingleton('customer/session')->addError(Mage::helper('captcha')->__('Incorrect CAPTCHA.'));
                $controller->setFlag('', Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH, true);
                $controller->getResponse()->setRedirect(Mage::getUrl(''));
            }
        }
        return $this;
    }
}

Please help me to solve this. Thanks.


texts: Custom admin backend module page in Magento 1.x - blank page (layout not loading)

texts:
I am trying to follow http://alanstorm.com/magento_admin_hello_world_revisited tutorial and setup a custom admin module in magento 1.9.x.

The downloadable boilter plate http://alanstorm.com/2013/projects/Pulsestorm_Adminhello.tar works fine. When its uploaded to magento, I can see the following:

When you click the Example menu item, you see a blank page.

So, I want to now load my own .phtml into the view. So, on the module's config.xml I've added the following:

app/code/community/Pulsestorm/Adminhello/etc/config.xml

<?xml version="1.0"?>
<config>
    ...
    <adminhtml>
        <layout>
            <updates>
                <adminhello>
                    <file>adminhello.xml</file>
                </adminhello>
            </updates>
        </layout>
    </adminhtml>
</config>

Then I created the following layout xml file:

app/design/adminhtml/default/default/layout/adminhello.xml

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

    <adminhtml_adminhello_index>
        <block type="core/template" output="toHtml" name="templateBlock" template="adminhello/index.phtml">
    </adminhtml_adminhello_index>

</layout>

Then I created the following template phtml file:

app/design/adminhtml/default/default/template/adminhello/index.phtml

<b>Hello World</b>

When I refresh the page (Pulse Storm -> Example), I still see a blank page. What am I missing here?


texts:
I tried so many ways to override the following file: vendor/magento/module-catalog/Model/Product/Gallery/CreateHandler.php but this file always runs from the core file.

I also added this file in the di.xml file. But it still doesn't work.

di.xml :

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

<preference for="Magento\Catalog\Model\Product\Gallery\CreateHandler" type="Company\ModuleName\Model\Product\Gallery\CreateHandler" />
</config>

I want to override processNewAndExistingImages() function from this file.

How can I do that?

Please help me.

Thanks.


texts: Magento 2. Log Out the Customer from all other machines

texts:
The customer should be logged out from all other machines at login.

Is this something that Magento offers?
How would I achieve this? Some pointers where to start from | Where to look. I'm not expecting someone to provide me with an extension.

Thank you


texts: Google Analytics tracking code in the checkout issue

texts:
I m trying to implement the steps from the tracking code for onepage checkout. I expected to have smth like this:

ga('ec:setAction','checkout', {
    'step': 1,  // or  'step': 'payment'
});

By doing this:

Checkout.prototype.gotoSection = Checkout.prototype.gotoSection.wrap(function(parentMethod, section, reloadProgressBlock) {
       parentMethod(section, reloadProgressBlock);
       var _gaq = _gaq || [];
       _gaq.push(['_trackPageview', '<?php echo $this->getUrl('checkout/onepage'); ?>' + section + '/']);
});

I followed this article, but I don't get any results in the analytics.

Any idea what am i doing wrong? thx


texts: Magento 2.4.2 increase max_result_window ES when reindex

texts:
I am wondering if there is a way to increase ElasticSearch max_result_window number every time magento is trying to reindex.
I am having this issue with magento 2.4.2
Layered navigation category pages not loading because of max_result_window error in ElasticSearch.
Default is 10000 and I need 10800.
So I tried this:
curl -XPUT "http://localhost:9200/_settings" -d '{ "index" : { "max_result_window" : 20000 } }' -H "Content-Type: application/json"

which resolves my issue but everytime magento reindex through cron it resets max_result_window to default 10000.
I tried to check where magento set this max_result_window number but no luck.
Any help please??


texts:
I have a specific requirement.

Buy 2 of same item (no need to color match) and Get 1 of them 50% Off.

Case 1 :-
Here the main thing is that if there are two simple products
Red and Green of an configurable product and each has qty 1 in the
cart then 50% discount of any one of the item should be given to the
customer. So let say
Red -> $50    qty 1
Green -> $50  qty 1
============
SubTotal = $100
Discount    = $25
Grand Total = $75

Case 2:- The next case is that if there is just a simple product and
if it has 2 qtys in the cart then also 50% of the price should be
deducted from the cart.

Red -> $50 (qty 2)
============
SubTotal = $100
Discount = $25
Grand Total = $75

case 3 :- is the combination of case 1 and case 2 . It should work
even if both the above cases are there in cart.


texts: I want to get images form product gallery of a product and display them one by one in Product detail page

texts:
This is the gallery.phtml code  which is displaying main thumbnail image only

    <?php
$images = $block->getGalleryImages()->getItems();
$mainImage = current(array_filter($images, function ($img) use ($block) {
    return $block->isMainImage($img);
}));

if (!empty($images) && empty($mainImage)) {
    $mainImage = $block->getGalleryImages()->getFirstItem();
}

$helper = $block->getData('imageHelper');
$mainImageData = $mainImage ?
    $mainImage->getData('medium_image_url') :
    $helper->getDefaultPlaceholderUrl('image');

?>

<div class="gallery-placeholder _block-content-loading" data-gallery-role="gallery-placeholder">
    <img
        alt="main product photo"
        class="gallery-placeholder__image"
        src="<?= /* @noEscape */ $mainImageData ?>"
    />
</div>

<script type="text/x-magento-init">
    {
        "[data-gallery-role=gallery-placeholder]": {
            "mage/gallery/gallery": {
                "mixins":["magnifier/magnify"],
                "magnifierOpts": <?= /* @noEscape */ $block->getMagnifier() ?>,
                "data": <?= /* @noEscape */ $block->getGalleryImagesJson() ?>,
                "options": <?= /* @noEscape */ $block->getGalleryOptions()->getOptionsJson() ?>,
                "fullscreen": <?= /* @noEscape */ $block->getGalleryOptions()->getFSOptionsJson() ?>,
                 "breakpoints": <?= /* @noEscape */ $block->getBreakpoints() ?>
            }
        }
    }
</script>

Any solution??????

I want other images also be displayed not only main thumbnail image


texts: how do I show all associated products for configurable products?

texts:
THE SCENARIO :
A sandal with 3 colors: Black, Blue & Green, on the product listing page, we wish to show the Black, Blue and Green sandal separately while still having the ability to show all the colors on the product details page allowing the user to select the one which he wishes to.
The product listing page would look something like this :

clearly showing all the available colors for products. It's a good UI & UX as it shows the richness of the product catalog while allowing the user to visualize each color easily.
The product details page would look something like this :

Thus, from the product listing page, the user may go directly to any color sandal and once on the product details page, he/she has the choice to change the color and visualize the product better.
I have created three configurable products, and each one is related to the other two products, but I cannot get this view that selects the colors while being within the product details
reference
I have also based on this post
I have created three configurable products, and each one is related to the other two products, but I cannot get this view that selects the colors while being within the product details


texts: Magento 2 Check Component Dependency fail

texts:
I'm having problems upgrading Magento 2 (Current version 2.0.7). When I tried to upgrade I got the following error:

Check Component Dependency
We found conflicting component dependencies. Hide detail

For additional assistance, see component dependency help .

My cron job is setup as follows:

* * * * * /usr/bin/php /var/www/html/magento/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/html/magento/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/html/magento/update/cron.php >> /var/www/html/magento/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/html/magento/bin/magento setup:cron:run >> /var/www/html/magento/var/log/setup.cron.log

I have searched for hours upon hours for a solution but can't find a solution. Any ideas on how to fix the problem?


texts:
I have imported as usual my website to work on it in localhost ! this time my site display no CSS no theme, just text.

the online version is :

This is magento 1.9.x

do you have any suggestions please? Thanks in advance.


texts: I want to remove or hide the shipping in order summary like in the picture below, because it will always free shipping. How can i remove it?


texts: best way to display 55 million product variations of one product?

texts:
I have an external DB that has 55 million unique products. In this case, vehicle license plates. An api returns the results, the only two fields that are significant to the purchase are the price and a seven-digit text field.

I was thinking the best way to handle this would be to set up one product that I can pass these two variables to once a customer has selected his license plate from the results.

Does anybody have any better suggestions?


texts: Inside admin when i click on system i'm throwing an error on m2 2.2.5

texts:
I've tried to change the ID name but it did not work.

1 exception(s):
Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists

Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists
#0 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(93): Magento\Framework\Data\Form->checkElementId('system_cron_tem...')
#1 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/AbstractForm.php(157): Magento\Framework\Data\Form\Element\AbstractElement->addElement(Object(Magento\Framework\Data\Form\Element\Select), false)
#2 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/Element/Fieldset.php(212): Magento\Framework\Data\Form\AbstractForm->addField('system_cron_tem...', 'select', Array, false)
#3 /chroot/home/this/my.com/html/vendor/magento/module-config/Block/System/Config/Form.php(392): Magento\Framework\Data\Form\Element\Fieldset->addField('system_cron_tem...', 'select', Array)

I tried changing the ID here: vendor/magento/module-cron/etc/adminhtml/system.xml

It did work.


texts: Magento 2.3.1 data migration transform field values

texts:
I'm trying to trasform some field values during data migration from Magento 1.9.4.0 to Magento 2.3.1.

In map.xml I added the following:

<source>
    - - -
    <field_rules>
       - - -
       <move>
            <field>m_helpdesk_ticket.is_spam</field>
            <to>mst_helpdesk_ticket.folder</to>
        </move>
        <transform>
            <field>m_helpdesk_ticket.is_spam</field>
            <handler class="\Migration\Handler\Convert">
                <param name="map" value="[0:1;1:3;]" />
            </handler>
        </transform>
    </field_rules>
</source>

But i get the following error:

[2019-06-21 20:20:36][ERROR]: Invalid map provided to convert handler
In Data.php line 126:

  Data Migration failed

What I need is:

m_helpdesk_ticket.is_spam = 0 should be transfered as mst_helpdesk_ticket.folder = 1

and

m_helpdesk_ticket.is_spam = 1 should be transfered as mst_helpdesk_ticket.folder = 3

What is wrong in param tag?


texts: Magento 2 assigning Custom User resources in User roles

texts:
When I am trying to create a new User role.

After selecting the Custom resource List is Not showing, Can u Please help me how I can do this.

I what to Create a login for Product Manager to Upload Product details.


texts: Magento 2 : How to call block file in order email with order variable?

texts:
Want to add some text/content in order email which is dependent on order data.

For this I want to call a template file, where I can get the order data and based on that I want to perform my calculation.

How can I call this template in order email ?


texts: How to treat POST data incoming to Magento

texts: I prepare little integration for Magento 2.1 with some other app, comunicating with reqeusts containing $_POST data. Are there any good practices how to treat such a data incoming to store? Should I trim() it and strip_tags() and so on? Or there are some steps performed by Magento or PHP by themselves?


texts: how to do paypal sandbox mode testing in magento?

texts:
I want to test paypal express payment gateway by enabling the sandbox mode.I have enabled it by setting "yes" in the sandbox mode .I don't understand why the cart page simply gets refresh while clicking on paypal button.
I have no idea how to know what is going on .
How can I know what error occurs and how to solve it ?
Thanks.


texts: Magento2 : Custom Category Attribute Not Showing on Frontend

texts:
I've create a module to add a custom attribute to my categories, however my code doesn't seem to be display the attribute on frontend. i dont know where i am wrong.
app/code/Vendor/Module/Setup/InstallData.php
 use Magento\Framework\Setup\InstallDataInterface;
 use Magento\Framework\Setup\ModuleContextInterface;
 use Magento\Framework\Setup\ModuleDataSetupInterface;
 use Magento\Eav\Setup\EavSetup;
 use Magento\Eav\Setup\EavSetupFactory;

class InstallData implements InstallDataInterface
{

private $eavSetupFactory;

/**
 * Constructor
 *
 * @param \Magento\Eav\Setup\EavSetupFactory $eavSetupFactory
 */
public function __construct(EavSetupFactory $eavSetupFactory)
{
    $this->eavSetupFactory = $eavSetupFactory;
}

/**
 * {@inheritdoc}
 */
public function install(
    ModuleDataSetupInterface $setup,
    ModuleContextInterface $context
) {
    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

    $eavSetup->addAttribute(
        \Magento\Catalog\Model\Category::ENTITY,
        'attribute_code',
        [
            'type' => 'int',
            'label' => 'Attribute Label',
            'input' => 'select',
            'sort_order' => 333,
            'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean',
            'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_STORE,
            'visible' => true,
            'required' => false,
            'default' => 0,
            'visible_on_front' => true,
            'group' => 'General Information'
        ]
    );
}
}

/app/code/Vendor/Module/view/adminhtml/ui_component/category_form.xml
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="general">
    <field name="attribute_code" sortOrder="20" formElement="checkbox">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="source" xsi:type="string">category</item>
                <item name="default" xsi:type="number">0</item>
            </item>
        </argument>
        <settings>
            <validation>
                <rule name="required-entry" xsi:type="boolean">false</rule>
            </validation>
            <dataType>boolean</dataType>
            <label translate="true">Attribute Label</label>
        </settings>
        <formElements>
            <checkbox>
                <settings>
                    <valueMap>
                        <map name="false" xsi:type="string">0</map>
                        <map name="true" xsi:type="string">1</map>
                    </valueMap>
                    <prefer>toggle</prefer>
                </settings>
            </checkbox>
        </formElements>
    </field>
</fieldset>


texts: How do I remove <meta name=... from head

texts:
How can i remove
<meta name="keywords" content="keyword"/>
from head through layout.xml?


texts: Receiving error while installng magento community extension via magentoconnect

texts:
While trying to install a magento community extension via magento-connect i am receiving an error - "community/slider: No releases for 'slider', skipping". I have tried it with different magento versions.I have successfully installed it on magento-1.9.2.2. But it is not working with magento 1.7 and 1.8. Tried many things provided on internet but nothing worked for me.

I am also the developer of this extension (the extension which i am trying to install). Let me know if it can be a setting issue of uploading my extension on magento connect.

Please help if anyone knows how to resolve this.


texts: I currently have a live website (Say www.abc123.com)in my folder "public_html/abc123.com". It is currently on magento 1.7.0.2 and I have been told that to upgrade to 1.9.1 is sometimes complicated. So my question is am I able to install a fresh new magento 1.9.1 in a sub folder (public_html/abc123.com/magento), work on it, then once it is done and ready to go, I simply point my domain to the sub-folder. This way, I won't get any downtime as well. I also understand that my database and order history will start all over.


texts:
My magento installation has 3 stores (domain+language). I would like to update custom attributes for products. When I call
GET products/my_test_sku?storeId=1

i get something like the following json:
{
    "id": 1036,
    "sku": "my_test_sku",
    :
    "custom_attributes": [
        {
            "attribute_code": "question_color",
            "value": "#fa45a4"
        },
        :
    ]
}

I can not figure out how to update values for these custom attributes using some POST or PUT api call. The values are different for each storeId.
I really appreciate any help :-)
Kind regards - Mikkel


texts: Magento2 Get website_ids in product get api

texts:
Magento2 get website_ids in product get api means product is assigned to which websites.

This is issue generated in github: https://github.com/magento/magento2/issues/5773
, but there still not any solution.


texts: Address validation with partial address information (ZIP only)

texts:
I need to add the ZIP field on the sign-up page.

I enabled the setShowAddressFields parameter in order to show address fields, then I overrode the file /template/persistent/register.phtml to show only the ZIP field.

Of course, the address validation fails and so I googled for the solution, but I only found some indication to modify the DB and the Zend validation function. I don't want do that, because I need address fields required during the checkout process.

So, any idea to simply show and store the ZIP field?


texts: onestep checkout continue button wont advance

texts:
Ok Ive read like every other article resembling my problem and still cant come up with a solution for my personal problem here.

So here is what happened.

Last week i wanted to find out how to change the url instance of a button on my home page.  So i turned on Template Path Hints to "ON", and Block Hints "ON" under my main web page config/dev. panel.  I hit update config, and it crashed and just went to that white admin login page that you cant actually log into.  Then i saw my frontend was down also.  I googled the problem, and was able to fix it by deleting the entire cache folder in var.  Now after that the next day i noticed i no longer could upload images to edit a static block via the little upload popup box that would usually appear.  I was like ok. So i tried it in google chrome and it worked.  So I just figured it was Firefox acting up.  Now the next day the popup box disappeared in google chrome too.  So i just edited my static blocks via ftp upload.  Now i had a customer try to check out this weekend and was unable to due to this particular error.  No one can seem to click the continue button on this page. fusion checkout page  When i inspect the button element through Firefox i notice it says "function expected"  I think it used to give me a error like "e is not a function" but i cant find that now.  While in the admin panel i would click the blank popup box that would appear when trying to upload a image, and it would give me a very similar or identical error.  So i think something happened when it crashed, but i cant seem to figure it out.  Also i would like to add that i tried switching to the rwd, and default themes, and they are also not working.  Any  help on this guys would be amazing, as im losing business each day this down. Thanks in advance, and ill try and provide any extra detail you might need.

Fusion Art Glass

Magento Version: 1.9.2.4