texts: Change currency precision in Magento 2 Product detail page

texts:
how to change the currency's precision?

want to change the precision from 2 decimal places to 3 in plp and pdp .

changed or extend function format() in module-directory\Model\PriceCurrency.php

it effect for list and cart page but in product detail page still it shows 2 decimal place

how to fix this issue


texts: View action open blank detail page for an order in adminhtml

texts:
I get from a 3rd party orders that I save into sales_flat_order, sales_flat_order_grid, sales_flat_order_payment and sales_flat_order_address

I can see the orders I create into those table in order grid but when I click on view action I don't see any detail as the page is blank.

I don't Know if I have to insert information in other tables?

Enabling the error code for dev I have this hwen I try to enter to admin magento.

Fatal error:  Call to a member function getId() on a non-object in D:\wamp\www\magento1.9\app\code\core\Mage\Adminhtml\Block\Sales\Order\View\Info.php on line 161


texts: Slick Slide After Scroll Slide is Working Magento2

texts:
I have used Slick Slider for Product Comparison in Magento 2.3. The issue here is when I scroll alone the slick slider gets activated. But I need to load slider before.

Its Like I Am new to knockoutjs I dono whether my data passing method is correct or not. Please do guide me

PHTML Code

                <input type="hidden" class="compare-item-id" data-bind="value: id"/>
                <a href="#" data-bind="attr: {'data-post': remove_url}" title="<?=/* @escapenotverified */ __('remove this item') ?>" class="action delete cancelclose remove-slide" > <?= /* @escapeNotVerified */ __('&times;') ?>

                        $3,499.99

<?= /* @escapeNotVerified */ __('Compare') ?>
             ()

        <button type="button" class="clearall" id="clearall">
        <a id="compare-clear-all" href="#" class="action clear" data-post="<?=$block->escapeHtml( $this->helper('Magento\Catalog\Helper\Product\Compare')->getPostDataClearList() ) ?>"> <?= /* @escapeNotVerified */ __('CLEAR ALL') ?>

        </button>
        <?= /* @escapeNotVerified */ __('COMPARE') ?>

My Js Code

require(['jquery', 'jquery/ui'], function($) {
    jQuery(document).on('ready', function() {
        $('.regular').not('.slick-initialized').slick({
            dots: true,
            infinite: true,
            slidesToShow: 3,
            slidesToScroll: 1,
            arrows: true,
            mobileFirst: true,
            responsive: [{
                breakpoint: 599,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 0,
                    prevArrow: null,
                    nextArrow: null,
                    infinite: false
                },
                breakpoint: 999,
                settings: {
                    slidesToShow: 3,
                },
            }]
        });
    });
});

Before scroll slide:

After scroll slide:

Any help will be appreciated!


texts:
I want to create docker file using alankent/gsd image.And I'm getting authentication issue.here -i option is not working.I'm using windows 10 as a host.

how to attach my public key & private key to dockerfile?

FROM alankent/gsd
RUN cd /magento2
RUN composer require "magento/product-community-edition:2.1.0" --no-update
RUN composer update
RUN php bin/magento cache:clean
RUN php bin/magento setup:upgrade
RUN php bin/magento setup:static-content:deploy

docker build   -t sivajik34/m2upgrade .
    Sending build context to Docker daemon 2.048 kB
    Step 1 : FROM alankent/gsd
     ---> 2e0b231762c2
    Step 2 : RUN cd /magento2
     ---> Using cache
     ---> 382f13a77358
    Step 3 : RUN composer require "magento/product-community-edition:2.1.0" --no-update
     ---> Using cache
     ---> 7a380a0306c1
    Step 4 : RUN composer update
     ---> Running in 0ffb5bfab433
    Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
    Loading composer repositories with package information

      [Composer\Downloader\TransportException]
      The 'https://repo.magento.com/packages.json' URL required authentication.
      You must be using the interactive console to authenticate

    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

    The command '/bin/sh -c composer update' returned a non-zero code: 255


texts: Permission denied when try any command in magento 2.1

texts:
When I try to set permissions to folder and files using command like

find . -type f -exec chmod 644 {} \;                    // 644 permission for files
find . -type d -exec chmod 755 {} \;                    // 755 permission for directory
find ./var -type d -exec chmod 777 {} \;                // 777 permission for var folder
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

after using this command my site not working properly and permission denied error when try any command


texts:
I have noticed when browsing our website with cache and cookies clear we get Varnish Cache HITS on every page (with cache warm). Once you add an item to cart then browse back to the same pages we get a Varnish cache MISS.

Is this to do with cookies being created once an item is added to cart? then Varnish treating the page as a new cache instance due to the cookie.

Is there a resolve for this or is this standard practice for Magento?

We are using Magento 2.3.3 with Varnish 6. Using the standard Magento VCL our cookies look like the below


texts: Unable to save column in flexible tables (grids) in the system configuration

texts:
In Magento admin Stores->Configuration->General->Contacts I have a flexible table (grid) similar like this one here:

http://www.ibnab.com/en/blog/magento-2/magento-2-backend-guide-to-create-table-setting-in-the-system-configuration

Everything was working fine and all data was stored, until I try to save country.

I am trying to get country with:

        $this->addColumn(
        'test', [
            'label' => __('Test'),
            'renderer' => $this->getTestRenderer(),
        ]
    );

protected function getTestRenderer() {
    if (!$this->_testRender) {
        $this->_testRender = $this->getLayout()->createBlock(
            \Vendor\Namespace\Block\Adminhtml\Form\Field\Test::class, '', ['data' => ['is_render_to_js_template' => true]]
        );
    }
    return $this->_testRender;
}

It is working and returning the Magento country list with 2 characters ISO country code and label:

<option value="">--Please Select--</option><option value="AF">Afghanistan</option><option value="AX">Åland Islands</option><option value="AL">Albania</option><option value="DZ">Algeria</option><option value="AS">American Samoa</option>

After I select the country and I press the save config button in admin panel the page is refreshing and value is not save.
I found that the others dropdown that I have are created by using Indexed Array, not Associative Array.

I am using test for label and column name just for developing and already have column country, but I want to remove the input field and to use the dropdown for better consistency /for example you can type Germany,Deutschland and etc./.

Can you help me and tell me how to save the field?


texts: Magento 2 authorize.net credit card validation issue

texts:
In magento 2.3.2 i have checked and found one issue regarding credit card validation in authorize.net on onestepcheckout or normal checkout page,I have debug and find if we merge js at that time issue is generated,Here are screenshot of both scenario

Its working before js merge


texts: add new field under groups in system > configration programmatically

texts:
I want to add custom field in each payment method section programmatically. So when I am navigate to System > configuration > Sales > Payment Methods so can access that custom field in each payment method section.
here is example:

<sections>
      <payment>
            <groups>
                 <ccsave>
                    <myfield>   ...

                  <checkmo>
                        <myfield>   ...
                 <ccsave>
                    <myfield>   ...

                  <authorizenet>
                        <myfield>   ...

I have tried this code but not get success:

Event:

<adminhtml>
        <events>
            <controller_action_layout_generate_blocks_before>
                <observers>
                    <custom_controller_action_layout_load_before>
                        <type>singleton</type>
                        <class>Dotsquares_Custom_Model_Observer</class>
                        <method>addCustomNode</method>
                    </custom_controller_action_layout_load_before>
                </observers>
            </controller_action_layout_generate_blocks_before>
        </events>
</adminhtml>

Observer function :

public function addCustomNode(Varien_Event_Observer $observer) {
        $event = $observer->getEvent();
        $current = Mage::app()->getRequest()->getParam('section');
        if($current == 'payment'){

           $allAvailablePaymentMethods = Mage::getModel('payment/config')->getAllMethods();

           $xmldict = new Mage_Core_Model_Config_Base(Mage::getConfig()->loadModulesConfiguration('system.xml')->getNode()->asNiceXml());

          if(count($allAvailablePaymentMethods) > 0){
            $nodeNew =  new Mage_Core_Model_Config_Element('<specificshippingmethod translate="label">
                                    Applicable Shipping Methods
                                    <frontend_type>select</frontend_type>
                                    <source_model>adminhtml/system_config_source_yesno</source_model>
                                    <sort_order>9999</sort_order>
                                    <show_in_default>1</show_in_default>
                                    <show_in_website>1</show_in_website>
                                    <show_in_store>0</show_in_store>
                                </specificshippingmethod>');

              foreach($allAvailablePaymentMethods as $paymentKey => $PaymentVal){
                $xmldict->getNode('sections/payment/groups/purchaseorder/fields')->appendChild($nodeNew);

                /*foreach ($xmldict->getNode('sections/payment/groups/'.$paymentKey.'/fields')->children() as $nodeName => $node) {
                    echo "$nodeName => "; echo '
';print_r($node); echo '

';
                 }*/
             }
           }
          //$config = Mage::getConfig()->loadModulesConfiguration('system.xml')->getNode()->asNiceXml();
            //header("Content-Type: text/xml");
            //echo $config; die;

        }

     }

Please help me how can I do this.
I want to do this only by programmatically, because in future may be more payment methods will be added.

Thanks in advance!


texts: I have one website, one store and multiple store views. One store view has different domain. I want this store view to have the same session, if product is added in one store view, should be also added in store view that has different domain. How can i achieve this? I can't use SID param in Url, because SidResolver is deprecated. I tried setting PHPSESSID cookie but this doesn't work. Magento v 2.4


texts:
i want and need in cart display Grand Total price without include tax, but tax price should be display in different line.
How i can do this? where i can modify file?

Thanks


texts: Logo image not showing on transactional emails in Magento 1.7.0.2

texts:
The image path is accurate in all cases i.e. image file is present but not showing

I have tried following solution for changing templates:

This is the logo image path when viewing it on gmail:

On my local host there is no htacess. what might be causing this issue?


texts: What are the performance implications when loading collections in different ways?

texts:
Given two ways to loading a category collection:

$children = Mage::getModel('catalog/category')->getCollection();
$children->addAttributeToSelect('name')
    ->addAttributeToFilter('parent_id', $parent_id)
    ->addAttributeToFilter('is_active', 1)
    ->addAttributeToFilter('include_in_menu', 1)
    ->addAttributeToSort('position');

Or

$children = Mage::getModel('catalog/category')
    ->getCollection()
    ->addAttributeToSelect('name')
    ->addAttributeToFilter('parent_id', $parent_id)
    ->addAttributeToFilter('is_active', 1)
    ->addAttributeToFilter('include_in_menu', 1)
    ->addAttributeToSort('position');

Are there any differences in performance between them?


texts: Getting URL for Products only works for first store

texts:
Hey everyone so I have two stores.

They sell almost all different products except a few, this is where the issue comes into play.

We sell a product called "Single Hearts" which I display in both stores.  However in my second store I run the following code:

$store = Mage::app()->getStore();
$storeName = $store->getName();
$categoryId = $store->getRootCategoryId();

$categories = Mage::getModel('catalog/category')->load($categoryId);
$categoryChildren = $categories->getChildren();
$categoryArray = explode(',', $categoryChildren);

TLDR for the code above finds all the product categories for that given store

Then I sift through the categories and create links for a nifty Nav Bar I'm currently creating.

    <?php
         foreach ($categoryArray as $category) {
             $rootCategory = Mage::getModel('catalog/category')->load($category);
             $rootCategoryUrl = $rootCategory->getUrl();
                ?>

hello

<a href="<?php echo $rootCategoryUrl ?>">Name

   <?php } ?>

The problem arises when I share products across stores!  As you can guess it's because when I run the line $rootCategory->getUrl(); it grabs the url from the first store.  So when someone in my second store clicks the link it tries to send them to my first store and there is an error.  Any quick solution to this? Or am I going to have to get crafty?


texts: Sort categories by a regular expression, letters then characters/numbers

texts:
Is there a way to sort a collection by a regular expression? as far as I can tell, there is only setOrder() on a collection, where you put the column, and then asc or desc. I want to be able to sort such that if my data is:

foo
bar
7
baz
19

the results would be
bar, baz, foo, 19, 7

instead of 19, 7, bar, baz, foo.


texts:
Consider these three "haystack" strings:

a) foo bar

