texts: Site Stopped working after Changing theme folders

texts:
I was trying to change the theme of my website - www.sadhagi.com on Godaddy Server and recently uploaded app and pub folder of (free theme) using FileZilla to my Godaddy Server and executed the below two commands using ssh

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

now when i try to login in admin - http://www.sadhagi.com/index.php/wapuiywn

it showing

This page isn’t working

www.sadhagi.com is currently unable to handle this request.

HTTP ERROR 500

Is there anything else i have to do for Change in theme ?? Pl help


texts: Show global messages of newsletter subscription in popup

texts:
I wish to show newsletter subscription global messages(like Thank you for your subscription.etc.) in popup.When a user click on newsletter subscription the default global message should come in popup.
Followed this approach both at app/design/frontend/theme/template/page/1column.phtml and app/design/frontend/theme/template/newsletter/subscribe.phtml

<script type=“text/javascript”>
var message = '<?php echo strip_tags($this->getChildHtml('global_messages')) ?>';
if (message == $this->__('Thank you for your subscription')) alert("What  ever you want to display!");

Thanks in advance:)


texts: Delete configurable products with associated products programmatically

texts: How can I delete a programmatically created configurable product with it's associate products?


texts: Any free extension for displaying top rated products in magento 2?

texts: I like to know is there any free extension or module for displaying top rated products in magento 2?


texts:
We have an issue in which we would want different sets of configuration settings to be used on development, test, and production servers. I'm just getting familiar with Magento and not sure how to do this - what's the standard way of accomplishing this?

Something like:

