texts: Is there any way to add MULTIPLE classes to body tag in magento

texts:
I am trying to add multiple classes to body tag in magento using addbodyclass method in my local.xml file.

Code in my local.xml file

<reference name="root">
     <action method="addBodyClass">
        <className helper="mymodule/addbodyclass/addClasses" />
     </action>
</reference>

Code in my Helper class in a custom module:

class Mycompany_Mymodule_Helper_Addbodyclass extends Mage_Core_Helper_Abstract
{
    public function addClasses() {
        return "classname1 classname2 classname3";
     }
}

This adds classes in one string like this:

  classname1-classname2-classname3

in the body tag.

Instead of spaces it adds dash(-). I know this is default behavior of magento. But is there a way to actually add spaces and not dash(-).

Thank You


texts: Mobile Theme not loading from mobile client

texts:
I know this has been asked a million times (I've looked through the threads!), but I'm having a curious issue with Magento.

The issue I'm having seems to be that, following what I did before, and suggestions from other threads, the mobile theme isn't loading.. instead its loading the main site, which isn't great on mobile. I've made sure to clear cache after making the change...

Magento ver. 1.9.1.0

Exception/Theme setup:

Matched expression:
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini


texts: How to add alert or message on checkout page when specific shipping method is clicked?

texts:
I Have Created a custom Shipping Method.
Now on Checkout Page, when customer click on that custom shipping method .. notice or some message should be appear.
How to do that?


texts: Magento 1 - Update products in bulk for custom attribute value

texts: My custom attribute is, PreBook[ Text Field ]. How can I add my custom text Book Your PreBook  to my selected store & selected SKU's? Managed products bulk attributes option taking too many time, how to do by using a better way?


texts: "Minimum Qty Allowed in Shopping Cart" is Broken

texts:
I am having issues with the "Minimum Qty Allowed in Shopping Cart" setting. I set the MOQ to be 25 units, within the inventory setting for a specific product. I can then add 25 units to my shopping cart. The problem is that when I try to add more than 25 units, for example, 26 or 50 units, my shopping cart always reverts back to 25 units.

I do not have Qty Increments enabled. I am using Magento ver. 1.9.1.0 Community Edition. How can this bug be resolved?


texts:
I need to trigger this event but just before the item is removed :

sales_quote_remove_item

But for now, the event is trigger after

I want to do this : when the user is tryinng to remove the product from the cart, do some check and see if the user actually can remove the product (need to do some product dependencies).

Which event should I trigger though ?

See my event :

<event name="sales_quote_remove_item">
    <observer name="sales_quote_remove_item_prevent" instance="Vendor\Module\Observer\PreventRemove"/>
</event>


texts:
I need to use all the pre-hosted images on AWS as a product images in magento. Is there a way to refer those image urls in magento without exactly uploading in magento ?
Thanks !


texts: url rewrite with wildcard possible with magento 2.x default set-up?

texts: I want to use wildcards for url redirects in Magento 2.x with basic Magento set-up. Whenever I add it, either via Import upload or manually added they do not work. Does anyone know if adding wildcards can work this way or do I need a module or extension to make this work?


texts: Require JS error On megento 2.3.2 Upgrade

texts:
I have Upgraded my Magento 2 webshop from 2.2.5 into 2.3.2.

After that PDP page gives console error saying below message.

  GET
  https://mylocal.dev/static/xxxxxxx/frontend/Vendor_name/Theme/us_US/*.js
  net::ERR_ABORTED 404

  Error: Script error for: *

Any answer for this issue?


texts: Magento 2.3.4 - MySQL queries on url_rewrite operations has been improved

texts:
Recently I go through magento 2.3.4 Release Notes at: https://devdocs.magento.com/guides/v2.3/release-notes/release-notes-2-3-4-open-source.html and I found:

  The performance of MySQL queries on url_rewrite operations has been improved. Previously, Magento ran a full scan of the table, and the query was very slow.

I am curious to know what they improve ? If we know, It will also help us to improve other table if required.

Thanks in advance!


texts: Magento 2 Add custom CSS class to breadcrumbs

texts:
I need to add my own CSS class to the
 tag in breadcrumbs.

in Magento_Catalog/templates/products/breadcrumbs.pthml
the code look like this

And this code is rendered to the following on frontend.

        Home

        Test product

I want to add my own css class for example .breadcrumb-style to the
 tag.

What should I do? I did find the _breadcrumb.less file, which allow me to edit the exiting class like .itmes, but I don't know how to add more CSS classes.


texts:
In the admin_role table there is a column role_type that can have 2 values:

'G' - Mage_Admin_Model_Acl::ROLE_TYPE_GROUP
'U' - Mage_Admin_Model_Acl::ROLE_TYPE_USER

By their names I jump do the conclusion that one is for user roles, and the other is for group roles but I cannot understand how are these values used.
AFAIK each admin user, in order to have access to some admin areas must have a role. Is that role 'the group'? If yes, then what is the use of the U value. If not, what's 'the group' then?

Magento version is not important. It's been there since the "big bang" (v0.7) and it's even ported in the next universe (Magento 2).


texts:
I'm trying to edit a related products extension by adding a quantity box next to the add to cart button.  Here is the block of code it needs to be added to:

<?php if ($showCart): ?>

  <?php if ($_item->isSaleable()): ?>
    <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
      <button class="action tocart primary" data-mage-init='{"redirectUrl": {"url": "<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}' type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
        <?php /* @escapeNotVerified */ echo __('Add to Cart') ?>
      </button>
    <?php else: ?>
  <?php $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper');
$postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])
?>
    <button class="action tocart primary"
            data-post='<?php /* @escapeNotVerified */ echo $postData; ?>'
            type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
      <?php /* @escapeNotVerified */ echo __('Add to Cart') ?>
    </button>
   <?php endif; ?>
 <?php else: ?>
<?php if ($_item->getIsSalable()): ?>

<?php /* @escapeNotVerified */ echo __('In stock') ?>

   <?php else: ?>

<?php /* @escapeNotVerified */ echo __('Out of stock') ?>

   <?php endif; ?>
  <?php endif; ?>

<?php endif; ?>

I have a quantity field in the template now, but no matter what quantity I enter, it always adds 1 to the cart.


texts: Magento 2: Can we write script in .html file?

texts:
script code will work in .html file in magento2?
Thanks advance....


texts: Weight in Shopping cart is showing not updated value - Magento 2

texts:
I'm showing in my shopping cart the weight per item using: $_item->getProduct()->getWeight(), however, it shows the original product weight and not what was set after configurations of the item.

For example: Product A has the weight set as 10lb but it has some custom options in which increments the weight based on user choice, but when go to shopping cart it shows only 10lbs, even though that the summary freight calculations is getting the right weight.

Is there any code to show the real weight in the shopping cart?


texts:
Where can I found a Magento API documentation that list all Magento technical functions? I found this link http://docs.magentocommerce.com, however this documentation is not complete and not very detail. For instance, I could not find this function Mage::getModel(String) from this Magento docs.

The documentation I am looking for that something like Java API http://docs.oracle.com/javase/6/docs/api/, specified the function description, return type, parameters, etc.


texts: How to associate simple products with the configurable?

texts: I would like to know how to associate simple products with configurable products? I would also like to put several image in the media_gallery in my configurable products how to do?


texts: Load Magento Layered Navigtion , After page loads

texts:
I have some heavy developments on my Left Hand Layered Navigation , in Category View Page.So its taking time to load , and increasing the page load time.

I have already  done code optimization  and rest of my code is not possible to remove from layered navigation because of client requirement..

So I want to do some thing like this first load all products list then load  layered navigation but note it should not increase page load time

So If it is possible anyhow that , I can load the navigation after page load  then It will be very good for me.

Please help  me  and give me some suggestion


texts: Magento 1 is not creating database tables when re-installing it

texts:
I did a test deleting catalogrule tables from database. I've made the preparation for re-installing Magento script. The installation process went smooth. Checking the database catalogrule tables were not created.

What is actually doing re-installation of Magento?


texts: Default Contact Form Error - Unable to submit your request. Please, try again later Magento CE 1.9.1

texts:
I hope that someone can help me who has possibly been in this situation. I am trying to use the default contact form with Magento 1.9.1 and it is just not working.

I just get the error message

  Unable to submit your request. Please, try again later

I have my Configuration - System - Disable Email Communications - Set to NO.

This is my error log

   2015-02-22T20:39:46+00:00 ERR (3):
   exception 'Exception' with message 'This letter cannot be sent.' in         /home/hcflower/public_html/app/code/core/Mage/Core/Model/Email/Template.php:374
   Stack trace:
    #0/home/hcflower/public_html/app/code/core/Mage/Core/Model/Email/Template.php(508): Mage_Core_Model_Email_Template->send('markhulse@live....', NULL, Array)
    #1 /home/hcflower/public_html/app/code/core/Mage/Contacts/controllers/IndexController.php(10        4): Mage_Core_Model_Email_Template->sendTransactional('contacts_email_...', 'custom1', 'markhulse@live....', NULL, Array)
    #2 /home/hcflower/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Contacts_IndexController->postAction()
    #3 /home/hcflower/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('post')
    #4 /home/hcflower/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #5 /home/hcflower/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #6 /home/hcflower/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
    #7 /home/hcflower/public_html/index.php(87): Mage::run('', 'store')
    #8 {main}


texts: Cron.php not starting the cron jobs, elaborate

texts:
As stated in Cron.php do not start the cronjobs, the insertion of

$isShellDisabled = true;

will make it work. But what is the real cause for this? Why

$isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;

cannot get the right value?

so be it - manemoi
Theodor


texts: How to add a static block in header next to logo in magento 2

texts: I have created magento 2 custom theme and I need to add 2 static blocks next to logo . how can i achieve this . I'm tying show some html text in those blocks


texts:
I am confused about how to custom magento website. I am a software developer.
I know we have admin panel and frontend.

There are two ways to custom magento website?

e.g.
 If I want to change the copyright info of magento website.

One way, for non-developer, go to admin panel to edit copyright info.
Another way, for developer, directly go to source code to edit copyright info? If we can, how can I find this file to change copyright info? I search in the project, cannot find something like 'Copyright © 2017 Magento, Inc. All rights reserved'