b) welcome to foo bar industries

c) foo barer

And now my "needle":

foo bar

(Heh)

I would like my filter to match my needle with haystack strings a & b but not c. I have tried:

$collection->addAttributeToFilter('name', array('like' => '%'.$needle.'%'));

But the above matches with c.

I also tried:

$collection->addAttributeToFilter('name', array('like' => '% '.$needle.' %')); // Note the spaces

The above only matches with b.

Any help is much appreciated.


texts: How to replace "My Account" with the customer name

texts: After Login i want to replace the "My Account"(Dropdown with links) With "Hi,FirstName" post login  ? How do i do that , I am not talking about welcome message ,


texts: Keep products in shopping cart after customer logs out

texts:
I am trying to find a way to keep a customer shopping cart items in the shopping cart after they have logged out.

I have enabled persistence already which is fine as long as the customer logs back in their shopping cart items are visible.

What I would like to do is keep them visible when they log out until they click empty cart.

So far I have added an Observer to hook into controller_action_predispatch_customer_account_logoutSuccess
Then in my Observer I have

    public function preserveQuote(Varien_Event_Observer $observer)
    {
        $customerQuote = Mage::getModel('sales/quote')->loadByCustomer($observer->getCustomer());
        $currentQuote = Mage::getSingleton('checkout/session')->getQuote();
        $currentQuote->merge($customerQuote);
    }

This logic doesn't work as I think the session has already been cleared by the time the Observer does it's thing.

Has anyone come across a better way to do it?

Please let me know as always very appreciative...


texts: Mini cart is displaying the configurable product image instead of simple product

texts:
now, from similar questions on mag stack exch, I noticed that its possibly a problem with cartcontroller.php in which I have the following

        if (!$this->_getSession()->getNoCartRedirect(true)) {
            if (!$cart->getQuote()->getHasError()) {
                $message = $this->__('%s was added to your shopping cart.', Mage::helper('core')->escapeHtml($product->getName()));
                $this->_getSession()->addSuccess($message);
            }
            $this->_goBack();
        }

or there may be aproblem in checkout.xml with Itemrenderers in which i have the following

<reference name="right">
        <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
            <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
                <label>Shopping Cart Sidebar Extra Actions</label>
            </block>
        </block>
    </reference>


texts: How to auto remove items from cart after 1 day - Magento 2.2.4

texts:
Guest / Logged-in user:

Auto removes items from the cart after 24 hours.
Canceling and returning from the payment page auto-remove cart after 24 hours.


texts: Not able to translate shipping method name

texts:
Magento 2.6 Enterprise Edition
I am not able to translate the Shipping method names for different languages.
It is coming from admin.

  If I change the Shipping method name for french or german it's coming
  in English.
  Can anyone suggest how to translate this?


texts: Convert cms page content to html interpretation Magento 2

texts:
in my root.phtml, I can call for cms page content with :

<?php echo $layoutContent; ?>

but I wanted to use $cmsPage->getContent() instead :

<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$cmsPage = $objectManager->get('\Magento\Cms\Model\Page');
echo $cmsPage->getContent();
?>

I get this for result which is correct but not converting to html interpretation :

{{block class="Magento\Framework\View\Element\Template" template="Magento_Theme::cms/home.phtml"}}

Do you know if I could get it work ? ( toHtml() function return error )

Thanks


texts:
I'm working on a M2 store and I want to set the Luma theme from the admin to do some debugging. The way M2 themes are set is waaaay different than M1. I'm looking at the CONTENT > Design > Configuration section, but I can't figure out what is the current theme. The store has multiple websites and store views and multiple themes.

Anyone can shed some light, please?


texts: Magento 2 - PayPal Express Checkout duplicate invoice id

texts:
When I checkout using PayPal express checkout, it returns an error message

  PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice)

I have tried to reset everything but still get the same error.

How to solve this issue?


texts:
I have a Wildcard SSL certificate and yesterday I have asked to siteground to extend it to all my subdomains, the result is that today any https url throw the 404 error (except for index.php/homepage).
 Is it a problem of configuration or a bad installation of the certificate?

I have tried to do not use the https and everything works fine
I have just changed the config under System>General>Web>Secure and then cleaned up sessions, cache and memcache, restored file permission and reindexed the information, but with no luck.
This is my .htaccess in my magento folder:

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

DirectoryIndex index.php

<IfModule mod_php5.c>

php_value memory_limit 256M
php_value max_execution_time 18000

php_flag magic_quotes_gpc off

php_flag session.auto_start off

#php_flag zlib.output_compression on

php_flag suhosin.session.cryptua off

php_flag zend.ze1_compatibility_mode Off

</IfModule>

<IfModule mod_security.c>

SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_deflate.c>

<IfModule mod_ssl.c>

SSLOptions StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^api/rest api.php?type=rest [QSA,L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]

<IfModule mod_setenvif.c>
<IfModule mod_headers.c>

    Header set X-Content-Type-Options: nosniff

    BrowserMatch \bMSIE\s8 ie8
    Header set X-XSS-Protection: "1; mode=block" env=!ie8

</IfModule>
</IfModule>

#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

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

RewriteRule .* index.php [L]

</IfModule>

AddDefaultCharset Off
#AddDefaultCharset UTF-8

<IfModule mod_expires.c>

ExpiresDefault "access plus 1 year"

</IfModule>

Order allow,deny
Allow from all

<Files RELEASE_NOTES.txt>
    order allow,deny
    deny from all
</Files>

#FileETag none

<Files cron.php>

    #AuthName "Cron auth"
    #AuthUserFile ../.htpasswd
    #AuthType basic
    #Require valid-user

    Order allow,deny
    Deny from all

</Files>

EDIT

I'm using magento 1.9.3.1
Admin area works fine

EDIT 2
Setting:


texts: Update item custom quantity and salable quantity value after place order in Magento 2

texts:
I need to decrease purchased item saleable quantity with custom value (x* ordered_qty) after place order in Magento 2.Right now I'm using the following observer and class to update the quantity of purchased items.

Event Xml

    <event name="sales_order_place_after">
       <observer name="Update_customstock" instance="Company\MyMoudle\Observer\UpdateStock" />
   </event>

Observer Class

class UpdateStock implements ObserverInterface
{

    public function execute(\Magento\Framework\Event\Observer $observer)
    {

     $orderData = $observer->getEvent()->getOrder();
     $orderItems = $orderData->getAllVisibleItems();
               foreach($orderItems as $item) {
                      if($flag_variable) {
                $stockItem->setIsInStock(true);
                $stockItem->setQty($new_qty);
               $this->stockRegistry->updateStockItemBySku($item->getSku(), $stockItem);
                     }
        }
    }

}

Issue

But it's deceasing salable quantity double of my sent value and quantity also updating as sent value.

What I need

I need if the order is placed then only the decrease the salable quantity and once the shipment is created then decrease the quantity.

Please suggest any solution with a plugin or observer.


texts:
I'm considering that is there any chance to getRequest from another action in Magento. For example, I have an action called registerAction() which is the action I submit data from my form to. I have another action called ajaxAction() which I want to use the submit data from registerAction

The question is: Is it possible?


texts:
I am using modman to manage modules for a Magento project.

I want to know whether its viable to use modman to manage my theme files also.

Therefore the advantage will be my Magento base installation will be untouched and all my edits will be done through my modman directory. Has anyone tried this?

Thanks


texts:
Is there any possible method to query all orders placed through admin ( backend orders ) using SQL?

The case is to differentiate frontend and backend orders.
What exactly I'm trying to achieve is to copy user details from all orders placed from Admin to a new table to integrate with a third-party application.


texts: How to create multiple global catergories?

texts:
I want to create one more category layer above root category.

for e.g:  I have three categories, MEN,WOMEN,KIDS. I want this three
as global category.  Under Men, Fashion is root category and t-shirts
is sub category.


texts: Get RuleId from Coupon Code in checkout\cart\item\default.phtml