- etc/* // used for production mode
- etc/test/* // used for test mode
- etc/dev/* // used for development mode

... and then we could set the mode SetEnv in htaccess (as for with "developer mode"). Does Magento have built-in support for this?


texts: I am trying to remove the "as low as pricing" in the Magento Admin Panel, can someone point me to where I can delete it from the links?


texts: How do catalog_product_entity and core_store join?

texts:
I'm doing some database scripting and found that catalog_product_entity does not contain a store_id column, although other associated tables such as catalog_product_entity_varchar do.

My understanding is that products are not shared across stores, so the product itself should be joinable to core_store.  Which tables and columns are used to enforce this relationship?


texts: Add a block ( category products ) in the checkout cart page when the subtotal range between 500 and 1000

texts:
I want to add a block on the checkout cart page when the subtotal ranges between 500 and 1000.
Is there anyway to add it from the admin panel itself!
Note : I am a magento beginner.


texts:
While Opening a page, i need to set hide if i click then only it shows toggle. What i need to done?

phtml

<?php echo $this->__($_filter->getName()) ?>

<?php echo $_filter->getHtml() ?>

js

 function glace_navigationlayer_filter_show(evt){
        var dt = Event.findElement(evt, 'dt');

        dt.next('dd').down('ol').toggle();
        dt.toggleClassName('glace_navigationlayer-collapsed');

        Event.stop(evt);
        return false;
  }


texts: Magento Edit Product from Cart and get selected options

texts:
Problem: in the cart is a product set together from selected options.
Now I want to edit one of those products.

Question: how do I get the same option values to the configure page? The page that has this path is checkout/cart/configure/id/1/

Where does Magento has to take the needed informations from?

PS. I use a Custom Theme!


texts: Magento 2 How to remove shipping rate estimation in shopping cart?

texts:
Sometimes the estimation of shipping showed

  Shipping (undefined - undefined)

so I want to remove this row of thing. How can I remove it? Thanks.


texts: Customer Import including MD5 hashed password

texts:
I imported all my clients from my old Magento, however I could not get the password, I saw in some places that I should get the password hash that would be the password cryptographed with the salt, I do not want to know the password of the user, I simply want to keep the password how could I do this? I'm importing from Magento 1.4 to Magento 1.9

How do I get

require_once('app/Mage.php');
Mage::app(0);

        $id = 64995;
        $usuario_loaded = Mage::getModel('customer/customer')->load($id);
        $name = $usuario_loaded->getName();
        $hash = $usuario_loaded->getPasswordHash();

        print_r($name.' '.$hash);

        RESULT: Gustavo Souza f125f7e9cad50ea2dabf77673d555771a0230e218a6890e048b0a895ce532507:cM7m7Ay6x40UEGNX5t5aq8xFRJacXQne

How do I insert

require_once('app/Mage.php');
Mage::app(0);

        $id = 64995;
        $hash = 'f125f7e9cad50ea2dabf77673d555771a0230e218a6890e048b0a895ce532507:cM7m7Ay6x40UEGNX5t5aq8xFRJacXQne';
        $usuario_loaded = Mage::getModel('customer/customer')->load($id);
        $name = $usuario_loaded->getName();
        $usuario_loaded->setPasswordHash($hash);
        $usuario_loaded->save();

This would be my user, in the old magento I soon with the same password, but in the new magento I try to use the same password and I can not. Would it have something with the old encryption key of the other magento?


texts: Associate a guest checkout with an account if their email matches and existing account

texts:
In the admin panel under the menu item Customers > Manage Customers. When you click on a customer it shows all their customer information.

The problem is if I checkout as a guest and use the same email i use when i'm logged in the record does not get stored in my recent orders. Is this functionality standard? Is there a way to associate the emails so even if they checkout as a guest it still gets recorded in the customer information > recent orders section?

I've looked through the configuration settings for customer configuration and checkout but to no avail.

It only shows under Sales > Orders.

Are you allowed to store information if they're a guest?


texts: Magento Multi-language site, and SEO issue?

texts:
First, let me clarify I'm not expert in Magento, and I had to use Magento due my supplier requirement, I think it's an awesome platforms but it's a bit tricky for people like me

I have a site that has 2 languages: English and Russian

My clients are all Russian, and for the front end I don't really need English interface.

But my supplier speaks English only, and he would need to upload the products on my behalf to my site, and then I will translate the products name and specification for the Russian version of the site.

I talked to several developers about some issue I have and got contracting answers from each one, and I would appreciate your thoughts to choose the right method.

The products titles in English is used by all the distributors, so if the item name is YYTTRR11, and google it, many websites will show up using the same title.

My questions are:

1- If I keep english and Russian in the front end, will the english website ranking of the site affect my Russian word ranking?

2- Is it better for the SEO to have one language only for the front end?

3- Is there any way to have English and Russian front end, but only Russian products to be found on search engines?
Edit
Stop Wanting Answers1


texts: How to move the extension 'Customers Who Bought This Also Bought' before the product details?

texts:
I am trying to move the bottom section up to the top above the tabs. Not sure how I am going to do this since the extension is handled in the backend. I tried moving it with all of the options here where it says block position:

Thankyou!!!!!!!!!!!!!!!!!!!!!!!!!


texts: Magento2 site loads 404 page instead of homepage

texts:
Trying to troubleshoot what happened on a Magento 2.2.5 based website. We all of a sudden noticed that when you go to our website it just loads a 404 page even though the home page is set in the configuration admin screen and the CMS page does exist. When I look at the exception.log when I try to go to the main page I get the below error?

Unable to read response, or response is empty {"exception":"[object] (Zend_Http_Client_Exception(code: 0): Unable to read response, or response is empty at vendor/magento/zendframework1/library/Zend/Http/Client.php:1093)"} []

If I go directly to the url of the homepage cms page the page loads fine.


texts: Magento 2: Spam Customer Accounts Created Automatically

texts:
I am using Magento 2.2.4 for my e-commerce website. From last few days, customer accounts creating automatically on my website without the proper information. I already installed Mageplaza Security plugin.

Please find attached screenshots for more info. How can I trace from where these logins are creating? These are creating only at once may be at the time of cron run.


texts: Load products without category association

texts:
I've been looking for a way to load products without a category in Magento2. I'm working on a cleanup script that will automatically assign them to a relevant category, but at a loss implementing the initial query.

Practically every post I've found has suggested to load a category by id, then call a method on the category to get the related products, however my scenario is different.

Here's my first sad attempt, which performs a direct query to find the products without a category association, then a typical ProductRepository method to load the products by sku.

use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Framework\Api\SearchCriteriaBuilder;
use Magento\Framework\App\ResourceConnection;

class ProductHelper
{
    private
        $_oProductRepo,
        $_oSearchCriteriaBuilder,
        $_oResource;

    public function __construct(
        ProductRepositoryInterface $oProductRepository,
        SearchCriteriaBuilder $oSearchCriteriaBuilder,
        ResourceConnection $oResource
    ) {
        $this->_oProductRepo           = $oProductRepository;
        $this->_oSearchCriteriaBuilder = $oSearchCriteriaBuilder;
        $this->_oResource              = $oResource;
    }

    public function loadProductsWithoutCat()
    {
        // Raw query to find product skus with no associated category
        $oDbConn = $this->_oResource->getConnection(
            \Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION);

        $mResult = $oDbConn->rawQuery(
            'SELECT `e`.sku ' .
            'FROM   `catalog_product_entity` AS `e` ' .
            'WHERE  e.entity_id NOT IN '.
            '(SELECT `cat`.`product_id` FROM `catalog_category_product` AS `cat`)');

        // Extract skus from result
        $aProducts = $mResult->fetchAll();
        $aSkus     = [];
        foreach($aProducts as $aProduct) {
            $aSkus[] = $aProduct['sku'];
        }

        // Load the product objects
        $oSearchCriteria = $this
            ->_oSearchCriteriaBuilder
            ->addFilter('sku', $aSkus, 'in')
            ->create();

        return $this->_oProductRepo->getList($oSearchCriteria)->getItems();
    }
}

While this approach works, is there a proper way for this type of search in Magento2?


texts:
I have a new website and I am new to Magento. Can someone tell me how to backup my information in admin. I just want to be sure that I don't loose everything and I unfortunately have no help from my developers. I had a look in admin and it doesn't look difficult but I am worried that I may delete everything.
Thankyou
website: www.glamoroushairstyles.com.au


texts:
Sorry, the title is kind of vague but I've never seen this problem before. I have my local site URL set to be dev.testsite.dev but when entering that address in a web browser it automatically forwards it to

  dev.testsite.dev/dev.testsite.dev/index.php/?SID=95tsurjsja8ci9baihj94oado6

causing the page to 404 along with all of the content it's attempting to fetch like the CSS. I can answer any necessary questions but I've gone through most of the basic troubleshooting steps with no luck.


texts: Product images don't show on frontend, cache folder not building

texts:
Product images are not showing up on the front end of my install.  They show up fine on the backend, but on the front end it shows the placeholder image instead.

Things I have already tried

Media folder set to 777 recursively
Made sure gd library is installed with jpg support
Delete .htaccess, delete cache folder, flush caches, etc
I believe I have the correct owner on the media folder, I ran a php script to create a new file and it created the file with my ftp user, so I assume that's who the owner of the media folder should be?
Made sure radio buttons are selected on product images page for base image, small image, etc
PHP memory limit is set to 512M
images are at max 60kb, with no spaces in the image name
Checked error logs, can't find anything relevant

Since deleting the cache folder and .htaccess file, neither is being recreated in the media folder.  When I upload the image it shows up properly in the media folder (for instance if I upload necklace.jpg it shows up in media/catalog/product/n/e/necklace.jpg as well as the three additional resized images).

I am totally at a loss at this point.  Any more suggestions out there?

Magento version 1.8.0.0


texts:
Does anyone know how the following commands would be translated to Magento 1?

sudo rm -rf var/cache var/generation var/di
sudo php bin/magento setup:upgrade
sudo chown -R bitnami:bitnami .
sudo php bin/magento setup:di:compile
sudo php bin/magento cache:clean
sudo chmod 777 -R var/
sudo find ./pub/static -type d -exec chmod 777 {} \;
sudo php bin/magento setup:static-content:deploy

These are for Magento 2 but I need to recompile and redeploy on my magento 1.7 store.


texts: Magento 2 custom url rewrite ignores query string

texts:
I am migrating a store from an old custom commerce system to Magento 2. I am trying to add URL rewrites into Magento 2 using the Marketing -> Url Rewrite tool.

The old URLs for the store look like this:

store/detail/x.php?id=123

I can enter that into the Request Path just fine, but anything with a ? in it never actually forwards to the Target Path. If I remove the ?, it redirects fine.. but obviously that is not a valid URL.

Any ideas or suggestions?


texts: Set up Magento block as a SUT for PHPUnit

texts:
I'd like to unit test my Magento blocks using PHPUnit, how can I properly instantiate my models using the Magento framework to be used as a System Under Test? I include the path to my class, but it will need a link to the rest of the framework to run.. What do I do to avoid a long line on include statements?

include C:\repo\magento\cwdl\app\code\core\Mage\Adminhtml\Block\Sales\Order\Shipment\Create\Tracking.php';

class TrackingPageTests extends PHPUnit_Framework_TestCase{

    public function testGetCarriers(){
        $this->SUT = new Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Tracking();
        $this->SUT.getCarriers();
        $this->assertEquals(5,5);
    }
}

error I get:
PHP Fatal error:  Class 'Mage_Adminhtml_Block_Template' not found in C:\repo\magento\cwdl\app\code\core\Mage\Adminhtml\Block\Sales\Order\Shipment


texts: Magento 2.3.1 : No such entity with customerId = Backend Login as Customer Logs page

texts:
My English is not perfect sorry.
I am using Magento 2.3.1 and I saw this issue.
Admin > Reports > Customers > Login as Customer Logs

Login as Customer Logs
No such entity with customerId = 1

I added a picture. Have any idea?
Thank you so much.
https://prnt.sc/nsza9d


texts:
Can anyone recommend a free extension that allows a carousel to be placed on the hompage with rotating images?

The images should be able to be uploaded in the admin area.


texts: Data migration tool. migrate:settings error "Access denied for user 'root'@"

texts:
I try to migrate data around two local environments running on docker and they are set by expose: - "8080" - "3000" in docker-compose.yml
When i starting:
bin/console exec migrate:settings app/code/{Vendor}/Migration/etc/opensource-to-opensource/1.9.4.5/config.xml
I've got error:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'1xx.1xx.1xx.5' (using password: YES)
Anyone can help me with this issue?
Magento1.9 local.xml:
     <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[mysql]]></host>
                    <username><![CDATA[root]]></username>
                    <password><![CDATA[pw]]></password>
                    <dbname><![CDATA[magento]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>

Magento2 env.php:
'db' => [
        'table_prefix' => '',
        'connection' => [
            'default' => [
                'host' => 'dockerize-magento2_mysql_1',
                'dbname' => 'magento2dockerized',
                'username' => 'root',
                'password' => 'enAVINa2',
                'active' => '1',
                'driver_options' => [

                ]
            ]
        ]
    ],

config.xml:
    <source>
        <database host="mysql" name="magento" user="root" password="pw"/>
    </source>
    <destination>
        <database host="dockerize-magento2_mysql_1" name="magento2dockerized" user="root" password="enAVINa2"/>
    </destination>


texts: How to add extra amount to individual tax total?

texts:
I have two tax rules in my online shop.

Tax 1

Tax 2

The tax calculation is based on the subtotal. But now I want to add
custom amount with the above tax .
i.e., Tax 1 = Tax 1 + custom amount
Tax 2 = Tax 2 + custom amount.

Where I need to change the logic in order to achieve this ?
Any help is really appreciated.
Thank you


texts: Admin page content not loading: latter doesn't exist

texts:
I'm running Magento 2.1.3, and am seeing empty page content in my custom module's admin page, with the error Broken reference: the '[layout element name]' element cannot be added as child to 'left', because the latter doesn't exist - I've tried the permission fix in Magento 2.0: main.CRITICAL: Broken reference, but that's not working either. The layout xml is not complicated:

<?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceContainer name="left">
    <block class="Namespace\Module\Block\Adminhtml\Section\Edit\Tabs"
        name="namespace_module_block_section_edit_tabs" />
</referenceContainer>
<referenceContainer name="content">
    <block class="Namespace\Module\Block\Adminhtml\Section\Edit" name="namespace_module_block_edit" />
</referenceContainer>

Any ideas as to why this would be throwing an error?


texts: New changed category name is not showing on storefront

texts:
I changed a category name from ABC to XYZ. After saving the category, XYZ is showing in admin section but on frontend old ABC is showing.

I reindex the store and also clean the cache but the changes not seen on storefront.


texts:
I need to run this SQL query on Magento, but since I have a multi-tenant solution, it need to be done through Data/Install scripts as it will run every time a new client comes in.

What should I use? Data or Install scripts? And should I use DDL or normal SQL?

Here is the query:

`INSERT INTO `eav_attribute` (`attribute_id`, `entity_type_id`, `attribute_code`,
`attribute_model`, `backend_model`, `backend_type`, `backend_table`, `frontend_model`,
`frontend_input`, `frontend_label`, `frontend_class`, `source_model`, `is_required`,
`is_user_defined`, `default_value`, `is_unique`, `note`) VALUES(140, 3, 'thumbnail', NULL,
 'catalog/category_attribute_backend_image', 'varchar', NULL, NULL, 'image', 'Thumbnail
 Image', NULL, NULL, 0, 0, NULL, 0, NULL);


texts: Magento 2 How to edit invoice PDF to change subtotals calculations

texts: Magento2 How to edit invoice PDF to change subtotals calculations.


texts: I face an issue on checkout age regarding the auto-update date when we enter the city and zip code on the checkout page. I want to remove auto-updating when we enter the city it should only update when I enter a zip code.


texts: Magento2 Disable Shipping Method Selection Only in Shipping Method page

texts:
I want to ask customers to select their own shipping method rather than selecting one shipping method by default. here i tried the following code in app/design/frontend/Mypackahe/mytheme/Magento_Checkout/web/js/model/checkout-data-resolver.js
In this file i changed from
selectShippingMethodAction(ratesData[0]);

to
selectShippingMethodAction(null);

It works perfectly but the problem is in cart page it is showing 0 as order cart total. When ever user opened view/edit cart page then it is showing 0 order total why because no shipping method selected on estimate shipping method.
I want to show order total on cart page & also i want to deselect default option of shipping methods so user must select any of them. Any idea on what i am wrong here?


texts: Magento 1.9 base table or view not found - MW One step checkout

texts:
In Magento 1.9.3 I've installed MW One step checkout, everything is working fine, but one thing: atfer login to magento panel -> sales -> orders, I've got error:

a:5:{i:0;s:416:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db231214.mw_onestepcheckout' doesn't exist, query was: SELECT `main_table`.*, `one_step`.`mw_deliverydate_date`, `one_step`.`mw_customercomment_info`, `one_step`.`mw_deliverydate_time` FROM `sales_flat_order_grid` AS `main_table`
LEFT JOIN `mw_onestepcheckout` AS `one_step` ON one_step.sales_order_id=main_table.entity_id ORDER BY created_at DESC LIMIT 20";i:1;s:4925:"#0 /magento-2/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) [...]

I tried to make sql query, but I with no luck (I'm not so close with sql).


texts: Solving helper rewrite conflict. Three modules conflicted on payment/data helper.

texts:
I have a problem where a newly installed module is not working due to a conflict.

The result of n98-magerun dev:module:rewrite:conflicts:

How would I solve this problem? Is there any particular way of re-writting those classes?


texts:
After a year or so of working in Developer Mode, I'm now using Production Mode.

As I deploy updates to modules or designs, I'm wondering when I should run the below commands. At the moment, my order of operations is:

Update files in app/code or app/design
Run bin/magento setup:di:compile
Run bin/magento setup:static-content:deploy en_GB

Is this still necessary when updating something like a stylesheet or template?


texts: i want to write custom sql query to select low and high price in magento2?

texts:
I want to write a custom sql query to find final price,min-price,max_price,special_price but i dont know in which file i suppose to write this code and execute?

can anyone tell me where we can write our custom sql query code like suppose in my case to filter price based on final price,min-price,max-price and to return result on category list page in magento 2.

like if i selected product price by low or high,it should display result accordingly.
this is my code:

<select id="sorter" data-role="sorter" class="sorter-options selectpicker">
    <?php foreach ($block->getAvailableOrders() as $_key => $_order): ?>
        <?php if($_order != 'Price'): ?>
        <option value="<?php /* @escapeNotVerified */ echo $_key; ?>"
            <?php if ($block->isOrderCurrent($_key)): ?>
                selected="selected"
            <?php endif; ?>
            >
            <?php //echo $block->escapeHtml(__($_order == "Position" ? 'Relevance': $_order)) ?>
            <?php echo $block->escapeHtml(__($_order)) ?>
        </option>
    <?php endif; ?>
    <?php endforeach; ?>
    <?php
        $url = $_SERVER['REQUEST_URI'];
        $path = strstr($url, '?');
    ?>
    <option
        <?php if($path == '?product_list_order=price&product_list_dir=asc'): ?>
            selected="selected"
        <?php endif; ?>
        class="low-high" >
        Price - Low to High
    </option>
    <option
        <?php if($path == '?product_list_order=price&product_list_dir=desc'): ?>
            selected="selected"
        <?php endif; ?>
        class="high-low" >
        Price - High to Low
    </option>