Why a lot of online tutorial is talking about go to admin panel to make the change???


texts: Display out of stock products of specific category in list and search result page

texts:
I have enabled Show out of stock products in the admin Inventory section.

I have to show all in stock and out of stock products of one category(id=10 and its subcategory) in list and search result page. by hiding all out of stock products in remaining categories(But should show all in-stock products).

So when we are in category page(id is 10) need to show all in_stock and out of stock,

category page(id is not 10), Need to show only in_stock products.

If in the search result page, have to show both in_stock and out_of_stock(only from category id 10).

I used the below plugin.

Vendor\Module\etc\di.xml

<type name="Magento\CatalogSearch\Model\Search\IndexBuilder">
  <plugin name="Custom_Layernavigation::CustomLayernavigation"
  type="Vendor\Module\Plugin\CatalogSearch\Model\Search\IndexBuilder" />
</type>

Then Vendor\Module\Plugin\CatalogSearch\Model\Search\IndexBuilder.php

<?php
use Magento\Framework\Search\RequestInterface;

class IndexBuilder {
protected $_request;
protected $_categoryHelper;
 protected $_logger;

public function __construct(
    \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
    \Magento\Catalog\Helper\Category $categoryHelper,
    \Magento\Framework\App\Request\Http $request,
    \Psr\Log\LoggerInterface $logger
) {
    $this->_productCollectionFactory   = $productCollectionFactory;
    $this->_categoryHelper = $categoryHelper;
    $this->_request = $request;
    $this->_logger = $logger;
}

public function aroundBuild($subject, callable $proceed, RequestInterface $request) {
    $select = $proceed($request);

    $collection = $this->_productCollectionFactory->create();
    $collection->addAttributeToSelect('*');
    $collection->joinField(
        'qty', 'cataloginventory_stock_item', 'qty', 'product_id=entity_id', '{{table}}.stock_id=1', 'left'
    );
    $collection->addAttributeToFilter('qty',['gt'=>0])->load();
    $collection->getSelect()
        ->join(array('cat_index'=> 'catalog_category_product_index_store1'), "cat_index.product_id = e.entity_id")
        ->where('cat_index.category_id <> 10');

    return $select;
  }
}

Can someone update me on how to implement this functionality? I am unable to write a join query to match the above requirement. Please check and update me about this. Thanks for the help.


texts: Remove Shipping steps in Onepage Checkout

texts:
I'm using CE 1.9.1.0.

I'm trying to remove the Shipping Information and Shipping Method steps from onepage checkout but with no success.

Perhaps someone could help me out or point me in the right direction?


texts: New products doesn't have .html at the end of the url

texts:
A few months ago I changed the Use Categories Path for Product URLs to no to avoid duplicate urls.

Products had .html at the end of the url with or without the category. At this time, I do still have the .html sufix enabled but I've noticed that the new products I upload to Magento doesn't have it.

What I would like is to show all products with .html at the end and of course, without the category on the path.

A screenshot of the configuration as it is at this moment:


texts: LEMP Stack Suggestions for a 10k + Item Magento Community Install

texts:
I operate a Magento Community install that currently contains 30k SKUs (6k configurable with 24k variants).

We are having an ongoing issue with pervasive CPU overloads that result in MYSQL connection interruptions and httpd lockups.

Typically, the issues begin when Catalog_URL Rewrites are Reindexed, or when I mass update Amazon listings with M2ePro.

Just to get through my reindexes I:

Clear Cache and Temporal files:

rm -rf downloader/pearlib/cache/*
rm -rf downloader/pearlib/download/*
rm -rf var/cache/*
rm -rf var/session/*
rm -rf var/report/*
rm -rf var/tmp/*

Truncate Logs:

TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
TRUNCATE report_event;
TRUNCATE catalogsearch_fulltext;
TRUNCATE catalogsearch_query;
TRUNCATE catalog_compare_item;

Clear the Image Cache:

rm -rf media/catalog/product/cache/*
rm -rf media/tmp/*

Set index mode to manual:

php indexer.php --mode-manual catalog_product_attribute
php indexer.php --mode-manual catalog_product_price
php indexer.php --mode-manual catalog_url
php indexer.php --mode-manual catalog_product_flat
php indexer.php --mode-manual catalog_category_flat
php indexer.php --mode-manual catalog_category_product
php indexer.php --mode-manual catalogsearch_fulltext
php indexer.php --mode-manual cataloginventory_stock
php indexer.php --mode-manual tag_summary

*Restart Cloud DB, MYSQL, and HTTPD

Reindex all indexes:*

php indexer.php -r --reindexall

Set index mode to realtime:

php indexer.php --mode-realtime catalog_product_attribute
php indexer.php --mode-realtime catalog_product_price
php indexer.php --mode-realtime catalog_url
php indexer.php --mode-realtime catalog_product_flat
php indexer.php --mode-realtime catalog_category_flat
php indexer.php --mode-realtime catalog_category_product
php indexer.php --mode-realtime catalogsearch_fulltext
php indexer.php --mode-realtime cataloginventory_stock
php indexer.php --mode-realtime tag_summary

Restart Cloud DB, MYSQL, and HTTPD

Madness I know, but now we are looking at a non-bandaged solution.

Rather than just increasing my RAM/HD/BOX allocation I would really appreciate some feedback on my current configuration, along with any suggestions as to how to improve response time and reduce overall load.

Particulars:

Magento Community 1.6.2

Apache build with NGINX serving static content (and configured to be used as a reverse proxy server).

M2ePro (most active connection requests - used to sync Amazon/ebay orders/listing/revisions/inventory)

Server Details:

Box:

  CentOS 6.3
  4096 MB RAM
  160 GB Disk (40% Disc Utilization)

Cloud DB:

  2 GB RAM
  3 GB Disk Current DB size (expanded) 1.7 GB

Pertinent Installed Software Info:

  Apache 2.2.15
  NGINX 0.91
  PHP 5.3.3
  MYSQL 5.1.66

Magento Caching Options:

  APC Caching
  Memcache

Server my.cnf Details:

query-cache-size= 64M
query-cache-limit   = 8M
innodb_buffer_pool_size = 1000M
query_cache_size= 64M
default-storage-engine  = InnoDB
thread_concurrency  = 6
innodb_thread_concurrency   = 6
max-connections = 100

Money/time are limited so I would like to figure out if they would best be spent:

1) Continuing to focus on the optimization of currently allocated resources.

2) Leasing another cloud server, and set up NGINX load balancing

3) Loading Apache onto a few in house boxes (DSL connected) for the purpose of CPU load balancing.

4) Some other option I am not thinking of. Any and all useful suggestions are very much appreciated.

Thank You!


texts: How can I override phtml and xml files overrided by custom theme Magento2.3

texts: How can I override phtml, XML and CSS files that are overridden or created in custom theme.


texts: How to acquire access token for an integration in Magento2

texts:
In Magento2 when you create an integration, how do you get an Access Token? It seems OAuth is the recommended approach for a third-party service, per the documentation. Getting an Access Token is a prerequisite for making authenticated requests against the API.

  Third-party applications authenticate with OAuth 1.0a.


texts: How to remove validation for CITY field in magento onepage checkout

texts:
I want to remove validation for field if specific country is selected for example if User selects India from country then I need to skip validation fro city in other words if India is selected no need for user to enter City

So far I tried getting this using if..else conditions but I cannot able to achieve this

this is my code

            <?php $country=$this->getCountryHtmlSelect('shipping')?>
            <?php echo $country; ?>
            <?php if($country!=India)?>
            *<?php echo $this->__('City') ?>

            <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />

            <?php else: ?>

            <label for="shipping:city" <?php echo $this->__('City') ?>

            <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />

           <?php endif; ?>


texts: Is it possible to get all possible sizes in a certain category?

texts:
We have a LOT of sizes in our database. This makes a size filter near impossible unless we narrow down the filter to the possible values found in the category the user is browsing.

Is it possible to return an array or list made from only the sizes that are available in the products of a certain category?


texts:
I want to delete this dropdown list All category:

I saw a lot of answers how to disable category dropdown via xml, but not of them helped me. I will be grateful if someone will explain me how to use unsetChild-method or something like this. This is original code:

<reference name="header">
    <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</reference>

I tried this one, but still no changes:

<reference name="header">
    <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml">
        <action method="unsetChild"><alias>category_filter</alias></action>
    </block>
</reference>


texts:
I need a bit of guidance with Magento 2.

When I use a sidebar (left) page template, the source code looks like this

...

...

...

I'd like to add 3 other divs:

...

...

...

This is the code I use but it's only for a 1 column page template

<container name="main-content-div" label="Main Content Div" as="main-content-div" htmlTag="div" htmlClass="theme-page-content">
    <container name="main-content-container" label="Main Content Container" as="main-content-container" htmlTag="div" htmlClass="container">
    <container name="main-content-row" label="Main Content Row" as="main-content-row" htmlTag="div" htmlClass="row">

        <container name="main-content-column" label="Main Content Column" as="main-content-column" htmlTag="div" htmlClass="col-md-12">

            <container name="content" label="Main Content Area"/>

        </container>

    </container>
    </container>
</container>

Because of that... it shows on a sidebar page template as:

 ...

...

...

Any help with this is much appreciated. :)


texts:
With our current shopping cart system, we use a service called, "BorderFree" to handle all of our international orders.  Our original plan was to keep using them when we made the switch to Magento later this year, but have decided to go a different route due to 1) BorderFree not having an extension for Magento like they said they would back in October and 2) we want to bring that portion of our business in house to eliminate the fees they charge us.  I've found a few extension that will handle currency conversions and different international taxes, but haven't be able to find anything that will allow us to exclude a product to specific countries (due to that country's import restrictions).  Can anyone recommend an extension (if one exists) that will allow us to, at the product level, disable shipping to specific countries?

Using EE 1.13.0.2


texts:
Not for sure but may be this is a noob Question.
If i want to change anything to the attributes sets in the attributes manager I get an empty page.

I tried to search in the log file and there is an error.

2014-08-23T11:34:48+00:00 ERR (3): Warning: include(): Failed opening 'Mage/Eav/Block/Adminhtml/Attribute/Grid/Abstract.php'

And I do not know how to fix this!
Any tips or tricks for this one?

Thank you,


texts: Magento 2: How to get default address as an array?

texts:
I want to know how to get the default billing and shipping address of a customer as an array.

For example, the code below:

$customer = $this->customerFactory->create()->load($customer_id);
$var_dump($customer-getData());

returns an array containing the customer information:

array(28) {
["entity_id"]=>
string(1) "1"
["website_id"]=>
string(1) "1"
["email"]=>
string(21) "roni_cost@example.com"
["group_id"]=>
string(1) "1"
["increment_id"]=>
NULL
["store_id"]=>
string(1) "1"
["created_at"]=>
string(19) "2018-03-24 21:49:15"
["updated_at"]=>
string(19) "2018-03-24 21:49:16"
["is_active"]=>
string(1) "1"
["disable_auto_group_change"]=>
string(1) "0"
["created_in"]=>
string(18) "Default Store View"
["prefix"]=>
NULL
["firstname"]=>
string(8) "Veronica"
["middlename"]=>
NULL
["lastname"]=>
string(8) "Costello"
["suffix"]=>
NULL
["dob"]=>
string(10) "1973-12-15"
["password_hash"]=>
string(99) "717e603af8497aafda595916332ee0c14a4e84ea59c4a6c3b92a010d747d5547:hHG7t2EQBdl6rZihGuCRxYAguCMCZOya:1"
["rp_token"]=>
string(32) "b7fc3de75f6bf6444abf72f2fb9bc157"
["rp_token_created_at"]=>
string(19) "2018-03-24 21:49:16"
["default_billing"]=>
string(1) "1"
["default_shipping"]=>
string(1) "1"
["taxvat"]=>
NULL
["confirmation"]=>
NULL
["gender"]=>
string(1) "2"
["failures_num"]=>
string(1) "0"
["first_failure"]=>
NULL
["lock_expires"]=>
NULL
}

Now, if I want to do the same for address:

$address = $this->addressFactory->create()->load($customer->getDefaultBilling);
$var_dump($address-getData());

This also returns an array, but it's way larger than the customer one to the point that it crashes the browser.

I just need the default billing and shipping address as an array without any other data.

Thank you.


texts: Magento 2 - child >> child theme is not working

texts:
I want to create 3 themes like below:

store_desktop whose parent theme is luma
store_tablet whose parent theme is store_desktop
store_mobile whose parent theme is store_desktop

store_desktop is working fine. However store_tablet and store_mobile is not working as expected.
Custom styles written in store_desktop is working fine if store_desktop theme is applied. But if store_tablet is applied to a store, styles written in store_desktop are not applied even if that's a parent theme.
These are three different theme.xml files.
store_desktop
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>My Store Desktop</title>
    <parent>Magento/luma</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>

store_tablet
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>My Store Tablet</title>
    <parent>Vendor/store_desktop</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>

store_mobile
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>My Store Mobile</title>
    <parent>Vendor/store_mobile</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>


texts: How to rearrange the links available in header in magento 2.0.2?

texts:
To Rearrange the Header links(ie to bring the My Wishlist link at last)in magento 2.0.2 (parent-theme:blank) I just overrided the default.xml file in

vendor/Magento/module_wishlist/view/frontend/layout/

into

app/design/frontend/<my_vendor>/<my_theme>/Magento_Wishlist/layout

and added after="authorization-link" to it like,

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="wish-list-link" after="authorization-link"/>
    </body>
</page>

But the order of the links didn't change. when I do it directly in vendor/Magento/modules_Wishlist/view/frontend/layout/default.xml changes are taking place.
Kindly help me.
Should anything be done additionally in order to override a layout file?


texts:
magento2 dashboard:

All admin menu link don't work and have a strange icons. Why?

I can't do anything.


texts: I just figured out that the form fields in Magento, while using checkbox, it sends on as its value when it is checked and nothing when unchecked. Now if it is on once it is never set as off in Db core_config_data table. Why has Magento made design like that in its JS?


texts: REST V1/customers adding a new extension attribute Magento 2.3.1

texts:
I have added a new field as "is_seller" in registration page (same as "is_subscribed). If the checkbox is clicked the customer Id will be saved to another table with some additional values.

It was done through the event. But using v1/customers how can I achieve this.
When I tried to add it thorugh the parameters  as below

"customer": {
        "email": "test@test2.com",
        "firstname": "test,
        "lastname": "test",
        "store_id": 1,
        "website_id": 1,
        "is_seller":1
    },
     "password": "Password1"

I am getting the following error

  Message: Property "IsSeller" does not have accessor method
  "getIsSeller" in class "Magento\Customer\Api\Data\CustomerInterface".

I tried using extension attributes also, but it is not working.


texts: I am trying to disable the top links on my Magento nav. I want the dropdown to show but I would like the top link to not link anywhere. Can anyone help with this?


texts:
The "https://repo.magento.com/packages.json" file could not be downloaded: SSL: Connection reset by peer

How can I fix this?  I already updated my credentials.
This is my ~/.composer/auth.json file

{
    "http-basic": {
        "repo.magento.com": {
            "username": "public_key_from_magento_0123456789",
            "password": "private_key_from_magento_012345678"
        },
        "company-i-work-for.git.beanstalkapp.com": {
            "username": "my_username",
            "password": "0123456789"
        }
    },
    "github-oauth": {
        "github.com": "863a989b657e232c7a790ad0123456789"
    }
}


texts:
I tried to write a external script for customer import. I get sample customer data from csv file and put them into an array. it was success, and I can see all the data from the array.

Then I tried to add customer programatically. I use Magestore's article as a reference, here.

First I tried using given sample data and it was a success. Customer is added and I can see new customer from magento admin.

But when I tried to use a foreach loop to run same process for my list of customers (I have 10 sample customers in my csv file.), it gives me an exception.

For example, if I use $customer->setEmail('email@gmail.com'); it will be added and no error. but if I use my array, $customer->setEmail($customerImport[0]); it shows the exception.

Here is my code, can please someone tell me what's the wrong and how to fix this?

<?php

use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';

ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);

$customerImport = getCustomerImport();

function getCustomerImport(){

$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();

$state = $objectManager->get('\Magento\Framework\App\State');
$state->setAreaCode('frontend');

$file = 'tesseract/import/customer.csv';  //CSV file path
$arrResult = array();
$headers = false;
$handle = fopen($file, "r");
if (empty($handle) === false) {
while (($data = fgetcsv($handle, 100000, ",")) !== FALSE) {
if (!$headers) {
$headers[] = $data;
} else {
$arrResult[] = $data;
}
}
fclose($handle);
}

try{
$url = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $url->get('\Magento\Store\Model\StoreManagerInterface');
$customerFactory = $objectManager->get('\Magento\Customer\Model\CustomerFactory');

$websiteId = $storeManager->getWebsite()->getWebsiteId();
// $store = $storeManager->getStore();  // Get Store ID
// $storeId = $store->getStoreId();

foreach ($arrResult as $customerImport) {
// Necessary data from csv
$email  = (string)$customerImport[0];
$websiteName    = $customerImport[1];
$storeName  = $customerImport[2];
$confirmationReq    = $customerImport[3];
$firstName  = $customerImport[4];
$groupId    = $customerImport[5];
$lastName   = $customerImport[6];
$middleName = $customerImport[7];
$userPrefix = $customerImport[8];
$storeId    = $customerImport[9];
$userSuffix = $customerImport[10];
$userUpdatedAt  = $customerImport[11];
$websiteId  = $customerImport[12];
$userPassword   = $customerImport[13];

// Instantiate object (this is the most important part)

$customer = $customerFactory->create();

$customer->setWebsiteId($websiteId);

$customer->setEmail($email);

$customer->setFirstname($firstName);

$customer->setLastname($lastName);

$customer->setPassword($userPassword);

$customer->save();

echo 'Create customer successfully'.$customer->getId();

}

}
catch(Exception $eXp){
echo 'Something failed on customer import '. PHP_EOL;
print_r($eXp);

}

} //end of the function

?>


texts: Cannot insert widgets in CMS page or static block, somebody know what could be wrong?

texts:
using Magento version 2.3.5-p1.
Have the follwing problem and do not know why this is not working anymore.
Editing a block, disable editor and clicking on "insert widget" I get a

404 page not found screen.

On the log I got a debug.log containing the following:
[2020-07-02 21:48:14] main.DEBUG: URI '/admin/cms/page/edit/page_id/6/key/9cda62bd1db41b6a327d51c1b2b9abb85a93b75f938498bdf2b8b897c40b9247/widget_target_id/cms_page_form_content/mode/new?isAjax=true'' cannot be accessed with POST method (Magento\Cms\Controller\Adminhtml\Page\Edit) [] [] [2020-07-02 21:48:14] main.DEBUG: Request validation failed for action "Magento\Cms\Controller\Adminhtml\Page\Edit\Interceptor" {"exception":"[object] (Magento\\Framework\\App\\Request\\InvalidRequestException(code: 0): Invalid request received at D:\\WebMagentoAktuell\\vendor\\magento\\framework\\App\\Request\\HttpMethodValidator.php:69)"} []
Any idea what could cause this error?
Because of this, I cannot insert a widget.
Please help
Best regards,
Jürgen


texts: How can add custom validation in zip code field at checkout Magento2

texts:
I have tried with all solution. Actually, i want to add number validationmeans anyone will not able to write characters in text-field.

when I see in the browser by inspect element then getting this code.

<input class="input-text" type="text" data-bind="
value: value,
valueUpdate: 'keyup',
hasFocus: focused,
attr: {
    name: inputName,
    placeholder: placeholder,
    'aria-describedby': noticeId,
    id: uid,
    disabled: disabled
}" name="postcode" placeholder="" aria-describedby="notice-HGXM9L3" id="HGXM9L3">

if we can also add any custom class then we can set validation by jquery. anyone have an idea for that, please.


texts:
is there a way to disable CSS merge via URL GET parameter or something like this?
I want to keep the merged CSS files for customers while i want to get unmerged version to do some testings for the customer.

Yes i know, i should always do tests on a development machine. Problem is, the development machine is already 1.9.2.3 while the live shop is 1.7.x and we've done a --force update while the customer or the previous agency of the customer did changes in the extensions CSS original file.


texts: Redirect rule when removing product from category

texts:
I am looking for help on a redirect rule for magento. I have recently removed a lot of discontinued products out of product categories for example:

http://www.example.com/gym-wear-brands/golds-gym-long-sleeve/gym/top.html

I have now removed the above product out of the gym-wear-brands category and the URL is now showing a 404 page.

The direct product URL below still works:

http://www.example.com/golds-gym-long-sleeve-gym-top.html

Is there a redirect rule in .htaccess file that would allow me to remove all sub categories from URLs so all product URLs including category path would then then redirect to the product URL? I have around 7000 in WMT that need to be addressed.


texts: Magento 2 amazon pay not working as expected only on product page

texts:
Magento 2.3.0 I already set the configuration for Amazon seller and all working well except product page.

Minicart button and product page button not working on the product page. But on another page mini cart button working well.

What can I do? How can I solve this?


texts:
I want to remove the category image and title at the top of the default category product listing page. I have followed the DevDocs page on overriding an XML layout file:

http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/xml-instructions.html

And after flushing the cache, removing generated files from the VAR folder, and rebuilding those, the supposedly modified layout remains unchanged.

I have found conflicting advice online regarding the naming of override files, and have tried them both without success. One says it should be called default.xml while the other says use the same name as the xml file being overridden (this one makes more sense to me).

Is there a step I'm missing in getting the modification to work?
Are the steps outlined in the docs wrong?

I have copied this file:
vendor\magento\module-catalog\view\frontend\layout\catalog_category_view.xml

To:
app\design\frontend\vendor\theme\Magento_Catalog\layout\catalog_category_view.xml

And added the following code:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
        <referenceBlock name="columns.top" remove="true"/>
    </body>
</page>

I have also tried removing just one of the named blocks to see if the override is working and I am unable to remove the entire container, but no!??

<referenceBlock name="category.image" remove="true"/>

Could someone please tell me what I am doing wrong, or missing?


texts: How to add custom class in Magento 2 Category page?

texts:
I want to add custom class in Magento 2 category page like in
column main and sidebar sidebar-main
How to add custom class with these class ?
Any help is appreciated.


texts: Magento 2.2.6: What is the best way to edit ListProduct?

texts:
I'm overriding getProductCollection of ListProduct block to custom filter the collection dinamically depending on current customer session. First time it works perfectly but following times it gets cached and I can't override the collection. It filters collection by first iteration conditions.

My intention is that each time the client enters the catalog view this query is executed, since it filters the products by customer id.

How could I achieve that?


texts: Magento 2 - Sample module displays blank page

texts:
I'm using Magento 2 version beta-1.0.0 and trying to create a simple new custom module. The custom module works but is showing a blank page on body content.

The module done in below way.

Folder Structure: Hello

-app
    -code
        -Magento
            -Hello
                -Block
                    --Hello.php
                -Controller
                    -Index
                        --Index.php
                -etc
                    --module.xml
                    -frontend
                        --routes.xml
                -view
                    -frontend
                        -layout
                            --hello_index_index.xml
                        -templates
                            --hello.phtml

Files are as follow.

(1) app/code/Magento/Hello/etc/module.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Magento_Hello" setup_version="0.0.1"/>
</config>

(2) app/code/Magento/Hello/etc/frontend/routes.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/App/etc/routes.xsd">
    <router id="standard">
        <route id="hello" frontName="hello">
            <module name="Magento_Hello"/>
        </route>
    </router>
</config>

(3) app/code/Magento/Hello/Controller/Index/Index.php

class Index extends \Magento\Framework\App\Action\Action
{
    protected $resultPageFactory;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\View\Result\PageFactory $resultPageFactory
    )
    {
        parent::__construct($context);
        $this->resultPageFactory = $resultPageFactory;
    }

    public function execute()
    {
        return $this->resultPageFactory->create();
    }
}

(4) app/code/Magento/Hello/Block/Hello.php

<?php
namespace Magento\Hello\Block;

class Hello extends \Magento\Framework\View\Element\Template
{
    public function _prepareLayout()
    {
        return parent::_prepareLayout();
    }
}

(5) app/code/Magento/Hello/view/frontend/layout/hello_index_index.xml

<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <head>
        <title>Hello to Magento 2.0</title>
    </head>
    <body>
        <referenceContainer name="content">
            <block class="Magento\Hello\Block\Hello" name="hello" template="hello.phtml" />
        </referenceContainer>
    </body>
</page>

(6) app/code/Magento/Hello/view/frontend/templates/hello.phtml

<?php echo "This is simple hello module on Magento 2.0"; ?>

Once module created I've updated Magento setup as well.

  cd [magento2_root_folder_path]  php bin/magento setup:upgrade

And if I go to

  http://localhost/magento2/hello/index/index it shows blank under "body" tag. I'm sure module is loading properly since "head" tag appears with  the Title.

Any help would be highly appreciated.


texts: Magento Cannot Initialize Index Process (No Locks Folder in Var)

texts:
The issue:
When I try and reindex my local site, I get the error that Magento "cannot initialize the indexer process."

Other information:
- Upon trying to manually reindex the files through the terminal, I was made aware that pdo_mysql has not been installed.
- It is the "Product Flat Data" that needs to be reindexed.
- The problem is occurring on both the local and live copies of the site.
- This problem  does not occur on other local copies of sites I work on.
- I do not have a "locks" folder in my /var folder.

Also, if it is important I have Magento 1.9.2.1 installed, am running through PhpStorm, am on a Mac, I run my local sites through MAMP.

Please help!


texts: Report > Customers by order totals only shows 5 results

texts:
I am currently trying to run the Customers by Order Totals report in Magento Community, this is stored in Reports > Customers > Customers by Order Totals, currently when I try and run in month, year view, I am only getting 5 customers per month or per year, I want to show more 5 results. Can you help me about this

Any ideas?


texts:
I've got the message from magento to install a Patch.
So I downloaded it and uploaded it to my root.

Created a patch.php containing:

<?php
    print("<PRE>");
    passthru("/bin/bash PATCH_SUPEE-6788_CE_1.9.2.1_v1-2015-10-26-11-38-41.sh");
    print("</PRE>");
    echo "Done";
?>

Uploaded it and gave me the following after I ran patch.php

Warning:  passthru() has been disabled for security reasons in
          /home/xxx/public_html/webshop/patch.php on line 3

Done

Not sure what's next. Am I done now or do I need to find another solution?

----------- UPDATE
After contacting my hosting provider they enabled the passthru() function.
Now it's working:

Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.
Done


texts: Custom customer attribute in sales email

texts:
I've got a custom customer attribute containing the customer ID from an external system that I can access via $customer->getExternalId().

I want to put that ID in my order confirmation emails. How can I do that? I've tried {{var order.getCustomer().getExternalId()}}, but that doesn't work.


texts:
Does any of you have experienced problems with generating the sitemap due to using https instead of http?

I have 2 webshops (each own installation). One of those have a ssl certificate and uses https. I have added this code in the .htaccess to make the whole site use https:

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Everytime I try to generate sitemap it gives me an error that it's unable to generate the sitemap

while on the other installation (which do not use https) I can generate it no problem

that's why I'm concluding at the moment that there is something wrong with the https settings but I have no clue how to fix it


texts: Products import successully with dataflow profiles but won't show on frontend

texts:
Magento Version 1.9.3.6

I am able to import products using Dataflow profiles successfully.

All Cache is disabled.
Tried re-index all after import.
but still products don't show up in frontend.

If I just click on edit and save the product, it just show up correctly.

So If I am importing 20 products, I have to click and save individually each one of them, to make it show in the frontend.

Cannot make out what else I am missing here.


texts: 'Allowed countries' configuration not recognised in Paypal Express Checkout for shipping address validation

texts:
I have a client's shop allowing orders to a national shipping address only.
Using the integrated payment method 'PayPal Website Payments Standard' the paypal express checkout can be completed using any country as part of the shipping address - though allowed countries are limited to the national one only.

That's not the expected behaviour, is this a misconfiguration issue or is this simply not provided by the paypal express integration?

Note: There's some module installed to preset the shipping country (to the national one) for each magento session - could that be related?

I couldn't find any issues similar to mine, and I would be surprised if that's unresolved - so would be great if someone can point me into the right direction.

Magento 1.9.2.1
php 7.0.2


texts: How to know where action "Add To Cart" from?

texts:
I have a problem when customising the Add to cart success message in Magento.

When hiding the success message element all success messages when adding to cart will be hidden
(I try to add a class to message to hide it)

But on the Product Page I want the success message for the main Product to be displayed on successful add to cart and not ti display when adding Related Products to your cart.

So how can I know where the "Add to Cart" action was called from or some solution for this?


texts: Not able to delete 'generated' folder in Magento Cloud

texts:
We are using Magento Cloud Enterprise and using the Magento Version 2.2.

We are not able to delete the generated/ folder, has anybody else faced this issue before?

From comments:
We tried deleting inside generated, yet we couldn't delete the contents, we are getting a "Read-only Filesystem" error.


texts:
I need to create cart price rule Buy x get Y with 50% discount ,Conditions are Buy 1 bag get 1  t-shirt 50 % offer
Scenarios
1), Bag 2 or equals or greater than t-shirt 1 -rule apply
2) ,Bag 1 t-shirt 1 equals or greater than    - rule apply
3) ,Bag 1 t-shirt 1                           - rule apply
How create this in custom can anyone help me or give ideas  to create this?


texts: Receiving Multiple Order Emails Magento 2

texts:
Occasionally multiple order emails are received by our order notification email from a single order. I cannot see any similar issues online currently for Magento 2 just for Magento 1 and was wondering if anyone has experienced this and knows how to fix?
This is intermittent and has so far varied from 1 - 4 emails being sent to notify us that an order has been received. Am unsure if the customer is having the same issues at the moment.
This is currently on magento 2.1.7, with a few modules mainly Ebizmarts SagePay module.
Update
Just want to update that i have continued through various updates since and problem has persisted up to 2.2.1 and will try 2.2.3 soon however do not think it will fix.
Issues here with other users on an Ebizmarts module so may be similar problem with their Sage Pay module:
https://github.com/ebizmarts/magento2-mandrill/issues/39


texts: how to show different prices for login and non-login user on cart page in magento 1.9

texts: There are two prices one for login user and other one is for non login user but when i click add to cart button it show login customers prices to non-login customers please help how can i fix this.


texts: How can I use my own custom system settings in e-mail templates?

texts:
I have this custom configuration in my system.xml:

<system>

        <group id="store_information">
            <field id="support_phone" translate="label" type="text" sortOrder="21" showInDefault="1" showInWebsite="1" showInStore="1">
                Support Phone Number
            </field>
        </group>

</system>

And I want to use this in my e-mail templates. So naturally, I try something like:

{{config path="general/store_information/support_phone"}}

Now this doesn't render the variable. which makes sense. This was also a security issue in Magento 1 since it would allow you to peek into system configuration settings, like API keys and stuff. So I have to include these parameters. Now I've added to my di.xml the setting to the config exclude list and the source model used by the email module:

<type name="Magento\Config\Model\Config\Export\ExcludeList">
    <arguments>
        <argument name="configs" xsi:type="array">
            <item name="general/store_information/support_phone" xsi:type="string">1</item>
        </argument>
    </arguments>
</type>
<type name="Magento\Email\Model\Source\Variables">
    <plugin name="custom_plugin" type="Vendor\Module\Plugin\Magento\Email\Model\Source\Variables"/>
</type>

But still it doesn't work. So where is the setting so I can whitelist certain configuration settings to be used in e-mail templates?


texts: I have created a custom module for backed to add menu and submenu but it shows me Error?

texts:
I have created a custom module for back end Menu and sub menu but it shows me an error.
1 exception(s):
Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file:
'Admin_CreateMenuBackend::commision.phtml' in module: 'Magento_Backend' block's name:
'content_schedule_block1'

My createmenubackend_create_index.xml is
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
   <referenceContainer name="content">
           <block class="Magento\Backend\Block\Template" template="Admin_CreateMenuBackend::helloworld.phtml"/>
   </referenceContainer>
   </body>
</page>

routes.xml is
<?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="admin">
<route id="createmenubackend" frontName="createmenubackend">
<module name="Admin_CreateMenuBackend" before="Magento_Backend"/>
</route>
</router>
</config>

Any help would be appriciated.


texts: Show link only if category has products Magento 1.9

texts:
I have code which outputs category images, names and links so that I can use a static block to output all categories within a parent. Currently each image/title is linked even if the category being linked to has 0 products.

I only want the link to be active if the category it is linking to contains products (i.e. > 0). Otherwise there should be no link.

Can anyone please recommend an update to the code below to get this working?

    <?php
    $layer = Mage::getSingleton('catalog/layer');
    $_category   = $layer->getCurrentCategory();
    $_categories = $_category->getCollection()->addAttributeToSelect(array('url_key','name','image','all_children','is_anchor','description'))
    ->addAttributeToFilter('is_active', 1)
    ->addIdFilter($_category->getChildren())
    ->setOrder('position', 'ASC')
    ->joinUrlRewrite();
  ?>

        <?php foreach ($_categories as $_category): ?>
                <?php if($_category->getIsActive()): ?>
                    <?php Mage::log($_category->debug(), null, 'mylogfile.log'); ?>

                                <a href="<?php echo $_category->getURL() ?>" title="<?php echo $this->htmlEscape($_category->getName()) ?>">-->
                                    <img src="<?php echo $this->htmlEscape($_category->getImageUrl()) ?>" width="690" alt="<?php echo $this->htmlEscape($_category->getName()) ?>" />

<a style="color:#fff;" href="<?php echo $_category->getURL() ?>" title="<?php echo $this->htmlEscape($_category->getName()) ?>"><?php echo $this->htmlEscape($_category->getName()) ?>

                <?php endif; ?>
        <?php endforeach; ?>


texts: Magento 1.9 - Append current url with parameters

texts:
I want to add currency param with current url like

  www.example.com

to

  www.example.com/?currency=USD

Want to load website with param by default because default currency is USD.
I found this below link but its working with currency switch.
How to add currency suffix to URL links?

Is there any way to do this?


texts: How to display attribute swatch image in listing page in Magento 2

texts:
I am using Magento 2.2.2

I have created one attribute "Manufacturer". Input type of this attribute is visual swatch. I have added values with swatch images in this attribute.

I have selected different values of this attribute in different products. Now I am trying to display this images in listing page. See below code:

 <?php $_productCollection = $block->getLoadedProductCollection(); ?>
     <?php foreach ($_productCollection as $_product): ?>
          <?php $m = $_product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($_product);
                        $swatchCollection = $objectManager->create('Magento\Swatches\Model\ResourceModel\Swatch\Collection');
                        $swatchHelper= $objectManager->get("Magento\Swatches\Helper\Media");
                        $item = $swatchCollection->getFirstItem();
                        $SwatchImage = $swatchHelper->getSwatchAttributeImage('swatch_image', $_product->getValue());
                        $thumbImage =  $swatchHelper->getSwatchAttributeImage('swatch_thumb', $_product->getValue());
                  ?>
                    <?php /*?>
 <img src="<?php echo $this->getViewFileUrl('images/product_brand_logo.jpg'); ?>" alt="" />
<?php */?>

 <img src="<?php echo $thumbImage; ?>" alt="" />

     <?php endforeach; ?>