texts:
I have overridden the checkout\cart\item\default.phtml in my theme.
To get the 'used' coupon code I've found below rules in other questions:

$getCoupon = $block->getLayout()->createBlock('Magento\Checkout\Block\Cart\Coupon');
$coupon_code = $getCoupon->getCouponCode();

This is working fine, however I need the RuleId so I can check whether the correct coupon code type is used.

In a class with DI I can resolve this with:

$ruleId = $this->coupon->loadByCode($coupon_code)->getRuleId();
// coupon => use Magento\SalesRule\Model\Coupon;

There is no such block that I can import so I can have access to the getRuleId function?

What is the correct manner to establish this?


texts:
Please can someone clarify this for me

Does Magento 2.3.2 Work with PHP 7.1.30?

I have read on Devdocs 2.3 does work with PHP 7.1.30

But on a tutorial for a relaiable company was told Magento 2.3.1 ONLY works with PHP 7.2  - Is this correct or not?


texts: Cron Job not triggered by config.xml settings

texts:
I have a local module with a cron job configured in config.xml to run once per day at 10:30am:

<sc_followup>
    <schedule>
        <cron_expr>30 10 * * *</cron_expr>
    </schedule>
    <run>
        <model>followup/cron::processFollowupEmails</model>
    </run>
</sc_followup>

I also have the system's crontab set up to run cron.php every 5 minutes:

*/5 * * * * php -f /abspath/mysite/cron.php > abspath/mysite/var/log/cron.log

The admin cron settings are:

Lastly, I have cleared the caches.

My issue is that processFollowupEmails() is running once every 5 minutes instead of once per day at 10:30am. What do I need to change in my configuration to achieve that?


texts: images disappeared after creating subdomain

texts:
Working on magento 1.9 store after getting a improvement suggestion from gtmetrix to serve content from cookieless domain.

( suppose domain is www.example.com )

i created a subdomain cdn.example.com and directed to www.example.com and on magento  Unsecure Url's did following

Base Link URL           http://www.example.com/

Base Skin URL           http://cdn.example.com/skin/

Base Media URL          http://cdn.example.com/media/

Base JavaScript URL     http://cdn.example.com/js/

Secure Url's

Base Link URL           https://www.example.com/

Base Skin URL           https://cdn.example.com/skin/

Base Media URL          https://cdn.example.com/media/

Base JavaScript URL     https://cdn.example.com/js/

on website product images and logo are showing properly but some other images such as cart logo, social sharing logo's are not showing properly here with i attach the images after and before change of url.

before changing url :

after changing url :

how can this be resolved ?


texts: Passing data from a ui form component to included insertListing item

texts:
Is it possible to pass data available in a UI component in the form of a dataScope item:

<field name="question">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="dataType" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">Question</item>
            <item name="formElement" xsi:type="string">textarea</item>
            <item name="source" xsi:type="string">question</item>
            <item name="sortOrder" xsi:type="number">10</item>
            <item name="dataScope" xsi:type="string">question_id</item>
            <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">true</item>
            </item>
        </item>
    </argument>
</field>

to a listing UI component included in the component using a insertListing item:

<insertListing name="test_listing_insert">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="autoRender" xsi:type="boolean">true</item>
            <item name="dataScope" xsi:type="string">question_id</item>
            <item name="ns" xsi:type="string">test_test_listing</item></item>
    </argument>
</insertListing>


texts: Move block after price using layout xml in M1.9

texts:
We've got a module that prints a message with estimated delivery.
This module has an xml layout file with this code
<reference name="product.info.simple">
<action method="setTemplate">
<template>estimateddeliverydate/catalog/product/view/type/default.phtml</template>
</action>
<block type="estimateddeliverydate/catalog_product_view_message" name="estimated_delivery_date_js" template="estimateddeliverydate/catalog/product/view/message/js.phtml"></block>
<block type="estimateddeliverydate/catalog_product_view_message" name="estimated_delivery_date" template="estimateddeliverydate/catalog/product/view/message/default.phtml"></block>
</reference>

Html code is like this:

 .....

Availability:  available

       ... price

I would like to move the estimated delivery div at the end of "product-type-data" div.
Already tried adding after="product.info.simple.extra" in estimateddelivery.xml layout file, but does not work.


texts:
has anybody have any experience with these two? Which one is better?
https://www.ubertheme.com/magento-extensions-2-x/magento-2-data-migration-pro/
http://devdocs.magento.com/guides/v2.0/howdoi/migrate/migrate-data.html


texts: Error adding star rating ,How to add a star rating in magento product detail page?

texts:
This is common question and some people may try to mark this question as duplicate.But my issue is different.Please patiently read my explanation.

We are using daily deals modules to view the product details.

I used Lipscore extension to show reviews on the page.

After install the extension the details page is not retrieve any details.

When i check execption log i got below messages.

  2016-04-27T08:47:35+00:00 ERR (3):
  exception 'Varien_Exception' with message 'Invalid method AdolMedia_DailyDeals_Block_Deal_View::addTab(Array
  (
      [0] => lipscore.reviews
      1 => lipscore_reviews_placeholder
      [2] => lipscore_ratingsreviews/catalog_product_reviews
      [3] => lipscore/reviews/view.phtml
  )
  )' in /var/www/vhosts/abc.com/staging2.abc.com/lib/Varien/Object.php:652
  Stack trace:

#1 /var/www/vhosts/abc.com/staging2.abc.com/app/code/community/Lipscore/RatingsReviews/Model/Observer/Output.php(52):
AdolMedia_DailyDeals_Block_Deal_View->addTab('lipscore.review...',
'lipscore_review...', 'lipscore_rating...', 'lipscore/review...')
#2 [internal function]: Lipscore_RatingsReviews_Model_Observer_Output->addReviewsTab(Object(Varien_Event_Observer))
#3 /var/www/vhosts/abc.com/staging2.abc.com/app/code/community/Lipscore/RatingsReviews/Model/Observer/Abstract.php(18):
call_user_func_array(Array, Array)
#4 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Model/App.php(1338):
Lipscore_RatingsReviews_Model_Observer_Abstract->__call('addReviewsTab',
Array)
#5 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Model/App.php(1338):
Lipscore_RatingsReviews_Model_Observer_Output->addReviewsTab(Object(Varien_Event_Observer))
#6 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Model/App.php(1317):
Mage_Core_Model_App->_callObserverMethod(Object(Lipscore_RatingsReviews_Model_Observer_Output),
'addReviewsTab', Object(Varien_Event_Observer))
#7 /var/www/vhosts/abc.com/staging2.abc.com/app/Mage.php(447):
Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#8 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Controller/Varien/Action.php(351):
Mage::dispatchEvent('controller_acti...', Array)
#9 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Catalog/Helper/Product/View.php(73):
> Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#10 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Catalog/Helper/Product/View.php(144):
Mage_Catalog_Helper_Product_View->initProductLayout(Object(AdolMedia_DailyDeals_Model_Product),
Object(Mage_Catalog_ProductController))
#11 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Catalog/controllers/ProductController.php(132):
Mage_Catalog_Helper_Product_View->prepareAndRender(3553,
Object(Mage_Catalog_ProductController), Object(Varien_Object))
#12 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Controller/Varien/Action.php(419):
Mage_Catalog_ProductController->viewAction()
#13 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250):
Mage_Core_Controller_Varien_Action->dispatch('view')
#14 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Controller/Varien/Front.php(176):
Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 /var/www/vhosts/abc.com/staging2.abc.com/app/code/core/Mage/Core/Model/App.php(354):
Mage_Core_Controller_Varien_Front->dispatch()
#16 /var/www/vhosts/abc.com/staging2.abc.com/app/Mage.php(683):
Mage_Core_Model_App->run(Array)
#17 /var/www/vhosts/abc.com/staging2.abc.com/index.php(87):
Mage::run('', 'store')
#18 {main}

I can understand that two modules(dailydeals and Lipscore) has some clashes but i don't know how to fix this.
Please help me to short this out.
Magento version 1.7


texts: How can I rearrange form fields for customer address attributes in the admin?

texts:
I am developing a Magento extension that adds several custom attributes to the customer address. My goal is to rearrange the address input fields in the admin order form. When I change the sort order of the attributes, the arrangement changes, but only for the custom attributes. I.e. I cannot place input field for custom attribute before input field for a system attribute.

I've read the source code in Mage_Adminhtml_Block_Sales_Order_Create_Form_Address and  Mage_Customer_Model_Form but still cannot figure out how to do it.

Is this possible at all? If so, how do I achieve it?

Edit
In my mysql4-install-0.1.0.php script, I use:

$this->addAttribute('customer_address', 'carrier_office_name', array(
    'type' => 'int',
    'input' => 'text',
    'label' => 'Carrier office name',
    'global' => 1,
    'visible' => 1,
    'sort_order' => 247, // example
    'required' => 0,
    'user_defined' => 1,
    'visible_on_front' => 1
));


texts: How to update quantity into order summary at checkout page?

texts:
Magento Version : 2.3.0

As per client requirement, i need to update quantity from order summary at checkout page.

Please suggest me, how can i implement this functionality?

Thanks in advance


texts: My Magento version is 2.3 community, What I want to know is how can i detect a full text search not a combined one, Example - when I search the word Apollo plus I want it to show results only for Apollo plus but not for other Apollo rangers.


texts: Product detail page configurable product - Child Product Swatch/Gallery images not showing up

texts:
We are facing a strange issue, After upgrade to Magento 2.3.5-p1,
Configurable products child image not showing up,
Showing up for second swatch https://prnt.sc/u9jcq8 but not for first https://prnt.sc/u9jdww
Any help will be appreciated
Thanks & Regards,


texts: SOLVED Magento 1.9 cannot place order "Some transactions have not been committed or rolled back"

texts:
I have Magento 1.9.2.4 and something is wrong with onePage checkout. I've got gift card extension installed on it. It is a custom one but 100% it works fine.

The problem is that I can't place the order and the only one output I get in logs is:

  User Error: Some transactions have not been committed or rolled back
  in
  C:\Users\blablabla\Documents\sites\mywebsite\lib\Varien\Db\Adapter\Pdo\Mysql.php
  on line 4039

