texts: Installation Problem: Magento 1.9 Blank Page

texts:
While trying to install Magento 1.9 on my CentOS/APACHE server, when I open the install.php file in the browser, getting a blank page.

I would want someone to help me through this please, stuck on it since hours now, and am not able to find a solution to that.

For the reference, here is the link: http://www.bluetopink.com/magento/install.php


texts: Magento 2: Override/extend the email.css that is being used in the transactional email header

texts:
When adding a new email header template i see the following bit of code:

   <style type="text/css">
        {{var template_styles|raw}}

        {{css file="css/email.css"}}
    </style>

Is there a way to override/extend this css/email.css file? I want to style email templates, but I don't know where to start.


texts:
I'm trying to add a custom js file in magento 2 in the admin but all I can see are sample on how to add in the frontend. I found some that shows how to add in admin but none works. Below are my code that I copied from some sources

//app/code/COMPANY/PRODUCT/view/adminhtml/requirejs-config.js
var config = {
    "map": {
        "*": {
            "generateMenu": "TCM_HeaderMenu/js/generateMenu"
        }
    }
}

and in the file located in app/code/COMPANY/PRODUCT/view/adminhtml/web/js/generateMenu.js

  /**
   * Copyright © Magento, Inc. All rights reserved.
   * See COPYING.txt for license details.
   */
  require([
      'jquery',
      'logger'

  ],  function($, logger) {
      'use strict';
      logger.log('inchoo.js is loaded!!');

      //creating jquery widget
      $.widget('generateMenu.js', {
          _create: function() {

              this.element.on('click', function(e){
                  logger.log("You click on element: " + e.target);
              });
          }

      });

    return $.generateMenu.js;
  });

But it seems that this is not being called when I refresh the page.

Note: I'm trying to load the custom js in Catalog->category page in the admin panel


texts:
I have a specific product and its image is not shown in the front-end. In the admin panel in Catalog->Manage Products->Images I can see all the images of its configurable product. So I don't understand why is this only happening only to this specific product. Any help would be appreciated.

EDIT: No exclude or remove is checked on the Images section. I tried to find the images on the server and they are there with ownership www-data:www-data


texts: upgrade magneto 2.3.4 to magneto 2.3.5 after upgrade customer not create in admin

texts: I am try to create a customer in admin, and customer-created successfully, but stuck in customer create form and error happened


texts: di xml for corresponding config magento 2 : dispatch() error

texts:
In my Magento 2 front page, if i click on the categories/subcategories menu, i get

Call to a member function dispatch() on null in C:\xampp\htdocs\magento2x\magento2\lib\internal\Magento\Framework\View\Element\AbstractBlock.php on line 644.

My system.log says:

Cache file with merged layout: LAYOUT_frontend_STORE1_36f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again.  [] []

I am actually migrating my 1x magento to 2x.

Could you please help with the corresponding code for di.xml under etc.

My updated di.xml is as

  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                    <!--Overrride for Block catalog rewrite product list toolbar -->
<preference for="Magento\Catalog\Block\Product\ListProduct" type="Vendor\Module\Block\Catalog\Product\ListProduct" />
<preference for="ToolbarModel" type="Vendor\Module\Block\Catalog\Product\SearchList\Toolbar" />    <!--ToolbarModel: alias for Magento\Catalog\Model\Product\ProductList\Toolbar -->
                    <!--Override for Block catalog Search layer -->
<preference for="\Magento\LayeredNavigation\Block\Navigation" type="Vendor\Module\Block\CatalogSearch\Layer" />

<!-- Override model: Catalog Resource-->
<preference for="Magento\Catalog\Model\ResourceModel\Product\Collection" type="Vendor\Module\Model\Catalog\Resource\Product\Collection" />

If i search for products by clicking category menu, i get the above mentioned error?
Is it cause of my incomplete di xml file?


texts: Call action after "Save Config" was clicked in the admin

texts:
How can I call an action of my controller in a custom module after "Save Config" was clicked in System --> Configuration --> Catalog? (image)

Settings of my module are inside that section, and I need to fire my action just after configuration was saved. I need to call the action only in that section of the admin panel - if "Save Config" was clicked in a different section of the admin, the action don't need to be called.

EDIT:

Action has to check if saved settings of the module are correct, and do some other calculations every time the configuration is saved.

EDIT 2:

I tried solution posted by Fabian Blechschmidt. Observer is working after "Save Config" was clicked (I see text in log file):

config.xml:

<config>
...
    <global>
        <events>
            <admin_system_config_changed_section_mysection>
                <observers>
                    <mymodule>
                        <type>singleton</type>
                        <class>mymodule/observer</class>
                        <method>handle_adminSystemConfigChangedSection</method>
                    </mymodule>
                </observers>
            </admin_system_config_changed_section_mysection>
        </events>
    </global>
...
</config>

Model/Observer.php:

class My_Module_Model_Observer
{
    public function handle_adminSystemConfigChangedSection()
    {
        Mage::log('Test: oberver is working!');

        //I tried this but it doesn't actually trigger the action:
        $url = Mage::getUrl('myrouter/adminhtml_test/validate');
        Mage::app()->getResponse()->setRedirect($url);
    }
}

But now I'm stuck.

I don't know how to trigger action method inside that observer. Controller looks like this and it works fine:

config.xml:

<admin>
    <routers>
        <mymodule>
            <use>admin</use>
            <args>
                <module>My_Module</module>
                <frontName>myrouter</frontName>
            </args>
        </mymodule>
    </routers>
</admin>

controllers/Adminhtml/TestController.php:

class My_Module_Adminhtml_TestController extends Mage_Adminhtml_Controller_Action
{
    public function validateAction()
    {
        //validate config settings here
    }
}

EDIT 3:

Event-observer solution works fine, so I created separate question about redirecting to actions:
Redirect to module/controller/action


texts:
I know you can disable Magento2 module output in the admin interface, but I'd like to remove some modules (eg. wishlist, RSS, newsletter) completely. We don't need them and I'd expect Magento to be a little faster if less code has to be loaded.
So I disabled the modules using bin/magento module:disable --force, but that broke some frontend pages like the customer dashboard.
How can I prevent the theme from trying to load a disabled module? I don't understand why Magento is so modular if disabling a module can break the site...


texts: How to export products with tier prices directly via database using SQL?

texts:
I want to export these data from my Magento 2.4:

Status
Product Name
SKU
Price
Advanced Pricing
Quantity

How could I do it via SQL?


texts:
I would like to change only the footer of the homepage, I know how to change only one page per xml, but according to module, controller and etc,

how would you do that for homepage? Display a different footer?


texts:
Magento has just released a MasterCard validation patch for Magento versions below 1.9.3.0
https://magento.com/tech-resources/download#download2005

NOTE:
If you are running CloudFlare, make sure to disable it and Purge Cache after Patch installation. I was punching in credit cards numbers starting with 2xxx and checkout would not validate them. Purging CloudFlare cache fixed the issue!

- Also, make sure to install discovery SUPEE-2725 first, only then install
SUPEE 8967

If you found any issues, please post them in this thread.


texts: Does Magento send order cancellation emails?

texts:
I have been placing and canceling orders all day without receiving any cancellation confirmation emails and thought maybe Magento 1.7 doesn't support this feature!?!

If anyone has had the requirement to send emails depending on changed order states please let me know if you are able to share a solution please (in particular order cancellation email)...

Thanks in advance guys!

Here's my Observer.php

<?php
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
class Namespace_Customail_Model_Observer
{
    public function invoicedStatusChange($event)
    {
        $order = $event->getOrder();
        $orderStatus = $order->getStatus();
        if ($order->getState() == Mage_Sales_Model_Order::STATE_CANCELED);
            $this->_sendStatusMail($order);
    }

    private  function _sendStatusMail($order)
    {
        $emailTemplate  = Mage::getModel('core/email_template');

        $emailTemplate->loadDefault('custom_order_tpl');
        $emailTemplate->setTemplateSubject('Your order was cancelled');

        // Get General email address (Admin->Configuration->General->Store Email Addresses)
        $salesData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
        $salesData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');

        $emailTemplate->setSenderName($salesData['name']);
        $emailTemplate->setSenderEmail($salesData['email']);

        $emailTemplateVariables['username']  = $order->getCustomerFirstname() . ' ' . $order->getCustomerLastname();
        $emailTemplateVariables['order_id'] = $order->getIncrementId();
        $emailTemplateVariables['store_name'] = $order->getStoreName();
        $emailTemplateVariables['store_url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
        $emailTemplate->send($order->getCustomerEmail(), $order->getStoreName(), $emailTemplateVariables);
    }
}

Config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Namespace_Customail>
            <version>1.0.0</version>
        </Namespace_Customail>
    </modules>