I have added this code in list.phtml file but I am not getting swatch image for corresponding product in listing page. So how can I solve this issue?


texts: Installation fails on "Installing database schema"

texts:
When installing Magento 2.0, the "Customize your store" page shows there is an error (although there are no details under the "show details" link). It will proceed past this point, however when installing it fails at 0%, suggests I check the console log, which only shows the following:

  Starting Magento installation:
  File permissions check...

  Enabling Maintenance Mode...

  Installing deployment configuration...

  Installing database schema:

Any advice from anyone who has installed this previously? I'm using a CentOS box, with php 5.6.


texts: Magento2 Change Text of Top Links Sign In and Sign Out by Inline Translating

texts:
I have Installed Latest Magento 2.2.4 version and crate a custom theme,I am doing customization as per our HTML design.Hence I need to change and move top links.I have moved top links successfully but not getting solution to change Sign In and Sign Out text.
I want to change Sign In to Login and Sign Out to Log Out.
    In Magento 1 there was option to change by Inline translation I hope same should work in Magento 2

I have put file en_US.csv

 /app/design/frontend/Comapnyname/vendorname/Magento_Customer/i18n/en_US.csv

and changed it as per requirement but I am not getting any changed in header links.

Please suggest how I can do that,do I need override any php file or can do this with Inline translate.