</select>

but it is not filtering the result in correct manner.iam unable to get price from low-high or vice versa when i select filters.

could any one tell me that do we need to write custom sql code in a controller or block. and in which exact file i need tow write the code to get result when i sort product based on price.i also need a special price query where the result can be shown based on final_price and it should include special price if that product is having it.


texts: success page template file not called : M2

texts:
After M2 upgrade  success.phtml template file not called at order success page.

while onepage.phtml file is called at onepage checkout page.

Both file location is same but still success.phtml file not called:

  app/design/frontend/Packg/themename/Magento_Checkout/templates

  success.phtml
  onepage.phtml

Note: I have also try to add/remove checkout_onepage_success.xml file in layout folder.


texts: Remove .html from category in product URL?

texts:
For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page.
Is there a setting for this? I know I can remove .html from the category completely, but this is not what I want, I want it to be there in category pages. Strange thing is, for some products it works, no .html in the category path.
Magento 2.3.3
Thanks


texts: Trying to import customer with duplicated email address, (head office and sub branches setup)

texts:
I know this is not ideal but I need to try all options before moving on with this so please if you have any positive advice please feel free to drop it in a comment.

I know I can disable the validation in the PHP code but then MySQL still complains as there is a unique index on the table.

I've thought about setting up some random email addresses to at least get the users imported but this also needs to work as an ongoing process as people can still signup with a unique username and a shared branch email address.

We are limited due to a legacy system which deals with users by usernames only and multiple users/branches can share an email address.

If I hack the system for Magento it would mean that a lot of email notifications would break but this is something we could work around.

Do you have any advice on what I can do to get this working? Have you had to deal with a similar system at all? Am I doomed to hack at the core of Magento?


texts: Display navigation layered filters only on subcategory page, not on main category in Magento 1.9.3

texts:
The quick question I have is how can I display the layered navigation filters only on the subcategory page, not on the main category? Because I have 3-4 attribute sets, one for each subcategory.

root
 -Make-Up
  -Skin
  -Eyes
  -Lips

Make-up is the main category, while Skin, Eyes and Lips are subcategories. And I have created attribute sets for Skin, Eyes and Lips products.

I don't want the navigation filters to be visible under Make-Up because there are too many and looks messy, also is confusing for the customers. Instead I want the filters to be visible only if the user is on the subcategory.


texts: how to hide bundled products from recently viewed products list

texts:
I use magento 1.8.1 and iam just trying to hide my bundle products from recently viewed products list and iam just new to programming, help me to achieve this.Here is my recently viewed products Template file

<?php if ($_products = $this->getRecentlyViewedProducts()): ?>

        <?php echo $this->__('Recently Viewed Products') ?>

            <?php foreach ( $_products as $_product ) : ?>

                <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image">
                    <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgX, $imgY) ?>" data-srcX2="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgX*2, $imgY*2) ?>" width="<?php echo $imgX; ?>" height="<?php echo $imgY; ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />

                    <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
                    <a class="product-name" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?>
                    <?php echo $this->getPriceHtml($_product, true) ?>

            <?php endforeach; ?>

<?php endif; ?>
<?php
$queldorei_blocks = Mage::registry('queldorei_blocks');
if ( !$queldorei_blocks ) {
$queldorei_blocks = array();
} else {
    Mage::unregister('queldorei_blocks');
}
$queldorei_blocks['block_viewed'] = ob_get_clean();
Mage::register('queldorei_blocks', $queldorei_blocks);

Thanks in advance any help would be greatly appreciated.


texts: Can't read new product attribute in template

texts:
I added a new attribute to a product. The attribute is named "is_brand_new". The product shows in the catalog product view in the upselling and related slider.

But the new attribute is not in the product data. I even cleared the cache

I outputted all the data from the item

app\design\frontend\company\base\Magento_Catalog\templates\product\list\items.phtml:

if ($_item->getData("name") == "t-shirt") {
    var_dump($_item->getData());
}

But it does not contain the data for the attribute is_brand_new.

What I try to do is show an icon if the product is marked as brandnew.
So I added a new checkbox attribute in the backend. Now I try to read it out and show the icon if the checkbox is enabled.


texts: How to get products with a specific attribute in a foreach (loop) programmatically?

texts: I need to get all products with a specific attribute example: specialpiece = Yes with product name, image, price, special_price in a loop to show this in my home page.


texts: Create Static Block using Module and display in all pages in Magento 1.9

texts:
I am new to Magento . I am going to create a static block by using Module , which is going to display some content and try to call that block in all my pages.
For Example :  I am going to display an message say Welcome All next to menu section for all my pages.


texts: How can we write an XSD file in Magento 2?

texts: I'm looking for some documentation or tutorial for creating custom xsd in Magento 2 but failed to find any good resource. I already found URN Schema Validation article in Magento 2 official documentation but its failed to explain how exactly we can write a new one. Can you share your experience with me and provide something useful to get started writing custom XSDs ?


texts: Display the intersect of multiple categories

texts:
This is less a question of how as much as it's a question of how ill-advised is this?

For simplicity, let's say the store sells bicycle parts.

Basically, the client would like have parts categorized under three main categories: manufacturer, type, and "bicycle type"(IE Road, Mountain, etc).

So: A wheel is manufactured by Mavic but more specifically falls under the "Mavic Pro" category. It's type is clearly "wheel" but it is more specifically a road front wheel. It then would road bikes in the racing category.

I am unaware of any built-in filtering mechanism in Magento to solve this, and I'm also wondering about the advisability of it (and if it's a poor idea, what are some alternatives?)

Thanks, all!


texts: Good practice regarding core tables relations with modules tables

texts:
This a question regarding Magento development, it can apply for both M1 and M2.

For the last weeks, I've been working on several modules that are directly related to native Magento entities/database table.

Here's an example but this is valid for several module development cases:

  A module that lets you restrict a shopping cart rule for one customer
  only (described by the email).

I came to the conclusion that there's two possible ways of doing it and I'm wondering which one would be the recommended one:

First way: use Magento core tables

  Never edit the core, is that applicable to core tables ?

Add an email column to the salesrule_rule table
Applying the restriction can be done when the model is loaded.

Second way: use a custom table

Create a custom table with salesrule_id and email linked to a custom model
Applying the restriction can be done by doing an extra join or load (of the custom model)

Back in the days I used to always modify the core tables directly but now I don't feel like this is the right way. However, I'm concerned about performance regarding the second way.

What is the best/recommended way of dealing with this ?


texts:
Magento Search filter not working at all, although filters on product by category  works fine.
Magento ver. 1.9.0.1
On the search page
search filters are not working.
sort by is not working
show 6 product not working (it shows more then 6 product)

Edit:

When i search of some product it send me to search page
and when i try to filter the search result on the basis of price, category or if i try to sort search result by price, nothing seems to be working..
it just show same number of product in search result.


texts:
If you have a model, normally there should be a resource model and a resource collection too, but there are some core models where this is not the case.

Example: Mage_Log_Model_Customer

I tried to answer another question and thought its possible to get data from this models collection directly ...

$model = Mage::getModel('log/customer')->getCollection();
foreach ($model as $item) {
    var_dump($item->getData());
}

But it doesn't work ...

$model = Mage::getModel('log/customer');
var_dump(get_class_methods($model));

.... gives valid output like ...

array (size=54)
  ...
  7 => string 'getCollection' (length=13)
  ...

Okay so far, but doing ...

$model = Mage::getModel('log/customer')->getCollection();
var_dump(get_class_methods($model));

... just returns null. Reason for this is, there is no Mage_Log_Model_Resource_Customer_Collection.

Adding this file there ...

class Mage_Log_Model_Resource_Customer_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
{
    protected function _construct()
    {
        $this->_init('log/customer');
    }
}

... gives access to this DB table.

Is there any reason for not adding "Resource Collection" classes for some models? Anything that could break Magento? Just forgot to add these files?


texts: So I tried creating a bundled product with a QTY increment/decrement button. Natively when the qty input is changed, the total price in the left side is updated. I want this behavior to happen when I used the increment and decrement button in the customize column. Thank you in advance for the help.


texts:
I want to override this core file

  vendor/magento/module-tax/Model/Sales/Total/Quote