I tried to debug it and I found that the problem is in these line:

  $service = Mage::getModel('sales/service_quote', $this->getQuote());
  $service->submitAll();

After it tries to submit everything - it crashes.

I went deeper to sales/service_quote model and found that everything crash after:

  $transaction->save();

C:\Users\blablabla\Documents\sites\mywebsite\app\code\core\Mage\Checkout\Model\Type\Onepage.php

But as I am new to Magento, I have no idea what this model actually does and how to fix it...

Simply when I press "Pay & Place order" button it sends ajax to the web server and respond successfully, but nothing happens after that.

I spent 3 days trying to understand what's wrong with this, so I would really appreciate if someone gives me a hand. I am not really advanced in debugging, so I would really happy if you could give me an advice on how to search the reason of bugs like this. Thanks

P.s. I am using Xampp


texts: Magento 2.2.0 - Block not called in Custom Module

texts:
I am working on a simple module and trying to display a block. All that is showing up is a blank page. If I put an echo "blah"; exit() in my controller, it shows the output. No errors in my log files. Below is the code

registration.php

<?php

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

Magento2/HelloWorld/etc/frontend/routes.xml

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

Magento2/HelloWorld/Block/Index.php

<?php

namespace Magento2\HelloWorld\Block;

class Index extends \Magento\Framework\View\Element\Template {

    public function __construct(\Magento\Catalog\Block\Product\Context $context, array $data = []) {

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

    }

    public function sayHello()
    {
    return __('Hello World');
    }

    protected function _prepareLayout()
    {
        return parent::_prepareLayout();
    }

}

Magento2/HelloWorld/Controller/Index/Index.php

<?php

namespace Magento2\HelloWorld\Controller\Index;

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

class Index extends Action
{
    public function execute()
    {
        $this->_view->loadLayout();
        $this->_view->getLayout()->initMessages();
        $this->_view->renderLayout();
    }
}

Magento2/HelloWorld/view/frontend/layout/helloworld_index_index

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceContainer name="content">
        <block class="Magento2\HelloWorld\Block\Index" name="HelloWorld_index" template="Magento2_HelloWorld::helloworld.phtml" />
    </referenceContainer>

</page>

Magento2/HelloWorld/view/frontend/templates/helloworld.phtml

<?php echo $block->sayHello(); ?>

After running http://localhost/mage2/helloworld/index/index URL, I can see controller being executed but the block is not being called.


texts: Cannot use __construct in bundle checkbox class

texts:
I want to add the product image to bundle product page for each option. I chose to extend class
\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Checkbox

This class has no __construct method, but I have to use it because I want to use \Magento\Catalog\Helper\Image. When I define a construct method, the page crashes and throws an error
Call to a member function dispatch() on null

If I call parent::__construct, I receive a type error indicating the __construct methods do not match.

I have read that if the parent class does not have a __construct class, that I do not have to call parent, but in my case I cannot get this simple modification to work.

class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Checkbox
{

public function __construct(
    \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry,
    \Magento\Catalog\Helper\Image $imageHelper
){
    $this->_stockRegistry = $stockRegistry;
    $this->_imageHelper = $imageHelper;
}


texts: Magento 2.3.5p2 - PayPal Error - PayPal NVP gateway errors: A successful transaction has already been completed for this token

texts:
After recently upgrading to 2.3.5p2 EE, we encountered an error when a customer placed two magento orders in close time proximity to each other.
The first order worked fine, and Magneto recorded both a correlation id and an transaction id, but for the second order Magento completed the order, but there was only a correlation id.
There was an error logged in system.log:
report.CRITICAL: PayPal NVP gateway errors: A successful transaction has already been completed for this token (#10415: Transaction refused because of an invalid argument. See additional error messages for details). Correlation ID: 1251d12bc66e7. Version: 72.0. [] []
There have been other reports of this happening, so I was wondering if there was a definitive fix.
Why would Magento create an order if paypal returned an error?


texts: Magento 2 - get order preview on success page with Product Image

texts: i need order preview on success page with Product images in magento 2.0


texts: Products Name are not updating through csv file in magento 1.9

texts: I am using magento 1.9.2. I want to update some product's name, description and short_description attributes. I have made a CSV file and updated by admin panel. It it showing  successfully updated and it have been updated description and short_description but product name are not updating. Please anyone give me a solution.


texts:
I want to display the icon for the header link My Account instead of the text link. How can I do that?

Is that we can do via CSS? or Is there any method I should follow?

Any help will be appreciated!


texts:
I have a custom grid, that get data from my custom database.

Right now it is linking is dead and i will get a 404-not found.

Is there a way to remove the link on the rows?


texts:
Yesterday I installed the extension and did not see CSS styles.

I ran the command deploy and setup:di:compile and CSS styles appeared correctly.

Today, I changed the Varnish cache to the built-in cache. I do not see these styles CSS again ... so

I ran again the command deploy and setup:di:compile and CSS styles now this time in this way not appeared.

Anyone know where is issue?


texts: "ERR_EMPTY_RESPONSE" IN MAGENTO CONNECT MAGER

texts:
I'm not able to access my Magento Connect Manager anymore.
Backend is correctly working, but when I try to open Magento connect Manager i see a blank page saying "Err_Empy_response".


texts: Magento 2.2 - How to Create a custom dynamic checkout form

texts:
I have to solve following situation and need some help for the way of the solution.
I have to create a custom checkout form, which input elements are defined in a db table. If the user has the related customer group, than I have to load the form fields and types and parse them as a new checkout form.
The fields are grouped so I want to use a fieldset for each of these.
In the fieldset I want to add the result entries ( table rows ) like
this:
foreach result as row:
row->FORMELEMT | row->DESCRIPTION | row->PRICE
endforeach

And finally a button.

So my question is, what is the best way to create a dynamic form like this?

Using a LayoutProzessor? But how can i add / create a custom Field where i can add the type of field, the description and the price?

Or do i have to use another way, directly with a KO Template and assign the Result Rows in a ConfigProvider, so i can get this in a KO Template?

Hope you understand the task.
Thanks for help,
Andre


texts:
I want to add a COOKIE with value and some duration, how to do it in magento 2.

Thanks


texts: Include in Menu false but still subcategory is showing using Magento2

texts: I want to hide some submenus from the Menu by using "Include in Menu = false" from the admin panel, but still, it's showing in Menu. please update if there is any solution to this.


texts: Old URLs after moving a Magento install to new domain

texts:
I'm wanting to move a Magento site from an old domain (olddomain.com) to a new domain (newdomain.com).

How do I make sure that after moving domains, people visiting any page of the old domain (eg. olddomain.com/products/three-legged-table) get redirected to the same page on the new domain (newdomain.com/products/three-legged-table)?


texts: Add Notification to Magento 2.3 Customer Registration About Shipping Restriction to California

texts:
I want to add a notification that appears on the registration page - only when California is selected as a state. Otherwise it will not display. I am unsure of the parameters. I am using Magento 2.3

The current code on the registration.phtml is the following:

                <?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>

                    <select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select" style="display:none;">
                        <option value=""><?= $block->escapeHtml(__('Please select a region, state or province.')) ?></option>
                    </select>
                    <input type="text" id="region" name="region" value="<?= $block->escapeHtml($block->getRegion()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('region')) ?>" style="display:none;">

and my PHP is this, which isn't working:

<?php if ($region_id == '12') {echo '
Please note: We do not ship to California.
';} else { echo '';} ?>


texts: Magento 2 - Between "Rest" and "Soap", Which is better then one?

texts:
Between "Rest" and "Soap" API, Which is better then one ?
I have some cases below:
1) Apply for mobile app call web-service.
2) Apply for desktop app call web-service.
3) Apply for web app call web-service.
Of course, In magento 2, I need to know:
1) How to config only use only one "Rest" or "Soap"?
2) How to create new web-service ?
Thanks!


texts:
I need to create a popup for coupon code in checkout page..

In discount.js:

 showPopup: function () {
            alert("popup");

            var couponcodepopup = {
                type: 'popup',
                responsive: true,
                innerScroll: true,
                buttons: false,
                title: "Naa",
                modalClass: "popup-center",
                clickableOverlay: true,
                heightStyle: "content"
            };
            modal(couponcodepopup, $('.payment-option-inner'));
            $('.payment-option-inner').modal('openModal');
        },

In discount.html

        <form class="form form-discount" id="discount-form">

                        <input class="input-text"
                               type="text"
                               id="discount-code"
                               name="discount_code"
                               data-validate="{'required-entry':true}"
                               data-bind="value: couponCode, attr:{placeholder: $t('Enter discount code')} " />

                    <button class="action action-apply" type="submit" data-bind="'value': $t('Apply Discount'), click: apply">

                    </button>

                    <button class="action action-cancel" type="submit" data-bind="'value': $t('Cancel'), click: cancel">

                    </button>

        </form>

I can get the popup without loading any content..

If any one knows ...Guide me..

Thanks.


texts: How do I detect ajax complete event in Magento?

texts:
I have button on checkout page. When I clicked on that button, an ajax event it is called and returns me a HTML code, which is actually the html code from the next step(payments step). I want to add some CSS code after the ajax event. How can I do that? I tried, by using the ajaxComplete function, but its not firing.

 jQuery(document).ready(function(){
        jQuery(document).ajaxError(function(e, jqxhr, settings, exception) {
            alert(exception);
        })
 })

or

jQuery('body').ajaxComplete(function(event, xhr, settings ) {
        alert(settings.url);
    });

or prototype:

new Ajax.Request('<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>', {
          onComplete: function(response) {
            if (200 == response.status)
               alert(01);
          }
        });

Neither of them are not working! any idea why ?
UPDATE This is part of the code from opcheckout.js

save: function(){
        if (checkout.loadWaiting!=false) return;
        var validator = new Validation(this.form);
        if (this.validate() && validator.validate()) {
            checkout.setLoadWaiting('payment');
            var request = new Ajax.Request(
                this.saveUrl,
                {
                    method:'post',
                    onComplete: this.onComplete,
                    onSuccess: this.onSave,
                    onFailure: checkout.ajaxFailure.bind(checkout),
                    parameters: Form.serialize(this.form)
                }
            );
        }
    },