texts: Magento2 : Product text area not able to save data

texts:
I have convert product attribute from text field to text area using this query.

  UPDATE eav_attribute SET frontend_input = 'textarea', backend_type =
  'text'  WHERE eav_attribute.attribute_code = 'out_of_stock_message';

I have run commands also run re-index command, so after that it's showing updated text area in product attribute and also in product edit page in admin panel.

But now i'm not able to save data for this product attribute and also not showing any error in error log.

Any help will be appreciated.


texts: Calculate tax for cash on delivery fees in the checkoutprocess Magento 2

texts:
I have two payment methods, cash on delivery and visa card. I added 10.00 SAR as cash on delivery fees. When switching it works fine. But tax is not calculating for this cash on delivery fees. How can I calculate tax for this 10 and add to subtotal and tax amount.

Here I want to add .5 in VAT and sub total and also it shows in the invoice.
Magento 2


texts: XML Validation and Declaration in Magento 2

texts:
If we see and module.xml file or any .xml file there is config tag with some xml code declaration what does it mean? is it required? How it works with Magento 2?

for  Ex :

If you see module.xml file we can see

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..`/../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">`

if we see any modules's default.xml file we can see

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

Also I have seen register.php file for module and it has something like this

\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Mage_Blog',
__DIR__

);

in short there are so many XML related config tag and all have diffrent values as per file so what is the use of that?

And if we create custom module then what and How we can use it?


texts: Magento 2 Customer Account Navigation Multiple tabs Not working

texts:
I created two Tabs in customer account Navigation, 1st tab is working 2nd tab is not working

customer_account.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="customer_account_navigation">
            <block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-module-index-index">
                <arguments>
                    <argument name="path" xsi:type="string">module/index/index</argument>
                    <argument name="label" xsi:type="string" translate="true"> Tab Name</argument>
                </arguments>
            </block>
        </referenceBlock>
        <referenceBlock name="customer_account_navigation">
        <block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-module-index-history">
                <arguments>
                    <argument name="path" xsi:type="string">module/index/history</argument>
                    <argument name="label" xsi:type="string" translate="true"> Tab Name 1</argument>
                </arguments>
        </block>
    </referenceBlock>
    </body>
 </page>

layout.xml

<referenceBlock name="customer_account_navigation">
            <referenceContainer name="content">
                <block class="Package\Module\Block\Index\Index" name="module_index_index" template="Module_Namespace::module_index_index.phtml"></block>
            </referenceContainer>
        </referenceBlock>
        <referenceBlock name="customer_account_navigation">
             <referenceContainer name="content">
                <block class="Package\Module\Block\Index\History" name="module_index_history" template="Module_Namespace::module_index_history.phtml"></block>
            </referenceContainer>
        </referenceBlock>


texts: How do I insert a block from a phtml file on magento 2.0 admin?

texts:
I have an index file on my server and I am trying to get it to show the contents on my site by linking it on the homepage through the admin.

In Magento 1, I did it like this and it worked:

{{block type="core/template" template="/default/carousel/index.phtml"}}

How can I write this on Magento 2.0?


texts: Generate Random numbers for multiple block call

texts:
I am trying to implement custom flash toy for website. To do this I have created custom module.
In custom module, I have created a block class.  Block class contain the function to generate the Random digits.
Here is my block's Class Name:  WM_Jackson/Block/Index/Index

