texts:
I am try to upgrade magento 2.0.0 to 2.1.7

Tutorial : magento.stackexchange.com

After upgrade Back-end changed to 2.1.7, but front end looking like,

Note :

  Refused to apply style from
  MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
  Uncaught TypeError: Unable to process binding "css: function(){return { empty:cart().summary_count == 0} }"
  Message: cart is not a function
      at css (eval at createBindingsStringEvaluator (knockout.js:2624),

Note :

[DOM] Found 2 elements with non-unique id #email: (More info: https://goo.gl/9p2vKq) <input name="login[username]" value autocomplete="off" id="email" type="email" class="input-text" title="Email" data-validate="{required:true, 'validate-email':true}" aria-required="true"> <input name="login[username]" value autocomplete="off" id="email" type="email" class="input-text" title="Email" data-validate="{required:true, 'validate-email':true}" aria-required="true">
(index):1 [DOM] Found 2 elements with non-unique id #newsletter: (More info: https://goo.gl/9p2vKq) <input name="email" type="email" id="newsletter" placeholder="Enter your email address" data-validate="{required:true, 'validate-email':true}"> <input name="email" type="email" id="newsletter" placeholder="Enter your email address" data-validate="{required:true, 'validate-email':true}">
(index):1 [DOM] Found 2 elements with non-unique id #pass: (More info: https://goo.gl/9p2vKq) <input name="login[password]" type="password" autocomplete="off" class="input-text" id="pass" title="Password" data-validate="{required:true, 'validate-password':true}" aria-required="true"> <input name="login[password]" type="password" autocomplete="off" class="input-text" id="pass" title="Password" data-validate="{required:true, 'validate-password':true}" aria-required="true">
(index):1 [DOM] Found 2 elements with non-unique id #popup-login-form: (More info: https://goo.gl/9p2vKq) <form class="form form-login" action="http://localhost/beta/customer/account/loginPost/" method="post" id="popup-login-form" novalidate="novalidate">…</form> <form class="form form-login" action="http://localhost/beta/customer/account/loginPost/" method="post" id="popup-login-form" novalidate="novalidate">…</form>
(index):1 [DOM] Found 2 elements with non-unique id #send2: (More info: https://goo.gl/9p2vKq) <button type="submit" class="action login primary" name="send" id="send2">…</button> <button type="submit" class="action login primary" name="send" id="send2">…</button>
jquery-migrate.js:41 JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack()
migrateWarn @ jquery-migrate.js:41
jquery-migrate.js:43 console.trace
migrateWarn @ jquery-migrate.js:43
/beta/customer/section/load/?sections=cart&update_section_id=false&_=1526040812897:1 Failed to load resource: the server responded with a status of 404 (Not Found)
customer-data.js:86 Uncaught Error: [object Object]
    at Object.<anonymous> (customer-data.js:86)
    at fire (jquery.js:3099)
    at Object.fireWith [as rejectWith] (jquery.js:3211)
    at done (jquery.js:9312)
    at XMLHttpRequest.callback (jquery.js:9720)
2knockout.js:3012 Uncaught TypeError: Unable to process binding "css: function(){return { empty:cart().summary_count == 0} }"
Message: cart is not a function
    at css (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:71)
    at update (knockout.js:3803)
    at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout.js:3004)
    at evaluateImmediate (knockout.js:1737)
    at Object.ko.computed.ko.dependentObservable (knockout.js:1946)
    at knockout.js:3002
    at Object.arrayForEach (knockout.js:151)
    at applyBindingsToNodeInternal (knockout.js:2974)
    at applyBindingsToNodeAndDescendantsInternal (knockout.js:2854)
    at applyBindingsToDescendantsInternal (knockout.js:2836)


texts:
Issue

I would like to populate a CMS static block with a list of sub-categories of the parent category, separated by the first letter of each sub-category.

The desired result

Brands (A)

Adidas, Asics

Brands (B)

Berghaus, Barbour

Each brand name should link to it's respective category.

Can you please suggest how this can be done in Magento 2?


texts: Disable click in parent button (just one button)

texts:
How can i disable one button of menu? I tried this code but this is disable all the button where is the problem?

In this address i change the code:

app/code/local/my-theme-name/navigation/block/navigation.php

In this file i remove this code:

$html[] = 'getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '' . $this->escapeHtml($category->getName()) . '';
$html[] = '';

and replace this code instead of above:

  if($level==0){
    $html[] = '';
    $html[] = '' . $this->escapeHtml($category->getName()) . '';
    $html[] = '';
    }else{
    $html[] = 'getCategoryUrl($category).'"'.$linkClass.'>';
    $html[] = '' . $this->escapeHtml($category->getName()) . '';
    $html[] = '';
}

but all the buttons be disable, i want just one of them be disable, how can i fix this code?


texts: How to set up a promotion to offer a free soap when two products when two products from a specific range are purchased

texts:
I'm looking to set up a promotion on Magento 2.1 as follows; buy two products from a specific range, with a value of £20 or more and receive a free product.

There are products within this range that’d we’d like to exclude so I’m looking to select the products that need to be bought by SKU.

I’ve tried a few options but it’s allowing a free gift to be added when products from other ranges are added along with only one of the products from the promotion range and the value is over £20.


texts: Magento SOAP v2 attributes parameter for product

texts: According to the API Docs, one can specify an array of attributes as a parameter when retrieving a product. What is the purpose in that?


texts: I have ui component grid showing on the frontend but I want to show it in my custom phtml that remove header footer etc. How I can achieve this.


texts: how to remove Container and Template form widgets layout update field?

texts: As Shown Image Want To Remove Container And Template


texts: Different prices for different store views

texts:
I've been looking into this alot to try figure out what is going on.

http://docs.magento.com/m2/ce/user_guide/catalog/catalog-price-scope.html

This page on Magento docs says

Different factors can affect the price of the same product in one location and not another. For example, there might be additional costs to bring the product to market, and other considerations that impact the price of products sold in a specific store. The following illustration shows a multisite installation with the base currency set to the website level. In each store, the same product has a different price

My current setup has 1 website, inside this I have two stores €+£ and a corresponding store view for each €+£ again. My base currency is £ but both currencies are allowed in both store views. My Catalog Price Scope is set to Website, not Global.

According to the documentation above this should be working to set different prices for different stores but updating the price of a catalog item for one store view updates the prices for all.

I know from researching this that there is a few different paid extensions for this such as https://bsscommerce.com/magento-multiple-store-view-pricing-for-magento-2.html but I don't see why these are necessary if according to Magento docs it should just work.


texts: Magento 2: Display configurable product price as 0 when no product options are selected on product page

texts: I want to set configurable product price as 0 when no options are selected. and update appropriate price when user selects the product options.


texts: Magento 2 trigger product custom tab to open on click

texts:
I would like to trigger click on custom tab from another source.
E.g. Be the first to review this product anchor.

This triggers the reviews tab to open. How to achieve this with a custom tab or any other default tab ?

Thanks.


texts: Not valid template file:adminhtml/base/default/template/foldername/innerfolder/Info.phtml

texts:
I am working on a custom module, Grid section is working fine, I want to view the data in my custom tab,

This is my code.

app/code/local/Folder/Modulename/Block/Adminhtml/Adminquote/View/Tabs.php

$this->addTab("form_section", array(
        "label" => Mage::helper("adminquote")->__("Quotation Details"),
        "title" => Mage::helper("adminquote")->__("Quotation Details"),
        "content" => $this->getLayout()->createBlock("adminquote/adminhtml_adminquote_view_tab_info")->toHtml(),
        "active" => true
));

app/code/local/Folder/Modulename/Block/Adminhtml/Adminquote/View/Tab/Info.php

class Folder_Modulename_Block_Adminhtml_Adminquote_View_Tab_Info extends Mage_Adminhtml_Block_Template implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
    protected function _construct()
    {
      parent::_construct();
      $this->setTemplate('adminquote/view/info.phtml');
    }
}

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

<adminquote_adminhtml_adminquote_view_tab_info>
<reference name="content">
   <action method="addTab">
      <name>adminhtml_adminquote_view_tab</name>
      <block>adminquote/adminhtml_adminquote_view_tab_info</block>
   </action>
 </reference>

etc/config.xml

<?xml version="1.0"?>
<config>
<modules>
    <Folder_Modulename>
        <version>1.0.1</version>
    </Folder_Modulename>
</modules>
<global>
    <blocks>
        <Folder_Modulename>
            <class>Folder_Modulename_Block</class>
        </Folder_Modulename>
    </blocks>
</global>
<adminhtml>
   <layout>
        <updates>
            <modulename>
                <file>adminquote.xml</file>
            </modulename>
        </updates>
    </layout>
</adminhtml>
</config>

I am getting error in system.log

2019-01-09T11:52:36+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/adminquote/view/Info.phtml

Info.phtml file exists in that path.

I don't know why its showing template not valid, Can anyone suggest me to fix this,

Thanks.


texts: 404 error when changing language on category

texts:
I've got a shop with two store:

DE (Store name: DE), (Store view: de, code: de)
UK (Store name: UK), (Store view: en, code: en)

By default, the shop is DE (German)

I've got a 404 error when : I go to the shop, go on a category and try to change the language to en (English).

I figure out that :

sitename.com/en/modern-carpets.html?___store=en&___from_store=de -> work

sitename.com/en/modern-carpets.html -> doesn't work

And also that if I switch off my cookies in my browser, everything is working.

I am using magento community 1.9.1.0

Already thank you that you took time to read my issue.


texts: Why would $this->getFormKey() fail silently in $APPHOME/downloader/template/login.phtml?

texts:
I'm having an issue in $APPHOME/downloader/template/login.phtml where <?php echo $this->getFormKey() ?> is failing silently, and the rest of the page is refusing to render.  Of course this is making it impossible to log in to the Magento Connect Manager, which is where I need to be adding an extension or two.

Here's a screenshot of the broken Connection Manager login page:

Of course this isn't too helpful without where the code is broken:

As is indicated in the source view, the value tag in first (hidden) input method attempts to parse $this->getFormKey(), evidently, and fails, halting rendering of the rest of the page.