    <global>
        <models>
            <customail>
                <class>Namespace_Customail</class>
            </customail>
        </models>
        <events>
            <sales_order_save_commit_after>
                <observers>
                    <mail_status_change>
                        <type>model</type>
                        <class>customail/observer</class>
                        <method>invoicedStatusChange</method>
                    </mail_status_change>
                </observers>
            </sales_order_save_commit_after>
        </events>
        <template>
            <email>
                <custom_order_tpl module="Namespace_Customail">
                    <label>Status Mail Invoice</label>
                    <file>statusmail_processing.html</file>
                    <type>html</type>
                </custom_order_tpl>
            </email>
        </template>
    </global>
</config>


texts: Hide "Add to Cart" button if specific products are already in cart

texts:
I have 100 products in my store. 4 products (all in one category) are "special products" that cannot be purchased in the same cart with other 96 products.  I would like to hide the "Add to Cart" button on the other 96 products if any of the 4 "special products" have been added to the cart.

The 4 "special products" CAN be purchased together, so I do not want to hide the "Add to Cart" button on those products.  Only want the button hid on the other 96 products that are not compatible with the 4 "special products".

My template uses $_product->isSaleable, so I thought there would be a way to hide the button on the 96 products using that somehow.  Being relatively new to Magento, I have not been able to figure out how to accomplish this.  Might be the completely wrong way as well.

The 4 "special products" use a custom design, so my thought process was to simply remove $_product->isSaleable from that design template (the products are never out of stock and will always be available.)

A secondary option would be to block customers from adding one of the 96 products to the cart, and simply display a notice/message that informs them that they can't add to the cart because of the special product(s) already in the cart.

I am using Magento CE 1.8.1.


texts: Magento 2 checkout index, remove shipping info

texts: In the checkout step, checkout_index_index, I'm wondering if anyone knows how to remove a column from the shipping options table (specifically the rightmost one)


texts: How to create zip file in Magento 2.1 to create a downloadable product

texts:
I am new to Magento. I want to create Books and Audio Books store in Magento 2.1.

I need to create configurable products as a simple product (Book) & a downloadable Product (Audio Book).

The mp3 Audio Book files should be downloadable as a zip file for the customer once the payment received.

Please let me know how to achieve this?

Edited : I need to create all the files located in the web link into a zip file so that customers can download after the Buy button clicked.


texts:
I have installed Magento 2 but for some reason all the css/js/images are not loaded.
Below are the steps I follow to install Magento 2

Create a sub-domain on cpanel
Downloaded Magento and uploaded via FTP to the sub-domain
Via cPanel FileManager extracted the tar.gz file
Follow the setup wizard (we have MySQL 5.6 and PHP 5.5 - the setup went fine without any problems)

Do I need extra software on my server (like composer)?

I have searched for a solution into this but so far no luck

I've tried to change di.xml file but no luck
I've tried to run the static-content:deploy but I get errors


texts: Undefined index "media_type" while adding image to product's media gallery

texts:
Here is the code snippet I use to add an image in a product's media gallery :

$sku = 'product-example-sku';
$image_url = 'http://example.com/image.jpg';
$image_ext = pathinfo($image_url, PATHINFO_EXTENSION);
$image_path = '/import/' . $sku . '.' . $image_ext;
file_put_contents('pub/media' . $image_path, file_get_contents($image_url));
if (file_exists('pub/media' . $image_path))
{
    try
    {
        $product->addImageToMediaGallery($image_path, array('image'), true, false);
    }
    catch (\Exception $e)
    {
        echo '[ERROR] Image import failed for product "' . $sku . '": ' . $e->getMessage();
    }
}

$this->_productRepository->save($product);

I am sure that the image is actually downloaded and moved successfully.
But when I try to save the product after adding the image, this exception is thrown by Magento:

Exception #0 (Exception): Notice: Undefined index: media_type in /var/www/<website>/vendor/magento/module-catalog/Model/Product.php on line 2527

I can't find in the Magento core's code how to solve my problem.

Any help would be appreciated.


texts: Magento 2 - Use SKU as condition for Cart Price Rule

texts: From this guide - http://docs.magento.com/m2/ee/user_guide/marketing/price-rules-cart.html - they describe how to set up cart price rules. I configured these with success. I am wondering, is it possible to use SKU as a condition for the rule to apply? For example, excluding a SKU, or applying only to a list of SKUs


texts: Magento2: Can I import product attributes in a CSV file to edit their Storefront Property values?


texts: Using Jquery to filter my attribute values[EE 1.14.0]

texts:
Alright so I am about 2/3 the way through this problem. I have implemented :

https://github.com/jaschahal/jcTextHighlighterFilter/blob/master/jcFilter/jquery/jcfilter.js

In order to be able to use a input field to search my attribute values.

I added the parameters needed to catalog\layer\view.phtml

 jQuery(document).ready(function(){
          jQuery("#filter").jcOnPageFilter({animateHideNShow: false,
                    focusOnLoad:true,
                    highlightColor:'yellow',
                    textColorForHighlights:'#000000',
                    caseSensitive:false,
                    hideNegatives:true,
                    parentLookupClass:'jcorgFilterTextParent',
                    childBlockClass:'jcorgFilterTextChild'});
       });

and then in catalog\layer\filter.phtml I tagged my list items with the parent and child classes.

 <?php foreach ($this->getItems() as $_item): ?>

        <?php if ($_item->getCount() > 0): ?>
            <a href="<?php echo $this->urlEscape($_item->getUrl()) ?>" class="jcorgFilterTextChild">
                <?php echo $_item->getLabel() ?>
                <?php if ($this->shouldDisplayProductCount()): ?>
                (<?php echo $_item->getCount() ?>)
                <?php endif; ?>

        <?php else: ?>

                <?php echo $_item->getLabel(); ?>
                <?php if ($this->shouldDisplayProductCount()): ?>
                    (<?php echo $_item->getCount() ?>)
                <?php endif; ?>

        <?php endif; ?>

 <?php endforeach ?>

Here is a frontend to get better picture of what I am doing.

my problem is that by directly injecting the parent child classes in the filter.phtml its adding the parent and child classes to all attributes at once. Which means the function only works on the first attribute on every page. Can I use a php if statement to refer to an active class [used for the accordion style menu], and only add the parent child class on 'active' list items?


texts: Bug in adding configurable product to cart pop up

texts:
When I select a product of specific color of  a configurable product and add it to cart, In cart pop up Two products are displayed one indicating the color and the other is simply the product name with image. I need to display exactly the selected color product in the cart pop up. Kindly someone help me to do this.

This is my code to display selected items in cart pop up:

<?php foreach($items as $_item): ?>
<?php $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();?>
<?php $product = $_item->getProduct(); ?>
<?php echo "

"; ?>
<a href="<?php echo $product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($product, 'small_image')->resize(50, 50); ?>" width="50" height="50" alt="<?php echo $this->stripTags($this->getImageLabel($product, 'small_image'), null, true) ?>" />
<?php echo $_item->getName();?>
<?php echo $_item->getQty();?>
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
<?php $url=$this->getUrl('checkout/cart/delete',array('id'=>$_item->getId())); ?>
<a href="<?php echo $url ?>" title="<?php echo $this->__('Remove This Item') ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="btn-remove"><?php echo $this->__('Remove This Item') ?>
<?php echo "

" ?>
<?php endforeach; ?>

What should be changed here to display the exactly the configurable product with selected color?


texts: Paging/UI Bookmark error in custom adminhtml ui grid with many results pages - "Attention - Something went wrong."

texts: I have a custom extension with an adminhtml ui grid.  The result set is massive - 100k+ records.  If I try to go many pages deep with the page controls (say like page 50), magento will come back with an error popup (Attention something went wrong), then will not load this page for this user until I manually delete entries in UI_Bookmark in the db.  Anybody seen something like this before?  It's okay when it happens to me, because I have direct access to the db, but none of the regular users will be able to make this adjustment.  How can I avoid this?


texts: How can configure two tables for custom module?

texts:
I have a custom module. I am using this module to upload images through admin. I have 6 more form fields in my module. I am currently using one table to store values of these form fields. However as like in magento, i am planning to store image values in another table. My table structure is given below.

Table : Banner

        Fields :  banner_id( primary_key , int(11) )

                  banner_name( varchar (250) )

                  banner_count( small_int (6) )

                  status( small_int (6) )

                  store_id( varchar (250) )

Table : banner_images

        Fields : bi_id( primary_key , int (11) )

                 banner_id( int (11) ) //this should be the 'banner_id' of banner which holds this imge

                 bi_name( varchar (255) ) //stores image_name

My current edit file look like this:

<?php
class Karaokeshop_Banner_Block_Adminhtml_Banner_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
{
    public function __construct()
    {
        parent::__construct();
        $this->_objectId = 'id';
        $this->_blockGroup = 'banner';
        $this->_controller = 'adminhtml_banner';
        $this->_updateButton('save', 'label', Mage::helper('banner')->__('Save Banner'));
        $this->_updateButton('delete', 'label', Mage::helper('banner')->__('Delete Banner'));

    }

    public function getHeaderText()
    {
        if( Mage::registry('banner_data') && Mage::registry('banner_data')->getId() )
        {
            return Mage::helper('banner')->__("Edit Banner");
        }
        else
        {
            return Mage::helper('banner')->__('Add Banner');
        }
    }
}

My sql file look like this :