Random Id generator code in block:
/**
 * generate random number for player
 *
 * @return int
 */

public function playeridGenerator()
{
     $ran = rand(10, 999999);
    return $ran;
}

This rando Id generator code works fine when I call my block in cms page using below code:
{{block class="WM\Jackson\Block\Index\Index" template="WM_Jackson::flash_elem.phtml" }}

But when I add multiple blocks on the same page, it generates the duplicate ids for all the blocks.
for example if I add block code 3 times, It shows flash player 3 times but it shows same id for 3players. Hence when user try to interact with Flash show, only first player works.
  {{block class="WM\Jackson\Block\Index\Index" template="WM_Jackson::flash_elem.phtml" }}
  {{block class="WM\Jackson\Block\Index\Index" template="WM_Jackson::flash_elem.phtml" }}
  {{block class="WM\Jackson\Block\Index\Index" template="WM_Jackson::flash_elem.phtml" }}

Above code renders output 3 times but block function playeridGenerator() is generating same number 3 times.
How can I generate Random numbers when calling blocks multiple times?  Is there any native library in magento for this?
Any help would be appreciated.


texts:
I want to apply discount on shipping rate. For example if cart subtotal is greater than $125 then there will be a discount of $17 on the shipping cost. I have created shipping cart rule in admin but the rule gets applied on the cart subtotal, not on the shipping cost.
I have selected the options "apply to shipping amount" as yes and "Stop Further Rules Processing" as no.

Do anybody have idea about how I can do this. Any help will really be appreciated.

Thanks in advance.


texts: category is showing different in home page and different in product page

texts:
**i have problem with catalog my root catergory is home as you can see in screen 1, and the sub category is clothes,  i save settings clear cache, then load the page the out put is screen 2, **

instead of clothes as category i get electronics as main category
problem two is when i click one of the catalog and enter category page i see the actual output i was expecting in the screen 3

** hence i added two sub categories **
 - one is clothes and the other electronics screen 4
 - now when i save and load the page i see the output with no catalog screen 5

any help is appreciated
thank you
am using magento 1.9.2.3


texts: how to group products dynamicaly and add same product separately into the cart page?

texts:
I have some products which are selected on front end by the customer and want to make the group of that selected product and add to cart as a single view.
 How to add same product separately into the cart page?
example of cart view page which I want after adding the selected product to cart:

grouped productname 1
selected product1
selected product2
selected product3 selected product2 X 3 qty
selected product4 selected product2 x 3 qty
Total -25874
QTY- 1

grouped productname2
selected product6
selected product2
selected product8 selected product2 X 3 qty
selected product9 selected product2 x 3 qty
Total -85745
QTY- 1
 Give me some solution.


texts: Magento 2.3.4 In checkout form, Customer Address Custom attribute not getting displayed. Getting knockout error

texts:
I'm using magento 2.3.4. I have added custom attributes in customer_address. the attribute is properly saved and displayed too in my customer account. But in checkout, I'm getting error of knockout. Although same code was working in magento 2.3.2.

Seems like a new callback "getCustomAttributeLabel" has been added in

Magento_Checkout/js/view/shipping-address/address-renderer/default.js

which is giving out the error. Someone please help. Thanks


texts:
I am using an old unsupported module which gives an error since update to magento 2.2.11.
Notice: unserialize error at offset 0 of 3150 bytes on line 81.
    protected function getUserExtra()
    {
        if (!$this->_adminSession->getUser())
            return [];
        $extra = $this->_adminSession->getUser()->getExtra();
        if (is_string($extra))
            **$extra = unserialize($extra);**
        if (!is_array($extra))
            $extra = [];
        if (!isset($extra['barcodeinventory']))
            $extra['barcodeinventory'] = [];
        return $extra;
    }

I have changed it to new json way of unserializing but that also gives an error.
        protected $serialize;

    public function __construct(
        \Magento\Framework\Serialize\Serializer\Json $serialize,
    ) {
        $this->serialize = $serialize;
    }

protected function getUserExtra()
    {
        if (!$this->_adminSession->getUser())
            return [];
        $extra = $this->_adminSession->getUser()->getExtra();
        if (is_string($extra))
            $extra = $this->serialize->unserialize($extra);
        if (!is_array($extra))
            $extra = [];
        if (!isset($extra['barcodeinventory']))
            $extra['barcodeinventory'] = [];
        return $extra;
    }

New error: Fatal error: Uncaught TypeError: Argument 4 passed to \Model\Registry::__construct() must implement interface Magento\Framework\Serialize\SerializerInterface


texts:
I need to trigger observer whenever I call specific rest api

I've created module/Observer/ObserverClass, module/etc/events.xml and module/etc/webapi-rest/events.xml but I don't know How to trigger it through rest api

how can I do so


texts: Magento backup functionality is deprecated as of 2.1.16, 2.2.7, and 2.3.0?

texts:
I was happily reading the documeent below enjoying the fact that these backup commands for media, db and code existed

https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-backup.html

But then I read

Deprecation Notice Magento backup functionality is deprecated as of 2.1.16, 2.2.7, and 2.3.0. We recommend investigating additional backup technologies and binary backup tools (such as Percona XtraBackup).

So does this really mean the commands bin/magento setup:backup and bin/magento info:backups:list and bin/magento setup:rollback will stop working?

So is this true? (or am I reading this wrong)

And maybe then why?


texts:
I need to be able to post my ebay listings with a custom template that includes style changes and my returns policy etc, but i cant find where to add the description template in m2epro 6.2.1, it is mentioned in earlier versions of m2epro (5.x) but i cant find anything re: 6.x versions

can someone help!! thanks!


texts: magento 2 How to add datepicker in frontend form

texts:
Magento 2 Set Date Picker in frontend:

echo $block->getLayout()->createBlock('Magento\Framework\View\Element\Html\Date')
    ->setData([
              'extra_params' => 'data-validate="{required:true}"',
              'name' => 'delivery_date',
              'id' => 'delivery_date',
              'class' =>'',
              'value' => '',
              'date_format' => 'Y/m/d',
              'image' => $block->getViewFileUrl('Magento_Theme::calendar.png'),
              'years_range' => '-120y:c+nn',
              'max_date' => '-1d',
              'change_month' => 'true',
              'change_year' => 'true',
              'show_on' => 'both'
            ])->toHtml() ;


texts:
i need to add to fields to the order entity, so that i can store custom datum in two fields, is it possible to add attribute to the order entity, because i can't get eav tables for the order entity,

if order entity is not EAV , then how to add custom fields to order,


texts: EAV collection problem with Customer entity

texts:
(Magento CE V1.7.0.2)

I have a problem with the customer data collection, I can't have any "telephone" number.

I must remove the line

->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')

from _prepareCollection() function of Grid.php for the customer table list or I have an error report with:

"Attribute type not valid" /magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(652): Mage::exception('Mage_Eav', 'Type d'attribut...')

How can I rebuild default EAV attribute or perhaps someone has modified a file?


texts: How does a Model's _eventPrefix get set by extending classes?

texts:
Mage_Core_Model_Abstract contains a field, _eventPrefix, which is used to dispatch events.  For example, _afterSave() uses it like this:

Mage::dispatchEvent($this->_eventPrefix.'_save_after', $this->_getEventData());

However, in looking for usages in PHPStorm it doesn't look like it's being explicitly written.  How does this value get set--is it by configuration, convention, other?


texts: Magento2 add js custom conversion tracking on thank you page on first time load

texts:
I'm editing a client's site and I need to add custom javascript for our purchase tracking, on a success or thank you page.

Oh shopify we put it on the checkout input box custom script input window with a first_time_accessed variable so it doesn't get called twice. I figure this is a common request, but I couldn't find out how on searches.

I have access to the admin console, I'm new to Magento2, are there custom files I must access. I've mostly been going through the admin->content options


texts: Please help me override this GoogleTrustedStore block!

texts:
I'm having trouble overriding this block for a customization on admin orders:
Mage_GoogleTrustedStore_Block_Adminhtml_OrderCreatedConfirmation

app\code\core\Mage\GoogleTrustedStore\Block\Adminhtml\OrderCreatedConfirmation.php

class Mage_GoogleTrustedStore_Block_Adminhtml_OrderCreatedConfirmation
extends Mage_GoogleTrustedStore_Block_OrderConfirmation_Onepage
{}

    <global>
       <blocks>
          <kmd_googletrustedstore>
             <class>Kmd_Googletrustedstore_Block</class>
          </kmd_googletrustedstore>
          <googletrustedstore>
             <rewrite>
                <orderConfirmation_Onepage>Kmd_Googletrustedstore_Block_Onepage</orderConfirmation_Onepage>
             </rewrite>
             <rewrite>
                <adminhtml_OrderCreatedConfirmation>Kmd_Googletrustedstore_Block_Adminhtml_OrderCreatedConfirmation</adminhtml_OrderCreatedConfirmation>
             </rewrite>
          </googletrustedstore>
       </blocks>
    </global>

My custom file is located here:
app\code\local\Kmd\Googletrustedstore\Block\Adminhtml\OrderCreatedConfirmation.php

class Kmd_Googletrustedstore_Block_Adminhtml_OrderCreatedConfirmation
extends Kmd_Googletrustedstore_Block_Onepage
{
}

The orderConfirmation_Onepage rewrite works fine for frontend orders, but I can't get the adminhtml block rewrite to work - any suggestions would be greatly appreciated!

Update - I checked for conflicting overrides, none found.


texts: _isUrlInternal method in Mage_Core_Controller_Varien_Action failing due to port number

texts:
i am implementing the currency switcher on my 1.5.1.0 CE site. it's a fairly straightforward implementation, but for some reason, once i select a currency, i get redirected to the homepage rather than the page i was one.

i narrowed it down to the fact that the method _isUrlInternal is failing due to the port number being in the referring url. i'm definitely not using port numbers explicitly (using the standard 80/443).

can anyone think of a reason why it would be evaluating port numbers?


texts: Stop customers changing the quantity of a product at basket stage

texts:
We have 200 SKUs but for 2 of those SKUs we would like the customer to only purchase these one at a time eg they can't change the quantity but we still want the customers to change the quantity for the other 198 SKUs
Whats the best way to tackle this issue


texts: Magento2 Invoice and delivery the same checked by default

texts:
I can't figure out how to check the "Invoice and delivery address are the same" checkbox by default. Is this a setting that I'm missing or is this something which should be handled from within a theme?

If so the easiest way is with Javascript and add a JS file and see if the address is empty when entering the page. But with a server value it is more accurate, is this something which then should be handled in the LayoutProcessor? Or what is the best way to approach this.


texts: I'm trying to center the logo shown in my invoice PDF but I don't really know how to do this. Is there a .phtml template file where I can apply a css class or how do I center it?


texts: How can I change the amount of time of the customer login session? As an example, If a customer is shopping for several parts from a wholesale supplier they make take longer to shop. How can I increase the FRONTEND cookie lifetime?


texts:
I have created Attribute of customer Activation with Boolean 1 and 0 value i want that if customer active attribute value 0 so customer cant login this is my observer code in magento 2

$customer = $observer->getEvent()->getCustomer();
$customer_ativation=$customer->getCustomerActive(); //Get customer name
if($customer_ativation==1)
{

}


texts:
I've created a model representing the data returned from the /V1/orders Rest API call. I based it off the data they display in the 'Model Scheme'. When calling the API my model is completely wrong due to fields being returned with underscores between field names.

Am I doing something wrong or have they just inaccurately shown the data.


texts: Magento 2 : How to access a custom attribute value of a simple product

texts:
In Magento 2, I would like to access the value of custom attribute name material associated simple product from a configurable product.

At the moment, I am unable to get attribute value. For some reason it returns false but I can get other attribute values such a sku, price etc

Here is what I have tried to do so far:

../vendor/magento/module-catalog/view/frontend/templates/product/view/options.phtml

Then I have added this to get the simple products from the configurable products:

<?php $_product = $block->getProduct() ?>
<?php $_simpleProducts = $_product->getTypeInstance()->getUsedProducts($_product); ?>
<?php $attributeValues = explode(',', $_product->getResource()->getAttribute('material')->getFrontend()->getValue($_product)); ?>
<?php foreach ($_simpleProducts as $key => $simpleProduct): ?>
    <?php foreach ($attributeValues as $attributeValue): ?>
        <?php if ($attributeValue == $simpleProduct->getAttributeText('material')): ?>
            <?php echo $attributeValue ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endforeach; ?>

I would like to do is set the material attribute for the configurable product then loop through the simple products to see if they have the same material but I can't get the value for material from the simple products.

Any ideas?

I can access it from the parent/configurable but when I try to get the value from the simple products it returns false


texts: Paypal Payment Standard in Magento cart page?

texts:
I need to integrate paypal payment standard in magento cart page. I don't want to use express checkout. Because it again redirects to magento site for billing information and order conformation.

Below process is my requirement:

 1. user add a product to cart
 2. User click the paynow button in cart page
 3. User redirect to Paypal Login Page.
 4. After User login with paypal, confirm and pay the amount.
 5. User Redirect to magento thankyou page (order success page).

Is there any option in magento?


texts: efficient way to determine if logged in customer has previously placed an order

texts:
$customer = Mage::getSingleton('customer/session')->getCustomer();
$loggedIn = Mage::getSingleton('customer/session')->isLoggedIn();
$orders = Mage::getResourceModel('sales/order_collection')->addFieldToSelect('*')->addFieldToFilter('customer_id', $customer->getId());
$firstOrder = $orders->getSize();

Currently i'm using the above function to determine the amount of orders that a user has generated, however it seems to be terribly bloated by the sql queries.  Is there a faster method?

I suppose a good way to check temporal efficiency is something like:

$timer1=0;
for ($i=0; $i<5000; $i++){
    $start1=microtime(true);
    $orders = Mage::getResourceModel('sales/order_collection')->addFieldToSelect('*')->addFieldToFilter('customer_id', $customer->getId());
    $firstOrder = $orders->getSize();
    $end1=microtime(true);
    $time1+=$end1-$start1;
}
Mage::log($timer1/$i);


texts: How to create magento 2 admin user from the root external script?

texts: I want to create admin user from the root directory Is it possible? How can I create a new admin user without CLI (SSH) and database?


texts:
In one of the shops I develop, the whole login system is disabled (customers are not able to register or login, and there is no dashboard).

This works perfectly fine for simple, grouped or configurable products, but is a problem for virtual product (since you have to login to buy virtual products).

Since there is a configuration to enable buying downloadable products as guest, I was wondering if such a configuration is present for virtual products?


texts:
I'm running Magento 2.3 on CentOS with 8GB RAM, SSD, 4 Core CPU approx 6,000 products each with 3 or more images. CDN is also running.

I've gone through every possible option within Magento and in the server to get the best possible speeds but the images on the site still load very slow.

There's an image optimizer that's always running by Cron and I can see it has reduced the quality and file size of most images.

The site is terabytecomponents.co.uk and if you click on any category from the menu, you will see what i mean and this relates to the product list page, product page and quick view.

This is a temporary fix as it'll load one image first whilst the rest loads:
xumulus/magento2 but not curing the problem.


texts: Additional fee added does not work with Paypal express checkout method in magento2

texts: I have added surcharge fee and its working fine with cash on delivery payment method but not working with paypal express checkout.


texts: Collection items don't trigger product load event observers or backend models, but can they?

texts:
We have an observer that modifies final price, that's triggered on the event catalog_product_get_final_price. Problem is, when you retrieve products via collection with addAttributeToSelect("*"), they come back with a final_price already set, and the product getFinalPrice function merely returns what's in the database instead of recalculating (and running the observers for) the final price.

Mage_Catalog_Model_Product

public function getFinalPrice($qty=null)
{
    // *** Collection items already have a 'final_price' from flat tables
    //     but it's wrong because observers haven't run yet ***
    $price = $this->_getData('final_price');
    if ($price !== null) {
        return $price;
    }
    return $this->getPriceModel()->getFinalPrice($qty, $this);
}

I've also noticed that all of our custom attributes are also not being interpreted (we save things as JSON but decode into objects them on product load before using them).

This behavior doesn't happen when you load the product directly -- all the observers and models are interpreted when the product is loaded.

Is there a way to ensure the data we're retrieving from a collection matches in format and value the data we would retrieve if we load the product directly?

I know I can just load the product individually to trigger all of the events that go along with it, but in the case of 3rd party software, that might not always be the case and the final price is wrong.

We're on version 1.7 if it helps.


texts: how to add import & Export functionality to custom grid in magento 2

texts: I don't have any idea to do import and export functionality in Magento 2 for my custom module grid. Kindly help and suggest me some solutions.


texts: Magento 2: Sorry, no quotes are available for this order at this time Change Message

texts:
I would like to change message

  "Sorry, no quotes are available for this order at this time"

In which file, i can change? Can it will be manageable by Admin?


texts: Change Shipping Method Name programmatically

texts:
i want to change the Shipping Method Name programmatically in some cases.

(This store is in german)

So I want to change "Versand oder Abholung" to another different text depending on the case.

How can I manipulate this text?

I have found the .html file which contains this div. (Maybe this will help?)
app\design\frontend\MyStore\MyStoreTheme\Magento_Checkout\web\shipping.html

<form class="form methods-shipping" id="co-shipping-method-form" data-bind="submit: setShippingInformation" novalidate="novalidate">

...
...
...

Any ideas? ;)


texts: Magento2: Receiving a The page you requested was not found eventhough the desired page is found

texts:
My Magento 2.1.5 is trowing a "The page you requested was not found, but we have searched for relevant content." displayed on front pages. After clearing sessions and local cache the message goes away but comes back after going through a couple of pages. Weird thing is that served url's and contained content within those urls is correct.

Here's the exact code from I pulled from inspector:

The page you requested was not found, but we have searched for relevant content.

I'm confident this is session related


texts: M2 setup:upgrade takes for ever after Data migration

texts:
Ran data migration into a default Magento 2.3.3 from Magento 1.14.4 and when ever I run setup:upgrade it takes >4 minutes in this step alone

Module 'Magento_Customer':
Running data recurring...

Total Customers are 468k with 18 custom attributes inly two of them are select and that also uses M2 core Yes/No source.

Any insight will be really helpful


texts: Best practices for Magento 2 Pipeline Deployment, upgrading, using git

texts:
I'm currently running a Magento 2.3.4 Community Edition site on a set of dedicated servers. We use several third party extensions and have also developed our own theme and a few extensions for our internal use. Right now our development, build, and deployment process is fairly manual with no source control. I would like to move to the Pipeline Deployment model as described in this document: Pipeline Deployment, and start using git for source control. However, I have a few questions about this model that I haven't been able to answer from looking at the document or other internet sources:

In the Pipeline Deployment document, under Development System Setup requirements, it says "All Magento code is under source control in the same repository as the build and production systems". What does "all Magento code" refer to? Does this mean all of the core Magento code as provided by Magento's distribution, or does this just mean any Magento-related code you have written yourself?
There are notes that on the development system you should exclude the vendor directory from source control, but for the build system it doesn't mention excluding it. So does that mean on the build system you would check all of the vendor code into source control?
In general it's really not clear to me what code is actually pulled from your git repo and what code is pulled from elsewhere. I'd love to see an example of someone's pipeline deployment repo to see how this is set up.
If you're using Pipeline Deployment, and you want to upgrade to a new version of Magento, how do you do that? This isn't covered either in Magento's upgrade documentation or Pipeline Deployment documentation. Do you do the upgrade on your build system and commit the upgraded files to the repo, and then do a pull in production to upgrade? Or do you run the upgrade on each server individually?
How do you handle upgrades with Pipeline Deployment when you have multiple production servers?

I appreciate any insight folks can provide, or links to any documentation I may not have seen that help explain any of these scenarios.


texts:
I'm trying to build a function that gets orders of a customer by id but it gives me an exception: Entity is not initialized

that's my code

<?php

namespace VendorName\Orders\Model\Orders;

use VendorName\Orders\Api\Orders\MyOrdersInterface;
use Magento\Eav\Model\Entity\Collection\AbstractCollection;