I have already followed the standard Magento2 approaches to override core file but unable to fetch tax properties that I want to modify.


texts:
I reintsalled and now i dont have any problems except this

    Shopping Cart
    You have no items in your shopping cart.

Click here to continue shopping.

when i add some items.

What can be reason?

I removed inside of debuglog and systemlog and other logs .

Also, i registered an account and when i add to wishlist,

My Wish List
You have no items in your wish list.

it is same again.

now i have somelogs

  for debug.lo: [2016-09-06 16:14:07] main.DEBUG: cache_invalidate:
  {"method":"POST","url":"http: //localhost/magento/customer/account/createpost/","invalidateInfo":{"tags":["wishlist_1","FPC"],"mode":"matchingTag"},"is_exception":false}
  [] [2016-09-06 16:14:07] main.DEBUG: cache_invalidate:
  {"method":"POST","url":"http: //localhost/magento/customer/account/createpost/","invalidateInfo":{"tags":["wishlist_1","FPC"],"mode":"matchingTag"},"is_exception":false}
  [] [2016-09-06 16:14:07] main.DEBUG: cache_invalidate:
  {"method":"POST","url":"http: //localhost/magento/customer/account/createpost/","invalidateInfo":{"identifier":"notification_update_customer_session_2"},"is_exception":false}
  []

and others are empty for now.

 Copyright © 2016 Magento Commerce Inc. All rights reserved.
Magento ver. 2.1.1

this is success page

Success

Please keep this information for your records:

Magento Admin Info:

Username:
admin
Email:
admin@test.com
Password:
******
Your Store Address:
http://localhost/magento2/
Magento Admin Address:
http://localhost/magento2/admin_voa4lj/
Be sure to bookmark your unique URL and record it offline.
Encryption Key:
ed95845c46a91eee0b28e6e8d3ef1b9f
Database Info:

Database Name:
magentodb
Username:
magento
Password:
******
For security, remove write permissions from these directories: '/var/www/html/magento2/app/etc'

i did those

Flush Catalog Images Cache  Pregenerated product images files

Flush JavaScript/CSS Cache  Themes JavaScript and CSS files combined to one file

Flush Static Files Cache  Preprocessed view files and static files
Flush Magento Cache
Flush Cache Storage


texts: Product Qty update after order place Magento 1.9

texts:
I am doing it via observer but nothing is working. here is my code snippet:
config.xml
   <checkout_onepage_controller_success_action>
        <observers>
            <qtyupdate>
                <type>singleton</type>
                <class>qtyupdate/observer</class>
                <method>SetBackToInStock</method>
            </blogapi>
        </observers>
    </checkout_onepage_controller_success_action>

I have tried with sales_order_place_after as well, but nothing is working with that, so using checkout_onepage_controller_success_action event.
Observer.php               //  First Way
public function SetBackToInStock(Varien_Event_Observer $observer)
    {
        $order = $observer->getEvent()->getOrder();
        $productIds = array();
        $qty = 1;

        if ($order) {
            foreach ($order->getAllItems() as $item) {
                $product = Mage::getModel('catalog/product')->load($item->getProductId());
                if(trim(($product->getCondition())) == '812')
                {
                    $productIds[] = $item->getProductId();
                }
            }
        }
        if (!empty($productIds)) {
            foreach ($productIds as $idx => $id) {
                $_product = Mage::getModel('catalog/product')->load($id);
                $productId = $_product->getId();
                $_product->getStockItem()
                    ->setData('qty', $qty)
                    ->setData('is_in_stock', 1)
                    ->save();
            }
        }

        return $this;
    }

Second Way
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productId);
            $stockItem->setData('manage_stock', 1);
            $stockItem->setData('qty', $qty);
            $stockItem->setData('is_in_stock', 1);
            $stockItem->save();

Third Way
 $product = Mage::getModel('catalog/product')->load($id);
            Mage::getSingleton('cataloginventory/stock')->backItemQty($id, $qty);

I want to update qty and inventory status of product after order success. None of the above code in observer working for me.
I print the log it enters in the function.


texts: Display subcategories on category Magento 2

texts:
i would like please your help. I am newbie on Magento and I would like to show subcategories of category on its parent's page on a slider.
I tried initially to show the categories on the parent category (on list.phtml) but with no luck, as suggested here

  https://mage2.pro/t/topic/1813/15

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');
    $subcats = $category->getChildrenCategories();
    $_helper = $this->helper('Magento\Catalog\Helper\Output');?>

    <?php
    foreach ($subcats as $subcat) {
        if ($subcat->getIsActive()) {
            $_category = $objectManager->create('Magento\Catalog\Model\Category')->load($subcat->getId());
            $_outputhelper = $this->helper('Magento\Catalog\Helper\Output');
            $subcaturl = $subcat->getUrl();

            $_imgHtml = '';
            if ($_imgUrl = $_category->getImageUrl()) {

                $_imgHtml = '';
                $_imgHtml = $_outputhelper->categoryAttribute($_category, $_imgHtml, 'image');

                /* @escapeNotVerified */
                echo '
getName() . '">' . $_imgHtml . '

Learn More
';
            }
        }
    } ?>

Can you please help?


texts: How to add Customer custom field then display it in registration form

texts: I want to know how to create custom field for customer and display that custom field in the registration page using plugin interpertor.


texts: Magento 2: I need to run observer function through Cron job

texts:
I want to run an observer function through a Cron job. Can anyone share the simple observer function.?

Here is my code

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
     <group id="default">
         <job name="abandon_cron_test" instance="Abc\Abandon\Observer\Abandon" method="execute">
               <schedule>* * * * *</schedule>
         </job>
     </group>
</config>

Observer file

  Abandon.php

class Abandon implements ObserverInterface
{

    protected $_objectManager;

    /**
    * @param \Magento\Framework\ObjectManagerInterface $objectManager
    */
    public function __construct(
        \Magento\Framework\ObjectManagerInterface $objectManager
    ) {
        $this->_objectManager = $objectManager;
    }
    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/abondoncronrunobserver.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);
        $logger->info('cron successfully');
    }
}

NO, there is no hard requirement to run the observer in cron. Here am using cron/run.php file to use in cronjob. But am not getting quote data in this file.

Here is my code:

  namespace ABC\Abandon\Cron;

    use \Psr\Log\LoggerInterface;
    class Run {

    protected $logger;
    protected $scopeConfig;
    public function __construct(
    LoggerInterface $logger,
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
    ){
    $this->logger = $logger;
    $this->scopeConfig = $scopeConfig;

    }

    public function execute(){

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $cartObj = $objectManager->get('\Magento\Checkout\Model\Cart');
    $quoteId = $cartObj->getQuote()->getId();
    $itemsArray = $cartObj->getQuote()->getAllItems();
    foreach($itemsArray as $item) {
    $productName[] = $item->getName();
    }
    if(is_array($productName)){
    $productNames .= implode(';',$productName);
    }
    $abdata['productNames'] = $productNames;
    $abdata['quoteid'] = $quoteId;
    return $abdata;
    }

    }

Thanks


texts:
In Magento 2, how can I get order item actual price?
I tried using below way but it returns 0, although the code is working with Magento 1.9

use Magento\Framework\Event\ObserverInterface;
class SendOrderTxn implements ObserverInterface
{
    public function execute(
        \Magento\Framework\Event\Observer $observer
    ) {
        $order = $observer->getEvent()->getOrder();
        foreach ($order->getAllVisibleItems() as $item) {
            $orgamount = $item->getProduct()->getPrice();
            /* here $orgamount is 0 */
        }

        return $this;
    }
}


texts: Can edit .less and .css file though FTP?

texts:
I have several question about how to modify files in Magento2.

I only have an FTP user. Is possible to modify .less and .css files using FTP

I read something about compiling the .less, how can i do that using only FTP?

Is the compiling automatic? The system has installed grunt.

Any explanation is useful because i'm really new to this Magento system.

Thank you very much!


texts:
I'm building a my own CMS that connects to Magento and controls it through REST API. I managed to successfully add: "ADD-EDIT-DELETE" functions of products to my CMS but there's a feature that's missing I need to add which is:
Enable Facebook Dynamic Ads and Google product feed for products through the rest api of Magento.
I couldn't find a way to make it


texts: M1/M2 | Extensions - best practices for naming, versioning, author

texts:
was wondering what is the best practice for ...

naming an extentsion?
where to put the copyright holders /authors name?
versioning (major.minor.patch maybe) of extensions

I guess there must be conventions or bet practices for this (M1 / M2) but couldn't really find anything thus far?


texts: Override Magento Catalog Detail view and List view

texts:
i am using Magento CE 2.1 version, i am trying to override Product detail view (Catalog).
My folder structure is

What are the files to override for Detail view and List view?


texts: Magento 2 | Add field to customer edit in adminhtml

texts:
I want to edit a field to the customer edit in admin html.

When you look at the picture I want to add a field below "First Name".

I don't want to create a customer attribute, I just want to add a field there.

Any idea how to do that?


texts: how to Add seller Address on header in magento

texts: which file contain header and footer settings in magento for add and remove seller Address All seller show in my pdf i want only that seller which its product


texts: Can't generate PDF invoices or packing slips in Magento

texts:
I have a Magento issue. I have moved everything to a different server, and all seems to work fine - but I can not get the "print PDF invoice"  or "Packingslip" option in the order section to work. It just shows a blank page when I try. What could be the problem here?

Thanks!


texts: Exception #0: Please upgrade your database

texts:
I just tried creating a basic module like in this tutorial.