 ?php
      $installer = $this;
      $installer->startSetup();
      $installer->run("
          DROP TABLE IF EXISTS {$this->getTable('banner')};
              CREATE TABLE {$this->getTable('banner')} (
                  `banner_id` int(11) unsigned NOT NULL auto_increment,
                  `banner_name` varchar(255) NOT NULL default '',
                  `banner_count` smallint(6) NOT NULL default '0',
                  `status` smallint(6) NOT NULL default '0',
                  `store_id` varchar(255) NOT NULL default '',
                  `img` varchar(255) NOT NULL default '',
                   PRIMARY KEY (`banner_id`)
             ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
          ");
     $installer->endSetup();

How can I achieve this? Please provide links, if there is any tutorials for this. Thanks in advance.


texts: I just installed the Magento and I am learning to use it. I have a question, let's assume the user complete an order and paid it using a credit card. Where does the money go? how/when will I be able to transfer it to my own bank account?


texts:
Working with Shipping Carrier rates, I came to know about function convertWeightToLbs() located at

Mage/Shipping/Model/Carrier/Abstract.php

The function is

     *  Return weight in pounds
     *  @param integer Weight in someone measure
     *  @return float Weight in pounds
     */
    public function convertWeightToLbs($weight)
    {
        return $weight;
    }

The parameter passed in the above function is integer Weight in someone measure and return value is float Weight in pounds.

Could anyone explain how and where Magento uses this function along with its params and return values i.e. integer in and float out.


texts:
i am trying to write media to another server is it possible:

i have 2 servers i need to put my magento code on 1st server and want all media on another server when we upload images of catalog,

how it can be possible i have changed Option.php but it throws exception "Unable to create directory 'http://test.xyz.com/web_media/tmp/catalog/product'"

thanks in advance.


texts: Magento 2: how to put extra text / drop down for decimal qty

texts:
I need to customize the addtocart.phtml in order to add an extra field for decimal qty.

I want to use the actual input text for quantities in order to use ONLY unit and I need to create another drop down in order to select half quantity. (See picture)

Here is an example of what I need:
https://www.fabric.com/buy/eu-376/north-american-wildlife-abstract-ocean

As you can see, in this product page, there is qty in yard and then a drop down for 0 and 1/2 yard.

I need exactly something like that!
How can I do it?

PS I don't need to keep track of the inventory, but of course the quantity have to calculate the right price.

Thank you!!


texts:
I run Magento 1.9.3.x and in the process of cleaning up old modules not in use anymore I disabled Inchoo Notes, after this I got errors... I googled help online help  and was recommended to delete files and records from the database.

Now I ended up with Fatal error:

Class 'Mage_Inchoo_Notes_Helper_Data' not found in /var/www/domain.dk/public_html/app/Mage.php on line 547 showing when I enter /system_config/...

Even more weird if i disable, another module; Inchoo_FeaturedProducts.xml (true to false) the fatal error is gone and I can use /system_config/ again... but, I am using Inchoo FeaturedProducts module to display products on the frontpage... so that is not a doable solution.

Any ideas what to do here ?

Thanks.


texts:
How to add a class on the product page that has a specific set attributes?

I know in xml

<reference name="root">
　　    <action method="addBodyClass">
　　        <className>account-page</className>
　　    </action>
</reference>

but i need for specific set attributes


texts: Magento 2: Is there a dedicated folder for keeping PDF/image files for CMS pages and/or products?

texts:
Since Magento 2 has a default folder for storing images to be imported at [magento installation folder]/pub/media/import, does Magento 2 also have a dedicated (or recommended) folder for storing PDF/image files (e.g. user guides, datasheet, product spec, marketing images not tied to any products nor theme, etc...)

Or would people just put these media files on whichever folder name they want? Would that affect dynamically generated SEO friendly URLs for categories, products, and CMS pages?


texts: how to upload default.vcl from magento2 to etc/varnish/default.vcl?

texts:
I follow this steps. (https://magemastery.net/blog/how-to-configure-varnish-6-and-nginx-with-ssl-for-magento-2)
I install vanish and nginx complete. Now i export default.vcl from magento2 and set value on that file.
backend default {
.host = "127.0.0.1";
.port = "8080";
}
and i can run this command complete.
mv /etc/varnish/default.vcl /etc/varnish/default.vcl.BACK
But I don't understand. The steps say "Now upload default.vcl which was downloaded from your magento admin panel".
How to upload default.vcl from my pc to ssh. and about edit ExecStart. Please guide me about it. This is my first time working with command. I don't understand for upload, edit and save file.
Thank you very much.


texts: "catalog:images:resize" on multistore, run on specific store only?

texts:
Surely this is possible Magento...

I have searched the internet for a while and read the docs here and here.

I have a multistore setup. One of the stores has billions of products. One of the stores is new and has 4 products.

I want to run "catalog:images:resize" for my new store only. Running it on all stores will take disgustingly long / forever. (I have tried - It runs for many hours then the whole thing stops [before it got to the images I wanted to be refreshed] because of a 'file xyz does not exist' error)

Because I have updated the product images, and some knockout.js stuff is still using the old images. I have cleared all caches etc. (including pub/static/frontend var/cache var/generation var/page_cache etc.)
I don't want to delete the whole of "pub/media/catalog/product/cache" as all the other stores correct images are in here.

I have deleted the old images from " "pub/media/catalog/product/x/y/z/". I hoped this might force a regeneration but they just 404 now.
It's impossible to find where in the cache folder the product images of interest are, there are so so many folders and sub folders. Is there any way of finding which folder my old images are in so I can delete it?

How can I get rid of the old cached image being used by knockout.js? :/

Is there really no way to run catalog:images:resize on a store level?!?

Should I just delete the whole of "pub/media/catalog/product/cache"? Is that safe to do?

EDIT: The actual cause of my particular issue was a configurable product trying to use it's child products image... I have updated all the child product images and is fixed.

But my question of 'can you run catalog:images:resize on a store level' still remains...

Cheers


texts: How to upgrade inventory-composer-metapackage to 1.1.5 in Magento 2.3.3?

texts:
How can I update magento-inventory-metapackage to version 1.1.5 in Magento 2.3.3? I have tried this:
composer require magento/inventory-composer-metapackage:1.1.5

But it resulted this:
  Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/product-community-edition 2.3.3 requires magento/inventory-composer-metapackage 1.1.3 -> satisfiable by magento/inventory-composer-metapackage[1.1.3] but these conflict with your requirements or minimum-stability.
    - magento/product-community-edition 2.3.3 requires magento/inventory-composer-metapackage 1.1.3 -> satisfiable by magento/inventory-composer-metapackage[1.1.3] but these conflict with your requirements or minimum-stability.
    - magento/product-community-edition 2.3.3 requires magento/inventory-composer-metapackage 1.1.3 -> satisfiable by magento/inventory-composer-metapackage[1.1.3] but these conflict with your requirements or minimum-stability.
    - magento/product-community-edition 2.3.3 requires magento/inventory-composer-metapackage 1.1.3 -> satisfiable by magento/inventory-composer-metapackage[1.1.3] but these conflict with your requirements or minimum-stability.
    - Installation request for magento/product-community-edition 2.3.3 -> satisfiable by magento/product-community-edition[2.3.3].

Installation failed, reverting ./composer.json to its original content.


texts:
Everything was working very well and out of nowhere, without making any changes, I was no longer able to sort clients by ID in the backend.
I can't find any errors in the log files.
Has it happened to you? How did they solve it?
Magento ver. 2.2.11


texts: How to use email template 'password_new' after setting the password

texts:
For resetting password account_password_reset_confirmation email template is used, you can find it here:

app/locale/nl_NL/template/email/account_password_reset_confirmation.html

and can set Admin >> System >> Configration >> Advanced >> Admin >> Admin User Emails. That is fine, After setting the password I want to send an email with new password, for that purpose password_new email template can be used, located:

app/locale/nl_NL/template/email/password_new.html

But I don't know how to use it. Where should I set it, or I have to do it manually?

Edit-1 :
My bad, password_new is my local template name, create by using Remind Password provided by magento


texts: Magento RWD 1.9 no products displayed on frontpage

texts:
I try to call the list.phtml on the frontpage.

{{block type="catalog/product_list" category_id="5" template="catalog/product/list.phtml"}}

After i put this code on the homepage, my left and right sidebars are gone, my slider is gone, all the text is gone. and there is only one product displayed. There are 18 products in this catagory.

Any help would be appreciated!

Maybe any link would help. Nieuwe rage

I also tried to put the following code on the list.phtml  but if i do so, i get totaly blank screen with navbar only!

<?php
$_nameAfter = $this->getChild('name.after');
// New if here
if($_nameAfter):
    $_nameAfterChildren = $_nameAfter->getSortedChildren();
    foreach($_nameAfterChildren as $_nameAfterChildName):
        $_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
        $_nameAfterChild->setProduct($_product);
        ?>
        <?php echo $_nameAfterChild->toHtml(); ?>
    <?php endforeach; ?>
<?php endif; ?>

<?php
//set product collection on after blocks
$_afterChildren = $this->getChild('after');
if ($_afterChildren):
    $_afterChildren = $this->getChild('after')->getSortedChildren();
    foreach($_afterChildren as $_afterChildName):
        $_afterChild = $this->getChild('after')->getChild($_afterChildName);
        $_afterChild->setProductCollection($_productCollection);
    ?>
    <?php echo $_afterChild->toHtml(); ?>
<?php endforeach; ?>
<?php endif; ?>


texts: refund customer's money through magento site [credit memo ]

texts:
after customer's order is cancelled. site owner have to refund the money to customer.

is there any method in magento admin panel or through any extension , site owner

can refund the money to customer through online in magento site.

please help me to find solution.

thanks in advance.


texts: Add new tab to Catalog , Product Mass action page

texts:
Need to add  new tab to Catalog , Product  Mass action page, as shown

Basically I am working on Add Category option to mass update product functionality

These default tabs are being added in
app/design/adminhtml/default/default/layout/catalog.xml

<adminhtml_catalog_product_action_attribute_edit>
    <reference name="left">
        <block type="adminhtml/store_switcher" name="store_switcher" template="store/switcher.phtml" />
        <block type="adminhtml/catalog_product_edit_action_attribute_tabs" name="attributes_tabs">
            <block type="adminhtml/catalog_product_edit_action_attribute_tab_attributes" name="tab_attributes"/>
            <block type="adminhtml/catalog_product_edit_action_attribute_tab_inventory" name="tab_inventory" template="catalog/product/edit/action/inventory.phtml" />
            <block type="adminhtml/catalog_product_edit_action_attribute_tab_websites" name="tab_websites" template="catalog/product/edit/action/websites.phtml" />
            <action method="addTab"><name>attributes</name><block>tab_attributes</block></action>
            <action method="addTab"><name>inventory</name><block>tab_inventory</block></action>
            <action method="addTab"><name>websites</name><block>tab_websites</block></action>
        </block>
    </reference>
    <reference name="content">
        <block type="adminhtml/catalog_product_edit_action_attribute" name="attribute" template="catalog/product/edit/action/attribute.phtml" />
    </reference>
</adminhtml_catalog_product_action_attribute_edit>


texts: Magento 2 Add custom block to Product Detail Page, between product gallery and detail tab

texts:
I want to add a custom block to show some text between the product gallery and the description.
What is the best practice to do this, do I need to create my own module? and how do I override the layout XML file?
The marked yellow area is where I want my own text to be displayed.


texts: Shipping rate depending on the source and destination in magento 2

texts: I need to set special shipping cost for the transactions between hubs(Riyadh, Jeddah & Dammam). And  between Hubs and Substations too. I don't know how to write the csv file. Can anyone help?


texts: I am developing a project with custom module of my own.There is a situation i want to filter all the products of the store with my custom logic having data provided by each user from the cookie.Other products will not be displayed in any part of the website to the same user.Whether it is related products block or from any slider etc.Which model should i overwrite in order to filter default product collection ?


texts: Export media gallery images from magento 1.3

texts:
I`m trying to migrate a store from magento 1.3 to 1.8.
When using "Export All Products" profile in dataflow, the output csv does not contain media_gallery columns and images.

Is there a way to export the gallery images from magento 1.3?


texts: How to filter product list by custom attribute on category page in Magento 2?

texts:
I want to list product by my custom attribute so how can i filter this without changing vendor>magento files.

I am displaying my attribute in header. when it changes its filter by my custom attribute.

How can i do this?


texts: Why is re-indexing often required for search to work?

texts:
Regularly on our site Magento's search feature stops working and when a user tries to search for a product nothing comes up in the search.  Once we re-index Product Flat Data, Category Flat Data, Category Product and Catalog Search Index it begins working again.

Any idea why this happens, it happens very regularly, every week I guess.  Is there anyway I can stop it from occurring or ways to debug why it is happening?

Update

To clarify, this is occurring when the user performs the search from either the Quick Search box or the Advanced search page.

The search seems to work by redirecting the user to catalog search page i.e. http://www.example.com/catalogsearch/result/?q=shirts

But the catalog page displays no results just the message. . .

  Your search returns no results.

The rest of the page renders correctly, by which I mean the header, footer & left hand column etc.

There are no errors in the browser console or server logs.

Once we re-index Product Flat Data, Category Flat Data, Category Product and Catalog Search Index it begins working again.


texts:
What happens when you load a non-existent product?
i.e. when you call $product = Mage::getModel('catalog/product')->load('1'); and a product with id 1 does not exist in the database.

One would expect $product to be null; however, it is not. I check using the following conditional:

if (is_null($product)) {
    echo 'Product does not exist';
}

However, nothing is being printed. What is happening here? The debug console also tells me $product is of type "Simple". How can this be? The product with the id of 1 does not exist in my database.


texts: Merge Guest cart with Logged in - Rest API`

texts: We are in a project where Magento 2 CE is used as the commerce service provider. Usually when a guest user who has items in Cart login the cart gets merged to the customer's cart and the guest cart will be deleted. How can the same be achieved using Rest APIs in Magento 2? I know that in WCS, we needed to pass the guest token as a header to the Registered user login Rest API. Can someone help us on this?


texts: How to edit responsive.less file in theme magento 2?

texts:
I setup unero theme which has responsive.less file in the dire
 web/css/responsive.less. I need to edit this file.

first I took a copy of that file and past it to my theme dire which is app/design/frontend/{namespace}/{theme}/web/css/responsive.less and edited it, but no changes happend.

Then, I take it's content copy and past it into the file app/design/frontend/{namespace}/{theme}/web/css/source/_extend.less with my change, and also nothing changed.

Note: after each change I remove the pup folder content to clear cache.

so how to edit this file in the right way to perform the changes?


texts: Magento 2: Customer Registration Rest API throws error

texts:
I try to register customer via Rest API. But customer registration Rest API throwing error.

  Method: POST

  Request URL: http://localhost/magento/rest/V1/customers

Body:

{
    "customer": {
        "email": "jdoea@example.com",
        "firstname": "Jane",
        "lastname": "Doe",
        "addresses": [{
            "defaultShipping": true,
            "defaultBilling": true,
            "firstname": "Jane",
            "lastname": "Doe",
            "region": {
                "regionCode": "NY",
                "region": "New York",
        "regionId":43
            },
            "postcode": "10755",
            "street": ["123 Oak Ave"],
            "city": "Purchase",
            "telephone": "512-555-1111",
            "countryId": "US"
        }]
    },
    "password": "test@$123"
}

Response:

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in
/var/www/html/magento/vendor/magento/module-store/Model/StoreRepository.php on line 74


texts: Openmage LTS - Change the "Order No" filter to a From ... To filter

texts:
I would like to know if there is a way to modify the Magento admin order grid, so that the order field No from which we can filter by order, could have two fields From... To to filter all the orders between two order numbers
I have been checking the code, and I have seen that there is a type of filter called "range", but I have not been able to activate it.
I've also seen many methods to add new columns to the grid, but I haven't found anything that looks like what I need.
Can you help me?


texts: How to show a plain text value on admin ui form

texts:
I have create a ui form. The data is getting inserted successfully. Now i want to edit the form, but i want only certain field to get edited not all.

The remaining field should be shown in a simple plain text.

How can i achieve it?


texts: Magento 2 order confirmation email error- we're sorry, an error has occurred while generating this email?

texts:
We are showing best selling items in the order confirmation email template.

Sometimes, we are getting this error.


texts: Magento2 - Moving or extending a module from vendor to app folder

texts:
I have an extension Magestore_Bannerslider, which the previous developer installed using composer for magento2, The module is installed and working properly. The code is in the vendor folder

I need to add some custom code in the module but i do not want to edit anything under vendor,

Can someone let me know,

How can i extend the functionality of this module in app/design

or

How can i move the files from this extension to app/code, so that i can edit them there.


texts: How can I replace our store name with the customer's name in the "From" field when we receive new order emails? Makes more sense for us to see an order coming from a customer rather than our store name each time.  Thanks.


texts: Shopping Cart Price Rule - By Using selected SKU Free Shipping Not Working?

texts:
I using default UPS, USPS, FEDEX, DHL Courier services, How can i give selected products sku free shipping, how to do that?

Workout:

Using selected sku's for free shipping not working?

Note : In localhost its working, Live site not able to work.

May i know the possibilities of error?


texts: Magento 1 - Save Collection Without Foreach

texts:
I am currently going through and optimizing our codebase for our custom modules. I am using PHP Codesniffer along with the Magento Coding Standard rules to scan our code.

In many of our files I see a warning like

Model LSD method save() detected in loop

Here is an example of a function containing that error

public function resetmasstatusAction()
 {
    $invoicesIds = $this->getRequest()->getPost('invoice_ids');
    if (!empty($invoicesIds)) {
        $invoices = Mage::getResourceModel('sales/order_invoice_collection')
            ->addAttributeToSelect('*')
            ->addAttributeToFilter('entity_id', array('in' => $invoicesIds))
            ->load();
        foreach ($invoices as $invoice) :
            $invoice->setMas_status('NEW')
                ->setMas_updated_at(date('Y-m-d H:i:s'))
                ->save();
        endforeach;
    }
    $this->_redirect('*/sales_invoice/index');
}

How would I go about doing the save operation for all items in a collection such as this one, without having the save() function in the foreach loop to improve performance?


texts: Magento 1 layout xml reference all controller's actions

texts:
I need to add into head custom css file, but it should be applied only for admin pages that are inside my extension.

So I don't need this:

<default>
    <reference name="head">
      <action method="addItem"><type>skin_css</type><name>company_module/css/styles.css</name></action>
    </reference>
</default>

but I need this:

<adminhtml_section_one_index>
    <reference name="head">
      <action method="addItem"><type>skin_css</type><name>company_module/css/styles.css</name></action>
    </reference>
</adminhtml_section_one_index>
<adminhtml_section_one_edit>
    <reference name="head">
      <action method="addItem"><type>skin_css</type><name>company_module/css/styles.css</name></action>
    </reference>
</adminhtml_section_one_edit>
...

This is obvisouly not a nice solution because there will be 10+ different controller actions. Is there any way to match the whole controller or module?


texts: Magento2: How to reserve product after add to the basket

texts:
I want to set in our website reserve product after add to the basket.

example:

Shoes available in stock: 5 pcs.

When customer add 2 pcs to the basket then now in website is available 3 pcs.

After 24 hours when customer no finalize trasaction then delete product from basket and return this 2 pcs to stock.

Any solution?


texts: Uncaught ReferenceError: Add to cart button is not working

texts:
When I  click any product from the home page "The New Born" section, Add to cart button is not working and I am not able to scroll to the "Product Details" section

The Google chrome console is giving the following error.

  Uncaught ReferenceError: productAddToCartForm is not defined
      at addCartOnDetail (ajaxcart.js:3)
      at initAjaxcart (ajaxcart.js:3)
      at HTMLDocument. (ajaxcart.js:3)
      at o (jquery.min.js:2)
      at Object.fireWith (jquery.min.js:2)
      at Function.ready (jquery.min.js:2)
      at HTMLDocument.B (jquery.min.js:2)

Reference Link:

http://dev.ornativa.in/black-rose-stud

But if I open the same product from Earrings category everything is working properly.

Even if I posting the link in the social media then also the same problem is occurring.


texts: Magento 2 : Show active link of cms page in customer account navigation?

texts:
I have added a custom cms-page link in customer account navigation. My custom link is showing in account navigation and working too, but it's not showing as active/current on click.

  Cms-page > Design > Layout Update XML

     <referenceContainer name="sidebar.main">
        <block class="Magento\Framework\View\Element\Template" name="customer_account_navigation_block" template="Magento_Theme::html/collapsible.phtml" before="-">
            <arguments>
                <argument name="block_title" translate="true" xsi:type="string">Account Dashboard</argument>
                <argument name="block_css" xsi:type="string">block-collapsible-nav</argument>
            </arguments>
            <block class="Magento\Framework\View\Element\Html\Links" name="customer_account_navigation" before="-">
                <arguments>
                    <argument name="css_class" xsi:type="string">nav items</argument>
                </arguments>
                <block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-subscription-form">
                    <arguments>
                        <argument name="path" xsi:type="string">manage-subscription</argument>
                        <argument name="label" xsi:type="string">Email Subscription</argument>
                        <argument name="position" xsi:type="string">20</argument>
                    </arguments>
                </block>
            </block>
        </block>
    </referenceContainer>

  Cms-page url:http://domain.com/manage-subscription/


texts: How to bulk remove certain category from product catalog

texts: I publish content for a merchant, and I want to bulk remove one category from multiple categories assigned to products. I saw there are some answers to help on developer side but not any to solve this as backend user.


texts: How to get all product having custom options as radio type?

texts:
I want to get all product which have custom option as radio type.
How to load product having custom option radio type. ?


texts: Get Custom Option Text Field Value in Magento

texts:
I'd like to retrieve the contents of the text field (custom option) that the customer entered at the product page.  I have tried functions such as: getValue, getPost, getMyCustomValue, getAttributeText and a few others.

$_options = Mage::getModel('catalog/product_option')->getProductOptionCollection($product);
//var_dump($_options,true);
foreach ($_options as $option) {
    //print_r($option);
    $title = $option->getDefaultTitle();
    //foreach ($option->getValues() as $value) {
    //  print_r($value->getData());
    //}
    $value = $option->getOptionText();
    echo "
".$title." - ".$value."
";
}

I am working within /app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php in Magento 1.9.1.  Any idea which function is used to "get" the text field of a custom option?


texts: Adding alt tags to images to the mini-products-list

texts:
The images I have given a label to are producing alt tags if it is their product image, but on the product slider .mini-products-list they don't.

Where is the file to edit this? And what variable should be under the alt tag.

To see the problem, check the alt tags of the images on the bottom that scroll:

https://www.mitchellfineartgallery.com/stockroom/affordable-art/the-key

I have located the file here:

/app/design/frontend/mfag/default/template/catalog/product/related.phtml

To generate the alt tag it is using,

  alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />

But this doesn't give anything. Anyone know how I can get it to correctly display the label?


texts:
Hello Guys I am not Getting How to add discount field In Magento Admin grid.

Also Please explain how to add custom table value Display In order Grid.


texts: Magneto 2: How to configure a rest api only server for best performance?

texts:
I know magento have some recommendations for the best performance.
And I found several articles related.

But nothing specific for servers that provide access only by the Rest API.
Because everyone includes the backend, frontend and APIs. The best of these worlds.

But I want to Know if have the best for the Rest API world.
(using Nginx)


texts: Tried to change store URL and now can't access Store

texts:
I have run the following queries on MySql:

  SELECT config_id FROM core_config_data WHERE path = 'web/unsecure/base_url';

  Taken this config_id for #2

  UPDATE core_config_data SET value = "online-rug-store" WHERE config_id = 6;
  SELECT config_id FROM core_config_data WHERE path = 'web/secure/base_url';
  UPDATE core_config_data SET value = "online-rug-store" WHERE config_id = 7;

And now I can't access my Magento store or admin page on either my-site.com/magento or my-site.com/online-rug-store

Is there anything I can do at this point to gain access?


texts: Cache image size is larger than the original

texts: I checked my site on google page insights and it tells me that i should optimize some images. So i optimized the relevant images in the media/catalog/product directory. As the images get served from the media cache directory I flushed the  catalog images cached and the magento cache and then rechecked, Still it's there. Then when i checked the cached image becomes larger in size than the original. Why is it happening? And how can i make the optimized image come to cache image directory?


texts: Why does "Magento commerce" remove previous version of Magento c.e website from the official website?

texts:
I was looking for a previous version of Magento CE 1.9.1, but there is only Magento CE > 2.0 on the official website. There're 95% Magento websites still on the older version.

Why are the previous versions removed from the official website?


texts: How to deploy a development store view into live site?

texts:
We have created an extra development store view in our existing live Magento website. Now we're happy with the changes, what is the best way to make this development store view primary for the site?
Important is that order numbers must remain the same after changing. So we can't just set the new store view as the new default one.
Any ideas?
Thanks


texts: Add a custom required checkbox on the onepage checkout page

texts:
I'm struggling to make my custom checkbox a required on the onepage checkout page in the order review step (last step)

i have added my code in

  app/design/frontend/base/default/template/checkout/onepage/agreements.phtml

<?php $storeCode = Mage::app()->getStore()->getCode();?>
    <?php if($storeCode == "uk" || $storeCode == "eu" || $storeCode == "au" || $storeCode == "usa" || $storeCode == "nz"):?>

<form action="" onsubmit="return false;">

<input type="checkbox" id="field_terms" required name="terms">Prices shown do not include any local duties or taxes. Carrol Boyes is not liable for these costs that may be charged by local customs and duties offices.

</form>

<?php endif;?>

<?php if (!$this->getAgreements()) return; ?>
<form action="" id="checkout-agreements" onsubmit="return false;">

<?php foreach ($this->getAgreements() as $_a): ?>

        <div class="agreement-content"<?php echo ($_a->getContentHeight() ? ' style="height:' . $_a->getContentHeight() . '"' : '')?>>
            <?php if ($_a->getIsHtml()):?>
                <?php echo $_a->getContent() ?>
            <?php else:?>
                <?php echo nl2br($this->escapeHtml($_a->getContent())) ?>
            <?php endif; ?>

            <input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->escapeHtml($_a->getCheckboxText()) ?>" class="checkbox" /><label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->escapeHtml($_a->getCheckboxText()) ?>

<?php endforeach ?>

</form>

See my screenshot below showing the checkbox on the checkout page, but i'm stuck as i need this box required and customers can't place the order without this box checked, it's working fine on the agreement checkbox

can someone please shade me some light as to what i need to do in order to accomplished this


texts: Email Sender name is not correct in all emails in Magento 2.3

texts:
After upgrading in Magento 2.3.1, Email sender name is not showing correct as configured in admin.

If Email info@example.com is configured in admin then sender name is showing "info".

How can I fix the issue? can anyone suggest.


texts: UPS Error: shipping method is currently unavailable

texts:
I did not understand why I am getting this error for ups shipping "This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us."

I have this following settings in UPS backend

http://awesomescreenshot.com/082404tl8d.

When I checked shipping_ups.log file. It has following response.

    [result] => Array
        (
            [error] => Unable to Connect to tcp://www.ups.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known
            [code] => 0
        )

    [__pid] => 15259
)

Does anyone has idea, how to fix it. I am using magento 1.6


texts:
Anyone knows some way to able admin share files with magento users?
I want a file uploader like this:

This is a magento module from ITORIS but is too expensive, the module have to many functions what i dont need, i need some more cheap, only with that function like image.

Thank's in advance!


texts: One step checkout state field required issue

texts:
i am using mageplaza one step checkout and state field is not showing as required field nor the javascript validation working on that field. I am newbie in Magento 2 i don't know too much about the knockout js.

i tried to found the State field so that i can add the validation and check whether or not it is applied. I found one XML file which contains the code below showing that the validation is already applied but not working in the frontend. Suggest me something.

<item name="component" xsi:type="string">Magento_Ui/js/form/element/region</item>

<item name="config" xsi:type="array">

    <item name="template" xsi:type="string">ui/form/field</item>

    <item name="elementTmpl" xsi:type="string">ui/form/element/select</item>

    <item name="customEntry" xsi:type="string">shippingAddress.region</item>

</item>

<item name="validation" xsi:type="array">

    <item name="required-entry" xsi:type="boolean">true</item>

</item>

<!-- Value of region_id field is filtered by the value of county_id attribute -->

<item name="filterBy" xsi:type="array">

    <item name="target" xsi:type="string"><![CDATA[${ $.provider }:${ $.parentScope }.country_id]]></item>

    <item name="field" xsi:type="string">country_id</item>

</item>

Found this as the issue is in the core files of magento. My version of Magento is 2.1.3 Please let me know if you found any solution.

https://github.com/magento/magento2/pull/10924


texts: I have created a new Magento module and create a new theme in Magento but the auto-load error has come


texts: Increase size of image box under "featured products" in magento

texts:
In home page , you can see Products under "SPECIAL" and "FEATURED PRODUCTS".

Featured products images are in a box , I wanted to increase the box size as like

"Products images which are under "special"."

To make clear, I want to increase the Product Images box size of "Featured products".

Thanks in advance.


texts: How to add a Banner in between main navigation and breadcrumb in magento?

texts:
I have tried by using extensions but that is displayed on below the breadcrumb.

At home i have using below {{block type="trbanner/trbanner" name="trbanner" template="trbanner/trbanner.phtml"}} and it works. Then please help.


texts: How can I change the color of search box input icon?

texts: It's defined like this "@icon-search: '\e615';". I just want to change into  green.


texts:
I am confused on how to create a report on sales tax in magento.

I see only one report under reports -> sales -> tax but this is missing the actual order amount. When I submit my sales tax I need to put in the total sales not just the sales tax collected.

Is there a way to add this column to the report? What do other people use for sales tax reporting?

thank you for your time


texts: show product price with "incl GST" text after price

texts:
I have setup my store for Australia. The procedure i followed is this Setting store for Australia

  According to this : To set tax correctly for Australia (prices shown
  include GST) and to apply discounts correctly, the following should be
  set: System → Configuration → Tax Tax Classes

Tax Class for Shipping = Shipping

  Calculation Settings

Tax Based On = Shipping Address
Catalog prices include tax = Yes
Shipping prices include tax = Yes
Apply Tax After Discount = Yes
Apply Discount On Prices Including Tax = Yes
Apply Tax On = Custom price if available

  Default Tax Destination Calculation

Default Country = Australia

  Display

Display Cart/Order Prices = Including tax
Display full tax summary = No
Display Shipping Prices = Including tax
Display Product Prices = Including tax

But i couldn't get text "incl GST" after price in product detail.


texts: Magento Error: "Illegal scheme supplied, only alphanumeric characters are permitted"

texts:
I have pasted the text shown in error log file from magento/var/report

a:5:{i:0;s:67:"Illegal scheme supplied, only alphanumeric characters are permitted";i:1;s:765:"#0 /home/dyamigos/public_html/s/magento/app/code/core/Mage/Core/Model/Store.php(777): Zend_Uri::factory('dyamigos.com/s/...')
#1 /home/dyamigos/public_html/s/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(332): Mage_Core_Model_Store->isCurrentlySecure()
#2 /home/dyamigos/public_html/s/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
#3 /home/dyamigos/public_html/s/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#4 /home/dyamigos/public_html/s/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#5 /home/dyamigos/public_html/s/magento/index.php(87): Mage::run('', 'store')
#6 {main}";s:3:"url";s:11:"/s/magento/";s:11:"script_name";s:20:"/s/magento/index.php";s:4:"skin";s:7:"default";}

Please help me out !!


texts: Accordion widget is not working on filter nav

texts:
I am on Magento 2.2 and trying to use the accordion widget as below:

http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/widgets/widget_accordion.html

Base Material

                    Polyester 1
                             item

                    Styroldivinylbenzol 6
                             items

Bed Mass [mg]

                    <input id="bed_mass_in_mg-from" name="bed_mass_in_mg-from"> -
                    <input id="bed_mass_in_mg-to" name="bed_mass_in_mg-to">

Initialization:

But just nothing seems to happen - no Javascript errors in console.


texts: i need remove block with system config condition magento2?

texts:
I have tryed but not working proparly

<referenceBlock name="product.info.addtocart" remove="true" ifconfig="quote/general/display_addtocart" />

System.xml file

 <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
      <tab id="test" translate="label" sortOrder="300">
            test
        </tab>

            <class>separator-top</class>
            Quote
            <tab>test</tab>
            <resource>Comapanyname_modulename::comapanyname_modulename</resource>

            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
                General Configuration
                <field id="enable" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                    Module Enable
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="quote_button_name" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                    Quote Button Name
                </field>
                <field id="submit_button_name" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                    Submit Button Name
                </field>
                <field id="form_title" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                    Form Title
                </field>
                <field id="display_addtocart" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                    Display Add to Cart Button
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
            </group>

    </system>
</config>


texts: How to make my clients sells their own products?

texts: I am using magento 2.1.5. I want to let my clients to create a account, then they can sell their products in my website? Can this be achieved? Looks like now it only has one admin panel (I means only one admin account can edit website)? Can each client have its 'own panel', then they can edit their product by themselves? If yes, how to do that?


texts: Send tracking number programmatically with SOAP

texts:
We're trying to send programatically the shipping update with the tracking number when our third party warehouse update our system.

They're using the SOAP sales_order_shipment.create and then sales_order_shipment.addTrack.

I tried a quick fix by modifying directly the API. I added sendemail to the function addtrack so it sends emails with the tracking number when it's called. I commented the email send in the createshipment but it sends the email no matters what. So we end up sending two.

I don't know how to stop the first email from sending, we just need the one with the tracking number, and also I would love to find a way to not modify directly the API to do that.


texts: SQL: Calculate the sum of a column based on 2 other columns in where clause (Magento 1.9.3.6)

texts:
I've got a bit of an interesting problem: I have a database where questions and answers are saved, each question/answer combo is saved as a separate row, sharing a participation id between each entry. The data looks like this:

id | participation_id | q | a
--------------------------------
1  | 1                | 1 | q1a1
2  | 1                | 2 | 10
3  | 2                | 1 | q1a2
4  | 2                | 2 | 15
5  | 3                | 1 | q1a1
6  | 3                | 2 | 10

The id is just an auto-increment primary key, the participation_id is the link between question 1 and 2 (only 2 questions), q is question number and a is the given answer for that question. Both q and a are selects, so no custom input.

I'd like to get the sum of all answers (a) where question number (q) = 2 and where the same answer for question 1 has been chosen.

Example from above

Desired result for people who answered the first question with q1a1: 20

Desired result for people who answered the first question with q1a2: 15

So basically a total of all ansers for question 2 who entered the same value on the first question, possibly based on participation_id?

I had the following code, but obviously it didn't work the way I'd like it to:

$select = $read->select()
    ->from('q_and_a', 'SUM(a)')
    ->where('q = 1')
    ->where('a = ?', 'q1a1')
;

$sum = $readConn->fetchOne($select);

This tries to get the sum of all answers where question 1 is the same, not the sum of the answers for question 2 where question 1 is the same (based on participation_id?).

I hope this is somewhat clear, this wasn't an easy one to explain (or figure out). Feel free to improve/correct this question to make more sense, if needed. And if you know the answer, please let me know.


texts: How to send order confirmation email in magento 2 programmatically?

texts:
Admin -> Stores -> Configuration -> Sales -> Sales Email -> Order -> Disabled

Where should I look and which module or modal to send the same email programmatically?

Update

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId);

$emailSender = $objectManager->create('\Magento\Sales\Model\Order\Email\Sender\OrderSender');
$emailSender->send($order);

If I Admin -> Stores -> Configuration -> Sales -> Sales Email -> Order -> Disabled the above code doesn't trigger the email. Or if I enable, it send
2 email. I don't want the email that magento trigger for order confirmation. I want to do it.


texts: Where to find the select html tag for countries on the checkout page

texts:
Where can I the html select tag for countries on the checkout page?

       *<?php echo $this->__('Country') ?>

          <?php echo $this->getCountryHtmlSelect('billing') ?>

with this $this->getCountryHtmlSelect('billing'), it returns the html select tag below,

<select name="billing[country_id]" id="billing:country_id" class="validate-select" title="Country" >
<option value="" > </option>
<option value="AF" >Afghanistan</option><option value="AL" >Albania</option>
<option value="DZ" >Algeria</option>
...

But I need to add a class name to the select tag,

class="form-control validate-select"

But where can I find this select tag?


texts: Can Magento create a auto selecting product listing?

texts:
The idea is to have a drop down menu of several items which require numerous components for their installation. Once one option is selected (e.g. item A) all the necessary components required for its installation (there are roughly 8) will be listed below and included in a total price. Currently I have created drop down menus for the items and each component however they require manual selection and without detailed knowledge of the item, the compatible components are not obvious.
Is it possible to set up a product listing in this format using magento 1.9.0.1


texts: Add Nofollow to all Outgoing links in Magento?

texts:
is there any easy way to add nofollow to all outgoing links in magento?

I mean a code to automatically add nofollow to all outgoing links.

Thank you.


texts: Changing product / item price : I am generating conflicts?

texts:
I have to set my products price regarding some consumers parameters.

For the product page I use : $_product->setFinalPrice($Price);

I also have to change the price when the product is added to cart. For this I use on checkout_cart_product_add_after event observer

$_item->setCustomPrice($finalCustPrice);
$_item->setOriginalCustomPrice($finalCustPrice);
$_item->getProduct()->setIsSuperMode(true);
$_item->save();

I would like to be sure that the price change I make is only performed for the current customer session and not for entire site, which would generate conflicts if several customers were "setting" the product prices at the same time…

Thank you for your help


texts: Tier Pricing of simple product not working with bundle

texts:
Bundle items don't seem to listen to the simple product tier pricings. Is it possible to set up a product to sell in this way at all with a fixed service charge and tier pricing?

I have the following tier pricing of a simple product

Price = £2
10+ = £1
20+ = £0.75

Now I am wanting to sell this product as part of a bundle, with a fixed set up cost for the bundle of £10.

How is this possible to set up a product so the £10 is a fixed cost, but that magento also follows the tier pricing of the simple product in the bundle (which it does not seem to be doing)

Examples

Customer purchases 1 item = £12

Customer purchases 10 items = £20

Customer purchases 20 items = £25

Thanks for the help. I am figuring i am either missing something obvious, or this needs some sort of hack?


texts: Need solution regarding a scenario in magento 2

texts:
We produces tea in 1kg,3kg and 5kg. But for smaller vendor we sell it like 35g,80g and have some other variations. Tea is a raw material and we sell finished product. So we sell using tin,bag and label so that customer get a finished product. On front-end we want customer to buy only tea and not to worry about tin,bag or label. But in back-end he is buying basically 3 product. 1)tea 2) tin/bag 3) label