Where can i add a condition after onComplete?


texts: How to apply coupon codes for each product separately which are in the cart?

texts:
My problem is like this.

  Magento allows to add coupon code for entire cart by default. But what
  I want is to add a new entry for each and every product in the cart to
  apply coupon codes. So the coupon codes may apply for each product in
  the cart separately.

Can we achieve this functionality via shopping cart price rules ? Or any other solution will be appreciated.

The following image will show what I exact try to say. (this was created via firebug)

Thanks in advance.


texts: add custom attribute in Admin > sales > order > select order

texts:
i want to custom attribute(publisher) below product name in Admin > sales > order > view
i am talking about this example admin url
yourdomain.com/index.php/admin/sales_order/view/order_id/194/key/8708c389d84db52a806a3411d367368b/

i am making change in app\design\adminhtml\default\default\template\sales\items\column\name.phtml
my question is first how to override this core file & how to get custom attribute publisher name below product name
i try this code to get publisher name but not working

<?php echo $this->helper('sales')->__('Publisher') ?>: <?php echo implode('
', Mage::helper('catalog')->splitpublisher($this->escapeHtml($this->getpublisher()))); ?>


texts: Custom feature while checkout. Can I add this?

texts:
I am going to start an e-commerce website on this platform, but just needed some info on it.

Like suppose the Cart value of the buyer is Rs.997. I want to add a feature that allows user to pay Rs.1000 and let him choose either of the two options from below:

Donate the Rs.3 for charity or some social work
Convert that Rs.3 to coins/points that are added to his/her account.

This will help in COD deliveries.

Can this be done in Magento?


texts:
I am setting my https in Magento, and I hope every http:// will redirect to https:// automatically. I set the config in apache level

<VirtualHost *:80>
        ServerName local.example.com
        Redirect / https://local.example.com/
</VirtualHost>

It works in frontend and admin.

However, when I try to call the API with POST method
http://local.example.com/index.php/rest/V1/integration/customer/token

It returns

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

If I call with https://, it returns expected result.

Anyone could help? I would like calling http:// also redirect to https:// and returns correct result.


texts: Magento 1.x to 2.x "Remove outdated and redundant data"

texts:
Before data migration, the Magento 2 migration guide suggests...

  Remove outdated and redundant data from your Magento 1 database (for
  example, you could remove logs, order quotes, recently viewed or
  compared products, visitors, event-specific categories, promotional
  rules, and so on)

Does anyone have a reference to the specific tables that can be cleaned up?


texts:
I have another problem.

When you edit an order (admin) you will get here:

The buttons above, marked with the red line, are generated here:

  /module-backend/view/adminhtml/templates/pageactions.phtml

  Magento\Framework\View\Element\Template

// @codingStandardsIgnoreFile

?>
<?php if ($block->getChildHtml()):?>
    <div data-mage-init='{"floatingHeader": {}}' class="page-actions" <?php /* @escapeNotVerified */ echo $block->getUiId('content-header') ?>>
        <?php echo $block->getChildHtml(); ?>
    </div>
<?php endif; ?>

I want to add a custom button "Bestellschein" there.
How can I do that?

Edit: Where can I code the logic of the button?


texts:
We use the product export data from the manual export process in a separate process that is done daily. I was wondering if it was possible to schedule this export somehow. I've done some searching on the web, but every extension that offers this ability is pretty pricey and include a lot of features we don't need. Is there a way to do this natively, or without downloading an extension?

Thanks, Daniel


texts: Magento add jQuery slider in my home page where admin can upload images

texts: I am quite newbie in magento. I have got a jquery plugin. The link is here. Now I want to include this slider in my magento template. Where admin will upload the images and the image should come in the slider just like the jquery plugin images. So can someone kindly tell me how to use this jQuery plugins in my magento template. Any help and suggestions will be really appreciable. Thanks..


texts: Magento 2 - What is the happen when run setup:di:complie

texts:
When I run this command:

  php bin/mangento setup:di:compile

It will throw the Error Exception below:

[ErrorException]
  Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor and Magento\Framework\Interc
  eption\Interceptor define the same property ($pluginLocator) in the composition of MyPool\AttrProduct\Controll
  er\Adminhtml\Product\Initialization\Helper\InterceptorCus. This might be incompatible, to improve maintaina
  bility consider using accessor methods in traits instead. Class was composed

Anybody know what this means and how to fix it?

content of file "InterceptorCus.php"

<?php
namespace MyPool\AttrProduct\Controller\Adminhtml\Product\Initialization\Helper;

/**
 * Interceptor class for @see
 * \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper
 */
class InterceptorCus extends \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Controller\Adminhtml\Product\Initialization\StockDataFilter $stockFilter, \Magento\Catalog\Model\Product\Initialization\Helper\ProductLinks $productLinks, \Magento\Backend\Helper\Js $jsHelper, \Magento\Framework\Stdlib\DateTime\Filter\DateTime $dateFilter)
    {
        $this->___init();
        parent::__construct($request, $storeManager, $stockFilter, $productLinks, $jsHelper, $dateFilter);
    }

}


texts: Added Google Analytics Tracking Number to Magento - What now?

texts:
I have added my Google Analytics Tracking ID to the Google API page in Magento. Will doing this alone effectively track all of my sites traffic, or do I need to take further steps?

Google has provided a tracking code which they recommended putting on every webpage. Do I need to do this?

Thanks as always, guys!


texts: Magento2 : How to get product id to my custom module

texts:
I am new to magento2 and currently I'm building a custom module and i want to get the product ID/SKU from the catalog.
I'm trying to call using a function located in the Block folder. please advise!


texts: How to auto subscribe customer in registration process?

texts:
There is a code for checked newsletter subscription in Magento 2 registration page like below.

Even if I click on the checkbox and register the newsletter subscription is not working as shown below.


texts:
I measured run time for my page and noticed that the function getBaseCurrencyCode() takes over a second to run. All of my caching are enabled.

I examined the function and saw that the following command:

$this->getConfig(Mage_Core_Model_Store::XML_PATH_PRICE_SCOPE)

takes over a second.

but when I use the  Mage::getConfig()->getNode(Mage_Core_Model_Store::XML_PATH_PRICE_SCOPE);
it takes milliseconds

can anyone tell me why is this time difference occurs ?

any advice?

Although I’ve tried the suggested solutions you offered but still there are massive time gaps.  I would be happy if you can try and measure the time it takes for you to run the getConfig function and post it here.

I tried measure the time this function takes by wrapping this code with microtime functions

i.e  on local path : app\code\core\Mage\Core\Model
instead of this line :

$configValue = $this->getConfig(Mage_Core_Model_Store::XML_PATH_PRICE_SCOPE);

I replaced it with this code (same code with microtime):

$start = microtime(true);

$configValue = $this->getConfig(Mage_Core_Model_Store::XML_PATH_PRICE_SCOPE);

$time_elapsed_secs = microtime(true) - $start;

echo "function: getConfig() took me: " .  $time_elapsed_secs . " sec<br />";

die;

my output was:

function: getConfig() took me: 1.1326711177826 sec

I would be happy to see your output and runtime.


texts: I want to add radio button with some prices on checkout page when selected the price will add to grand total.


texts:
I would like to display my product's price directly under its name.
What is the best way to achieve this?


texts:
I changed new_grid.phtml in vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/, but in the frontend nothing changed. I deleted every Cache, reindex everything but it still didnt change anything in the frontend..

To what Location in my custom theme would I need to copy new_grid.phtml, so that it overrides the standard new_grid.phtml and why doesn't it change in the frontend even when I'm directly changing the new_grid.phtml file?

What am I doing wrong?


texts: Magento2: What is the reason why I can't reindex in Production?

texts:
I wonder why Magento 2 disable reindex in Admin GUI area when production mode is enabled.

Every time our clients uploaded new catalog products from import, we need to reindex via command line. This isn't useful for us.

Can you tell us why the Magento team intentionally disabled this feature when in production? Or do I need to adjust any settings to make indexing available in GUI Admin?


texts: Connection Error issue in connect manager - Magento 1.9.2.4

texts: My magento connect manager is not working.


texts: Link to Apple Appstore and Google play store

texts:
We use magento 1.8.1CE

We have just launched an app in the app store and the google play store.

Now i would like to have, that there a link is beeing shown.
(on phones with android and IOS only)
Like on the example.

How can i do this in magento. Does anyone has an example for this?


texts: Block not found using Mage_Core_Block_Abstract

texts:
I gatting error

Recoverable Error: Argument 1 passed to Ess_M2ePro_Controller_Adminhtml_BaseController::_addContent() must be an instance of Mage_Core_Block_Abstract, boolean given, called in /var/www/app/code/community/Ess/M2ePro/controllers/Adminhtml/SupportController.php on line 72 and defined in /var/www/app/code/community/Ess/M2ePro/Controller/Adminhtml/BaseController.php on line 148

When click on sub menu in Admin panel.

Following app\code\community\Ess\M2ePro\Block\Adminhtml\Support.php file.

class Ess_M2ePro_Block_Adminhtml_Support extends Mage_Adminhtml_Block_Widget_Form_Container
{
    private $referrer = NULL;

    public function __construct()
    {
        parent::__construct();
        $this->setId('supportContainer');
        $this->_blockGroup = 'M2ePro';
        $this->_controller = 'adminhtml';
        $this->_mode = 'support';
        $this->referrer = $this->getRequest()->getParam('referrer');

     }
}

Following app\code\community\Ess\M2ePro\etc\config.xml file.

<blocks>
    <M2ePro>
        <class>Ess_M2ePro_Block</class>
    </M2ePro>
    <adminhtml>
        <rewrite>
            <page_menu>Ess_M2ePro_Block_Adminhtml_Magento_Menu</page_menu>
        </rewrite>
    </adminhtml>
 </blocks>

Following app/code/community/Ess/M2ePro/controllers/Adminhtml/SupportController.php file.