But when I try to request the controller, I get the error:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Magestore_HelloMagento data: current version - none, required version - 1.0.0

Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Magestore_HelloMagento data: current version - none, required version - 1.0.0
#0 C:\wamp64\www\magento2\vendor\magento\framework\Interception\Chain\Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#1 C:\wamp64\www\magento2\vendor\magento\framework\Interception\Chain\Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#2 C:\wamp64\www\magento2\vendor\magento\module-page-cache\Model\App\FrontController\BuiltinPlugin.php(73): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#3 C:\wamp64\www\magento2\vendor\magento\framework\Interception\Chain\Chain.php(67): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#4 C:\wamp64\www\magento2\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#5 C:\wamp64\www\magento2\vendor\magento\module-page-cache\Model\App\FrontController\VarnishPlugin.php(55): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#6 C:\wamp64\www\magento2\vendor\magento\framework\Interception\Interceptor.php(142): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#7 C:\wamp64\www\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#8 C:\wamp64\www\magento2\vendor\magento\framework\App\Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#9 C:\wamp64\www\magento2\vendor\magento\framework\App\Bootstrap.php(258): Magento\Framework\App\Http->launch()
#10 C:\wamp64\www\magento2\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#11 {main}

I tried executing php bin/magento setup:upgrade, it was successful, but the error is still there.


texts:
Is there any standalone plugin for Google Pay that I could use in M1 an M2?

I do not want to use any hosted plugins such as Braintree or Stripe.

I know that there is API from Google itself, but I thought about a plugin that can be easily installed.


texts: Magento 2 : Installation & Varnish Test Results Failed => Class Does not exist Magento Marketplace

texts:
We have created the custom module and uploaded to Magento Marketplace and Installation & Varnish Test has been failed due to class does not exist.

If the class not exists, How the Code Sniffer passed?

But the class is exists. Don't know why extension is failed.

We have a custom interface ConnectorCustomerRepositoryInterface, The Testing says the class does not exist.
The classes are below:
<?php
namespace ABCSolutions\Connector365\Api\Customer

interface ConnectorCustomerRepositoryInterface{
..
}

and the extended Class
<?php
namespace ABCSolutions\Connector365\Model\ResourceModel;

class CustomerRepository implements \ABCSolutions\Connector365\Api\Customer\ConnectorCustomerRepositoryInterface{
...
}

And the di.xml
<preference for="ABCSolutions\Connector365\Api\Customer\ConnectorCustomerRepositoryInterface" type="ABCSolutions\Connector365\Model\ResourceModel\CustomerRepository"/>

And webapi.xml file
<route url="/V1/connector/Customer_MultiCreate" method="POST">
<service class="ABCSolutions\Connector365\Api\Customer\ConnectorCustomerRepositoryInterface" method="Customer_MultiCreate"/>
<resources>
 <resources ref="Magento_Customer::customer"/>
</resources>
</route>

And Installed the Varnish in my local magento system and compiled everything working in my local system.

Any help on this?


texts:
I can't figure out how customer_logged_in and customer_logged_out work

<customer_logged_out>
...
</customer_logged_out>

where are they defined, how are they called?

EDIT

 <events>
    <controller_action_layout_load_before>
        <observers>
            <customer_is_logged_in_observer>
                <class>customer/observer</class>
                <method>beforeLoadLayout</method>
            </customer_is_logged_in_observer>
        </observers>
    </controller_action_layout_load_before>

I found out how this is triggered but i can't find the controller_action_layout_load_before event dispatcher

I have searched the project as a text but it doesn't show up in any file. Please shed some light on this.

thanks


texts:
I'm having a tedious issue on the category page of my e-commerce:
only using Chrome or Safari the web page SOMETIMES breaks (img 1)

instead of img 2

If I try to read the code on Chrome browser by Delepoper Tool I see this DOM piece:

If I try to read the source code, all seems at the right place (the third
 has the right style classes and the
 is correctly in
 tag).

Why this behavior and what can be a solution?

Thanks in advance,
WaPoNe


texts:
I installed magento CE 1.9.1.0 nothing else! After installation I created a product. When I save the product, magento can't CREATE TEMPORARY TABLE.

The failure notice:

SQLSTATE[HY000]: General error: 1005 Can't create table 'database.catalogrule_product_price_tmp' (errno: -1),

query was:

CREATE temporary TABLE `catalogrule_product_price_tmp`
  (
     `grouped_id`        VARCHAR(80) NULL comment 'Grouped ID',
     `product_id`        INT UNSIGNED NULL comment 'Product ID',
     `customer_group_id` SMALLINT UNSIGNED NULL comment 'Customer Group ID',
     `from_date`         DATE NULL comment 'From Date',
     `to_date`           DATE NULL comment 'To Date',
     `action_amount`     DECIMAL(12, 4) NULL comment 'Action Amount',
     `action_operator`   VARCHAR(10) NULL comment 'Action Operator',
     `action_stop`       SMALLINT NULL comment 'Action Stop',
     `sort_order`        INT UNSIGNED NULL comment 'Sort Order',
     `price`             DECIMAL(12, 4) NULL comment 'Product Price',
     `rule_product_id`   INT UNSIGNED NULL comment 'Rule Product ID',
     `from_time`         INT UNSIGNED NULL DEFAULT '0' comment 'From Time',
     `to_time`           INT UNSIGNED NULL DEFAULT '0' comment 'To Time',
     INDEX `idx_mmcatalogrule_product_price_tmp_grouped_id` (`grouped_id`)
  )
comment='CatalogRule Price Temporary Table'
engine=innodb
charset=utf8
COLLATE=utf8_general_ci

My server meets the requirements for Magento. i checked it with the magento-check.php:

Congratulations! Your server meets the requirements for Magento.
You have PHP 5.2.0 (or greater)
Safe Mode is off
You have MySQL 4.1.20 (or greater)
You have the curl extension
You have the dom extension
You have the gd extension
You have the hash extension
You have the iconv extension
You have the mcrypt extension
You have the pcre extension
You have the pdo extension
You have the pdo_mysql extension
You have the simplexml extension

Does anyone have an idea or have had the same problem?


texts: Adding a custom block to the cms home page

texts:
I want to modify the layout in page.xml in layout folder for the cms home page.

This is the original xml code,

<block type="core/text_list" name="content" as="content" translate="label">
Main Content Area
</block>

This code seems to pull whatever you type in the cms home page via the admin area.

So I want to add a custom block inside that block, such as,

<block type="core/text_list" name="content" as="content" translate="label">
 Main Content Area
 <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>

And it works. But what about adding a custom block that I want to create under app/design/frontend/MY_LOCAL/template/cms/default/home.phtml ?

<block type="core/text_list" name="content" as="content" translate="label">
 Main Content Area
 <block type="page/html_content" name="content" template="cms/default/home.phtml"/>
</block>

Nothing come out. Magento is not pulling that block of template file at all.

Any ideas?


texts: Upload product with attribute in Magento 2

texts:
I want to upload product with an attribute in Magento 2 with CSV file.
Can anyone tell me it is possible to upload a product with an attribute?


texts:
A while ago I got into a company with a lot of problems in their Magento website, I have fixed a few major bugs in the website but I'm still stuck with this one bug.

This one is pretty common but for some reason ( as a Magento starter ) I can't seem to fix this bug.

I have seen a lot of posts containing the same fix but that fix does not seem to be available for me. Since they are all talking about editing cart.phtml in

  app/design/frontend/base/default/template/checkout/

So they are all telling me to put <?php echo $this->getBlockHtml('formkey'); ?>

on line 50 after

getUrl('checkout/cart/updatePost') ?>" method="post">

But my file seems to contain more or less than it should have.
Here is my code : https://gist.github.com/anonymous/3759dc5742572d957825ab1c4a0172b3

https://www.atwix.com/magento/common-issues-and-solutions-during-magento-upgrade-to-1-9/

I'm talking about Updating cart items in the checkout page