I want to manage inventory of each product(tea,tin/bag,label) also.

Can you let me know best scenario to do with magento 2. I would appreciate.


texts:
I want to retrieve orders of a specific store? Is there any way to achieve it.
R&D just gave me methods to get store id from order or get store/customer information using order. But i have not found anything which helps me to fetch the orders collection of a specific store


texts:
In price calculating process I often see something called adjustments.

Magento\Framework\Pricing\Adjustment\AdjustmentInterface

What are adjustments and how do they work?


texts: Magento Connect and ./mage list-extensions not showing community extensions since upgrade to 1.9.1

texts:
I was wondering if anyone could help me. I just upgraded from 1.8.1 to 1.9.1. Everything updated fine along with the database, and it all appeared to be fine.

However, I can no longer view my installed extensions in Connect Manager. I can see all of the Mage core extensions, but none of my community ones. They were all installed using ./mage and previously showed up in 1.8.1, but now it simply cannot see them. They are showing up as modules that I can enable and disable in configuration, but even if I run ./mage list-installed it still can't see them, even though all of the files and folders are in the correct places.

I want to be able to upgrade these extensions via the terminal with ./mage upgrade. Even though I've tried ./mage sync and ./mage sync-pear, it just can't seem to "see" them. Is there something in downloader that has been overwritten by the upgrade which means it can no longer track my community extensions?