I'll admit that I'm still a bit mystified where it comes to the magic getters/setters in Magento.  I've worked on tracing down where this code may lay, and the closest I've gotten so far is $APPHOME/downloader/Maged/Model/Session.php at line 106, in the authenticate() method.

If anybody has any ideas why this may be happening, how to fix it, or where I might go for more information (other than just the general magic getters/setters page, which I'm still re-reading over and over), I would be very appreciative.  Any pointers are helpful.


texts: Add a JS file to index page for custom jQuery

texts:
I've written a jQuery file that creates a dialog box to let the user search for store a location near them, and I've included the HTML necessary for this function on the "header.phtml" page in app/code/design/frontend/rwd/default/template/page/html/header.phtml.

When I include the script directly on header.phtml, I have no problems with the modal.

I have placed my jquery script in the JS folder of the magento root.
However, when I try to just include the JS file, it doesn't show up as an included JS file. I tried adding the reference to the file in page.xml that corresponds to header.phtml, but it still wont work.

 <label>All Pages</label>
    <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">

        <block type="page/html_head" name="head" as="head">
            <action method="addJs"><script>prototype/prototype.js</script></action>
            <action method="addJs"><script>lib/ccard.js</script></action>
            <action method="addJs"><script>prototype/validation.js</script></action>
            <action method="addJs"><script>scriptaculous/builder.js</script></action>
            <action method="addJs"><script>scriptaculous/effects.js</script></action>
            <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
            <action method="addJs"><script>scriptaculous/controls.js</script></action>
            <action method="addJs"><script>scriptaculous/slider.js</script></action>
            <action method="addJs"><script>varien/js.js</script></action>
            <action method="addJs"><script>varien/form.js</script></action>
            <action method="addJs"><script>varien/menu.js</script></action>
            <action method="addJs"><script>mage/translate.js</script></action>
            <action method="addJs"><script>mage/cookies.js</script></action>
            <action method="addJs"><script>pathtomyfile/location.js</script></action>

Is there a step that I missing to get this file to be referenced properly?

Am I placing this reference in the wrong layout file?


texts: Creating configurable product showing only one attribute

texts:
I have two attributes.

Color
Size

admin
Showing single attribute when creating configurable product. Next step shows multiple colors but only single size.
product view pages

after creation, only colors is showing but no size attribute at product view pages
http://i.stack.imgur.com/jmL2l.png


texts: What's the best way to customize the css in Magento 2?

texts:
I created my theme as Luma child but I cannot really understand what's the best way to customize the css. Until now I just wrote all of my styles in _extend.less file but it's a lot of stuff for just 1 file I think! So...
What's the best way and upgrade-proof to extend the Magento Luma theme?

Should I use Magento UI Library?
Should I write all my styles in _extend.less file?
Should I overwrite _theme.less file and customize it?
Should I mix all this up?

Where can I find a specific tutorial or course which clearly explain this? I tried to read the official doc but it's not clear to me.


texts: how to set store views depending device (mobile / desktop) using Mage::run?

texts:
I have created an additional store-view which I want to display if user is on a mobile device.

Saw this link, but I don't want to create an additional store

How can I accomplish this?


texts: Update/Refresh Magento UI grid column data only with Javascript (No Ajax)

texts:
We have created Mass Action status updates in the grid.

Updating the status using the mass action, an ajax call will be initiated and updated the data in the server.
Another ajax call will refresh the UI grid.

Any help on get rid of the second ajax call would be appreciated, since the grid is already using a KO template, I am wondering why don't we just update the column data to get that reflect on the grid to save the second ajax page load time.


texts: magento1.9 : Adding multi domain in multi website

texts: We have added multiple websites in different  domains  but it does not redirect the website, all required setting are  enabled


texts: Access product sku within app/design/frontend/theme/Magento_Catalog/templates/product/price/amount

texts:
Is there a way to get the product sku within the app/design/frontend/theme/Magento_Catalog/templates/product/price/amount.phtml file?

I need to retrieve the product sku value there, because i want to insert it to

fbq('track', 'ViewContent', {
content_type: 'product',
content_ids: /* sku value here */

});


texts: Magento 2, object manager is passing another object then expected, why?

texts:
Just when I think I grasp the Magento 2 object manager and dependency injection something happens which I don't understand. I think I am passing context en pagefactory objects but Magento says I am not. The second one seems wrong.

Recoverable Error: Argument 2 passed to Demo\Hello\Controller\Adminhtml\Order\MassPrint::__construct() must be an instance of Magento\Framework\View\Result\PageFactory, instance of Magento\Framework\App\ResourceConnection given, called in

The controller:

<?php
namespace Demo\Hello\Controller\Adminhtml\Order;

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

class MassPrint extends \Magento\Backend\App\Action {

  public function __construct(Context $context, PageFactory $pageFactory) {
    parent::__construct($context);
  }

}

It understands the type hinting like I want:

must be an instance of Magento\Framework\View\Result\PageFactory

But it is passing

instance of Magento\Framework\App\ResourceConnection given

Why is this? There is some magic going on with Magento which I don't understand (yet).


texts: Magento 1.9.x: Custom attribute not show in filter Category

texts:
I was set Is_Anchor = Yes

In Custom attribute, i set like this

It show when i search product, but it not show in category

Please help me

UPDATE QUESTION


texts: How to upgrade to Magento 2.1 RC 1 when Magento 2 is installed via GitHub

texts:
Ok so I'm running Magento 2.0.6 and I have installed it via the GitHub repo.

So as I cannot use the backend upgrade tool, when I upgrade Magento 2 I'm used to run the following:

git pull origin
composer update

However, when I run those commands, it doesn't upgrade my install to Magento 2.1 RC 1.

Any clue ?


texts: Magento 2 Entering Wrong Captcha clearing form data

texts:
In Magento 2 If Captcha is wrong then after submit all detail of form is getting empty.

What approach can be taken to make it independent so that form should not get empty ?


texts: price filter Onresize function is not working

texts:
I want to develop a price filter in magento 1.9
and i have done this which is not working.

Rs.12506600Rs.

Url us generating ok i have tested it but ONRESIZE function is not working.


texts: Why am I getting an "Invalid shipping method." error?

texts:
When going through checkout, when I submit the shipping method step with either Free Shipping or Flat Rate Shipping selected I get an error message pop up stating "Invalid shipping method."

This error is triggered in public function saveShippingMethod($shippingMethod) because

$this->getQuote()->getShippingAddress()->getShippingRateByCode($shippingMethod);

is not returning a $rate.

Here is the output of this query:

SELECT * FROM core_config_data
    WHERE path LIKE 'carriers/flatrate/%' OR path LIKE 'carriers/freeshipping/%';

652 default 0   carriers/flatrate/active    1
653 default 0   carriers/flatrate/title Flat Rate
654 default 0   carriers/flatrate/name  Fixed
655 default 0   carriers/flatrate/type  O
656 default 0   carriers/flatrate/price 5.00
657 default 0   carriers/flatrate/handling_type F
658 default 0   carriers/flatrate/handling_fee  NULL
659 default 0   carriers/flatrate/specificerrmsg    This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.
660 default 0   carriers/flatrate/sallowspecific    0
661 default 0   carriers/flatrate/specificcountry   NULL
662 default 0   carriers/flatrate/showmethod    0
663 default 0   carriers/flatrate/sort_order    1
676 default 0   carriers/freeshipping/active    1
677 default 0   carriers/freeshipping/title Free Shipping
678 default 0   carriers/freeshipping/name  Free
679 default 0   carriers/freeshipping/free_shipping_subtotal    NULL
680 default 0   carriers/freeshipping/specificerrmsg    This shipping met hod is currently unavailable. If you would like to ship using this shipping method, please contact us.
681 default 0   carriers/freeshipping/sallowspecific    0
682 default 0   carriers/freeshipping/specificcountry   NULL
683 default 0   carriers/freeshipping/showmethod    0
684 default 0   carriers/freeshipping/sort_order    NULL

Why am I getting this error and what do i need to do to resolve it?


texts: I'm using an observer to watch <sales_order_status_history_save_after>, but it returns ALL comments, how can I get just the last one?


texts: Magento Frontend shows X items in one category, but most are not visible!

texts:
Magento 1.9.3 - I cannot update because of plugins I am using.

-I have about 900 items on my website.

-17 of them in a Subcategory.

-The frontend shows that there are 17 items in the category - but only 5 shows on page 1 and 4 on page 2 (when sorted by 12 items per page. If I increase to 24 items per page, I see only the first 4.)

-If I disable all items and then re-enable all items, they show up briefly but then disappear again!

-Items are visible, enabled, in stock, in the correct category, added to the website.... Same settings as the other items on the page that all work fine.

I have been doing some searching some people are saying it has something to do with the Indexer? How do I fix it? Any ideas??

Thanks!


texts: How to use custom fields of category in static blocks, magento 2.3.5

texts: I want to add a custom attribute for category, then use that custom attribute value  in a static block and call that static block in a phml file of custom theme file.


texts: How to add custom column to review_listing.xml?

texts:
When I try to override a review_listing.xml by copying it into my module (Module\Vendor\view\ui_component\review_listing.xml) and adding a column, then nothing happens.
I will be glad to any help.

Vendor / Module / view / adminhtml / ui_component / review_listing.xml

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="review_columns" class="Magento\Ui\Component\Listing\Columns">
    <column name="review_child" class="Vendor\Module\Ui\Component\Listing\Column\MyColumn">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="sortable" xsi:type="boolean">false</item>
                <item name="label" xsi:type="string" translate="true">My Column</item>
                <item name="sortOrder" xsi:type="number">95</item>
            </item>
        </argument>
    </column>
</columns>

Vendor / Module / Ui / Component / Listing / Column / ReviewChild.php

namespace Vendor\Module\Ui\Component\Listing\Column;

use Magento\Framework\View\Element\UiComponent\ContextInterface;
use Magento\Framework\View\Element\UiComponentFactory;
use Magento\Ui\Component\Listing\Columns\Column;

class MyColumn extends Column
{
    public function __construct(
        ContextInterface $context,
        UiComponentFactory $uiComponentFactory,
        array $components = [],
        array $data = []
    ) {
        parent::__construct($context, $uiComponentFactory, $components, $data);
    }

public function prepareDataSource(array $dataSource)
{
    if (isset($dataSource['data']['items'])) {
        foreach ($dataSource['data']['items'] as & $item) {
            $item[$this->getData('name')] = "MY DATA";
        }
    }
    return $dataSource;
}

}


texts: _getsingleton/customer/session registry already exists

texts:
I have used this code in observer function and event i am using is "controller_front_init_before". Problem is due to first line. Please help me to resolve this issue

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

            if($customer_session->getId())
            {
            $customer = Mage::getModel("customer/customer")->load($customer_session->getId());
            $group_id = $customer->getGroupId();

            if($group_id==4)
            {

            $core_session = Mage::getSingleton('core/session');
            $LoginTime = $core_session->getLoginTime();

            if($LoginTime)
            {
                $current_datetime = new DateTime();
                $otp_create_time = new DateTime($LoginTime);
                $interval = $current_datetime->diff($otp_create_time);
                $elapsed = $interval->format('%i');

               //Mage::log("elapsed".$elapsed,null,'otp.log');

                if($elapsed>1440)
                {
                    $core_session->unsLoginTime();
                    $core_session->unsOtp();
                    $core_session->unsOtpCreationTime();

                    $customer_session->logout();
                    $core_session->setExclusive(true);

                    //die('ok');
                    //$core_session->setExclusive(true);

                }
            }
            $LoginTime = $core_session->setLoginTime(date('Y-m-d h:i:s'));
            }

            }


texts: How do I change the totals (price, tax, shipping) in an order email?

texts:
I want to remove the unnecessary totals in my emails such as "Grand total excl. Tax", "Tax" etc.
Where can I find the file where I can change this? Thanks in advance.
This is what I have now.

This is what I want to achieve


texts: How to load Data From Database via Ajax Call with Resource Model on Click?

texts:
Here is my Ajax Call. I call it inside click() function with jQuery.
    var customurl = gpImageTagLoadUrl + '?isAjax=true';

                    $.ajax({
                        url: customurl,
                        method: 'POST',
                        data: {element_id: 11},
                        dataType: 'json',
                        success: function (data) {
                                console.log(data.element_id);
                        }
                    });

In the other Script i call:
  window.gpImageTagLoadUrl = '<?= /** @noEscape */ $this->getUrl('pluginName/caller/loadproduct')?>';

Inside the php function I call the execute function:
    public function execute()
    {

        $variable = $this->configs->create();
        $item = $variable->addFieldToFilter('id', 11);
        return $item;

    }

I can call this function but i get this error:

InvalidArgumentException): Invalid return type