So whenever I press on "Winkelwagen bijwerken" ( update shopping cart ) it simply does nothing ( well it does seem to refresh the form but that's it )

So I would like to know if there is a way to fix this?

Current version : Magento 1.9.3.1
Previous version : Magento 1.8

quick note : There were other trainees who worked on this update


texts: Magento 1.9.1.0 deducts VAT/TAX from order total in shopping cart

texts:
I have a problem where magento keeps deducting the tax from the order total.
Can't figure out why it's doing that.
As you can see in below picture. The order total should be €5,20. But the €0,90 is being deducted instead.

Here's my tax rule, vat is set to 21%:

Here are my settings in the backend:

Does anyone know where I should look to fix this? Thanks

As for clarification:

As you can see. The total should be €7,20. But the VAT/TAX of €1.25 is deducted instead. Totalling: €5,95.


texts: I've started to use magento 2.2.2 and I've noticed that running static content deploy for a specific theme (using -t flag) is no more working. All themes are deployed instead of the requested one only. Am I wrong or is a M2.2 issue?


texts: Multiple Grids search, filter and pagination don't work correctly

texts:
I added a second grid to the Catalog -> Manage Products page.  This new grid (Grid 2) references a collection other than Catalog/Product.  The old grid (Grid 1) I did not change.

When I load the page, both grids appear, with the top 20 items per collection.  Everything appears normal here.

When I try to search in Grid 2, a second Grid 1 appears and the page will not finish loading, it gets stuck in a continuous loop.

I have added the new grid as a child of the Catalog Product block

    //this line already existed
    $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid'));
    //this is the line I added
    $this->setChild('newgrid', $this->getLayout()->createBlock('namespace_module/catalog_new_grid', 'new.grid'));

The grid does not appear to have the same id as the existing one:

    //new grid block
    public function __construct()
{
    parent::__construct();
    $this->setId('newGrid');
    $this->setDefaultSort('new_id');
    $this->setDefaultDir('DESC');
    $this->setSaveParametersInSession(true);
    $this->setUseAjax(true);
    $this->setVarNameFilter('new_filter');

}
    //existing grid block
    public function __construct()
{
    parent::__construct();
    $this->setId('productGrid');
    $this->setDefaultSort('entity_id');
    $this->setDefaultDir('DESC');
    $this->setSaveParametersInSession(true);
    $this->setUseAjax(true);
    $this->setVarNameFilter('product_filter');

}

I have a feeling the searching/pagination buttons are just referencing the wrong grid, but I'm not sure where/how to fix that.  Any thoughts on why Grid 2 doesn't search, filter or paginate and instead returns Grid 1?


texts: Change icon color of the grid or list mode buttons in the Category toolbar

texts:
I have my own child-theme based on the Luma parent theme.

How do I change icon color of the grid or list mode buttons in the Category toolbar?

In /vendor/magento/theme-frontend-luma/Magento_Catalog/web/css/source/_module.less I found @text__color__muted.

But I can't find what this color is, where it's declared?


texts: How to add 'Buynow' button on product's gallery and product's detail view?

texts:
I need to add a button for 'Buy Now / Checkout' along with the 'add to cart' button. I need to display both of these buttons together in product gallery as well as product's detail view page. I have referred some of these reference  [1]:https://github.com/mageprince/magento2-buynow

I am accessing this project through XAMPP without running apache2 or mysql services in separately. But I have installed them locally on my machine. When I follow those mentioned guidelines I am getting an error like this.

step ==> sudo php bin/magento setup:upgrade

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store_website' doesn't exist, query was: SELECT store_website.* FROM store_website

I have created magento2 database in phpmyadmin and I am accessing it though phpmyadmin. So, how can I integrate this extension with my project?

Anybody can help me with this to figure it out, please?


texts: Magento2: How can I fetch the email transaction grid collection in my custom extension?

texts:
I am working on one custom module and I need to fetch the transactional email templates grid which is at Marketing > email templates in magento 2 default.
I need that grid in my custom extension, how can i get that?


texts: Adding slick carousel to Magento 2 homepage

texts:
I'm having an issue with what I think should be a basic thing but I'm obviously doing something wrong, all I want to do is have a basic banner slider using slick slider jquery plugin. I have a custom theme working fine and I've downloaded the slick.min.js to app/design/frontend/Pyxis/pyxistheme/web/js/slick.min.js

I have then created the requirejs-config.js in my /web folder and added this:

    `var config = {
        paths: {
            slick:        'js/slick.min'
        },
        shim: {
            slick: {
                deps: ['jquery']
            }
        }
    };

`

which when I view the page source and view the file I can see that code.

My issue is that when I add the jquery code to a CMS page ie homepage like so:

<script>
    require([
        'jquery',
        'slick.min'
    ], function ($) {
        jQuery(document).ready(function () {
            jQuery(".home-banners").slick({
                dots: true,
                infinite: true,
                arrows: true,
                speed: 300,
                slidesToShow: 1,
                slidesToScroll: 1,
            });
        });
    });
</script>

I get a console error saying slick.min.js cannot be found? I have ran these commands in my terminal:

php bin/magento setup:upgrade
php -d memory_limit=2048M bin/magento setup:static-content:deploy en_GB -f
php -d memory_limit=2048M bin/magento cache:flush

Any idea why it can't find my slick.min.js file?

Thankyou


texts: How can i call editPost controller after an observer(checkout_onepage_controller_success_action) Magento 2

texts:
I have to save the account edit with customer default shipping address details. After the successful order placement.

I have created the observer but not sure how to call editPost of the customer from that execute method.

<?php
 namespace YX\Customer\Observer;
 use Magento\Framework\Event\Observer;
 use Magento\Framework\Event\ObserverInterface;

class OrderSuccess implements ObserverInterface
{
  protected $customerSession;

    public function __construct(
        \Magento\Customer\Model\Session $customerSession
    )
    {
        $this->customerSession = $customerSession;
    }

/**
 * @param Observer $observer
 * @return void
 */
public function execute(Observer $observer)
{
    // TODO: Implement execute() method.
    $customer = $this->customerSession->getCustomer();
    $shippingAddress = $customer->getDefaultShippingAddress();
    if ($shippingAddress) {
        $firstname =  $shippingAddress->getFirstname();
        $secondname =  $shippingAddress->getLastname();
        $telephone =  $shippingAddress->getTelephone();
    }

 }
}

Now I need to send these 3 parameter $firstname, $secondname, $telephone to editPost controller.

How can to achieve it.

My code looks something like that

public function execute(Observer $observer)
{
    // TODO: Implement execute() method.
    $customer = $this->customerSession->getCustomer();
    $shippingAddress = $customer->getDefaultShippingAddress();

    if ($shippingAddress) {
        $firstname =  $shippingAddress->getFirstname();
        $secondname =  $shippingAddress->getLastname();
        $telephone =  $shippingAddress->getTelephone();
        $customer->setData('firstname', $firstname);
        $customer->setData('lastname', $secondname);
        $customer->setData('mobile', $telephone);
        $customer->save();
    }


texts: Magento 2: How to pass custom params with url?

texts:
I want to pass custom params( product id and currency) with product page url dynamically.
 Example url:

https://example.com/boys-5-piece-blue-suit-eric.html?id=123&currency=GBP

Need help


texts: Text field attribute make FROM To format in advanced search magento

texts:
I have create a text field attribute( with Attribute Code "test") . It is showing on front end in advanced search. But i want to show it in format like weight or price. So that i will able to search record between 10 and 20(10-20).

and url should be like this when i click on search: catalogsearch/advanced/result/?weight[from]=5&weight[to]=10&manufacturer=&test[from]=10&test[to]=20

Please help how to do this.


texts:
I have a code:

$productCollectionClone = $productCollection->getCollectionClone();
$collection = $productCollectionClone->removeAttributeSearch($attribute->getAttributeCode());

Anyone can help me explain how the function removeAttributeSearch work?


texts: Magento 2 : After creating "Conditions Model and Fieldset in custom module, How to validate that condition on frontend to showing specific block?

texts:
I have just followed the below tutorial to create condition fieldset and model in the custom module.

https://www.mageworx.com/blog/2016/09/magento-2-module-with-conditions-model-fieldset/

Also, it's working perfect, see below screenshot:

Now, please let me know how I can apply this condition on the frontend area to show a specific block?

Please share your view on this.

Thanks for your help!


texts: One Step Checkout Undefined index: country_id

texts:
I recently updated my Magento version to 1.9.3.8 and after that "One step checkout" not showing total cost with shipping price. I get an error in my system.log:

  Notice: Undefined index: country_id  in /public_html/app/code/local/MGS/Oscheckout/controllers/IndexController.php on line 258

Does anybody have a clue what's wrong? Thanks

    public function savebillingAction() {
      $billing_data = $this->getRequest()->getPost('billing', array());
      $shipping_data = $this->getRequest()->getPost('shipping', array());
      .....
      $billing = $quote->getBillingAddress();
      //line 258:
      $billingCountryId = $billing_data['country_id'];
      $this->getOnepage()->getQuote()->getShippingAddress()->setCountryId($billingCountryId)->setCollectShippingRates(true);
      $billing->setCountryId($billingCountryId)->save();
      $shipping->setSameAsBilling(true)->save();
      ...
    }


texts: Magento 2 actions column in backend grid registry.js error on click any collumn

texts:
When I click anywhere on the Grid I get the following:

Actions xml:

...
<actionsColumn name="actions" class="Vendor\Module\Ui\Component\Listing\Grid\Column\BlogAction">
      <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="indexField" xsi:type="string">blog_id</item>
           </item>
      </argument>
 </actionsColumn>
 ...

BlogAction:

<?php

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

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

class BlogAction extends Column
{
    const URL_PATH_EDIT = 'vendor/blog/edit';

    protected $urlBuilder;
    protected $_storeManager;

    public function __construct(
        ContextInterface $context,
        UiComponentFactory $uiComponentFactory,
        UrlInterface $urlBuilder,
        array $components = [],
        array $data = []
    ) {
        $this->urlBuilder = $urlBuilder;
        parent::__construct($context, $uiComponentFactory, $components, $data);
    }

    public function prepareDataSource(array $dataSource)
    {
        if (isset($dataSource['data']['items'])) {
            foreach ($dataSource['data']['items'] as &$item) {
                if (isset($item['blog_id'])) {
                    $item[$this->getData('name')] = [
                        'edit' => [
                            'href' => $this->urlBuilder->getUrl(
                                static::URL_PATH_EDIT,
                                [
                                    'blog_id' => $item['blog_id']
                                ]
                            ),
                            'label' => __('Edit')
                        ]
                    ];
                }
            }
        }
        return $dataSource;
    }
}

It seem that it's related to the actionsColumn as if I remove the xml then on click grid no error happen. I just can't figure it out what I am missing some sort of registry perhaps?

Anyone have any idea?


texts: Magento formKey validation not working in overrided controller

texts:
This question is for understanding and clarification purposes.

I have installed Magento CE 1.9.3.1 in my local windows 7 64bit system.

Now I have overrided the CartController through community module as below:
magento_root\app\code\community\Company\Customcheckout\etc\config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Company_Customcheckout>
            <version>1.0.0</version>
        </Company_Customcheckout>
    </modules>
    <frontend>
        <routers>
            <Company_Customcheckout>
                <use>standard</use>
                <args>
                    <module>Company_Customcheckout</module>
                    <frontName>customcheckout</frontName>
                </args>
            </Company_Customcheckout>
        </routers>
    </frontend>
    <global>
        <routers>
            <checkout>
                <rewrite>
                    <cart>
                        <to>customcheckout/cart</to>
                        <override_actions>true</override_actions>
                        <actions>
                            <add>
                                <to>customcheckout/cart/add</to>
                            </add>
                            <index>
                                <to>customcheckout/cart/index</to>
                            </index>
                        </actions>
                    </cart>
                </rewrite>
            </checkout>
        </routers>
    </global>
</config>

magento_root\app\code\community\Company\Customcheckout\controllers\CartController.php

<?php
require_once 'Mage/Checkout/controllers/CartController.php';
class Company_Customcheckout_CartController extends Mage_Checkout_CartController {
    public function _construct() {}
    public function addAction() {
        parent::addAction();
    }
    public function indexAction() {
        parent::indexAction();
    }
}

and the app/etc/modules directory has also the relevant module's xml file.

Now when I try to add any product(from product listing page) to cart I am getting 503 Service Unavailable error which is just title of error: Invalid form key. If I disable the module (i.e. disable the override) then the add to cart and redirect to cart works fine.

That makes me wonder, why it would give me Invalid form key error when I have just overrided the CartController class which has core CartController.php class required(path is fully correct) and I am accessing it's methods by parent keyword ? Firstly is it due to parent-child hierarchy of PHP ? Please provide a detailed explanation.


texts: Display one color (of a configurable product) on its own

texts:
I have the following situation:

I have many configurable products that are all configured by color and size.
All simple products associated to these configurables are not individually visible.
The configurable products are linked to a category.

Now i want to display one of the colors in a second category as well.

I came up with the idea of creating a new configurable product for each color I want to show on its own and only associate the simple products with the color I want to show.

Is this the correct way to achieve this? Or is there a way to achieve this without having to create extra configurable product?


texts: Difference between index catalog_category_product and catalog_product_category

texts:
Could someone explain me what is the difference between the indexes catalog_category_product and catalog_product_category?

From db i see that catalog_category_product is related to table catalog_category_product_index, but i don't find to which table is related catalog_product_category index.


texts: Declaring a block inside  giving error in other refernce node

texts:
I am trying to override inchoo social connect plugin, but I am facing some kind of layout issue, unable to resolve

my

  local.xml

<layout version="0.1.0">
    <default>
        <reference name="youamaajaxlogin">
            <block type="inchoo_socialconnect/login" name="inchoo_socialconnect_login" as='test'>
                <block type="inchoo_socialconnect/google_button" name="inchoo_socialconnect_google_login_button" />
                <block type="inchoo_socialconnect/facebook_button" name="inchoo_socialconnect_facebook_login_button" />
                <block type="inchoo_socialconnect/twitter_button" name="inchoo_socialconnect_twitter_login_button" />
            </block>
        </reference>
    </default>

    <customer_account_login>
        <reference name="customer_form_login">
            <action method="setTemplate">
                <template>diboltplus/customer/form/login.phtml</template>
            </action>
            <block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
            <block type="core/template" name="persistent.remember.me.tooltip" template="persistent/remember_me_tooltip.phtml" />
            <block type="inchoo_socialconnect/login" name="inchoo_socialconnect_login">
                <block type="inchoo_socialconnect/google_button" name="inchoo_socialconnect_google_login_button" />
                <block type="inchoo_socialconnect/facebook_button" name="inchoo_socialconnect_facebook_login_button" />
                <block type="inchoo_socialconnect/twitter_button" name="inchoo_socialconnect_twitter_login_button" />
            </block>
        </reference>
    </customer_account_login>
</layout>

The <default> node having the layout block for popup login,I have included a block inchoo_socialconnect_login, and able to call it from my template file and its working fine as expected, but <customer_account_login> node when I am including the same block inchoo_socialconnect_login inside it and trying it to call from diboltplus/customer/form/login.phtml, the block is not visible in template, but if I comment my default node code, than I am able to call block inchoo_socialconnect_login from the template.

I am doing something wrong here?

I have tried giving alias name too , but its not working.

Any help !


texts: Service Temporarily Unavailable after installing a module

texts:
I'm running NGinx 1.6.2 with Magento 1.9.1.1 - just wanted to install SMTP Pro Email via the Connect/Mag Downloader webinterface and it got till:

  Checking dependencies of packages
  Starting to download ASchroder_SMTPPro-2.0.6.tgz ...
  ...done: 32,911 bytes

Then I checked the frontpage after a couple of minutes because I thought there was a problem and I get now everywhere:

  Service Temporarily Unavailable
  The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

There are no logfiles written (/var/log/ is empty) and I don't see anything in the NGinx error - just a 200 in the NGinx access log.

I checked all directories for leftovers from the SMTP extension but nothing has actually been written so far.
I emptied the cache in /var/cache but nothing changes either.

My question: What happens before the download of an extension finished or is being extracted?
Maybe via that way I could figure out how to get my shop back?
Or does anybody know where to digg?


texts: Magento 2 how to add data to custom column in sales_order table

texts:
I wan't to add data in a custom field that I created, I used InstallSchema like this:

Setup/InstallSchema.php

use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\ModuleContextInterface;

class InstallSchema implements InstallSchemaInterface

{

public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
    $installer = $setup;
    $installer->startSetup();

    $installer->getConnection()->addColumn(
        $installer->getTable('quote'),
        'pakke_shipmentid',
        [
            'type' => 'text',
            'nullable' => true,
            'comment' => 'Pakke Shipment Id',
        ]
    );

    $installer->getConnection()->addColumn(
        $installer->getTable('sales_order'),
        'pakke_shipmentid',
        [
            'type' => 'text',
            'nullable' => true,
            'comment' => 'Pakke Shipment Id',
        ]
    );

    $installer->getConnection()->addColumn(
        $installer->getTable('sales_order_grid'),
        'pakke_shipmentid',
        [
            'type' => 'text',
            'nullable' => true,
            'comment' => 'Pakke Shipment Id',
        ]
    );

    $setup->endSetup();
}

}

I will need to use it in observer.

Greetings!


texts: Adding custom permission to a role does not save

texts:
So I'm trying to write an ACL.XML file for a simple extension that we have that allows certain people to run a manual indexer.

However, all the documentation I can find says I should use:

<acl>
    <resources>
        <resource id="Magento_Backend::admin">
            <resource id="Magento_Backend::system">
                <resource id="Magento_Backend::system_tools">

However if I use that, then the role never fully loads.

But if I change it to:

            <resource id="Magento_Backend::tools">

Then it loads, and I can add it to my role (add a checkmark) and click save. No errors. However, when I go back to the role resources, it's unchecked.

I'm completely new to ACL's in M2, so I'm a little stumped.

Here is a fully copy and paste of my ACL.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
        <resources>
            <resource id="Magento_Backend::admin">
                <resource id="Magento_Backend::system">
                    <resource id="Magento_Backend::tools">
                        <resource id="ProductIndexer::productindexer" title="Manual Indexer" sortOrder="60"/>
                    </resource>
                </resource>
            </resource>
        </resources>
    </acl>
</config>


texts: Out of stock products still appear in the frontend, search and others - Magento 2.1.0

texts:
I see that my installation of Magento 2.1.0 has a problem! Refuses to hide out of stock products from search and category pages! I cleared the cache, I reindexed, but no luck!
Can you give me any advice?
My products are with stock 0, but in front, they appear in stock, and when you order them it gives you this error:
We don't have as many "Item's name" as you requested.

Thanks
Later edit :
I also know this information :

Set in admin > Stores > configuration > Catalog > Inventory > Stock Options > Display Out of Stock Products to NO
This is actually a feature of Magento.
Setting Display out-of-stock products to No only hides them from the category list pages and the search results page.
The product page is actually still available.
Starting with CE 1.9.1 there is even a message under the config setting Display out of stock products saying Products will still be shown by direct product URLs.
And this is actually a good thing.
This way search engines don't register a lot of 404 pages when your products get out of stock.
I don't see the harm in leaving it like that. The customer cannot order them anyway.
If you want a product not to be available at all in your store you have to mark it as disabled or set its visibility to Not visible individually or remove its association to the websites from the websites tab on the admin product edit page.
Source: Out of stock products still appear in the frontend


texts: Magento 2 | Add NOINDEX, FOLLOW to 404 CMS page using XML

texts:
How do I add NOINDEX, FOLLOW robots META tag to a custom 404 CMS page in Magento using XML, no matter what URL the page is served at?

By following the answer on this page, I was able to figure out how to target a specific Magento CMS Page (using the URL key) and then use a Layout Handle to change the robots META tag to NOINDEX, FOLLOW.  Which would work great for a static page.

But my page is meant for 404 errors and is served at many different URLs.  The problem with the solution in the link above is that it only works if the URL matches the URL key of the page. (The URL key of my 404 page is no-route-2) So if my 404 page is served at a URL that does not match the URL key ie. https://example.com/nothinghere, the  robots META tag will not be updated.

But if you go to https://example.com/no-route-2 it will work.

I need the  robots META tag of my page to have NOINDEX, FOLLOW no matter what URL it is served at.


texts: Move Languages Module from Footer to Header

texts:
I want to move the Language Change options from the footer to header. To do this I simply moved this code in the page.xml file of my current template:

<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>

Previously it was written under

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">

Now I have moved it under:

<block type="page/html_header" name="header" as="header">

Now when I refreshed the page, it is removed from footer, but doesn't show up in header. Can anyone tell what else is needed to be changed for this to take effect.


texts: Magento 2 - Error: pub/media/wysiwyg is not under storage root path

texts:
I facing this error when uploading images in static blocks.

Can anyone suggest me, why is this happen?


texts:
I am Creating a simple layout block and template, but it is giving error

  Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Test_Module::stock_left.phtml' in module: 'Test_Module' block's name: 'productleft'

layout catalog_product_view.xml

<?xml version="1.0"?>
<page layout = "1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">

        <referenceContainer name="product.info.main">
            <block class="Test\Module\Block\StockLeft" name="productleft" template="Test_Module::stock_left.phtml"/>
        </referenceContainer>

</page>

Block StockLeft.php

<?php

namespace Test\Module\Block;

use Magento\Framework\view\Element\Template;

class StockLeft extends Template{

}

Template : stock_left.phtml

<?php
/**@var \Test\Module\Block\stockleft $blocks */

?>

hello world

Thanks in advance.


texts: I have some product in my shop which can be ordered but they will be available for shipping in few weeks (because they are still in factory). Is there any way to set the date when the product will arrive from factory and will be ready for shipment?


texts: How / Where to add Facebook Checkout pixel?

texts:
I like to ask where I should place this code snippet:

  fbq('track', 'Purchase', {
    value: 1,
    currency: 'SEK',
  });

I have added the normal facebook tracking code into the head for all pages. But I like to add this specific codesnippet to after the order is completed/success. And what variable name should I use for the value?

Which file, and what is the variable name? This is for Magento 2.3

Many thanks!


texts: Downloadable Product import creates double entries in `downloadable_link` and `downloadable_link_price` tables

texts:
I have imported downloadable products using Magento 2's default import flow with CSV.

To import it to different stores I have to add row per store. However, it creates duplicate entries in downloadable_link and downloadable_link_price tables. I think this is redundant.

Or how can I use default stores'(first store) attribute's value in the second store as I want to change some attributes only?

Thank you.


texts: Magento 2 : How To Pass Data From Observer to Phtml File

texts:
I am getting order id from order success event, I want to pass order into phtml page.
I tried with checkout session but I did not get order id in phtml page.
anyone can help me regarding this.
i am getting order from bellow code

$order_ids = $observer->getEvent()->getOrderIds()[0];
           $order = $this->orderRepository->get($order_ids);
           $orderId  = $order->getIncrementId();

set session and now getting session value in phtml page

$observer_session = $objectManager->get('Magento\Framework\Session\SessionManagerInterface');
$order = $observer_session->getValue();


texts: Magento 2 admin customer grid export to csv with custom fields

texts:
I need to modify the columns in the customer csv file generated by the Ui module in magento 2.
 The problem is that the csv file is generated in a generic class of Ui Module, and not from the customer module.
Also the data is generated  from the Ui component data provider class so  the data in the CSV depends on the columns from the Ui component XML.
Also, i need to keep the customer grid columns intact.

Is there any other way to inject/remove the columns from the CSV file?


texts:
Currently when customer navigates to checkout, they have to click the shipping options of the sidebar in order to display and subsequently select a shipping option.  How can we make it so that these shipping options open automatically when the cart page loads, so that they are instantly visible to the user.

Following this solution but it appears to only affect the cart items further along the checkout process.


texts: Image Resize not working for catalog images magento 2.3

texts:
Please check the below code

  app\code\Vendor\Category\etc\di.xml

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

    <type name="Magento\Catalog\Model\Product\Image">
        <plugin name="ImageWhitespace" type="Vendor\Category\Model\Product\Image" sortOrder="1" />
    </type>
</config>

  app\code\Vendor\Category\Model\Product\Image.php

<?php

namespace Vendor\Category\Model\Product;

    class Image
    {
        public function beforeSetKeepFrame($image, $keep)
        {
            if (is_string($keep)) {
                $keep = (strtolower($keep) === 'true') ? 1 : 0;
            }
            return [$keep];
        }
}
    ?>

  app\design\frontend\vendor\customtheme\etc\view.xml

 <?xml version="1.0"?>
    <!--
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */
    -->
    <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
        <media>
            <images module="Magento_Catalog">
             <image id="category_page_list" type="small_image">
                <width>237</width>
                <height>341</height>
                <frame>false</frame>
            </image>
             <image id="product_page_image_medium" type="image">
                    <width>295</width>
                    <height>400</height>
                    <frame>false</frame>
                </image>

                <image id="upsell_products_list" type="small_image">
                    <width>237</width>
                    <height>341</height>
                    <frame>false</frame>
                </image>

                 </images>
        </media>
    </view>


texts: Magento 2, How to call front controller from admin page?

texts: Using magento 2, front and admin, I need to access controller in print button on sale order page to print invoice which generate pdf in front view controller. Plz.


texts:
I was wondering why my Magento local.xml is not being called. I have a package with multiple themes.

Package

Default

/layout/local.xml

Theme1

/layout/local.xml

Theme2

/layout/local.xml

I'm using Theme1 but the local.xml being called is from the Default theme. What I wanted was to use local.xml from Theme1. Any idea why this is not working?


texts: Large number of associated product(5000) of a configurable product showing blank page

texts:
I have created a Configurable product and added about 5000 simple products to it, but now if I try to view the product on the front end or in the Admin I just get a blank Page? can anybody point me in the right direction on our to correct this, looks like a memory issue.

I can see all the Simple products in the admin


texts: Dynamically change discount cost in cart

texts:
In my magento store how can i go about changing the discount total in my shopping cart dynamically?

I'm able to access and get the current discount with this code:

<?php
$quote = Mage::getSingleton('checkout/cart')->getQuote();
$totals =  $quote->getTotals();
$discount = $totals["discount"]->getValue();
?>

I have a button in my shopping cart that when pressed should add an extra £5 onto the discount value, updating the total cost etc at the same time.


texts: I've deleted footer links, but the lines are still visible

texts:
I've deleted the footer links on my magento 1.9 but the lines are still visible, where do I have to look to delete them?

Here is a screenshot to make it more easy to understand:
https://www.dropbox.com/s/5um1uoub9apk3pj/lines.PNG?dl=0


texts: Magento 2 Migration Tool - Delta Delivering Failed - Deltalog not installed

texts:
After a successful initial data migration from 1.8.1.0 >> 2.0.2 CE using the Migration Tool NOW getting "Migration/Exception - Delta delivering failed" because the "Deltalog for customer_entity is not installed"

How can the "Deltalog" be "installed"?

Why is the "Detalog" not installed along with the tool or during the initial migration process?

Why did Delta fail?

If you reset then there is no Delta; True?

Magento2 is 2.0.7. Updated via CL from magento2 2.0.2 >> 2.0.4 >> 2.0.7

Migration Tool Version 2.0.7


texts: What resolution should I choice for my product photos?

texts:
I'm adding photos to my products but they don't fit the photo holder so I get some ugly white space

As you can see I got white spaces at the top and the bottom. How can i prevent this?

My configuration setting are: Base Image Width 1800, Small Image Width 210


texts: Is Magento 1.x knowledge required to get started with magento 2?

texts: I don't have any prior knowledge of Magento 1 or 2. I want to get started with magento 2. But the issue is magento 2 documentation seems not for magento beginners. Please can someone tell me if I need to learn magento 1 before getting started with magento 2?


texts: I am trying to create a shopping cart rule where a customer can purchase up to 5 of the same products that are set to a specific attribute at the same price as 1.  In my conditions I have selected the attribute ‘sample’ then I want to select if qty in basket is less than equal to 5 to apply the rule.  But the quantity in cart option is not available in the drop down menu?  Any help would be much appreciated.  I have attached a screen shot for reference.


texts: Subscribe newsletter message when unsubscribing

texts:
Whenever a  user unsubscribes from the newsletter from the site, theres a succes message displayed for subscribing. I simply call the messages like this:

<?php echo $this->getChildHtml('global_messages') ?>

How do I fix this?


texts: Magento2 run custom javascript after page load and all other scripts are finished

texts: Is there any way to execute a custom javascript file after full content of the page is finished loading and after every other javascript file has finished execution ?


texts:
I have recently moved my magento installation from one server to another and have had some issues with the urls not being found. I was able to solve this temporarily but using /index.php/admin and then turning of the URL rewrites. This allowed to me access all my files including the login page. However when messing around with some setting (URL rewrites) included i am no unable to access my admin page again. I can however access all other pages.

The admin page can be accessed using /index.php/admin BUT it simply refreshes the page instead of logging me in.

Anybody else had this problem and or know what is wrong ?


texts:
i am trying to install the extension through composer but i am getting below error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- magento/composer-root-update-plugin is locked to version 1.0.0 and an update of this package was not requested.
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- dealerdirect/phpcodesniffer-composer-installer is locked to version v0.5.0 and an update of this package was not requested.
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin 1.0.4 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.4].
- magento/product-community-edition is locked to version 2.4.0 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
For more information please find the below image.