Thanks for any help anybody can offer!

Update: What I've done as a fix is I ran ./mage upgrade community extension_name on all of my community extensions (which may not be the solution for some people as they may have a lot more then me!) and instead of moaning about it like it would if I did ./mage install (as it already exists), it simply acts as if it is upgrading it (some actually needed updating, so obviously test them thoroughly afterward).

It then reappears in the extension list on ./mage list-installed and Connect Manager. Yay.


texts: Image not getting in post data in Magento one page checkout

texts:
Why I am not getting image data in post record \app\design\frontend\themename\mytheme\template\persistent\checkout\onepage\billing.phtml

<form id="co-billing-form" method="post" action="" enctype="multipart/form-data">
 <!-Custom Attribute->

            *<?php echo $this->__('SSN') ?>

                <input type="text" name="custom[ssn]" value="<?php echo $this->htmlEscape($this->getQuote()->getSsn()) ?>" title="<?php echo $this->__('SSN') ?>" class="input-text required-entry" id="billing:ssn" />

        <?php echo $this->__('Profile image') ?>

            <input name="custom[image]" id="image" title="<?php echo $this->__('Image') ?>"
                   type="file" />

 <!-Custom Attribute->
 </form>

I am getting the below array in post data where i am not getting image data

     Array
(
    [billing_address_id] => 2
    [billing] => Array
        (
            [address_id] => 91
            [firstname] => test
            [middlename] => j
            [lastname] => j
            [company] => j
            [street] => Array
                (
                    [0] => adsad
                    [1] => asd
                )

            [city] => asdasd
            [region_id] => 17
            [region] =>
            [postcode] => 233232
            [country_id] => US
            [telephone] => 324324
            [fax] =>
            [use_for_shipping] => 1
        )

    [custom] => Array
        (
            [ssn] => 123123
        )


texts: Is there any way to disable static content generation in Magento2

texts: I am working on magento2. I am curious about, Is there any way to disable pub/static content generation ? Meanwhile I was also thinking that why there is no option to reindex from admin ?


texts:
After upgrade Magento 2.3 to 2.4 and it gives me below error.
main.CRITICAL: ParseError: syntax error, unexpected end of file in /var/www/html/magento24/var/view_preprocessed/pub/static/vendor/magento/module-ui/view/base/templates/logger.phtml:15

Does anyone face this type of error? If I have solved this its gives me an error on another file.
It just because of below types of script
<?php $scriptString = <<<script

require(['jquery'], function(jQuery){

    // <![CDATA[
    (function($) {
        var test = 'test';
        try {
            localStorage.setItem(test, test);
            localStorage.removeItem(test);
        } catch(e) {
            $(".notice.global.site.local_storage").show();
        }
    })(jQuery);
    // ]]>

});
script;
?>

If anyone has any solution for this type of error then please help me on this.


texts: I want add new button near Add Product button in grid product in backend.


texts: How to hole-punch full page cache without custom module

texts:
Our full page cache seems to be based on session. If I open an incognito window with chrome and visit one of the pages, it warms the cache, and the second page load is much faster, however, if I close that window and open a new incognito window, the page is no longer in the full page cache, and has to be warmed again. We believe this is because of a sidebar that shows the user the contents of their cart.

I have moved that html to a new phtml file, squared away the layout xml blocks, and now I am working on the cache.xml file....

All of the examples I have found for cache.xml refer to modules, however, I did not use a module for my layout xml blocks, I used core/template...

Is there any chance someone could shed some light on a caching block of xml that doesn't require a module and/or model.?


texts: Installation hangs at 73% - admin cookie set with expired date

texts:
The installation proceeds normally until the console log gets to:

Module 'Magento_Weee':
Installing data...

At this point (73%) the user experience just hangs, while the browser repeatedly requests prolong and unlogin. It appears that at this point in the installation, a cookie admin is issued with an expiration date set in the past - This installation is on Centos/Cloudlinux 7 with Litespeed.

Can anyone hazard a guess at why this may be happening?

Installation point of failure screenshot


texts: Why isn't my (very basic) module controller being loaded?

texts:
My file structure is as follows:

Reckless

ContactFormSelectors

controllers

Contacts

IndexController.php

etc

config.xml

Helper

Data.php

My IndexController.php file is very simple:

<?php

require_once Mage::getModuleDir('controllers', 'Mage_Contacts') . DS . 'IndexController.php';
class Reckless_ContactFormSelectors_IndexController extends Mage_Contacts_IndexController
{

    public function indexAction()
    {
        echo 'here';
        exit;
    }

}

I'd expect the output to be a blank page with 'here' output.  This file isn't being loaded at all though, unfortunately.

Here is my config.xml file:

<?xml version="1.0"?>
<config>
    <modules>
        <Reckless_ContactFormSelectors>
            <version>0.0.1</version>
        </Reckless_ContactFormSelectors>
    </modules>
    <frontend>

        <routers>
            <contacts>
                <args>
                    <modules>
                        <Reckless_ContactFormSelectors before="Mage_Contacts">Reckless_ContactFormSelectors</Reckless_ContactFormSelectors>
                    </modules>
                </args>
            </contacts>
        </routers>

    </frontend>

    <global>
        <helpers>
            <Reckless_ContactFormSelectors>
                <class>Reckless_ContactFormSelectors_Helper</class>
            </Reckless_ContactFormSelectors>
        </helpers>
    </global>

</config>

I have an XML file in /app/etc/modules/Reckless_ContactFormSelectors.xml with the content:

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

Logs are empty and hold no clues.

Within System > Configuration > Advanced I can see the module and it is enabled.


texts:
Im setting up Google trusted stores and I need to call some information which I can do but the format is wrong.

From what I can see there is 2 extra zero's at the and of the numbers which I need to remove.

Required format: "123.45"
Your value: "123.4500".

$orderId = $this->getOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
$address = $order->getShippingAddress();

The code I need to modify is:

<?php echo $order->getGrandTotal(); ?>
-<?php echo $order->getDiscountAmount(); ?>
<?php echo $order->getTaxAmount(); ?>
<?php echo $item->getBasePrice(); ?>


texts: How to get SKU,Customer address of the products ordered in salesOrderList API


texts: Magento2 RequireJS CustomerData is empty at page load, but populated once page finishes loading?

texts:
I'm trying to access some data stored in the Magento_Customer/js/customer-data object

I have the following files:

--- garage.js ---

define([
   'Magento_Customer/js/customer-data'
], function(customerData){
    'use strict';
    return {
        getCustomerName: function(){
            return customerData.get("garage")();
        }
    }
});

-- sidebar.phtml --

<script type="text/javascript">
    require(['Revival_Garage/js/view/garage'], function(garage){
        console.log("--");
        console.log(garage.getCustomerName());
        console.log("--");
        // document.getElementById("customer_garage").innerHTML = garage.getCustomerName();
    });
</script>
<span id="customer_garage">
</span>

When the page loads and my JavaScript automatically executes, my console has the following output:

Which, obviously isn't quite what I was hoping for.

If i run the same exact code in my console once the page is totally loaded, I get this:

Which does have the data I expect.

Why is it that I can't access this data on page load?

I don't see any mention anywhere in any of the documentation for customer-data stating I need to run my js any specific way (eg. waiting on DOM load)

Am I missing something?

Relevant pages I could find, documentation-wise

Magento2 StackExchange:
Magento 2: how do customer sections / sections.xml work?

Alan Storm's blog
Understanding the limitations of sections.xml

In My own troubleshooting I found out requirejs has a domReady plugin you can use, so i also tried to add 'domReady!' to my define call. which yielded the same results as above.

EDIT: I figured it out by modifying my sidebar.phtml to use Knockout uicomponents. this page helped me a TON


texts: Magento 1.8 Customer login Confirmation key

texts:
Please help me to configure mail settings in Magento

http://grapixmedia.in/raj/test_mag/ = demo link

While Creating a new account as new customer, I gave in the

  System->Configuration->Customer->Customer Configuration

Send

  Confirmation Key= Yes

But Account is getting created but the Confirmation key is not been sent to the mail which was given at the time of registration guyz please me


texts:
I have installed the Advanced Reporting extension for Magento 2. When I enable it I am getting errors. I did the following commands:

php bin/magento setup:upgrade
php bin/magento setup:db-schema:upgrade
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy
php bin/magento cache:flush

On my site I'm getting the error:

  Exception #0 (Magento\Framework\Execption\LocalException): Please upgrade database: Run: "bin/magento setup:upgrade" from the Magento root directory.

My terminal gives me the error:

  [Zend_Db_Statement_Exception] SQLSTATE[HY000] General Error: 1419: You do not have SUPER privileges

and

  [PDOException] SQLSTATE[HY000] General Error: 1419: You do not have SUPER privileges


texts: Select all products based on a custom attribute

texts: I have a custom attribute called PLU, and I want to select ALL product from the database with the PLU VALUE in MySQL query, how can I do that?


texts: sometime website get stuck on proceed to checkout and Add to cart in magento 1.9.3.3

texts: I am having issue on my website after updating magento version 1.9.3.3 from 1.9.2.4. sometime proceed to checkoutand add to cart option does not work. and my admin is also running slow. When I Select NO - Enable Form Key Validation On Checkout. Everything works perfectly. I do not know what is the issue related to form key validation. can anyone help me to resolve this issue.


texts:
I have added a custom attribute to the customer. This attribute is visible in grids and when you create / manage the customer from Customers / Manage Customers.

If you create a new customer via  New Order i need to add the field in the account information section between group and email.

I would like to use an observer rather than override the whole class. Is this possible.?


texts:
Our website theme has been having issues with the Magento Patch 6788. The theme developers sent me their patch this morning and I went ahead and copied over the files that they provided for me. Now when I load up the website or the front end I am given these errors:

Admin Area:

  `Fatal error: Call to a member function setArea() on a non-object in

  /home/hoods/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php
  on

  line 157`

Front End:

  Fatal error: Call to a member function setArea() on a non-object in
  /home/hoods/public_html/app/code/core/Mage/Core/Controller/Front/Action.php
  on line 62*

Line 157 would be:

$this->getLayout()->setArea($this->_currentArea);

Any idea of what would have caused this?


texts: How to create stored procedure with Magento 2.3.x setup script.?

texts:
I'm trying to create MySQL stored procedure using Magento 2.3.x for one of my requirements.

I found that that there is no way in Magento 2.3 declarative schema by which I can create that.

But if the stored procedure is created in the MySQL I'm able to call that using Magento.

Please let me know if there any specific way to create a stored procedure using Magento 2.3 declarative schema.


texts: Magento 2 : Mini-cart quantity update button not working properly

texts:
Firstly I have added 1 product to my cart.
When I am clicking on mini-cart then it shows like following:

Now when I am updating QTY = 4 then clicks on Update button then 1 ajax call triggers and in that ajax call item_qty parameters not updating like in below image :

Update quantity button and input fields come from below file:
vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html

                <input data-bind="attr: {
                       id: 'cart-item-'+item_id+'-qty',
                       'data-cart-item': item_id,
                       'data-item-qty': qty,
                       'data-cart-item-id': product_sku
                       }, value: qty"
                       type="number"
                       size="4"
                       class="item-qty cart-item-qty"
                       maxlength="12"/>
                <button data-bind="attr: {
                       id: 'update-cart-item-'+item_id,
                       'data-cart-item': item_id,
                       title: $t('Update')
                       }"
                        class="update-cart-item"
                        style="display: none">

                </button>