class Ess_M2ePro_Adminhtml_SupportController extends Ess_M2ePro_Controller_Adminhtml_BaseController
{
    public function indexAction()
    {
        $this->_initAction();

        $referrer = $this->getRequest()->getParam('referrer');

        if ($referrer == Ess_M2ePro_Helper_Component_Ebay::NICK) {

            $this->setPageHelpLink(Ess_M2ePro_Helper_View_Ebay::NICK);

        } elseif ($referrer == Ess_M2ePro_Helper_View_Common::NICK) {

            $components = Mage::helper('M2ePro/View_Common_Component')->getActiveComponents();
            if (count($components) == 1) {
                $this->setPageHelpLink(array_shift($components));
            }
        }

        $this->_addContent($this->getLayout()->createBlock('M2ePro/adminhtml/support'))
             ->renderLayout();
    }
}

I tried to google but still did not get proper solution.


texts: catalog_product_index_price_cfg_opt_agr_tmp is full Error Message when placing order

texts:
I have upgraded my Magento website from the version of 2.1.5 to 2.1.10. After the up-gradation, I'm getting following error message while I try to place order.

  SQLSTATE[HY000]: General error: 1114 The table
  'catalog_product_index_price_cfg_opt_agr_tmp' is full, query was:
  INSERT INTO catalog_product_index_price_cfg_opt_agr_tmp SELECT
  sub.parent_id, sub.entity_id, sub.customer_group_id, sub.website_id,
  sub.price, sub.tier_price FROM (SELECT e.entity_id,
  cg.customer_group_id, cw.website_id,
  IF(IFNULL(tas_tax_class_id.value_id, -1) > 0, tas_tax_class_id.value,
  tad_tax_class_id.value) AS tax_class_id,
  IFNULL((ta_price.valu…atetimeAStas_special_to_dateON
  tas_special_to_date.entity_id = e.entity_id AND
  tas_special_to_date.attribute_id = 80 AND tas_special_to_date.store_id
  = cs.store_id INNER JOINya_catalog_product_super_linkASlON l.product_id = e.entity_id INNER JOINya_catalog_product_entityASleON
  le.entity_id = l.parent_id WHERE (IF(IFNULL(tas_status.value_id, -1) >
  0, tas_status.value, tad_status.value)=1)) ASsubON DUPLICATE KEY
  UPDATEprice= VALUES(price),tier_price= VALUES(tier_price`)...

All the products have tier price basically. It was working fine before up-gradation. I'm facing this only after the up-gradation.


texts: How can i get the all coupons details in magento 2 using api?

texts: I want to get all coupons that i created in the price rule section using the API just like the result of product/orders listing API.


texts: Onepage checkout jump back to cart in Firefox

texts:
My Magento 1.9.0.1 has the issue in FireFox , when customers fill their delivery information and click on "continue" it will jump back to cart page. This problem only appears in Firefox. With debug in FireFox, it  shows

   NetworkError: A network error occurred.

Anyone has the same issue, or have an idea about how to fix it?


texts: Bulk update the product attributes using Magento 2 import tool - Product SKU / Custom Product Attribute

texts:
Bulk update the product attributes using Magento import tool:

The Required fields(CSV) are:

1) Product SKU (required)
2) Custom Product Attribute (use the custom attribute that needs to be imported.)

Yes, we can import it easily, SKU is mandatory and other, you can use a custom attribute that needs to be imported.

NOTE: In M2, use the google spreadsheet product CSV to import the Products.

thanks!

Nithin Ninan
nithincninan@gmail.com
9895382293


texts: How to get category name from product id in shopping cart?

texts:
I want to get category name, which are products already added in shopping cart. But I want category name in shopping cart add action. Means /checkout/cart/add in addAction.

Thanks in addvanced.


texts:
Paypal plus is not showing if I add a gift code. If there is no gift code applied, then it shows fine.

How can I fix it?

it shows below error:

{"name":"VALIDATION_ERROR","details":
[{"field":"transactions[0].amount","issue":"Amount cannot be zero"},
{"field":"transactions[0].amount","issue":"Transaction amount details
(subtotal, tax, shipping) must add up to specified amount
total"}],"message":"Invalid request - see details"

If i add 2 products and use giftcode, total = 5,00$. Paypal not work and show error

{"name":"VALIDATION_ERROR","details":
[{"field":"transactions[0].amount","issue":"Transaction amount details
(subtotal, tax, shipping) must add up to specified amount
total"}],"message":"Invalid request - see
details","information_link":"https://developer.paypal.com/docs/api/payments/#errors"
,"debug_id":"5d0095b48c028"}


texts: multi store views single checkout and login?

texts:
So I got it setup and am understanding the structure better.
I followed a few tutorials i found online and finally goto multiple domains pointed to multiple stored views with different themes.

The reason I went this way is it was my understanding they could all share the same cart and the products would carry from site/store view to next site/store view remain in the cart until they want to checkout.

And that they would share the same accounts regardless of which store view they logged into and that they would only have to register/log in once across all store views?

doesnt seem to be working for me though.


texts: How to recover error time to change field type in adminhtml form

texts:
Give the solution for this error...
this error comes when I go to add new item or edit item in admin panel

fieldset->addField('dateadded', 'date', array(
          'label'     => Mage::helper('someadd')->__('Date Added'),
          'class'     => 'required-entry',
          'required'  => true,
          'name'      => 'dateadded',
      ));

The Error is given below..


texts: How to enable search for selected dropdown values?

texts:
I want to keep the dropdown attribute along with their values at frontend (Home Page) for searching the catalog. I entered following code:

<?php echo $this->__('Technologies'); ?>

    <select class=" required-entry required-entry select" >
        <?php
             $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product','technologies');
             $attribute = Mage::getModel('catalog/resource_eav_attribute')->load($attributeId);
             $attributeOptions = $attribute->getSource()->getAllOptions();
             foreach($attributeOptions as $each){?>
               <option value="<?php echo $each[value]?>"><?php echo $each["label"]?></option><?php
             }
        ?>
    </select>

    <button type="submit" title="<?php echo $this->__('Search') ?>" class="button search-button"><?php echo $this->__('Search') ?></button>

How to enable catalog search for the selected attribute value.


texts: Authy not giving any options for country code

texts:
I had 2 factor auth working with Google authenticator and Authy. For some reason, Authy stopped giving me options in the dropdown for country code, and I can't get it working.
Any idea how to fix this? I don't see any console errors.


texts: Best practice for multilingual categories and products?

texts:
I think it is very important question for setting up a multilingual store with Magento.
The main problem here I am facing is URL rewriting for categories names for different language.

I have this situation. Let's assume there is 2 store views English and Russian.
So my URL for categories look like this:

http://domain.com/en/products/computers/intel
http://domain.com/ru/produkcija/kompjutery/intel

As you can see category Products is translated to Russian as produkcija(URL key) and Computers to kompjutery(URL key). After this I did redirects for these categories from Russian to English and English to Russian.

When creating a product I would have to do this redirect for products as well. For example computers/intel <-> kompjutery/intel

I would like to say that what I got so far works with writing all redirects manually and I think it is not very convinient, especially when I need to add many products. So I am asking maybe there is a better approach for this?


texts: How to change layout of category list page in magento 2 by xml

texts:
I want to change layout of category listing page from 2columns-left to 1column by xml.

for this what i have tried so far.

In root\magento-ce-2.0.0\vendor\magento\module-catalog\view\frontend\layout\catalog_category_view.xml

I changed

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

to

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

but this is not working, whereas if i change Page Layout of category from admin of then changes reflecting but i don't want to make changes from admin i want it from xml.

Can any one please help me for this.


texts:
we are trying to install magento community on a Wamp64 server with PHP 7.1.22 via composer.

1- we made a new folder on the www call store, go to cmd wamp64/www/store and run:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
2- wue place everything that was on project-community-edition folder unther the store file

3- open apache httpd-vhosts.conf and place this:

ServerName store
ServerAlias store
DocumentRoot "${INSTALL_DIR}/www/tuchile"

Options FollowSymLinks
AllowOverride All
Allow from all

4- open windows host and place 127.0.0.1 store

5- restart the computer

6- open phpmyadmin and create DB store

7- open Chrome on the url store/

8- follow the install procedure

then:
enter image description here

after looking on many pages like:

https://github.com/magento/magento2/issues/12828

Magento2 not reading my requirejs-config.js

https://magecomp.com/blog/fixing-failed-to-load-resources-error-after-installing-magento-2/

we did:

1.-

ROOT > var > cache > DELETE ALL

ROOT > var > page_cache > DELETE ALL

ROOT > var > session > DELETE ALL

2.-

Php.ini change max_execution_time to 500, memory_limit to 2048M, post_max_size to 2048M, upload_max_filesize to 2048M and max_file_uploads to 2048

3.-

Change

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink

To:

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

4.-

Delete everything from ROOT > pub > static > DELETE ALL EXCEPT .HTACCESS

5.- run all this command:

php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento setup:static-content:deploy es_CL -f
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento setup:di:compile
php bin/magento deploy:mode:set production

and still same error!!!

can anyone please help me :(


texts: What is Grunt in Magento2? Why use grunt. I want to know detail about Grunt. When we can use Grunt.


texts: Magento 2: How to send id with the url in MVC pattern

texts:
I want to send the id with the URL for eg: http://192.168.1.108/magento2/profile/id/34 and get id from the my controller.

Please suggest a solution.


texts: Change add to cart template on product view

texts:
I am using a slightly modified Luma theme and want to differ the text on the Add to cart button for product pages only. For this I have created another addtocart.phtml called addtocartmain.phtml which I want to use as the template for add to cart block for product pages. I have then attempted to override the default template using the below code within vendor/theme/Magento_Catalog/layout/catalog_product_view.xml to the body node.

<referenceBlock name="product.info.addtocart">
        <action method='setTemplate'>
            <argument name="template" xsi:type="string">Magento_Catalog::product/view/addtocartmain.phtml</argument>
        </action>
</referenceBlock>

The addtocartmain.phtml is located within:

'vendor/theme/Magento_Catalog/templates/product/view'

After hours or attempting multiple methods of changing the template this is not changing the add to cart button. What could be stopping this from working? I can change the referenceBlock to any other block name and override them just fine with my new template. I have even removed all modules, removed everything but this one modification and tried making these modifications within the core vendor files and still this block is not changing.


texts: In Magento 2.2.5, custom login link is showing login even customers logged In

texts:
In Magento 2.2.5, I have used the custom phtml file in app/design/frontend/vendor/theme/Magento_Theme/templates/html/topmenu.phtml to add the customer header links with following code.
But it is showing the login link even loggedIn.

<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');
        if(!$customerSession->isLoggedIn()) {
    ?>

<a href="<?php echo $storeManager->getStore()->getUrl('customer/account/login');?>" class="level-top ui-corner-all" id="ui-id-9" tabindex="-1" role="menuitem"><?php echo __("Login")?>

    <?php
        }else{
    ?>

<a href="<?php echo $storeManager->getStore()->getUrl('customer/account');?>" class="level-top ui-corner-all" id="ui-id-9" tabindex="-1" role="menuitem"><?php echo __("My Account")?>

<a href="<?php echo $storeManager->getStore()->getUrl('customer/account/logout');?>" class="level-top ui-corner-all" id="ui-id-10" tabindex="-1" role="menuitem"><?php echo __("Logout")?>

<?php
    }
?>


texts: Magento 2 Module Install With Composer going to Vendor Folder,How to install on Server

texts:
I have installed third party module with composer and we are managing code with Git.Since Module is installed with composer so it is going to Magento Vendor Folder.In git we are ignoring Vendor Folder.Hence this module is not tracked in Git while running git status.I am able to see modified in two files

"modified:   composer.json
modified:   composer.lock
"

My question is how I can install this module on server?Should I add and commit both modified files in git and run command composer update(but it will update whole magento) Or should I track that module in vendor folder in .gitignore file?

Please suggest me your thoughts.

Thanks.


texts: Rest API for getting attribute option information

texts:
I want to get a list of all attributes.

I know that domain.com/rest/V1/products/attributes/{{ATTRIBUTE_ID}}/options will grab an the attribute options, but how do i get a list of all attributes so I can know what all of the attribute_ids are?

(I don't really want to grab by attribute-set, I want all eav attributes, including all attributes that are not product attributes).

Edit:
/rest/V1/products/attributes/?searchCriteria gets me close

Edit2:
A quick look at /Magento/Eave/etc/webapi.xml is leaving me thinking this is not something that can be done out of the box.


texts: Coupon Code Discount for Product in Certain Categories

texts:
I'm trying to create a coupon code that will apply a discount to an item in a cart if it is in a certain category but won't discount other items that are also in the cart.
I tested out what I created and the discount didn't apply when I had an item in the cart that wasn't in one of the categories but when I added an item that was in a category it applied the discount to everything in the cart.
This is what I have set up so far:


texts: how to add onhover scrolling for dropdown menu without scroll bar

texts: I have very long dropdown list,,,,i want it with onhover scrolling, but without scroll bar please guide me what changes i have to do......


texts: Magento 2 - Configurable product, get attribute value from associated simple products

texts:
I'm looking for a way to grab the values of an attribute (let's say color) from all simple products associated with a configurable.
So if my associated simple products are:

Simple1 - Red
Simple2 - Blue
Simple3 - Green

On my configurable, I'm looking for a way to output "Red, Blue, Green".
Any suggestions would be appreciated.


texts: Magento 2 : How to add custom css for adminhtml?

texts: I need to add CSS file for Admin side in my custom module. How can I add this for Admin (back-end) only ?


texts: multiple image in array in input field custom form in magento 2.4

texts:
Now i am using input field file[] array so how to $filesData = $this->getRequest()->getFiles('files'); use foreach loop
<input type="file" name="file[]" id="file" title="" class="input-text" data-validate="{required:true}">

Post.php

    public function execute()
    {

    $filesData = $this->getRequest()->getFiles('files');

    **echo "<pre>";
    print_r($filesData);
    echo "</pre>";
    exit;**

    if ($filesData['name']) {
        $uploader = $this->fileUploaderFactory->create(['fileId' => 'files']);
        $uploader->setAllowRenameFiles(true);
        $uploader->setFilesDispersion(true);
        $uploader->setAllowCreateFolders(true);
        $uploader->setAllowedExtensions(['txt', 'csv', 'jpg', 'jpeg', 'gif', 'png', 'pdf', 'doc', 'docx']);
        $path = $this->fileSystem->getDirectoryRead(DirectoryList::MEDIA)->getAbsolutePath('test-doc');
        $result = $uploader->save($path);
        $upload_document = 'test-doc'.$uploader->getUploadedFilename();
        $filePath = $result['path'].$result['file'];
        $fileName = $result['name'];
    } else {
        $upload_document = '';
        $filePath = '';
        $fileName = '';
    }

}


texts: Sorry, no quotes are available only for users with an account?

texts:
I'm facing an no quotes are available for this order at this time issue with customers who have an account and try to login at checkout. Mostly they will get the no quotes are available for this order at this time error, when refreshing the page it's okay... also new customers do not get this error. I've already checked some things but can't find out why users with an account get this error in the checkout page at logging in.
I'm on 2.3.5 p1
I've checked:
All products have weight
All products are simple products
Default country is selected
In the Admin area, Stores > Settings > Configuration > General > General > Country Options > Default Country, select desired country from the list.
Free Shipping is enabled
Table Rates is enabled, Price vs destination:
Country,Region/State,"Zip/Postal Code","Order Subtotal (and above)","Shipping Price"
BEL,,,0.0000,9.9500
DEU,,,0.0000,9.9500
NLD,,,0.0000,6.9500
NLD,,,36.7000,0.0000
Anyone have an idea what's causing this issue?


texts: Is there any affiliate extension for magento 2?


texts: how to update customer and order details from magento to ERP using event observer?

texts:
I need to update the customers data from magento to ERP.

whenever customer going to check out the order,it ask for Guest or Register and checkout.
when we select the Register and check out option,it ask for billing information.after filling these details it ask for shipping details,for instance if we select billing address as shipping address,then ask for shipping method(for instance we select free shipping),then ask for payment method(for instance,if we select cash on deliver),after that order review.

how can i send these customer information and order details to our ERP,using event Observer?
(iam new to magento,if anyone have idea pls share here).

these files i created,Is there any mistakes these files,please correct here?

Observer.php[app/code/local/Wli/SalesOrderafter/Model]

<?php

class Wli_SalesOrderafter_Model_Observer {

    public function SalesOrderafter(Varien_Event_Observer $observer) {

        $event = $observer->getEvent();

        $order = $order->getBillingAddress()->getEmail();

        echo "email:$order";

        exit();
    }

}

config.xml [app/code/local/Wli/SalesOrderafter/etc]

<config>
  <modules>
    <Wli_SalesOrderafter>
      <version>0.1.0</version>
    </Wli_SalesOrderafter>
  </modules>
  <global>
  <events>
    <sales_order_place_after>
      <observers>
        <Wli_SalesOrderafter_sales_order_place_after>
          <type>singleton</type>
          <class>Wli_SalesOrderafter_Model_Observer</class>
          <method>SalesOrderafter</method>
        </Wli_SalesOrderafter_sales_order_place_after>
     </observers>
    </sales_order_place_after>
  </events>
  </global>
</config>

Wli_SalesOrderafter.xml[app/etc/modules]

<?xml version="1.0"?>
<config>
  <modules>
    <Wli_SalesOrderafter>
      <active>true</active>
     <codePool>local</codePool>
    </Wli_SalesOrderafter>
  </modules>
</config>


texts: New Website redirecting to another website of mine (not the base)

texts:
I've recently just created a new Website, Store view and Store for my website. And I have set the store specific url in Configuration -> General -> Web. I have contacted my hosting company to point an IP address to my website as well. However when I try to access the new website, it redirects me to another one, which is not the base one.

My next logical step was to include this snippet of code into my index.php

case 'mywebsite.be':
case 'www.mywebsite.be':
    $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'mywebsitebe';
    $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'mywebsite';
    break;

There is still no change...
One thing I have noticed though is that whenever I type in the address bar mywebsite.be it reroutes me to http://mywebsite.com. Then when I rewrite the url to http://mywebsite.be it shows me that this website cannot be reached.

Has anyone else gone through something similar?


texts: Set up : Buy 1 Get 1 free (the same product)

texts:
Could you explain me step by step how to set up a Buy 1 Get 1 Free promotion from the shopping cart price rules menu.
Ex: If customer buy 1 pack of cookies he gets another 1 for free.

I've tried by my own it doesn't work properly and i guess i can do it without buying specific extension.


texts: "As low as" label still displayed after swatch selected

texts:
I have a problem in the category products view. I have configurable products as well, for those the swatches and a "As low as [price]" is displayed initially. Which is exactly what i want.

When i select a swatch (or all required options, but i only have one) i expect the "As low as"-Label to disappear (because the price is determined) now. But it doesn't, it stays visible. In fact the js is inserting a display: inline-style on the label.

The same workflow, for the same product works just fine in the product detail view (select swatch -> "As low as" disappears).

I am using luma theme with a fresh installation. Magento 2.2.6 and PHP 7.1.


texts: How to send data to Third party graphql endpoint in magento2

texts:
I need to send some order information to monday.com using graphql
when order place I want to pass the data to monday.com graphql API
how can i send API request using graphql to monday.com
UPDATE
Endpoint :- https://api.monday.com/v2
Headers :
Authorization - AAAAAAAAAAAAAAAAAAAAAAAAAAA
Content-Type - application/json
mutation
{
    create_item
    (
        board_id: 0000000001,
        item_name: "NEW",
        column_values:
        "{
            \"text9\":\"Hello world\",
            \"email\" :{\"email\":\"test@test.com\",\"text\":\"test@test.com\"},
            \"dropdown\" :{\"ids\":[6,7,8,9]},
            \"numbers\":\"3\",
            \"sales_associate\" :{\"ids\":[5]},
            \"status\" :{\"label\":\"TEST\"}
        }"
    )
    {
        id
    }
}


texts: Parent configurable product image displayed in wishlist instead of child simple product image

texts:
When I select a child product of a configurable product, and add it to the cart the correct simple child product image is displayed in the cart.

However if I add the same child product to the wishlist, the parent configurable product image is displayed.

I found the setting in Magento back end that controlled which image would be displayed in the cart, but I couldn't find a similar setting for the wishlist.

I also have been trying to fix this situation by changing the code in

app/design/frontend/customtheme/default/template/wishlist/item/column/image.phtml.

However I have been unsuccessful.

Any help would be appreciated! Thanks

This is the code I have done so far; however now I don't have any image being displayed in my Wishlist. The file I am modifying is

app/design/frontend/customtheme/default/template/wishlist/item/column/image.phtml

and code is below

<?php
$item = $this->getItem();
$product = $item->getProduct();
$item_s = Mage::getModel('wishlist/item')->loadWithOptions($item->getId(), 'simple_product')->getOptionsByCode();
$simple_product = $item_s['simple_product']->getData();
$simple_product_id = $simple_product_data['product_id'];
$simple_product_attr = Mage::getModel('catalog/product')->load($simple_product_id);
?>
<a class="product-image" href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>">
     <img src="<?php echo $this->helper('catalog/image')->init($simple_product_attr ,'small_image'); ?>" alt="<?php echo $this->escapeHtml($product->getName()) ?>" />

Also here is the code with extraneous code removed:

$item = $this->getItem();
$product = $item->getProduct();
$item_s = Mage::getModel('wishlist/item')
     ->loadWithOptions($item->getId(), 'simple_product')
     ->getOptionsByCode();
$simple_product = $item_s['simple_product']->getData();
$simple_product_id = $simple_product_data['product_id'];
$simple_product_attr = Mage::getModel('catalog/product')
    ->load($simple_product_id);
<img src="<?php echo $this->helper('catalog/image')
    ->init($simple_product_attr ,'small_image'); ?>" />


texts:
I have approx 2000 records in gift card account in magento1.

Now i want to migrate that records in new magento2.

is it possible to migrate in new magento2 if few products or few customers are not available in new magento2 site?

Any idea how to integrate and how many tables i need to migrate?


texts: "email" is required. Enter and try again. Error on checkout page without login with virtual products Magento 2.3.5

texts: I added virtual product in my cart and proceed to checkout without login. Above the discount field, as page loads I get error " "email" is required. Enter and try again." Kindly suggest solutions, Thanks in advance .


texts:
I'm trying to apply the Buy X Get Y free promotion but its not working. Is there any configuration in Magento 2 to make this work?
Any help will be appreciated!


texts: Authorize.net Direct Post hash validation failed

texts:
I have Authorize.net Direct Post enabled on Magento 1.13 with the following settings:

Payment Action: Authorize Only
Test Mode: No
Gateway URL: https://test.authorize.net/gateway/transact.dll

During checkout, after entering test credit card information and clicking "Place Order"

I get a pop up alert saying:

"Response hash validation failed. Transaction declined."

What is causing this and how do I fix it?


texts: Filter Products with layered navigation using AND condition

texts:
i need to change the layered navigation feature a little bit, currently it filter product attributes on "OR" condition like
Product 1
Red, blue, pink

Product 2
Red

Product 3
Blue

On selecting filter options “red” and “blue” in the layered nav, the product collection includes Product 1, Product 2 and Product 3. I just want it to return Product 1.
I tried to it by modifying

->where($alias.'.value IN (?)', $ids);

to

foreach ($ids as $key => $value) {
     $collection->getSelect()->where($alias.'.value = ?', $value);
    }

but with this when i select two option, it doesn't return a value.


texts: ERROR The consumer isn't authorized to access %resources in custom api in custom module

texts:
I've a custom module with custom api, this custom module has a login page with fields "username", "password", the login is using api to login, the url is
http://www.example.com/rest/default/V1/webpos/staff/login, after i input the username andd password, it shows the error in console.

The error seems was thrown before reaching the code of the custom module, this module works in magento 2.2.2 but not in 2.3.1, anyone knows what is the problem?

<route url="/V1/webpos/staff/login" method="POST">
    <service class="Custom\custom\Api\Staff\StaffManagementInterface" method="login"/>
    <resources>
        <resource ref="Custom_custom::custom" />
        <resource ref="Custom_custom::login" />
    </resources>
</route>

Error

string(3129) "{"message":"The consumer isn't authorized to access %resources.","parameters":{"resources":"Custom_custom::custom, Custom_custom::login"},"trace":"#0 \/home\/m23\/public_html\/vendor\/magento\/module-webapi\/Controller\/Rest\/RequestValidator.php(68): Magento\\Webapi\\Controller\\Rest\\RequestValidator->checkPermissions()\n#1 \/home\/m23\/public_html\/vendor\/magento\/module-webapi\/Controller\/Rest\/InputParamsResolver.php(80): Magento\\Webapi\\Controller\\Rest\\RequestValidator->validate()\n#2 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver->resolve()\n#3 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callParent('resolve', Array)\n#4 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#5 \/home\/m23\/public_html\/generated\/code\/Magento\/Webapi\/Controller\/Rest\/InputParamsResolver\/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callPlugins('resolve', Array, Array)\n#6 \/home\/m23\/public_html\/vendor\/magento\/module-webapi\/Controller\/Rest\/SynchronousRequestProcessor.php(85): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->resolve()\n#7 \/home\/m23\/public_html\/vendor\/magento\/module-webapi\/Controller\/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#8 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#9 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magestore\\Webpos\\Controller\\Rest\\Interceptor->___callParent('dispatch', Array)\n#10 \/home\/m23\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magestore\\Webpos\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#11 \/home\/m23\/public_html\/generated\/code\/Magestore\/Webpos\/Controller\/Rest\/Interceptor.php(52): Magestore\\Webpos\\Controller\\Rest\\Interceptor->___callPlugins('dispatch', Array, Array)\n#12 \/home\/m23\/public_html\/vendor\/magento\/framework\/App\/Http.php(136): Magestore\\Webpos\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#13 \/home\/m23\/public_html\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#14 \/home\/m23\/public_html\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#15 \/home\/m23\/public_html\/pub\/index.php(40): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#16 {main}"}"


texts: event for customer address frontend update

texts:
someone could tell me if there's an event to observe when i update customer address (shipping and billing)? From frontend and backend. I need it to copy these addresses and putting them into another db.

Thanks.


texts:
If a customer wants to change their billing address they have to untick the option My billing and shipping address are the same, a form then appears for them to fill in.

How can I make this unticked by default with the form already shown?

I believe it has something to do with:

Magento_Checkout/web/js/view/billing-address.js

Thanks.


texts: How to get RMA item attribute value in magento1?

texts:
I have created a custom RMA item attribute from magento admin and now i want to fetch its value for a particular RMA.

for example, as shown in image above Item condition is RMA item attribute. and i want to fetch its value i.e, Damaged.

So, how can i do this? Can anyone suggest me something..?

Thanks


texts: Conditionally show specific blocks in mail templates based on store config for a store view

texts:
Is it possible to show / hide different blocks in mail templates, based on store configuration entries?

We know about {{if ... }} and {{config path="config/path"}} but how can this be combined?


texts: Shopping cart price rule applied at Grand total (or subtotal after discount)

texts:
I have a rule:

  Buy 2,500 get product A free

Then customer has coupon discount 200 and grand total now 2300.
In this case rule 2500 must not be applied.

I've found on shopping cart price rule condition but there is no grand total condition. So how do I set up that rule applied at grand total (or subtotal after discount) ?


texts: Magento 2.3: add customizable option text input type=number

texts: How can I create a customizable option text input type=number instead of the default type=text?


texts: Magento 2: Permission issue with generated directory

texts:
I'm having issues installing a theme due to the 'generated' directory not generating all of the files that need to be generated after I run command:

php bin/magento setup:upgrade

Which I think is linked to permission issues (the generated directories have a default permission set to 775).

Because the generated folders are set to 775 permission, there is no 'write' permission for the other user (magento) and thus  crashes instead of upgrading the new theme/modules.

I cannot run the command line as a root user as it uses cgi/fgi instead of cli. I end up having to run as the centos user which uses cli (magento's command line interface) If I could run cli commands as root user. I that would overcome the permission issues that prevents the 'generated' directory from generating all of the files and thus install modules and themes instead of throwing script errors.

I know magento 2.2.6 is relatively new and I'm probably facing an isolated issue given that the environment I'm running magento on is unique:  aws instance with whm in the middle to provide greater flexibility and provide a cpanel interface.


texts: Problem after activating Use Flat Catalog Category and Use Flat Catalog Product

texts:
I've activated the following two features for speeding up my site
 Use Flat Catalog Category
 Use Flat Catalog Product
then re-indexing But then some parts of my site will not show up correctly.
for example Menus are displayed while submenues are not displayed or in some pages do not show the menu images.


texts: How to get customer id from guest checkout

texts: is there any way to get customer id from guest checkout?


texts: Magento 2: Mini cart not updating while delete a product from observer

texts:
I see my mini cart not updating its items when I delete an item from the cart programmatically.

but the cart updating perfectly as per my requirement only after I added a new item into cart or any cart event-triggered non programmatically.


texts:
I understand why and how Magento uses the secondary/pseudo constructor e.g. the constructor that begins with a single underscore.

Is there a specific name for this method:

pseudo constructor
secondary constructor
etc.


texts: Seemingly Random Wrong Store View in Email

texts:
In a client's website, the sales emails is seemingly randomly (so far we've notice it for the order_new and the shipment_new) sent in another language that the language set for the store view the order was placed in.

I have put some logs in the email sending process to try to see at which point the storeId is changed, but so far the issue hasn't arise (or it did but my log don't reveal it).

What could, in your opinion, provoke Magento to use another storeId than the one store in the db?

Edit: Magento version 1.10.0.1,  no email related custom development or 3rd party modules