class MyOrders extends AbstractCollection implements MyOrdersInterface
{

    /**
     * @api
     * @param int $customerId
     * @return array
     */
    public function getOrders($customerId){
        return [
            $this->addAttributeToFilter('customer_id',$customerId)->load()
        ];
    }
}
?>


texts: Redis Cm_Cache_Backend_Redis not adding keys

texts:
I'm trying to use CM_Cache_Backend_Redis to cache database calls and sessions.  I have the following configuration inside  near the bottom of my app/etc/local.xml file:

<cache>
    <backend>Cm_Cache_Backend_Redis</backend>
    <backend_options>
            <server>172.31.39.160</server>
            <port>6379</port>
            <database>0</database>
            <password></password>
            <force_standalone>1</force_standalone>
            <connect_retries>1</connect_retries>
            <automatic_cleaning_factor>0</automatic_cleaning_factor>
            <compress_data>1</compress_data>
            <compress_tags>1</compress_tags>
            <compress_threshold>20480</compress_threshold>
            <compression_lib>gzip</compression_lib>
            <persistent>1</persistent>
            <log_level>7</log_level>
    </backend_options>
</cache>

<full_page_cache>
    <backend>Cm_Cache_Backend_Redis</backend>
    <backend_options>
            <server>172.31.39.160</server>
            <port>6379</port>
            <database>1</database>
            <password></password>
            <force_standalone>0</force_standalone>
            <connect_retries>1</connect_retries>
            <automatic_cleaning_factor>0</automatic_cleaning_factor>
            <compress_data>0</compress_data>
            <compress_tags>1</compress_tags>
            <compress_threshold>20480</compress_threshold>
            <compression_lib>gzip</compression_lib>
            <lifetimelimit>43200</lifetimelimit>
            <persistent>2</persistent>
            <log_level>7</log_level>
    </backend_options>
</full_page_cache>

<session_save>db</session_save>
<redis_session>
    <host>172.31.39.160</host>
    <port>6379</port>
    <password></password>
    <timeout>2.5</timeout>
    <persistent></persistent>
    <db>0</db>
    <compression_threshold>2048</compression_threshold>
    <compression_lib>gzip</compression_lib>
    <log_level>7</log_level>
    <max_concurrency>6</max_concurrency>
    <break_after_frontend>5</break_after_frontend>
    <break_after_adminhtml>30</break_after_adminhtml>
    <bot_lifetime>7200</bot_lifetime>
</redis_session>

I've cleared my cache and session information, rebuilt all my indexes and restarted Apache and it Magento isn't even attempting to connect to the Redis server.

The Redis server is a separate server from the Web Server (they're both in an Amazon VPC).  I've confirmed that I can use redis-cli from the web server and manually access/update the redis database.  There is nothing in Magento's var/log/system.log or Apache's error log about even attempting to connect to the redis database.

If I use tcpdump I can see that there is absolutely no traffic on port 6379 during various page loads.

It would help if I could get an error message at least, but this is failing silently.


texts: adding products with custom options to order in admin

texts:
I am having a bug in which when I try adding products with custom options (mageworx plugin) to order in admin if I select and configure more than one product and then press  the 'Add Selected Product(s) to Order' button only the first product keeps all the selected options and built out SKU (from custom options)the rest of the selected products just have plain SKU and no custom options selected is this a bug how can i fix?
in js\mage\adminhtml\sales.js i see productConfigure.submit(listType); is what is being called to update order but i have no dea were that function is to try to look what is going wrong.


texts:
We have the problem when uploading product images into Magento 2 store.

When we upload the image is shown up into the backend but not in the frontend. There when you inspect the image you will get a 404 error.

If you take a look into the file path and check this on the server you will see that the folder is not there. Magento creates other folders where the images are in but not the one that needs to be there to show the images in the frontend.

File permissions are checked, owner rights are checked.
Reindex, clear cache obv is done.

Someone ever had this problem?

EDIT:

I have contact the theme builders and they told me its a problem on the server side. The server doesn't support auto run function resize image for magento 2 they told me.

Anyone knows how to check or fix this?


texts: Magento 2 - How to auto open cart items on checkout page?

texts:
I'm using a mostly stock Magento 2 checkout_index_index layout (checkout page), I was wondering if anyone knew how to default the order summary collapsible to be open on page load. It isn't clear where the options for all the items in that template are defined and what values are acceptable.

Currently, renders closed, and you have to click it to open the summary and see your items:


texts: Magento 2.3.0 TinyMCE removes anchor tag href suffix when used with {{store url=''}}

texts:
I am trying to add category link in the CMS block.

Test Collection

When I hide/show editor, it removes "test-collection.html" from the code. New output:

Test Collection

In previous versions, it was working fine. Help, please.


texts: Porto Theme - How to add/remove/customer links in header top section

texts:
I installed and activated the porto theme...Was able to understand except the following two

Edit header top links
Where do i need to go and edit them as im using magento 2 and little confused...The admin theme panel doesn't have any block to do so.

How to create a classic 2 column menu
I selected classic menu and two columns, however they show in a single column. Do i need to mention width to do so?

Here is my site im working on  http://srikrishna.esgeeinfotech.in/
got back on magento after long time, and magento 2 seems changed completely..their folders changed too.. cant see skin folder. Please help regarding the above


texts: Paypal Express Checkout payment: Magento 2

texts:
When choosing a payment method paypal does not always come Billing Address, and because of this, payment does not go through and everything goes according to plan.
Has anyone encountered this problem? Why in some cases does not come Billing Address?


texts: Magento 2.3.1: How to implement First Order free shipping


texts: Magento 2.3: problem understanding store views

texts:
I am having problems in understanding the Magento 2 store views.
We have used the default settings in Admin -> STORES -> Settings -> All Stores

We are only using one store view. However, I have not set Magento in Single Store Mode.

Working on a product in "Store View: All Store Views", means all values used here, are default values.  For instance, this means that if I change a product image on that page, that specific image is changed on other store views as well.

However, on the front end, the product images of the Default Store View appear.

In what Store View should I make the changes in order to have the products appear the same in all views?


texts: Product Duplicate - Product image is duplicating twice

texts:
We have written code to create product. Once a new product is created a duplicate of newly created product is generated. the code is as follows.

public function enableMasterProduct($product_code, $product_id){

        $product = Mage::getModel ('catalog/product')->load($product_id);

        $masterProducts = Mage::getModel ('catalog/product')
                            ->getCollection()
                            ->addAttributeToFilter ( 'is_master_record', 1 )
                            ->addAttributeToFilter ( 'productcode', $product_code);

        $pCount = $masterProducts->getSize ();

        if ($pCount == 0) {
            $newProduct = $product->duplicate();
            $newProduct->setStatus(2);
            $newProduct->setSku('master_'.uniqid());
            $newProduct->setData('group_price',array ());
            $newProduct->setIsMasterRecord(1);
            $newProduct->setSellerId(0);
            $newProduct->setProductcode($product_code);
            $id = $newProduct->getId();
            $stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($id);
            if ($stockItem->getId() > 0 and $stockItem->getManageStock()) {
                $qty = 1;
                $stockItem->setQty($qty);
                $stockItem->setIsInStock((int)($qty > 0));
                $stockItem->save();
            }
            $newProduct->getResource()->save($newProduct);
        }

    }

This code works and a new product is generated. However the product image generated twice even though there is only one product image.


texts: advanced search name also search in custom attribute

texts: So, I made some custom attribute in admin panel, it's province, city etc. how to make the field name of the search form also search on those attribute?


texts: Price filter in layered navigation not working correctly with price including tax in magento 2.2.3

texts:
I am using magento-2.2.3. and showing prices including tax on product list page.

Now the issue is the price filter in layered navigation is considering prices excluding tax. So how to change the layered navigation logic for that?

I am using custom third-party extension for layered navigation, but the same issue also exists with the extension disabled.

This issue has been fixed in later magento versions, but due to some constraints, i cnt go with version upgrade.

For better understanding, check this screenshot.

When i set price to filter between 90-100, the products whose price including tax is 103 (i.e. > 100) are also shown in the result. the price in the layered navigation is not considering price including tax

Can anyone tell me how to implement the solution ?

Thanks in advance.


texts: Magento 2: delete all cart price rules (promotions) programmatically

texts: I want to delete all the price rules programmatically. How can I achieve this one?


texts: Custom js of my module not loading in pub/static Magento2

texts:
I have a custom myjs.js file in my module. I have placed the myjs.js in Vendor/module/view/web/js/myjs.js, my requirejs-config is in Vendor/module/view/frontend

var config = {
    map: {
        '*': {
            'myjs': "vendor_module/js/myjs"
        }
    },

};

My js is not loading in pub/static/frontend. I want to create pub/static/frontend/theme/en_US/vendor_module/js/myjs.js on static -content:deploy.

Any suggestion on how can I load?


texts:
I am using the fixed calculation for some customer groups.

Everything works in case of simple product but which is not same for Downloadable product.

It looks search page is working fine. But in product detail page, I am facing some issues. So I just want to know :

Where the downloadable product getprice() calculation is being done?

It would be great if you can show me the file (and file-path) which is respondible for downloadable product price calculation logic.


texts: Can't See the Widgets page in Magento Admin

texts:
new to Magento, so apologies if I am missing required information.. please let me know if so and I will elaborate/add more info.

I have inherited a project involving Magento for a large store (v 1.9.0.1). There has been no handover and no line of communication with the previous developer.

I am slowly working things out and teaching myself Magento, however I have just come across an issue where the Widgets page under CMS in the back end is simply blank with no options.

Further more, if I look in a static block that has a widget in and double clikc on it in the editor, I get the widget selection block, but the widget option block is missing with the following error:

Fatal error: Call to a member function setWidgetType() on a non-object in <server>/app/code/core/Mage/Widget/controllers/Adminhtml/WidgetController.php on line 62

I have cross referenced this php file with one from a vanilla install (where widgets work) and it is identical.

Finally, the widget renders fine on the live site?

Has anyone seen this before?

Once again, sorry if there is not enough information here, please let me know what else I should post.

Thanks a lot for anyone taking the time to respond.

Cheers.