Related js file is located at:
vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js

What should I do to update quantity from their?


texts: System limitation on configured product price

texts:
I noticed Magento doesn't allow a price above 100,000,000.00 (whatever currency), and if you try to go above that, it will default to 100,000,000.00. This is reasonable for USD, but not for currencies who's exchange rate is thousands times greater than the USD.

Is this a configuration in Magento that I can modify, or am I stuck with this price limitation? If I could set the limit to 999,999,999.99 I would be fine (same number of digits).


texts: magento 19:how can i upgrade 1.9.2.2 to 1.9.3.6

texts:
I need to upgrade the magento version
I have now 1.9.2.2 magento version
I go to downloader and check for update
when i clicked in commit change this error shows

  CONNECT ERROR: Package community/Cm_RedisSession 1.9.3.6 conflicts with: community/Mage_All_Latest 1.9.2.2


texts:
I need to create a link like

  http:// base_url / storeId / productID?q

how do I correctly specify storeId / productID.


texts: Solr: How can I edit priority search as field in Magento 2?

texts:
How can I edit priority search as field in Magento 2? I want search like below:

SKU
Product name
Category
Attribute

But I don't where can I edit it? Any help would be appreciated.


texts: Magento2 update email address vis rest API

texts: Magento2 update Email Address using Rest API. How can I update email address of login customer via Rest API or Graphl