texts: Product Associate drop down inventory stock value display

texts: On the product page, i have to display associated product inventory stock qty on a dropdown. Currently its display undefined.


texts: 1.9 Onepage Checkout - Combine Shipping Address & Shipping Method into One Step

texts:
I know there are 3rd party extensions for this but i prefer the default OPC and would just like to reduce the number of steps.

Ultimately i would like to combine the Shipping Address and Shipping Method into one step and if possible do the same with the Payment Method and Order Review steps.

Any help on how i can achieve this would be greatly appreciated.

Its worth mentioning a very similiar question was asked here CE 1.9.2 - Onepage checkout - merge shipping address and method into one step although when i followed the instructions i was unable to proceed past the billing step so i'm assuming something is missing.


texts: Get Option/Flag on product added to cart

texts:
Well i have an observer that is executed when a product is added to cart using magento API V1/guest-carts/:quoteID/items. I want to set the product with some flag, as long as the product is in the quote.

Any idea how is the best way to approach this?

Thanks, appreciate it.


texts:
Ok, I have a tricky one. So it is about Magento 1.9
So if order is equal or under 12 eur I should have flat rate or shipping rate of 3 eur. But if over 12 I should have another shipping method.

So basically up to 12 eur I should have flat rate shipping method, and above 12 eur I should have another shipping method while first one disappears.

Thanks!


texts: Provider information for the shipping address in the order summary

texts:
I created a delivery module with a pickup service.
I'm stuck with the shipping address displayed in the order summary.
From where does the information come from?
My issue happens only when I'm a guest or as a client without a saved address.
I have the right information in my quote.shippingAddress and the quote.billingAddress().
Thanks


texts:
I am taking customer telephone on success page and i want to update customer Telephone in magento this is my code

$order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
if($order->getCustomerId() === NULL){
echo $order->getBillingAddress()->getTelephone();