Any Ideas? What is the right way to create Ajax Load Function in Magento 2?


texts: showing blocks only when user is logged in

texts: I have created one custom block which I wants to show only when some user has logged in my website. Lets say the name of my block is 'sample_block' . How can I display 'sample_block' only when some user has logged in to my website?


texts: How to override magento default search result

texts:
I want to override magento default search result, what I want to do is if products are not assign to any category then those products are not display on frontend in search result, by default magento include those products also which are not assign to any category.

I know magento prepare search result collection here prepareProductCollection($collection) in layer.php file but how we can exclude product without category?


texts:
I am having troubles overriding one of magento's core blocks.

The one I am interested with is Wishlist. Module's default location is app/Core/Mage/Wishlist. I tried following the instructions I've been given here by @Marius, but my block class still doesn't fire up.

I can clearly see in Administration panel that my module is Enabled, so it must be some kind of typo in my configuration.

My entire config.xml file has the following structure:

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Acme_Demo>
            <version>1.0</version>
        </Acme_Demo>
    </modules>
    <global>
        <blocks>
            <wishlist>
                <rewrite>
                    <customer_wishlist>Acme_Demo_Block_Wishlist</customer_wishlist>
                </rewrite>
            </wishlist>
        </blocks>
    </global>
</config>

My configuration file in etc/modules

<Acme_Demo>
        <active>true</active>
        <codePool>local</codePool>
        <depends>
            <Mage_Wishlist />
        </depends>
</Acme_Demo>

I only need to override the _prepareLayout() method in my block, so it's a really basic class.

<?php

class Acme_Demo_Block_Wishlist extends Mage_Wishlist_Block_Customer_Wishlist {

    protected function _prepareLayout() {
        var_dump('I am loaded');
    }

}

But magento still loads the default Mage_Wishlist_Block_Customer_Wishlist. So I would really appreciate if anyone tells me what did I messed up?

-Update-

A bit more info - whatever I try do about this block class only, it does not get executed. I've succesfuly tried to override random parts of Wishlist module - for example Wishlist/Model/Item.php. Cache is cleared everytime I update my files. I have no idea what is going on here.


texts: Issue in Inserting the image Media URL getting without slash symbol

texts:
I am using Magento 1.9.1.0. When iusing insert image in cms page.

Getting <img src="{{media url=" wysiwyg in_en 2016_pro_-22.jpg"}}" alt=""/> .

it shows without slash symbol.

Base URL www.example.com/ (secure and unsecure)

Base Media URL is {{unsecure_base_url}}media/ (secure and unsecure)

please help me. anyone ??


texts: When overwriting an existing backend system.xml how do I hide a field?

texts:
I'm working on making a small alteration to an existing community third party extension.  The extension provides a backend admin field for a black-list of attributes, and I'm working to invert it to be a white-list.

All other logic will remain the same, so I've opted to build a small local extension with rewrites for only the relevant changes.

In system.xml I've found the black-list field, and am able to override its settings from my extension.  However, how would I go about completely removing the field?

In short, I'd like to:

Hide a field named <black_list> from the community\thirdparty\extension\etc\system.xml config
Substitute it with a <white_list> field from local\mynamespace\myextenion\etc\system.xml


texts: Magento 1 REST API Get shopping cart items

texts:
I want to retrieve the list of items in a customer's shopping cart programmatically through REST API. I have tried this code and other similar ones on stackexchange for which each fail to retrieve the list of items in the customers shopping cart. Access to the REST Service(consumer key and tokens) are valid.

// retrieve quote items collection
$itemsCollection = Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection();

// get array of all items what can be display directly
$itemsVisible = Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();

// retrieve quote items array
$items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();

foreach($items as $item) {
    echo 'ID: '.$item->getProductId().'
';
    echo 'Name: '.$item->getName().'
';
    echo 'Sku: '.$item->getSku().'
';
    echo 'Quantity: '.$item->getQty().'
';
    echo 'Price: '.$item->getPrice().'
';
    echo "
";
}


texts:
I want to get all enable categories for specific store from query in Magento 2 database. As I tried from database query from table catalog_category_entity_int
SELECT * FROM `catalog_category_entity_int` WHERE `attribute_id`=46 AND `store_id`=1 GROUP BY `entity_id`

Where 46 is attribute id for enable attribute.
With this query i am getting all categories ids but for all stores categories are same if i change store_id the results are same for all stores


texts: Relevant event for admin side in Magento 1 to Magento 2?

texts:
I need relevant event for Magento 1 to magento 2? I have given Magento 1 event below?

sales_order_creditmemo_save_after


texts: How to check the Magento 2 webshop is it using headless development approach?

texts: How to check the Magento 2 webshop is it using headless development approach ?


texts: "Mobile" tab not visible in Free Version

texts: I am new to Magento and installed mangento on my Mac system. On Admin panel , I am not able to see Mobile tab . Is this available only in paid version ? or am i missing something here.


texts: How to add static block for Specific category's products in Magento 2 by XML layout

texts: I want add a Static block in product details page only for specific category how it will be achieved by XML layout ?


texts: Magento 2 - Move Sign Out link at the last position in customer menu dropdown

texts:
I want to move authorization-link at the last position in customer menu.
How can I achieve that?

UPDATE:

Code from xml

<referenceBlock name="top.links">
            <referenceBlock  name="my-account-link">
                <arguments>
                    <argument name="sortOrder" xsi:type="number">3</argument>
                </arguments>
            </referenceBlock>
            <referenceBlock name="customer-account-navigation-orders-link-top">
                <arguments>
                    <argument name="sortOrder" xsi:type="number">2</argument>
                </arguments>
            </referenceBlock>
            <referenceBlock name="wish-list-link">
                <arguments>
                    <argument name="sortOrder" xsi:type="number">1</argument>
                </arguments>
            </referenceBlock>
            <referenceBlock name="authorization-link">
                 <arguments>
                     <argument name="sortOrder" xsi:type="number">10000</argument>
                 </arguments>
            </referenceBlock>
        </referenceBlock>

UPDATE

As per https://github.com/rostyslav-hymon/magento2/commit/727709bfba4951e4dca4be18cf10475e7e81970f
Changed code in Navigation.php

private function compare(SortLinkInterface $firstLink, SortLinkInterface $secondLink): int
    {
        //return  $secondLink->getSortOrder() <=> $firstLink->getSortOrder();
        return ($firstLink->getSortOrder() < $secondLink->getSortOrder()) ? 1 : -1;
    }

Still no luck!


texts: Magento 2 Add custom tab to product details page conditionally

texts:
I have added code for adding tab in app\code\Store\Nutrition\view\frontend\layout\catalog_product_view.xml.

<page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <body>
          <referenceBlock name="product.info.details">
            <block class="Magento\Catalog\Block\Product\View" name="nutrition" as="nutrition" template="Store_Nutrition::product/view/nutrition.phtml" group="detailed_info" after="additional">
             <arguments>
                <argument translate="true" name="title" xsi:type="string">Nutrition Facts</argument>
             </arguments>
            </block>
        </referenceBlock>
        <move element="nutrition.tab" destination="product.info.details" after="additional"/>
    </body>
</page>

On click of the tab an ajax request is sent which then fetches the data and displays in the tab. If the response is null the text is displayed as "No Data to display!"

Now if the response is null I do not want to display the tab.

I know I'll have to send the ajax request on some other event like page load or document ready so that I can get the response beforehand. However I don't know how to display or hide tab based on response.