texts:
i am creating sitemap

http://dev.abc.com/sitemap/sitemap-1-2.xml
2021-01-19T01:08:41+00:00

here you can see in loc tag sitemap-1-2.xml its in xml format thats fine but i want convert this file in gzip format like >http://dev.abc.com/sitemap/sitemap-1-2.xml.gzip how can i do that on code level?


texts: Magento multiple languages english not functioning

texts:
I am facing a problem with my Magento store. I have been working on 2 store views and they were functioning fine. Now i have been working on some performance issues and fixed those, but my english version of the shop does not function anymore. It uses the right theme but doesn't show up with right stuff.

The sidebar's are from the starting store, and are not the same as my dutch store. The topbar is different and the logo does not show. I dont know what is going wrong, i have been searching for the problem but i didn't found it yet.

Any ideas?

Store is: http://www.thefixedgearshop.com/

Thank you!


texts: Updating the Product changes previous product price (eg. 99,000 to 99) Magento 2.3.0

texts:
I am facing a strange issue in Magento 2.3.0 admin whenever I try to update the product, the price change automatically (eg. ₦ 99,000 to ₦ 99) I guess there is something wrong while saving the value if I update the price removing the comma everything works great.

Please help


texts: Magento 2 receiving the error (300: AVS REJECTED No address or ZIP match only. CVV2/CVC2 match

texts:
We are using Magento 2.2.3 CE, when user trying to place an order with different billing and shipping addresses receiving the error (300: AVS REJECTED No address or ZIP match only. CVV2/CVC2 match.)

Could you please advise.


texts:
I am trying to save life time savings as customer attribute. After every successful purchase, I am incrementing the value.

To create the attribute I have below install script

<?php
$installer = $this;
$installer->startSetup();

$installer->addAttribute("customer", "life_time_total_saving",  array(
    "type"     => "varchar",
    "backend"  => "",
    "label"    => "Life Time Savings",
    "input"    => "text",
    "source"   => "",
    "visible"  => true,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""

    ));

$attribute   = Mage::getSingleton("eav/config")->getAttribute("customer", "life_time_total_saving");

$used_in_forms=array();

        $attribute->setData("used_in_forms", $used_in_forms)
        ->setData("is_used_for_customer_segment", true)
        ->setData("is_system", 0)
        ->setData("is_user_defined", 1)
        ->setData("is_visible", 0)
        ->setData("sort_order", 100)
        ;
        $attribute->save();

$installer->endSetup();

config.xml:

<resources>
        <total_savings>
            <setup>
                <module>Ucs_Saving</module>
                <class>Mage_Sales_Model_Mysql4_Setup</class>
            </setup>
            <connection>
                <use>core_setup</use>
            </connection>
        </total_savings>
    </resources>

After running this script, I can able to see attribute created in eav_attribute but in customer object I cant find the same.

below is my script inside mycustomer dashboard.phtml

$customerData = Mage::getSingleton('customer/session')->getCustomer();
echo '<pre>'; print_r($customerData);

But the object printed does not have the field life_time_total_saving.

Whats wrong with my code?


texts: Magento 2.2 - Get product attribute value in order detail Admin

texts:
How to show product attribute value in order detail in Magento 2.2.6?
I already tried below code but not working:

File Path:

  public_html/vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml

$_item->getProduct()->getAttributeText('attribute_code');
$_item->getProduct()->getProductAttribute('attribute_code');

Need Help.


texts: Magento: how to add a static block AFTER product list

texts:
In a web site my boss wants me to insert a static block AFTER the product list of that category. Up to now, using the Magento front end application, the one you can see here, I have seen that I can add a static block only before the product list. How can I do to put the block after the product list for each category?
For example this is a page of the site I am working on and I would like to display the block at the bottom of the page, after the product list but before the footer links.
I think I should change some files (like page.xml or local.xml) ma I don't know how and I haven't found anything useful in the net. Can you help?


texts: Admin Url not found (404) and css-js not working while migrating magento 2.3.3 local to server

texts:
Hey there here i am trying to migrate my magento 2.3.3 localhost to the server
i have changed Database user,database name in env.php and also  i have updated core_config_data in Database.
But still i am facing two issues
1.Front end without CSS and JS.

2.Admin Url Not found

hence my env.php url is also correct.
Does anyone have any solution for this.


texts: Blank magento admin after uninstall extension from magento connect

texts:
I have a serious problem, after uninstall extension from magento connect i see blank magento admin, nothing is visible to find out.

I also removed files under downloader/.cache directory of magento root but nothing get fixed.
Any solution will be appreciated.


texts: Magento layout not working in custom theme

texts:
I don't know if this question has answered before. I am creating a custom theme in magento 2.1. My parent theme is magento/blank.

I have copied layout and template files from module-theme\view\frontend and pasted in app/design/frontend/vendor/themename/Magento_Theme/

My problem is that I lost the top links with welcome message after copying and pasting the layout folder. If i rename app/design/frontend/vendor/themename/Magento_Theme/layout to any random name top links appears.

Can any one help me to sort it out? Thank you.


texts: Get average review star rating score in text

texts:
I want to echo the average review star rating of a product in text.

Currently it is displayed in width % to display the review stars.

But I want to display it like:

Reviewscore is 4.7 / 5

How can I achieve that?


texts:
I am trying to override a method from /vendor/magento/module-catalog/ViewModel/Product/Breadcrumbs.php
I get an error Type Error occurred when creating object: Piranha\TagRemover\ViewModel\Product\Breadcrumbs

My Module includes:

etc/di.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Catalog\ViewModel\Product\Breadcrumbs"
                type="Piranha\TagRemover\ViewModel\Product\Breadcrumbs" />
</config>

ViewModel\Product\Breadcrumbs.php

<?php

namespace Piranha\TagRemover\ViewModel\Product;

use Magento\Catalog\Helper\Data;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\DataObject;
use Magento\Framework\Serialize\Serializer\Json;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Framework\Escaper;

/**
 * Product breadcrumbs view model.
 */
class Breadcrumbs extends \Magento\Catalog\ViewModel\Product\Breadcrumbs implements ArgumentInterface
{
    /**
     * Catalog data.
     *
     * @var Data
     */
    private $catalogData;

    /**
     * @var ScopeConfigInterface
     */
    private $scopeConfig;

    /**
     * @var Escaper
     */
    private $escaper;

    /**
     * @param Data $catalogData
     * @param ScopeConfigInterface $scopeConfig
     * @param Json|null $json
     * @param Escaper|null $escaper
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function __construct(
        Data $catalogData,
        ScopeConfigInterface $scopeConfig,
        Json $json = null,
        Escaper $escaper = null
    ) {
        parent::__construct();

        $this->catalogData = $catalogData;
        $this->scopeConfig = $scopeConfig;
        $this->escaper = $escaper ?: ObjectManager::getInstance()->get(Escaper::class);
    }

    /**
     * Returns breadcrumb json with html escaped names
     *
     * @return string
     */
    public function getJsonConfigurationHtmlEscaped() : string
    {
        return json_encode(
            [
                'breadcrumbs' => [
                    'categoryUrlSuffix' => $this->escaper->escapeHtml($this->getCategoryUrlSuffix()),
                    'useCategoryPathInUrl' => (int)$this->isCategoryUsedInProductUrl(),
                    'product' => $this->escaper->escapeHtml($this->getProductName())
                ]
            ],
            JSON_HEX_TAG
        );
    }
}

Breadcrumbs.php contains the method I want to change but after running bin/magento setup:di:compile and including

<referenceBlock name="breadcrumbs" template="Magento_Catalog::product/breadcrumbs.phtml">
    <arguments>
        <argument name="viewModel" xsi:type="object">Piranha\TagRemover\ViewModel\Product\Breadcrumbs</argument>
    </arguments>
</referenceBlock>

to the catalog_product_view.xml I get the error when loading a product page.


texts: Magento secure url to delete and edit product in the cart

texts:
in code/core/Mage/Checkout/Block/Cart/Item/Renderer.php

i changed getConfigureUrl and getDeleteUrl by adding _secure

public function getConfigureUrl()
    {
        return $this->getUrl(
            'checkout/cart/configure',
            array('id' => $this->getItem()->getId(), '_secure' => Mage::app()->getStore()->isCurrentlySecure())
        );
    }

public function getDeleteUrl()
    {
        if ($this->hasDeleteUrl()) {
            return $this->getData('delete_url');
        }

        return $this->getUrl(
            'checkout/cart/delete',
            array(
                'id'=>$this->getItem()->getId(),
                Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->helper('core/url')->getEncodedUrl(),
                '_secure' => Mage::app()->getStore()->isCurrentlySecure()
            )
        );
    }

Still in secure pages like my account the configure url and delete url starts with http (unsecure) in the mini cart. How can i make the configure url and delete url secure in secure pages?


texts: Lost Public and Private Keys and no access to marketplace

texts: We installed M2 via a one Click installer. We were not supplied with access keys. We would like to use the marketplace now. Is there a way to get those keys without access to Magento Marketplace? I can't log in to reset them.