texts: Unable to list out my site's soap services with error (XML declaration allowed only at the start of the document)

texts:
I am trying to list my Magento 2.3.2 site's soap API by running to below URL,
https://mysiteurl/index.php/soap/default?wsdl_list=1
However, it only shows the error message below
This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

I have also try to access my soap api url and get a named default file as below with a empty row on the first row:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
   <env:Body>
      <env:Fault>
         <env:Code>
            <env:Value>env:Receiver</env:Value>
         </env:Code>
         <env:Reason>
            <env:Text xml:lang="en">Invalid XML</env:Text>
         </env:Reason>

      </env:Fault>
   </env:Body>
</env:Envelope>

I am not sure whether the first empty row causes the error. If yes, how do I remove the empty row?  Many thanks!


texts: Why are Nominal Items/Recurring Profiles not affected by shopping cart price rules?

texts: I am working with Recurring Profiles and I'm trying to understand why the promotion "shopping cart price rules" don't apply for these items? Thanks


texts: Magento 1.8.1.0 Reports only shows one option

texts:
After 1.8.1.0 upgrade the reports feature only shows one reporting option: Reports > Sales > Paypal Settlement Option

No other reporting options are showing?


texts:
I am facing one problem.I don't know either this is possible in magento (default way ) or i have to create my custom module for it.
I have scenario where after entering shipping details customer will be redirected to specific shipping method on the basis of his city and country.

Shipping methods will be three  (For Newyork,For USA,Other countries)
Like if he belongs to Newyork and country is USA .He got these options 1) For Newyork one day $5.

2) For USA $10 etc but if he is not from Newyork but other city of USA Than he gots different options and same condition for if he doesn't belongs to USA he gots other options.I have studied the Flates rates but i think that didn't fulfill my requirements.Any advice or guidness will be helpful.Thanks


texts: Add image thumbnail next to product name on grouped products

texts:
Is it possible to add a thumbnail version of the product image next to the product name on grouped products in magento?

We have a list of products and as the base grouped layout it can be a little confusing to which image matches which product. If we can somehow add the image of that product as a thumbnail next to the name on grouped products that would be awesome


texts: Fetch products from main category through API

texts:
I am having a main category which has about 10 subcategories that include about 1000 products. Please note that this category is an anchor and its products are inherited from its subcategories. I am using the following code to fetch all the products inside that category, but I only get about 300 (which are assigned to the specific category, leftovers from before the category changed to anchor).

How can I make my API call to fetch all the SKUs of the products in the subcategories as well?

$productList = $mclient->call($session, 'catalog_category.assignedProducts', 279);
foreach($productList as $product){
    $catProducts[] = array('catalog_product.info', $product['product_id']);
}
$result = $mclient->multiCall($session, $catProducts);


texts: magento set base image if i have path to image

texts:
$product1 = Mage::getModel('catalog/product')->loadByAttribute('sku', 'FN244403');
$product1ID = $product1->getId();
$connection = Mage::getSingleton('core/resource')->getConnection('core_read');
$sql = "Select * from `catalog_product_entity_media_gallery` WHERE `entity_id` = '$product1ID'

LIMIT 1";
$rows       = $connection->fetchAll($sql);
echo $path = $rows[0]['value'];

So, how i can now set Base, Small image, etc?
I am try do it, but this not help

try {
    $product1->setSmallImage($path)
        ->setThumbnail($path)
        ->setImage($path)
        ->save();
} catch (Exception $e) {
    echo $e->getMessage();
}


texts: Magento 2 Order history with configurable Product get product id and attributes

texts:
below is code to get product id from order id, I did order configurable product but in below case it show 2 product ids where as I did purchased only one product (configurable products).

output of below code is two id one is main products and other configurable made from that one, I want to verify get instead one id

$order = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($_order->getRealOrderId());
                        $orderItems = $order->getAllItems();

                        foreach ($orderItems as $item) {
                            echo $item->getId();
                            echo "<br>";
                            echo "xxxx".$item->getProductId()."-->";

                         }


texts: Select a random customer with an order greater than $1000

texts:
I've developed a Magento website and I want to select a random customer on a regular basis (for a set period of time) where they have an order greater than $1000 so that we can give them a prize.

How can I find a customer that meets this criteria?


texts: How to do server side validation using observer?

texts:
Observer Server Side Validation

Plan: Use observer to see if a checkbox is correctly set.. but how do i do this?

Does anyone know how I can call the session singleton in Javascript?
I have a validation to a form like this which, everytime it validates the checkbox element, I want to to update a value in the session model.

Validation.add(
    'validate-tax', 'This is only applicable to certain states.', function(v) {
        var dropDown = document.getElementById("billing:region_id").querySelector('option:checked').text;
        if ((dropDown != 'New York' && document.getElementById("billing:tax_exempt").checked == false) || (dropDown == 'New York')) {
            Mage::getSingleton('core/session')->setYourNameSession($session_value);
            return true;
        }
    }
);

But I don't know if this is possible.

Additional Information
I want to do a server-side validation on a checkbox. To do this my plan is to see if the value in the session is true or false. Alternatively, I was thinking to check the HTML elements directly from an observer, but I do not know how to do it.


texts: Magento 2: Product page compare product add in new tab

texts:
I am using magento 2.3.3 in custom theme and I want to compare products add in new tab
how can achieve this?
Thanks in advance


texts: How to Make an Extension Compatible with Store View Specific ACLs

texts:
In Magento Enterprise there is the module Enterprise_AdminGws which limits editing rights to specific store views.

How generally is this implemented? i.e. if I create an extension that implements its own data model with data that is stored on store view level, does that mean the limits imposed by AdminGws would work out of the box or is it necessary to register my additional resource models with the Enterprise_AdminGws extension.

And example could be a blog extension with blog entries and comments: Those have a store-view field and should only be edited by the store-view admin.

Edit (scope clarification): It is clear that I have to define my own ACLs in the adminhtml.xml as usual first.


texts: magento 2 - enable form key validation on contact us page

texts:
Form key validation is not there on the M2 contact page. While posting the information from outside of the project also sending the email to the Admin.

Ex: We posted the contact us page information from ARC to our m2 URL(Your project/contact/index/post/). It is submitting the form and sending the email to the Admin.


texts:
After installing the security patch SUPEE-7405 I have got the following error in the backend:
Mage registry key "_singleton/Mage_Core_Model_Domainpolicy" already exists

I tried to clear the cache, but no change.

Does someone know how to fix this?

EDIT: As a workaround I did the following:

   if(isset(self::$_registry["_singleton/Mage_Core_Model_Domainpolicy"])) {
        self::unregister("_singleton/Mage_Core_Model_Domainpolicy");
    }

in the Mage.php. This works for the moment, but does anyone know how to find out in which files the key is setted?


texts: Adminhtml grid inline editing - won't work

texts:
Working on a new module which will gather most important details for products in one grid. Grid is already prepared and working fine but now I need to add inline editing functionality :)
What steps needs to be done to achieve it ?
Or if I could(how?) call action Edit and modify record in separate form then save it?
If possible please give me an example?
Already tried Inline editing in Magento
But it seems not work, probably I did not implemented js properly. I can't find where it should be placed. Javascript itself is in the phtml so in layout there should be a reference so it is there but still ... doesn't work

< layout >
< adminhtml_sales_index >
    < reference name="js">
       <block type="core/template" template="inchoo/orders/inline-edit.phtml"/>
    < / reference >
< / adminhtml_sales_index >

< / layout >

phtml content:

<script type="text/javascript">

function updateTitle(button, fieldId)
{
echo 'Ajax request';
new Ajax.Request('<?php echo Mage::helper('inchoo_orders')->getUrl('*/*/updateTitle') ?>', {
    method: 'post',
    parameters: { id: fieldId, title: $(button).previous('input').getValue() }
    });
}

Can't find updateTitle function (js) ;(


texts: Customized payment integration for only amount

texts:
I want to take only amount from customers not order information and pass that amount to Place Order button.

I tried On click of Place Order button I have called review.save(); function. I am not understanding how to pass amount value and do successful transaction?

skin\frontend\default\new_design\js\opcheckout.js - I tried alerting this file but everything went in vain.

Can anyone explain why this function is used review.save() ?


texts:
I can't access my site... I've tried all manner of troubleshooting. details are definitely correct, i've downloaded a clean version of magento and pasted in a fresh local.xml

Is there anything else I can try to troubleshoot?

http://www.omni-drones.nl/


texts: How to execute js code for a specific product?

texts:
I need to execute javascript code for one specific product on the product page. How can I do that?

Magento version: 2.2.5

I found some answers on the web, but they don't work for me:

1) custom js product page

Doesn't tell where the js code should live

2) https://stackoverflow.com/questions/23906109/magento-add-inline-javascript-to-product-page-via-layout-update-xml-code

M1 only - does not work for M2 for me


texts: Magento 2 Passing php data to custom js component or file

texts:
I need to send ajax call on a button click in admin page. I want to send ajax url and record id from php to my js file in magento 2. How it can be done in standard way ?

Thanks


texts:
I am trying to update order summary block on payment method change but it display

Fatal error:  Call to a member function toHtml() on boolean in C:\xampp\htdocs\young\app\code\local\Mage\Checkout\controllers\OnepageController.php on line 172

170 protected function _getReviewHtml()
171 {
172    return $this->getLayout()->getBlock('root')->toHtml();
173 }

public function orderupdateAction()
{
    if ($this->_expireAjax()) {
        return;
    }
    $result['goto_section'] = 'review';
    $result['update_section'] = array(
        'name' => 'review',
        'html' => $this->_getReviewHtml()
    );
    $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
}


texts: Magento 2 Admin customer form range validation is not working?

texts:
I want to add range validation for mobile , i have added "validation-digits-range" rule in ui component xml. I have declared range as 9-13 and I enter correct 10 digits still asking "The value is not within the specified range."

here is the ui component code

<field name="mobile_no">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="source" xsi:type="string">customer</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">true</item>
                        <item name="validate-digits" xsi:type="boolean">true</item>
                        <item name="validate-digits-range" xsi:type="string">9-13</item>
                    </item>
                </item>
            </argument>
        </field>

here is the screen shot of customer form


texts: Magento2 Create account form custom field server side validation

texts:
I Added a custom sponsor name field on magento2 account creation form and done client side validation also. How can I do server side validation??? Need to check sponsor is available in database or not.

    <legend class="legend"><?php echo $block->escapeHtml(__('Sponsor Information')) ?></legend>
    <?php /* @escapeNotVerified */ echo __('Sponsor Name') ?>

        <input type="text" name="sponsor_name" id="sponsor_name" title="<?php /* @escapeNotVerified */ echo __('Sponsor name') ?>" class="input-text required-entry validate-length minimum-length-5 v-validate"  autocomplete="off" value="" >


texts:
I am using Magento Enterprise 2.2.2. In admin panel
Catalog -> Categories -> Select any Category -> Schedule New Updates -> Assign to Existing Update

Here it should show already existed updates grid but it showing nothing. I have searched on Google but did not find any solution. If you have any idea then can you please share it with me?


texts: Need to add "Add to Cart" button Grouped product page in magento 2 for Main Product

texts:
I have displayed grouped product in product details page, now I have added "Add to Cart" button for each grouped product button, now problem is if i click on main product "Add to Cart" button then its effect on all group product add to cart button and process for cart, so can you please anyone help how can I customize so i can make working all separate with Main product and group products,

Thanks in Advance!


texts:
Website using RabbitMQ queue, it is set and running. But have issue with product export. Magento2 have publisher connection set as db. But then it throws exception that Unknown connection name db . Haven't found way to change publisher and its connection to amqp. If I change it in vendor to amqp all is working (for testing purposes), but how to overwrite it not in vendor?
vendor/magento/module-import-export/etc/queue_publisher.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
    <publisher topic="import_export.export">
        <connection name="db" exchange="magento-db" />
    </publisher>
</config>


texts: Rest API error " "resources": "Magento_CatalogInventory::cataloginventory""

texts:
I am trying to fetch the quantity with

  https:mydomain.com/index.php/rest/V1/stockItems/24-MB01

I got the following error :

"message": "The consumer isn't authorized to access %resources.",
    "parameters": {
        "resources": "Magento_CatalogInventory::cataloginventory"
    },

my Token is correct because I got the product list with the same token.
I have to select the checkbox related stock but I don't know which is missing to select the checkbox in the API tab. The following checkbox was selected.


texts: Hide some Payment method for only specific currency

texts:
I need to hide my some of payment methods (like 'Bank Transfer') if a customer choose a  currency like $

If our default currency is Euro , all of payment methods should show

but I want to hide some payment methods if $ is selected as currency


texts: Magento 2: Diagram of database tables, such as Orders, Products, etc. and their relationships

texts: I'm looking for a diagram or schema of all Magento 2 database tables, such as Orders, Products, etc. and their relationships with each other.


texts: When PWA feature will be available in Magento 2 out of the box?

texts:
does anyone know if Magento planning to add PWA (Progressive Web Apps) feature out of the box in the next releases e.g. in v2.3.0 or v2.4.0 ?

Thank you.


texts:
In robots.txt can be only one directive host.
How right use directive host in robots.txt in magento multisite configuration with many domains?


texts: Why are emails being sent from the wrong store from the command line

texts:
We have a script that is sending emails via the command line. Since we are using the email templates we are loading them using the Mage::getModel('core/email_template') model and then calling ->send().

This results in the emails being sent with the wrong store information and locale inside.


texts: Create Attributes and Attributesets using AVS-FastSimpleImport

texts:
Is there a way to create Attributes and AttributeSets for products using the Avs FastSimpleImport module?

I want to use an empty shop and need to import (and update) products which almost all of them have different attributes and attribute sets.

So is there any option to do this with the FastSimpleImport module? Or is there any other importer capable of creating them on the fly?


texts:
I came here because I am struggling with AMQP in Magento 2 using RabitMQ. I have checked many examples and read lots of articles but I am still confused as I am not native to English. I have two questions or you may say helping requests;

Anybody is there to give me a real-life example on the relation among communication.xml, queue_consumer.xml, queue_topology.xml and queue_publisher.xml, as I said I am not native to English so fancy words might confuse me.

Following is my understanding, what is coming from where, insist me with this, please and correct me if am wrong somewhere.

Here you go;
Step 1: Create queue_publisher.xml and define the topic
<publisher topic="publisher.topic">
    <connection name="amqp" exchange="" /> //am.customer.delete
</publisher>

This file is used so we can mention where this topic "publisher.topic" will be published. Leave the exchange as it is, we will provide this later.
Step 2: Create communication.xml and mention the topic here.
<topic name="publisher.topic" request="Standard\Magento\Class"/>

This file is used to describe what class is involved or common in all consumers and messages under this publisher.
Step 3. Now created queue_toplogy.xml declare the exchange name
<exchange name="publisher.topic.route" type="topic" connection="queue">
</exchange>

This file is used to declare an exchange route for publisher
Step 4: Now back to queue_publisher.xml and define the recently created exchange
<publisher topic="publisher.topic">
    <connection name="amqp" exchange="publisher.topic.route" />
</publisher>

Step 5: Create queue_consumer.xml, define consumer, name the queue and declare a standard class along with a method which will process messages.
<consumer name="ConsumerName"
          queue="queue_name"
          connection="amqp"
          handler="Standard\Magento\Class::processMessage"/>

Step 6: Back to the queue_topology.xml, define binding, we have already route the publisher to exchange, now in exchange we have to bind publisher with queue
<binding id="idOfBinding"
         topic="publisher.topic"
         destinationType="queue"
         destination="queue_name"/>


texts: magento2.3.4 The number of shopping carts is not displayed

texts:
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Magento\Quote\Model\Quote\Interceptor::setExtensionAttributes(), 0 passed in /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject.php on line 207 and exactly 1 expected in /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php:1398
Stack trace:
#0 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject.php(207): Magento\Quote\Model\Quote\Interceptor->setExtensionAttributes()
#1 /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php(2000): Magento\Framework\DataObject->setDataUsingMethod('customer_prefix', NULL)
#2 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject/Copy.php(368): Magento\Quote\Model\Quote\Interceptor->setDataUsingMethod('customer_prefix', NULL)
#3 /Applications/MAMP/htdocs/mgtcs/development/vendor/magento/framework/DataObject/Copy.php(245): Magento\Framework\DataObje in /Applications/MAMP/htdocs/mgtcs/development/generated/code/Magento/Quote/Model/Quote/Interceptor.php on line 1398


texts: How do i create a cms static block showing image and text (inline or beside it) with a link to a product or category just like the luma static block on home page. I tried to edit the text on the luma home-page-block, After saving it the default text keeps showing


texts: What are allowed_methods in shipping method magento

texts:
I am very new in magento. I am creating a shipping module. I want to know what is the meaning of allowed_methods shipping method.

Can I use my own allowed_methods in shipping methods.


texts: SOAP WSDL Location URL incorrect when front-end URL different from admin URL

texts:
I have a Magento v1.9.3.x site where the SOAP calls are not working.

There are several factors about our environment that might cause the problem:

we use a different subdomin for front-end website vs admin site
we use a load balancer in front of multiple servers

The main problem seems to be that when you request the WSDL via the front-end, it returns the admin URL in the < soap:address location="" /> element.

This is what is happening step by step:

The client calls 'https://www.magentohost.com/api/v2_soap?wsdl=1'
The server returns XML containing < soap:address location="https://admin.magentohost.com/index.php/api/v2_soap/index/?SID=88888888888888888888888888888888"/ >
Calling 'https://admin.magentohost.com/index.php/api/v2_soap/index/?SID=88888888888888888888888888888888'
returns a 301 redirect back to https://www.magentohost.com/ (with no
query path or parameters)
Obviously that will not work, so the client shows an error message saying 'SOAP-ERROR: Parsing WSDL: Couldn't load from
https://admin.magentohost.com/index.php/api/v2_soap/index/?SID=88888888888888888888888888888888

Does anyone have a fix for this problem?


texts: Magento 2 and git, best practice for custom module development

texts:
I have trouble wrapping my head around a very particular issue concerning a development setup for magento 2.

I have read a lot about using composer and git. It makes a lot of sense to NOT include the vendor directory and have each module, theme and custom project in separate repositories.

To explain my issue it is best I explain my workflow.

Currently I am working on a customer project. I installed magento and a couple of modules via composer. In addition I have my own set of custom modules I am developing while creating this project. Those modules of course reside inside the app/code folder. Some are project specific and will never be reused elsewhere. Those should be part of the project's git repository.

Others WILL be reused in other projects. Therefore I want them to have their separate repository. But since they are work in progress I cannot hook them into the project like all the other modules via composer (or can I?). It is actually the other way round, I will need to commit from this current project into the repository. And this process is likely to continue when I use those modules in other projects. These modules will continously be improved.

So what would this scenario look like? In the project's root folder I would have the main project with it's own remote repository. Let's say during the course of this project I have developed three custom modules inside app/code. How would I maintain those so they will be committed and pushed into each of their repository? Would I need to set up a repository in each of the modules folders? Would I have to cd in all of them and add/commit/push individually?

I fear I might loose oversight of the state of all the modules this way.

Let's say I finish this current project but in my next project I add new features I want in my first project as well. How would I "backport" those new features into past projects?

Practical insight welcome :)

Thank you


texts: How can I manipulate SOAP request output?

texts:
I'm using the following soap function to pull my Magento category tree:

<?php

$client = new SoapClient('http://bennettcode.com/store/index.php/api/soap/?wsdl');

// If somestuff requires API authentication,
// then get a session token
$session = $client->login('soap_user', 'password');

$result = $client->call($session, 'catalog_category.tree');

var_dump($result);

// If you don't need the session anymore
//$client->endSession($session);
?>

The following output is generated

What tools can I use to sort and manipulate this data so that it is more useful/legible? I'd eventually like to be able to sort and display SOAP function results in a neat manner. I have limited development knowledge, but I'm guessing I would use PHP to further edit the script. Any push (or shove) in the right direction would be great!


texts: After creating a "Credit Memo", how to ensure whether the user has created "Credit Memo" with online or offline ?


texts:
my client bought a template from TemplateMonster and I followed their indiciazioni on installation and configuration of the php.ini, I have always an error when I use

php bin / magento setup: static-content: deploy

Compilation from source:
frontend / Magento / blank / en_US / TemplateMonster_Megamenu / fonts / font-awesome-4.5.0 / less / list.less
variable @ fa-css-prefix is undefined in /home/omadadesign.com/var/view_preprocessed/css/frontend/Magento/blank/en_US/TemplateMonster_Megamenu/fonts/font-awesome-4.5.0/less/list.less file list.less on line 4, column 2
2 | // -------------------------
3 |
4 | . @ {Fa-css-prefix} {-ul
5 | padding-left: 0;
6 | margin-left: @ make-them-width;
> | list-style-type: none;

The TemplateMonster Service says it is a server configuration issue but I have tried to install a new version of Magento without their theme and everything works properly.
According to you it depends on the theme? There are server configurations that need to be modified to avoid that mistake?

Thank you!


texts: Joining to a Resource Model that doesn't have a Select?

texts:
So I have this resource model that I pulled from some admin code on the dashboard.  It works, but I can't seem to join to it. Doing ->getSelect()->__toString(); shows nothing? So is this not a normal collection?  Why does it not work like other collections?

My guess that in order to accomplish what I want to accomplish is that I am going to have to extend the collection model, but I just wanted to see if I can get more of an idea of what is going on here.

$storeId = $this->helper('core')->getStoreId();
$collection = Mage::getResourceModel('sales/report_bestsellers_collection')
    ->setModel('catalog/product')
    ->addStoreFilter($storeId);

$collection->getSelect()->join(
        array('category_product' => 'catalog_category_product'),
        'main_table.product_id = category_product.product_id',
        array('category_product.*')
    )->where('category_product.category_id = ?', '3')
     ->order('main_table.qty_ordered DESC')
     ->limit($limit);


texts: Custom report of simple-to-configurable product links showing error: Column not found: 1054 Unknown column 'childsku' in 'where clause',

texts:
Full error text: Column not found: 1054 Unknown column 'childsku' in 'where clause', query was:
SELECT COUNT(*) FROM owd_catalog_product_super_link AS main_table
LEFT JOIN owd_catalog_product_entity AS child_table ON main_table.product_id = child_table.entity_id
LEFT JOIN owd_catalog_product_entity AS parent_table ON main_table.parent_id = parent_table.entity_id
WHERE (childsku LIKE '%bl%')
Built report first by creating model for catalog_product_super_link
function _prepareCollection() contains...
$collection = $this->_superlinkFactory->create()->getCollection();
$collection->getSelect()->joinLeft(array('child_table' => $collection->getTable('catalog_product_entity')),
'main_table.product_id = child_table.entity_id',
array('sku as childsku')
);
$collection->getSelect()->joinLeft(array('parent_table' => $collection->getTable('catalog_product_entity')),
'main_table.parent_id = parent_table.entity_id',
array('sku as parentsku')
);
function _prepareColumns() contains...
$this->addColumn(
'childsku',
[
'header' => __('Child SKU'),
'index' => 'childsku',
]
);
When filtering on Child SKU column, error occurs.


texts: magento2-how to use javascript inside knockout in magento2

texts:
i want to use the

<script type="text/javascript">
  require([
            'jquery'
        ], function(jQuery) {
           jQuery('input[name="telephone"]').keydown(function(event) {
            // Allow special chars + arrows
            if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9
                || event.keyCode == 27 || event.keyCode == 13
                || (event.keyCode == 65 && event.ctrlKey === true)
                || (event.keyCode >= 35 && event.keyCode <= 39)){
                    return;
            }else {
                // If it's not a number stop the keypress
                if (event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105 )) {
                    event.preventDefault();
                }
            }
        });

        });

</script>

this script in the knockout .html file how cant i use this script ?
can any one please help me out this ?

Thanks


texts: not accept spaces at starting in validations

texts:
I have form with text field in Magento 1.9. I don't want to accept spaces at starting in text field in validations. Whenever I type space, it is not validating but don't want to accept space at first need to enter any characters in that field.

$('#number').keypress(function (e) {
       var regex = new RegExp("^[0-9\b]+$");
       var str = String.fromCharCode(!e.charCode ? e.which : e.charCode);
       if (regex.test(str)) {
           return true;
       }

       e.preventDefault();
       return false;
});

For number i wrote like this but space how to write code.


texts: Country options are not displayed when editing user address Magento 2.3.3

texts:
I have such a problem on Magento 2.3.3
I checked this logic on stock Magento 2.3.3 and it also appears there.

Choose a 2-3 allowed countries.

Then go to All Customer -> Customer Address Edit Form in Admin area.

Country dropdown is not as we expected.

If I just use 1 country none will show up if you chose more then it will just take countries from the top.

In console i don't have error's.

Anyone had this issue ad anyone solve it?


texts: Magento2 adding radio buttons in customoptions

texts:
Can anyone Help me to add radio button to custom options for product at product level for input type drop_down magento2 admin

Help me great


texts: Why my Attribute group is persisted in all attributesets?

texts:
i have the following code :

 $categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
        $attributeSet = $this->attributeSetFactory->create();
        $entityTypeId = $categorySetup->getEntityTypeId(\Magento\Catalog\Model\Product::ENTITY);
        $attributeSetId = $categorySetup->getDefaultAttributeSetId($entityTypeId, 'medicamento_expira_curta2');
        $autosettingsTabName = 'medicamento_expira_curta2_group';
        $categorySetup->addAttributeGroup($entityTypeId, $attributeSetId, $autosettingsTabName, 60);
        $data = [
            'attribute_set_name' => 'medicamento_expira_curta2',
            'entity_type_id' => $entityTypeId,
            'sort_order' => 200,
        ];
        $attributeSet->setData($data);
        $attributeSet->validate();
        $attributeSet->save();
        $attributeSet->initFromSkeleton($attributeSetId);
        $attributeSet->save();

        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

        $eavSetup->addAttributeGroup(
            $entityTypeId,
            $attributeSet = $attributeSetId ,
            'medicamento_expira_curta2_group',
            200
        );

        $eavSetup->removeAttribute(\Magento\Catalog\Model\Product::ENTITY,'medicamento_expira_curta2');
        $eavSetup->addAttribute(
            \Magento\Catalog\Model\Product::ENTITY,  'medicamento_expira_curta2',   /* Custom Attribute Code */
            [
                'group' => 'medicamento_expira_curta_group2',/* Group name in which you want
                                              to display your custom attribute */
                'type' => 'int',/* Data type in which formate your value save in database*/
                'backend' => '',
                'frontend' => '',
                'label' => 'DATATESTESCOPED2', /* lablel of your attribute*/
                'input' => 'date',
                'class' => '',
                // 'source' => 'ModuleNameSpace\YourModuleName\Model\Config\Source\Options',
                                /* Source of your select type custom attribute options*/
                'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL,
                                    /*Scope of your attribute */
                'visible' => true,
                'required' => true,
                'user_defined' => true,
                'default' => '',
                'searchable' => false,
                'filterable' => false,
                'comparable' => false,
                'visible_on_front' => false,
                'used_in_product_listing' => true,
                'unique' => false,
                'attribute_set_id' => 'medicamento_expira_curta2'
            ]
        );

The attribute is allowed to the correct attribute set, but the group, is persisted in all attributesets, i miss any configuration ?


texts: Create custom script for send mail in magento 1.9

texts:
We want to create one php file.
When we run it from front side then send mail.
We don't want to create module.
We also wand to use magento 1.9 default functionality.

Any one help me for create it.


texts: New Installed Extension show 404 Error Page not found in backend

texts: We installed new extension in magento 1 but it show 404 page not found in backend. I try log out login/cache clear but nothing happened


texts: Magento 2.3.0 - Class MailCampaigns\Connector\Helper\MailCampaigns_API does not exist

texts:
I installed the module (https://github.com/mailcampaigns/Magento2Connector) On my Magento (2.3.0 version) application.
It installed successfully but when I try to add a product to the cart.

It's throwing an error on the product page:

  We can't add this item to your shopping cart right now.

Error in exception log

  main.CRITICAL: Class MailCampaigns\Connector\Helper\MailCampaigns_API does not exist {"exception":"[object] (ReflectionException(code: 0): Class MailCampaigns\Connector\Helper\MailCampaigns_API does not exist at /var/www/html/magento23/vendor/magento/framework/Code/Reader/ClassReader.php:35, ReflectionException(code: 0): Class MailCampaigns\Connector\Helper\MailCampaigns_API does not exist at /var/www/html/magento23/vendor/magento/framework/Code/Reader/ClassReader.php:29)"} []

Is this module not compatible with Magento version 2.3.0 or what can be issues behind this error?

Thanks!


texts: Uploading multiple files in custom module does not work in Magento 2

texts:
I am new to magento 2. I have been overriding a module in which I am trying to post images through a form. Here is my template file code:

    <form action="somecontroller.." enctype="multipart/form-data">

<?php echo __('Attachments') ?>

<input type="file" name="review_media" id="review_media" accept="image/*" multiple="multiple" />

</form>

and here is my controller execute method:

public function execute() {

        $returnable = parent::execute();

        $bgImage = $this->getRequest()->getFiles('review_media');
        $fileName = ($bgImage && array_key_exists('name', $bgImage)) ? $bgImage['name'] : null;

        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

        if ($bgImage && $fileName) {
            try {
                $uploader = $objectManager->create(
                        'Magento\MediaStorage\Model\File\Uploader', ['fileId' => 'review_media']
                );
                $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
                $imageAdapterFactory = $objectManager->get('Magento\Framework\Image\AdapterFactory')
                        ->create();

                $uploader->setAllowRenameFiles(true);
                $uploader->setFilesDispersion(true);
                $uploader->setAllowCreateFolders(true);

                $mediaDirectory = $objectManager->get('Magento\Framework\Filesystem')
                        ->getDirectoryRead(DirectoryList::MEDIA);

                $result = $uploader->save($mediaDirectory->getAbsolutePath('review_images'));

                $model->setBgImage($result['file']);
            } catch (\Exception $e) {
                if ($e->getCode() == 0) {
                    $this->messageManager->addError($e->getMessage());
                }
            }
        }

        return $returnable;
    }

Now the problem is that when I upload multiple images through frontend and debug the code I get null in $bgImage = $this->getRequest()->getFiles('review_media');

But when I upload a single file $bgImage shows the requested file to upload. Even in case of single image file when $uploader =$objectManager>create('Magento\MediaStorage\Model\File\Uploader', ['fileId' => 'review_media']);
I get exception that image was not uploaded and the later code is not executed.

IMPORTANT : I am following magento's zend code so don't want to go with php $_FILES[] method

Million thanks in advance!


texts: Magento 2 How to remove template in checkout page?

texts:
We have a custom template file and want to display it on all the pages except the checkout page. However, it shows even in checkout page. We have used the below code in our theme default.xml.

<container name="footer.newsletter" htmlTag="div" htmlClass="home-newsletter textcenter white-text" after="home.customers">
                <block class="Magento\Newsletter\Block\Subscribe" name="form.subscribe.home" template="Magento_Newsletter::subscribe.phtml" ifconfig="newsletter/general/active"/>
            </container>

Can anyone please help me on how to remove it from checkout page?


texts:
I have customer attribute and I would like to this attribute is required in first store, not required in second store.

I have one solution, I would like create second customer attribute in a similar code and in first store use first attribute, in second store use second attribute. But I don't know how to set scope for customer attribute. Any hints?

$installer = $setup;
        $installer->startSetup();

    $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
    $customerSetup->updateAttribute(
        'customer_address',
        'company',
        'is_required',
        true
    );


texts:
if ($generator !== null) {
            $this->tryToLoadSourceClass($className, $generator);
            if (!($file = $generator->generate())) {
                $errors = $generator->getErrors();
                throw new \RuntimeException(implode(' ', $errors) . ' in [' . $className . ']');
            }
            if (!$this->definedClasses->isClassLoadableFromMemory($className)) {
                $this->_ioObject->includeFile($file);
            }
            return self::GENERATION_SUCCESS;


texts: Pager causing Reflected Cross-Site Scripting

texts:
I got a PCI compliance report that raised an issue with Reflected Cross-Site
Scripting on category pages.

On testing it would appear that the 'Items Per Page' drop down can be made to print some Javascript if added as a GET reqest (ie http://example.com/category.html?"<script>alert('test')</script>")

I'm using Magento 1.7.0.0. The template file I'm using (page/html/pager.phtml) is largely unchanged and when I rename it so that it falls back on the base template I get the same issue.

The issue is caused by the $this->getLimitUrl($_key) call in the select option.

From Mage_Page_Block_Html_Pager:

public function getLimitUrl($limit)
{
    return $this->getPagerUrl(array($this->getLimitVarName()=>$limit));
}

public function getPagerUrl($params=array())
{
    $urlParams = array();
    $urlParams['_current']  = true;
    $urlParams['_escape']   = true;
    $urlParams['_use_rewrite']   = true;
    $urlParams['_query']    = $params;
    return $this->getUrl('*/*/*', $urlParams);
}

Any ideas?


texts: Attribute Set & Attributes Best Practices

texts:
So I have a fashion online store, and I'm currently faced with two options when planning the content structure and the attribute set. Lets say I have a size attribute, that have different options depending on the item. So for examlpe for Jeans it's 32/34/36 etc.., while for boxers for example it's Large/Medium/Small. The question is, should I:

Create one single size attribute, with all the possible values (32/34/36/Small/Large/Medium etc..), all under the General attribute set
Create a separate size attribute for each category, so for Jeans I'll create a Size attribute for the possible values, and for Boxers I'll create another size attributes with the possible values. And then I'll create an attribute set called Jeans, and another called Boxer.

So far it makes more sense for me to go for the first option, i mean there is no  drawbacks I could think of. What do you guys suggest, is there any reason to go for the second option?


texts:
I want to create separate brand. So I can list it on footer page in a tree listing of all brands.
Is there any built in functionality or can anyone explain me how to create manufacturer/brand in Magento2.
I cant find any way to create brand/manufacturer in magento2 as it was in prestashop.
Do I need module to create separate brand or I can create manually in magento2.
I want to list my top brands in footer section.


texts: Make required field to Gift Option in Magento 2

texts:
I enable gift option from magento 2 admin. Now i want to make required. field on cart page.

I found that template is coming from vendor/magento/module-gift-message/view/frontend/web/template/gift-message-form.html

I know how we override html files but don't know how we make require filed in html form of magento 2.

        <input type="text"
               id="gift-message-whole-from"
               class="input-text"
               data-bind="value: getObservable('sender')">

I used this but not luck

method #1 – by setting data-validate attribute on the input field:

<input data-validate='{"required":true}'name="field1" id="field1" ... />

method #2 – by setting the rule names as attributes:

<input required="true" name="field2" id="field2" ... />

method #3 – by setting the rule names as classnames:

<input class="input-text required" name="field3" id="field3" ... />


texts: insert different block in the middle of block content

texts:
I have a phtml for a block like this :

app/code/Vendor/Modul/view/frontend/templates/main.phtml

I want to use above phtml in 2 different pages, but for the left-section div class it will have different phtml content , is it possible to do this?


texts: Magento 1.6.2.0 PayPal Bug - Billing address request is not enabled for merchant (#11601: Request for billing address failed)

texts:
I'm working on a project with Magento 1.6.2.0 and we are experiencing an issue related to PayPal.

It says:

Billing address request is not enabled for merchant (#11601: Request for billing address failed).

A possible solution for this matter can be found on Stackexchange, however those answers seem to be for Magento 1.9. Older Magento versions don't have the needed system nodes to display configuration settings.

What I'm planning to do is to exctract PayPal Module Files from an upgraded Magento 1.9.x and put them into my own custom module and extend/rewrite Magento PayPal Module Version (from 1.6.2.0).

What I've found is that there are Source Files that needs to be properly rewritten, which wasn't a big issue.

Eventually I've managed to implement the needed System Node Field and set it to 0 (Require Billing Address). I've managed to include my upgraded Checkout.php File that handles setRequireBillingAdress(1) and implemented all needed constants and properties.

However, PayPal Api still returns the error, that I'm getting above.

How could I technically solve this without trying to update the whole Shop?


texts: Magento 2.3.X Admin Panel Category storeview switcher not working after upgrade

texts:
I have upgraded my Magento version from 2.1.9 to 2.3.0 using script.now every thing works fine except category.
when i select category with "All store view" its editable but when i switch store it redirect me to "Default Category"

ScreenVideo


texts: Suggest some free tutorial for magento 2 associate developer certification please Didnt found anything on internet.Any help would be appreciated

texts:
i m planning to answer magento 2 associate developer exam, can anyone plz suggest me some content for the same.
All the cources which are given are paid ones also the exam fee is also not cheap, so wanted some reliable source, Please suggest some.


texts: How to move reivew block after related product in magento 2?

texts: How to move related product block before product review block on product details page. i will try some code but no luck with this. i want to move related product block in to tab panel or review block at the last of the content in magento 2.


texts:
There is a Magento project that was working perfectly fine before this morning and it suddenly started giving an error on "Orders" page in Magento admin. Problem is: it shows loading forever and no menu tabs are working after landing on this page.

Here is the output of the console:

I have also tried like reindexing but couldn't get that work.

Any suggestions why is it showing like this?


texts:
I am building a magento site with 1 website and 2 stores and 1 store view for each store.

Each store will sell different products.
When customers buy a product from store A, and go to store B buy another product, then they checkout, we want the cart to show the product from store A and store B.

Is it possible with magento without hacking/overriding the core files?


texts: Get count from Resource Model Collection

texts:
I want to get the collection's count by using this method :

public function getCount()
    {
        $connection = $this->getConnection();
        $select = $connection->select();
        $select->from($this->getEntityTable(), 'COUNT(*)');
        $result = (int)$connection->fetchOne($select);
        return $result;
    }

in the file Vendor\Module\Model\ResourceModel\Item\Collection.php

I have the following error :

Fatal error: Uncaught Error: Call to undefined method Vendor\Module\Model\ResourceModel\Item\Collection::getEntityTable() in C:\xampp\htdocs\magento2\app\code\Vendor\Module\Model\ResourceModel\Item\Collection.php:31 Stack trace: #0 C:\xampp\htdocs\magento2\app\code\Vendor\Module\Block\Crud.php(43)

Am I missing something in the constructor ?


texts: Getting The Configurable Front End Product To Display The Cheapest Simple Product Price As A 'From' Price

texts:
I am having an issue where my configurable product, which is not actually a product that is for sale, is displaying a price of zero on the frontend website. I would like this frontend product to display the cheapest variant in it's simple products as a 'From' price.

The only way I can currently see how to do this is to have the configurable sku priced as the cheapest, and then the more expensive skus are priced with the difference between the cheapest and their actually price. This is because when I go to select the variant I want within a configurable sku, it says '$0 + $12.99'. $12.99 is the price of a t-shirt and this is the cheapest variant, so I'd like the sku to say $12.99 and then just change to the price of whatever variant/simple product is selected, not ADD on the price to the configurable.

Any help is welcome, this is really frustrating.

Thanks, Dan.


texts: Free shipping on order with subscription product set up in cart

texts:
I am looking to add a rule to all orders but magento core does not do what I am looking to do. What I want to do is check the cart to see if there is a product that has a subscription set up for it. If it does then I want to check the subtotal of the cart and if over $50 give them free ground shipping. If over $150 then they get the free shipping plus 10% of the entire cart.

I have the it so that I can loop through the cart checking for subscription products that are set up to recur on a regular basis. I know this works because I can add products to the cart if it is true. But I don't want to add products I want to give free shipping plus 10% off if applicable.

Is there a way in code to set the discount amount to 10% of the subtotal of the cart? And is there a way to check the shipping method and give them free shipping if they selected ground, or better yet give them the option for free shipping if they meet the criteria during checkout?


texts: Add Custom Validation Rule Magento 2 Validate.js

texts:
I am using the following code on a form to use the validation.js library to validate the form. One of the validation files uses ./rules.js to extend the rules used within the validator which I have managed to overwrite. However {"validation":{}} is not the file that uses it. Can some body please show me?

I have not set a requirejs config in the module that I am doing this from.

I want to add a basic rule that comes back true or false every time just to start from somewhere.

data-mage-init='{"validation": {}}


texts: Clone page.main.title block to Breadcrumps Container Magento2 Meta Title is displayed not the Product Name

texts:
I am new to magento2 and try to add an additional page.main.title block to a breadcrumps-wrapper container.
In catalog_product_view.xml in my custom theme I declared following code:
<body>
        <referenceContainer name="breadcrumps.wrapper">
            <block class="Magento\Theme\Block\Html\Title" name="page.main.title.additional" template="Magento_Theme::html/title.phtml">
                <arguments>
                    <argument name="css_class" xsi:type="string">product</argument>
                    <argument name="add_base_attribute" xsi:type="string">itemprop="name"</argument>
                    <argument name="translate" xsi:type="boolean">false</argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>

The copy of the block is working. But it does not show me the correct title but the meta title text of the product is displayed!
The Prroduct Name is test1.
The Meta Title is anhänger3.
The meta title is the text where I can edit in the backend of magento when adjusting the product.

I want to have the Product Name in my product.main.title.additional block, not the Meta Title.
What am I doing wrong?


texts:
I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP

The installation went without any problems. But when I try to access the admin url I get the URL not found error.

the magento archive has been uploaded and extracted as the magento system user. All following tasks have been also performed as magento (who is member of www-data). The server has a https certificate (via certbot). And I use my own virtual host file, which has been activated.

Maybe the content is wrong:

<VirtualHost *:80>
ServerName xxxx
ServerAlias www.xxxx.xx
ServerAdmin info@xxxx.xx
DocumentRoot /var/www/html/

ErrorLog /home/magento/logs/error.log
CustomLog /home/magento/logs/access.log combined

<Directory /var/www/html/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
</Directory>
</VirtualHost>

the .htaccess file delievered with the magento package has not been touched.

I suppose a problem with my apache2 config, or a permission problem. mod rewrite is enabled.

Any hint is much appreciated.

apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1

turns out the admin url was not changed at all. I entered a custom url during installation, still the random generated is saved in /app/etc/env.php
'frontName' => 'admin_9h7wss'

but even trying to access this url generates 404


texts: magento 1.7.0.2 shipping address will revert to billing address when i edit order

texts:
When i place an order on the front end, using a shipping address that is different from the billing address, upon editing the same order on the admin panel, the shipping address will change to the same as the billing address even though when i place the order i use a different shipping address from the billing address. Shouldn't the shipping address remain?

I'm having an issue with a clean install of 1.7.0.2 without any extension installed.

Here is how to reproduce this issue:

Sign up for an account and Place and order on this fresh magento install where shipping address is different from billing address
logon to admin panel, and load up the order, and i can see that the shipping address is different from the billing address
when i click edit to edit the order, "same as billing address will be checked" and the shipping address will be defaulted to the billing address.

How to solve this problem?


texts: how to change an attribute value after clicking swatches based on sku in magento 2.1

texts: i want to change an attribute value based on swatches selection for example based on swatches selection the SKU gets changes so how to change an attribute value?


texts:
I'm facing the same problem as MagentoProblem this link. It is about messy frontend and backend of Magento 2. This happened after i set https://(My_Domain_Name).com into Configuration > Web > Base URLs & Base URLs (Secure) > Base URL for Static View Files & Secure Base URL for Static View Files.

I think the solution in the link will work for me but I don't have enough understanding on how to run the command CLI in Magento 2.3.1. I saw something about 'SSH', 'Terminal', 'Putty', but still not quite understand how to use them. Do i need to install any software or need to download anything else in order for me to run command CLI in Magento? I'm using GoDaddy Hosting > C-Panel > Magento 2.3.1 on Window 10.


texts: Custom getChildHtml Block After Closing HTML Tag

texts:
This may be a stupid question. Is it possible to call a custom block after the closing HTML tag in my templates? Here's what I've got so far, but the block is not included/rendered and there's nothing in the error logs.

File: app/design/frontend/default/theme/layout/local.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <default>
        ...
        <reference name="custom_block">
            <block type="core/template" name="custom_block" as="custom_block" template="page/html/custom_block.phtml" />
        </reference>
        ...
    </default>
</layout>

File: app/design/frontend/default/theme/template/page/html/custom_block.phtml

<!-- boo! -->
<link rel="stylesheet" type="text/css" href="style.css" />

And lastly, I call the block in the layout file(s) like so:

File: app/design/frontend/default/theme/template/page/1column.phtml

    ...
    </div>
    <?php echo $this->getAbsoluteFooter() ?>
</body>
</html>
<?php echo $this->getChildHtml('custom_block') ?>

Have I got the scope of getChildHtml() wrong? I have cleared the cache manually a hundred times and re-indexed the site as much. Thanks for taking a look.


texts: How to show all payment methods? Magento 2

texts:
When I choose a delivery method, payment methods are not displayed the first time, you need to click on the delivery method several times only then it will show the payment methods available for this delivery method.
And if the form is not filled at all, then not when it doesn’t show payment methods, how can I fix this?
There is a module Amasty, Checkout.


texts: Show Pop Up when click on Add to cart checkbox for related products Magento 2.1.7?

texts:
How to show Pop Up when clicking on Add to cart checkbox for related products Magento 2.1.7?

The pop-up message should be (The product has been added to cart)


texts:
how can I get customer currently being edited?
I'm developing a plugin with UI on customer edit page.

Thanks.


texts: Magento CE 1.9.1.0 discount code on default one page checkout

texts:
I was originally using a custom theme for our Magento CE 1.9.1.0 however we decided to switch to use the default theme/pages for the checkout process. However I noticed that the discount code input box is not visible on the one page checkout?

I added the below code to the payment.phtml page. However our issue is when a user types in a coupon code and clicks apply they are redirected to the view cart page where they are presented with the success message.

  <?php
      echo $this->getLayout()->createBlock('checkout/cart_coupon')->setTemplate('checkout/cart/coupon.phtml')->toHtml();
  ?>

I am wondering how to make it so that the user will not be re-directed to the view cart page and instead stay on the checkout page to have the discount code applied.


texts: Magento 2 - How to display static block based on dropdown selection of created attribute?

texts:
I achieved this funcionality in Magento 1 doing the following:

Created an attribute "sizetable" with options "tshirts" and "dresses".
Assigned the respective attribute value for each product.
Created 2 blocks with identifiers "tshirts" and "dresses".
On the product template I added the following code:

<?php $sizeguide = $_product->getAttributeText('sizetable');
        if ($sizeguide): ?>
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($sizeguide)->toHtml() ?>
        <?php endif; ?>

However this process does not work in Magento 2.


texts: How to modify text string from this JavaScript file

texts:
I would like to change a text string in this file, to be Add or Added to Basket depending on which page the user is on:

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

To explain, this piece of text is added to the add-to-cart button when the user selects it, at first it is changed from Add to Cart to Adding..., then to Added and finally back to Add to Cart

On the Category View page I would like it to change to Add at the end and on the Product View I'd like to change it to Add to Basket at the end.

I've used tranlation CSV file in my theme to change Add to Cart to Add to Basket already.  But this does not translate strings from JavaScript, it's a bug Magento2 bug.
app/design/frontend/Holy/mytheme/i18n/en_GB.csv

Anyway, I don't think translations will work for me here as I would need to use a different translation depending on which page the user is on, and they're both using the Magento_Category module.

I have a solution but I'm not sure if it's best practice, I made a copy of:
 app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

and placed the copy in my theme at: app/design/frontend/Holy/mytheme/Magento_Catalog/web/js/catalog-add-to-cart.js

then a changed a section of code to:

// Check to see if we're using the form which is present on the category-view page.
if (jQuery(self.element.context).attr('data-role') == "tocart-form") {
    var addToCartButtonTextDefault = self.options.addToCartButtonTextDefault || $t('Add');
} else {
    var addToCartButtonTextDefault = self.options.addToCartButtonTextDefault || $t('Add to Trolley');
}

Is this ok?  Or is there a better way of doing it, I would prefer not to have to override all the JavaScript from this file in my theme.


texts:
I found :

  Cannot change permissions for path "/var/www/html/ pub/media/captcha/base" Warning!chmod(): Operation not permitted in support_report.log.

I have given /var/www/html/ pub/media/captcha permission 777 and ownership root.  But the problem still appears.

How to deal with this issue?


texts: Call CMS Block with Category name as Identifier

texts:
The goal is to call a static cms block at the bottom of the category page, with block identifier == category name (so that I can make a block in the admin backend for every category).

So I first thought of just adding a static cms block in the catalog_category.xml in my theme, but I think it is not possible to call the category name inside of the xml (or is it?)

Second try was to call a phtml template in the xml file. In the phtml teplate, I just call a static block with the name of the category. Unfortunately, I can't get the XML to work :/

This is what I added to MyTheme/Magento_Catalog/layout/catalog_category_view.xml

            <block class="Magento\Catalog\Block\Category\View" name="category.bottom" template="Magento_Catalog::category/bottom.phtml"/>

And in the template directory under category, I added the bottom.phtml. But when I open a category now, it says "File path is forbidden for security reasons".

So I tried to just call a template that is already there (the description.phtml), but that did not work either.

Now it gets strange: I tried to override the description.phtml in my theme, just to test if I got the paths right. The result was that the description in the frontend just disappeard, no matter what I wrote in the file - even if I just copied the original file to the override file. I just can't understand why...

Can anyone help?

Thanks, Valentin


texts: How to set shipping method without address in magento?

texts: I just wanted to give you the guidance that how we can set the shipping method without calculating shipping in cart page.