texts: Magento 2 - adding external JS/CSS with parameters in the URL

texts:
I am trying to add references to external JS/CSS files, and for the most of them, all works fine. However as soon as I try and add an external script with parameters in the URL (for example &sensor=false&libraries=geometry), it seems to cause issues. In my case, it's causing Google maps not to detect the API key. I tried replacing the & with %26, but this didn't work.
Adding the script directly into the template works, just not through the XML, which is what I need in this case.
XML
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd" layout="1column">
    <head>
        <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/redmond/jquery-ui.min.css" src_type="url"/>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" src_type="url"/>
        <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js" src_type="url"/>
        <script src="https://maps.google.com/maps/api/js?key=MYAPIKEY&sensor=false&libraries=geometry" src_type="url"/>
     </head>
</page>


texts:
is there any way to show disabled products in category rss feed also?

Magento 1.6.1.0


texts: How to get all Invoices of logged in customers in magento 2.1

texts: I want to display the list of invoices of logged in customer in the frontend.


texts: Magento Enterprise product, category to website relationship

texts:
In Magento Enterprise what table and column names store the relationship of product id -> category id -> website id

So if I have a multi-website Magento install and what I want to do is run a mysql query (using PHP language) that would pull all products (product name, price and unique ID where the product name is 'LIKE' xyz and the magento website currently being viewed by the user is a and the current store view being viewed by the user is b. What might my query look like.

Basically I am looking to alter the Magento product search to only search/display products that are assigned/enabled in the website and store view the user is currently browsing.

I know how to get the unique ID of the website and store view the user is currently browsing already.

Thanks


texts: To Show catalog price rule id applied on products in order API response

texts: I have created a custom field named catalog_price_rule_id in sales_order_item. Now i need to get the catalog price rule applied on that orderitem; then i need to store that into the custom field and finally I will have to expose that custom field in the order API response.


texts: Magento 2 product import website id not updating

texts:
I'm importing products using csv. Using default method of magento. My csv file is below.
sku,store_view_code,attribute_set_code,product_type,categories,name,description,short_description,weight,product_online,tax_class_name,visibility,price,special_price,special_price_from_date,special_price_to_date,url_key,meta_title,meta_keywords,meta_description,base_image,base_image_label,small_image,small_image_label,thumbnail_image,thumbnail_image_label,swatch_image,swatch_image_label,created_at,updated_at,new_from_date,new_to_date,display_product_options_in,map_price,msrp_price,map_enabled,gift_message_available,custom_design,custom_design_from,custom_design_to,custom_layout_update,page_layout,product_options_container,msrp_display_actual_price_type,country_of_manufacture,qty,out_of_stock_qty,use_config_min_qty,is_qty_decimal,allow_backorders,use_config_backorders,min_cart_qty,use_config_min_sale_qty,max_cart_qty,use_config_max_sale_qty,is_in_stock,notify_on_stock_below,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,website_id
testimport2,,Default,simple,Default Category/Kitchen Appliances,test import,"

Shape: Tapered towards the point

Double cut, single cut and spiral cut

Uses: For filing holes, mouldings and half round grooves
",File Round Bastard 100 mm Sleeve,1,1,Taxable Goods,"Catalog, Search",10,,,,testimport2,,,,sale.png,,sale.png,,sale.png,,,,,,,,Block after Info Column,,,,Use config,,,,,,,,,1000,0,1,0,0,1,1,1,10000,1,1,1,1,1,1,1,1,1,0,0,1

Product import working properly but website Id is not assigned. So products not showing in frontend. Please suggest.


texts: How to make multiple payments on one order by amount

texts:
I have two scenarios with a common thread.

One is the use of a gift card, i.e. a $50 Visa Gift Card, with a $53 order.
Ideally the customer would select payment type and amount $50. The order still needs a $3 payment. Then the customer could make payment via another credit card or other method. Order is fully paid and ready to ship.

In another scenario it would be the customer is making a deposit and the second payment method would be check/bank transfer etc.. the Order would not be fully paid. Later in admin the payment would be recorded.

This is not available in the admin,  only invoicing for a unit of product.  If customer orders multiple items and selects a non-completing payment method like "check",  you can invoice for some of them and later for the rest but by qty only not $amount.

I have searched for extensions and topics in various forums.


texts: Magento 2 call table stock_item from database

texts:
I working to Magento 2.0.2 and i trying to call the table stock_item of the product. When i worked in Magento 1.9 i used this code:

 loadByProduct($_product)->getQty();?>

But now the class Mage is not compatible with the new version of Magento. So how i do for call this table in my .pthml file?

Thank you very much for any help.

P.S. On other question, what is the .phtml file where is called the name of the product?


texts: Can I use asterisk as wildcard within a postcode/zipcode in the Table Rates for Shipping Calculations?

texts:
Can I use asterisk within a postcode/zipcode in the Table Rates for Shipping Calculations in Magento?

For example:

GY1*

Would match all the postcodes that began with GY1.

If this cant be done, is there another way of achieving this?


texts: How do I retrieve a list of Order Statuses allowed for a given Order State?

texts:
My understanding of Order States and Order Statuses are that a given Order State can have one or more allowed Statuses.  I've found that I can retrieve a list of all Statuses in the system using:

Mage::getSingleton('sales/order_config')->getStatuses();

However I need the list to be limited to statuses valid for a given State.


texts: "There has been an error processing your request" in installing Magento

texts:
There has been an error processing your request

Error in file: "C:\xampp\htdocs\magento\app\code\core\Mage\Cms\sql\cms_setup\install-1.6.0.0.php" - SQLSTATE[42501]: Base table or view a
  `block_id` smallint NOT NULL auto_increment COMMENT 'Block ID' ,
  `title` varchar(255) NOT NULL COMMENT 'Block Title' ,
  `identifier` varchar(255) NOT NULL COMMENT 'Block String Identifier' ,
  `content` mediumtext NULL COMMENT 'Block Content' ,
  `creation_time` timestamp NULL default NULL COMMENT 'Block Creation Time' ,
  `update_time` timestamp NULL default NULL COMMENT 'Block Modification Time' ,
  `is_active` smallint NOT NULL default '1' COMMENT 'Is Block Active' ,
  PRIMARY KEY (`block_id`)
} COMMENT='CMS Block Table' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci


texts: how to create the product sales report in Magento 1.9?

texts:
I want to create product sales report like below

When admin enter sku name he will get result of all the product list with status completed and according to applied filter. Please suggest me right way to do this.


texts: Magento CE uses MD5 encryption.. How hard to upgrade to better encryption method?

texts:
Quick buffer, I know very little about encryption methods and how they are implemented, I just know a little on the quality and importance of a good versus bad encryption method. My understanding is that Magento CE uses the very weak MD5 encryption method, which is widely known for being lackluster and should cease even being used. Magento EE however uses SHA-256 which is know as a much stronger alternative.

As a two pronged question, is Magentos' thoughts on keeping CE using MD5 strictly a business decision to push vendors to EE for a stronger method?

And how hard would it be to upgrade the current method of CE from MD5 to say SHA-256 ourselves without Magento needing to implement the change for us?

Thanks!


texts: Magento 2.25 customer and order migration Mismatch of entities in the document

texts:
I've migrating Customer and Order from Magento 1.9.0.1 to Magento 2.2.5 version, for the Customer and Order migration I've reviewed the following post and implemented in my local.
How to migrate only orders with Data Migration Tool?

Then I run the following command for migration purpose

php bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.0.1/config.xml

But I am getting following error in the command line and migration.log file.

In Migration.log file :
Mismatch of entities in the document: wishlist Source: 2 Destination: 0

In command line

What is the exact issue is there, how to fix this issue. Thanks in advance for you support & help


texts: image with more size is not occupying full space in product view page in magento

texts:
please visit this link :

http://www.kidsdial.com/ottoman.html is product 1

alse we can see the base image is not occupying full space as compare to follwing link

but you can see here, product 2 : http://www.kidsdial.com/htc-touch-diamond.html

here, base image is occupying full space.

product 1's image is having more height and width size but why the product 1's image is

not occupying full space in products view page

please help me to find some solution....


texts:
I found that CatalogInventory/Model/Stock/Item model doesn't trigger _beforeSave() method of it's parent. So, we cannot observe models save_before event. Is it special for preventing from hooks or some bug? Do it leads to some problems or nor if I add parent::_saveBefore() line within the method.

class Mage_CatalogInventory_Model_Stock_Item extends Mage_Core_Model_Abstract
{
    protected function _beforeSave()
    {
      //here should be parent::_saveBefore() call by Magento logic
    }
}


texts: Transactional emails of virtual products containing specific instructions?

texts: I was wondering if Transactional Emails can be customised by product so if I send a virtual product rather than an actual item, the customer would  receive an order confirmation with specific instructions?


texts: How can i disable Magento module at run time?

texts:
I am using custom checkout module. When user selects a specific category I would like to use default checkout module.

Is it possible to run two checkout engines.


texts:
I have 3 stores in my Magento setup, each one going to a unique URL (they share products across all three).  I was using version 2.3.1 and everything worked great.  When I went to the admin on any of the three, it redirected me to my "default" URL/admin.

I just upgraded to 2.3.4 and the following is happening:
Store #1 - goes to proper URL
Store #2 - goes to proper URL
Store #3 (same as default store) - goes to Store #1 URL

Entering the admin path tries to direct me to store #1 url/admin, which in turn tries to direct me to the "default" url/admin, but because of the redirect problem it tries to go to store #1 url/admin... causing a timeout due to never ending redirects.

I know something has been changed in my db, probably in core_config but I can't find it for the life of me.  Any help would be GREATLY appreciated.


texts: how can a customer email his wish-list to admin in magento 1.9

texts:
i want to add a "send wishlist to admin" button in wishlist section, so that when customer click on this button his wishlist will send to the admin through email.
how can i do that. please help


texts: Cannot select conditions for Cart and Catalog Price Rules

texts:
I currently have a problem with Magento 2 (2.2.7) where I cannot select conditions in the Catalog or Cart price rules. This problem also occurred on Magento 1 and seems to have migrated across along with the sales rules.

The process I undertake is as follows:

Go to Marketing -> Promotions -> Cart Price Rules (or Catalog Price rules)
Select a current rule or use "Add new rule" (the issue occurs either way)
Go to the section titled "Conditions" or the conditions section of "Actions"
(Image 1) Click on the green "+" sign to add a new condition
(Image 2) Select any condition (it doesn't matter which)
(Image 3) The message "This won't take long..." appears
(Image 4) A page appears with the message:

  Magento Admin 404 Error Page not found.

With the developer console open the following errors appear:

VM24673 legacy-build.min.js:1
POST https://www.websitename.com/admin_panel/sales_rule/promo_quote/newConditionHtml/form/sales_rule_formrule_conditions_fieldset_/form_namespace/sales_rule_form/key/bb452ffee837d48c5d6571c63127dea9581b51d4544b844c3e2592f83013b06d/?isAjax=true 403 (Forbidden)
request         @   VM24673 legacy-build.min.js:1
initialize      @   VM24673 legacy-build.min.js:8
(anonymous)     @   VM24673 legacy-build.min.js:1
g           @   VM24673 legacy-build.min.js:1
addRuleNewChild     @   VM25381 rules.js:318
hideParamInputField @   VM25381 rules.js:281
M           @   VM24673 legacy-build.min.js:8
ListPicker._handleMouseUp

VM25381 rules.js:352
GET https://www.websitename.com/admin_panel/sales_rule/index/index/key/26a494ef284767a4336e676435089056fe4f35b809bd43a76062c9b7f707b331/ 404 (Not Found)
_processFailure     @   VM25381 rules.js:352
respondToReadyState @   VM24673 legacy-build.min.js:8
onStateChange       @   VM24673 legacy-build.min.js:1
XMLHttpRequest.send (async)
request         @   VM24673 legacy-build.min.js:1
initialize      @   VM24673 legacy-build.min.js:8
(anonymous)     @   VM24673 legacy-build.min.js:1
g           @   VM24673 legacy-build.min.js:1
addRuleNewChild     @   VM25381 rules.js:318
hideParamInputField @   VM25381 rules.js:281
M           @   VM24673 legacy-build.min.js:8
ListPicker._handleMouseUp

I've looked through the log files including system.log and there don't seem to be any messages relating to the cart/catalog rules the Apache log has given me the following error.

GET /website-admin/sales_rule/index/index/key/ed104bf5def6f334de21dd5adc5ccb32e1228ef68b0639363ed5e2a369ec2ab3/ HTTP/1.0

Is there a way to fix this and get the rules working as they should again?


texts: Default.xml won't apply to page in Magento 2.3

texts:
I have looked at other answers, and there is no problem in my path or my xml file I believe, In my own theme I am extending the blank theme and the blank theme did not contain any layout/default.xml so I added it from the luma theme and making changes there did take effect on the page.

   <?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="header.panel">
            <block class="Magento\Framework\View\Element\Html\Links" name="header.links">
                <arguments>
                    <argument name="css_class" xsi:type="string">header links</argument>
                </arguments>
            </block>
        </referenceContainer>

          <referenceBlock name="catalog.compare.sidebar" remove="true" />
            <referenceBlock name="sidebar-additional" remove="true" />

        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_img_width" xsi:type="number">148</argument>
                <argument name="logo_img_height" xsi:type="number">43</argument>
            </arguments>
        </referenceBlock>
        <referenceContainer name="footer">
            <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
        </referenceContainer>
        <referenceBlock name="report.bugs" remove="true"/>
        <move element="copyright" destination="before.body.end"/>
    </body>
</page>

I am placing my default.xml file in /app/design/frontend/vendor/mytheme/Magento_Theme/layout/default.xml

Where vendor is my own vendor name, I have tried to make errors in the xml but no errors come up in the logs, seems as if Magento does not find my default.xml

Might be unrelated but the pub/static folder should contain a copy of my theme, but there is no /Magento_Theme/

folder there, I am assuming it should be there.

For a coworker doing the exact same procedure as me it worked fine, but instead using Magento-Luma as parent theme.


texts: reinstalling a module which don't rebuild the database

texts: I installed a module which will build a table in database, then i manually drop that table, then i uninstall the module, after that, i reinstall the module but the table don't rebuild, how can i fix this problem?


texts: If not enabled, do nothing (custom wishlist extension breaks template)

texts:
I have made a custom wishlist extension, based on Mage_Wishlist (it's a copy of Mage_wishlist).

In checkout/cart.phtml and /checkout/cart/item/default.phtml, this piece of code creates my own custom wishlist column:

<?php if ($this->helper('favorieten')->isAllowInCart()) : ?>
            <col class="col-wish" width="1" />

        <?php endif ?>

It works perfectly when my custom extension is enabled, but it breaks the template when it's disabled.

How do I correctly add the column, so it doesn't break the template when the extension is turned off?

It is important to me so I can first add / replace the templates, and then finally activate the extension.


texts: How to add customer new entity type and customer new field

texts:
I want to create a new tab name as "Preference" in customer dashboard and also admin side customer edit page.
I successfully created new tab both side(means Admin and frontend).

Can any one suggest me how to create a two new field and display field in "preference tab" for both side and how i can add, edit field value.


texts: Adding Value To Quantity and Stock Status

texts:
I would like to add a value to the stock status that says "coming soon" for products that are currently in production. However, I do not see where I can add an option in the attribute values.

  How would I do this?


texts: Magento 1.9: Get individual item options via SOAP API

texts:
I'm having trouble to get individual item information from the shopping cart in Magento 1.9. as a little introduction: We're running a store which sells individual stickers for motorcycles and the customer has to make some specifications (like when the bike was built or how big the engine is).

I can see that this information are in the shopping card (ordered items) but I'm not able to find the right SOAP call to gather all this information. Is there anything I'm missing?
I'm completely new with the Magento shop system and thankful for any kind of help.

Thanks in advance,

Tim


texts: Display full tax info in PDF totals with tax rate as title

texts:
I am using this code to display full tax info in PDF totals:

public function getTotalsForDisplay()
{
    $store = $this->getOrder()->getStore();
    $config= Mage::getSingleton('tax/config');
    if ($config->displaySalesTaxWithGrandTotal($store)) {
        return array();
    }

    $fontSize = $this->getFontSize() ? $this->getFontSize() : 7;
    $_fullInfo = $this->getOrder()->getFullTaxInfo();
    $total = array();

    $amount = $this->getOrder()->formatPriceTxt($this->getAmount());
    $label = 'gesetzliche MwSt:';
    $total[] = array(
        'amount'    => $amount,
        'label'     => $label,
        'font_size' => $fontSize
    );
    foreach ($_fullInfo as $info) {
        $percent    = $info['percent'];
        $amount     = $info['amount'];
        $rates      = $info['rates'];
        $total[] = array(
           'amount'    => $this->getOrder()->formatPriceTxt($amount),
           'label'     => $rates[0]['title'].' ',
           'font_size' => $fontSize-1
       );
    }

    return $total;

While this is working fine, it will output the tax rate title as label while I need to output the rate with added % instead. How do I need to modify 'label'     => $rates[0]['title'].' ', to output the rate instead of the title?


texts:
My Magento site is down and I see

  main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log"
  file. Unable to write {"exception":"[object]
  (Magento\Framework\Exception\FileSystemException(code: 0): Cannot
  write to the \"/var/www/html/var/debug/db.log\" file. Unable to write
  at
  /var/www/html/vendor/magento/framework/Filesystem/File/Write.php:54)"}
  []

I tried php bin/magento setup:di:compile but I get

  Command line user does not have read and write permissions on
  generated directory. Please address this issue before using Magento
  command line.

I tried changing the permission of generated directory by  sudo chmod 0777 -R  generated but still no success. Any advice would be great help.

Update : These are the owners of var/log and generated directory

/var/www/html# ls -la var/log generated
generated:
total 16
drwxrwsrwx  3 ubuntu www-data 4096 Apr  6 06:29 .
drwxr-xr-x 22 ubuntu www-data 4096 Apr  6 08:42 ..
-rwxrwxrwx  1 ubuntu www-data  126 Jan 19 20:01 .htaccess
drwxrwsrwx  2 ubuntu www-data 4096 Apr  6 10:43 code

var/log:
total 436820
drwxrwsr-x  3 ubuntu www-data      4096 Mar 17 05:58 .
drwxrwsr-x 12 ubuntu www-data      4096 Apr  6 07:56 ..
-rw-rw-r--  1 ubuntu www-data      7180 Feb  2 13:55 4-1549115600.log
-rw-rw-r--  1 ubuntu www-data       409 Feb  3 11:27 Amasty-inventory-19-02-03.log
-rw-rw-r--  1 ubuntu www-data   1352583 Apr  3 14:00 cache-warmer.log
-rw-rw-r--  1 ubuntu www-data    793265 Apr  3 14:45 connector.log
-rw-rw-r--  1 ubuntu www-data 405626880 Apr  6 10:51 debug.log
-rw-rw-r--  1 ubuntu www-data   8498179 Apr  6 06:23 exception.log
drwxrwsr-x  2 ubuntu www-data      4096 Feb 24 13:49 firebear
-rw-rw-r--  1 ubuntu www-data    483328 Apr  6 10:51 magento.cron.log
-rw-rw-r--  1 ubuntu www-data     36864 Apr  6 10:51 setup.cron.log
-rw-rw-r--  1 ubuntu www-data         0 Feb 10 13:19 shippingaddress_process.log
-rw-rw-r--  1 ubuntu www-data  30228480 Apr  6 10:51 system.log
-rw-rw-r--  1 ubuntu www-data         0 Feb  2 09:39 update.cron.log
-rw-rw-r--  1 ubuntu www-data       870 Mar 19 10:15 update.log


texts:
The vat of my country changes early 2018, I would like to create a script that updates the products with the new vat that I will create in the back office of magento.

How can I do ?

Thank you for your help


texts: Magento 2 : Rest API get product price in cart with including tax

texts:
I have added tax rules to add GST on a product prices.
I have changed the store->configuration->sales->tax->Price Display Setting->Display Product Prices In Catalog to yes. I am getting it correctly on website when there is shipping address associated with quote.
I wanted to do same for the REST API.


texts: 'Area code not set' issue in custom CLI commands in Magento 2

texts:
I'm getting following error while updating data through CustomerRepositoryInterface

[Magento\Framework\Exception\SessionException]
Area code not set: Area code must be set before starting a session.

[Magento\Framework\Exception\LocalizedException]
Area code is not set

Following is my di.xml file

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Framework\Console\CommandList">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="test1_command" xsi:type="object">Test\Module\Console\Command\Test1Command</item>
                <item name="test2_command" xsi:type="object">Test\Module\Console\Command\Test2Command</item>
            </argument>
        </arguments>
    </type>
</config>


texts: How to get a collection id of products from the basket ? Magento 2

texts:
public function __construct(
            ScopeConfigInterface $scopeConfig,
            RateErrorFactory $rateErrorFactory,
            Session $session,

            LoggerInterface $logger,
            RateResultFactory $rateResultFactory,
            RateMethodFactory $rateMethodFactory,
            ProductFactory $productFactory,
            array $data = []
        ) {
            $this->_productFactory   = $productFactory;
            $this->_rateResultFactory = $rateResultFactory;
            $this->_session = $session;
            $this->_rateMethodFactory = $rateMethodFactory;
            parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
        }
 public function isActive()
    {

        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/somelog.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);

        /** @var $item \Magento\Quote\Model\Quote\Item */
        $items = $this->_session->getQuote()->getAllItems();
        foreach ($items as $item) {
            $productid = $item->getProductId();

            $product = $this->_productFactory->create()->load($productid);
            $categoriesIds = $product->getCategoryIds();

here I only get the id of the first product from the basket, how to get all the id products from the basket


texts: Magento 2: System Configuration not Reflecting

texts:
I creat system configurations in custom module. I am unable to get required changes in store->configurations.

The code I wrote for system.xml is as follows:

<?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="zipcodevalidator" translate="label" sortOrder="1">
        Zipcode Validator
    </tab>

        <class>separator-top</class>
        Validator Settings
        <tab>zipcodevalidator</tab>
        <resource>Tm_Zipcode::config</resource>
        <group id="general_settings">
            General Settings
            <field id="enable_disable" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                Enable

            </field>
            <field id="sucess_message" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                Sucess Message
                <comment>Use {zipcode} as zipcode placeholder and {days} as number of days placeholder</comment>
            </field>
            <field id="error_message" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                Error Message
                <comment>Use {zipcode} as zipcode placeholder</comment>
            </field>

</system>
</config>

The code for acl.xml is as follows

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
    <resources>
        <resource id="Magento_Backend::admin">
            <resource id="Magento_Backend::stores">
                <resource id="Magento_Backend::stores_settings">
                    <resource id="Magento_Config::config">
                        <resource id="Tm_Zipcode::config_zipcode" title="Zipcode Section" sortOrder="50" />
                    </resource>
                </resource>
            </resource>
        </resource>
    </resources>
</acl>
</config>

I'm really stuck with this. Please help.


texts:
Does anyone know how to integrate UPS Saturday Ground into Magento 2? I came across a solution for Magento 1, but not Magento 2.

I am having issues making the Magento 2 UPS module work like the module from the link above.


texts: I would like to add amazon url link to to magento product catalog product listing

texts: How to add amazon url link to my product catalog listing?


texts: responsive layout issue with rating stars

texts: I have uploaded a image to show what the problem is, as you can see from the image the add to cart button is covering the information. This is on all portrait views. Its also wrong in landscape views. I have been told that its because of the star rating pushing everything down. The site is Magento 1.9.2.1 My website is here . Please could someone give me some advice on how to resolve this issue.


texts: Api acl check permission not working for guest user

texts:
Hi I have added api acl for guest user vy adding tag

<privileges>
    <admin>
        <create>1</create>
        <retrieve>1</retrieve>
        <update>1</update>
        <delete>1</delete>
    </admin>
    <guest>
        <create>1</create>
        <retrieve>1</retrieve>
        <update>1</update>
        <delete>1</delete>
    </guest>
</privileges>

but guest user get collection every time. if i configure from admin > system > Webservices > roles and unchack from category menu still got the same response.

Expected:

if uncheck from roles than need to empty responce or access denied message.

Can any one have idea how to solve this issue.


texts: Currently the items are showing by default 20 per page. Is there a way to load all items?


texts: Magento 2: how to display "add app to home screen" in devices

texts:
For mobile users on website I want display notification "add app to home screen" and when customer accept then url to our website save on home screen devices.

Any solution?


texts:
Were having an issue with our subtotal.

In our case a discount has been applied.  Magento Should be providing a 10% discount on the 89.99 sale Which should equate to 9.99

Its actualy providing a 10.80 discount
The subtotal is also reflecting this value at 79.19

But the grand total is showing the correct value at £80.99

Any clues on how to continue debugging this ?

note : This is based on a discount code


texts: magento how to remove last name from checkout page?

texts:
i want to remove middle name & last name on checkout page only. from billing & shipping section. after analyse page code i found that. first/middle/last name coming from a file name.phtml path given below.

frontend/base/default/template/customer/widget/name.phtml

now i am able to remove middle/last name from here (of-course i am not editing core file & made exact path in my theme and paste that file which works OK)

but when i remove it from here. its also removed from registration page. So please tell me exactly what i have to do ?

my magento version is 1.9.X.X

My main issue is - when i am commenting last name in file its also removed from registration page


texts: Is "/catalog" a reserved route in Magento 2?

texts:
I expected this to be simple, but it seems linking to a category named "catalog" isn't as straight forward as I expected.

I've got a category structure similar to the following:

- Default Category
    - Catalog
        - Mens
        - Womens
          ...

Linking to a child category works

/catalog/mens

...but linking to a category called "catalog" doesn't

This will redirect me to the home page.

/catalog

Renaming "catalog" to "catalog2" works...

/catalog2

The Question

Does this mean /catalog is a reserved route in Magento 2?


texts: Magento2 Multistore Headers already sent

texts:
I recently upgraded my Magento store to 2.3.1. The main store works just fine, however, my other store (multi-store instance) brings up this error:

Warning: stream_wrapper_unregister(): Unable to unregister protocol phar:// in /home/site/public_html/app/bootstrap.php on line 11

It then redirects to a report page, the relevant log file shows:

{"0":"Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/app/bootstrap.php:11)}

I've cleared out the var/ folders, run the:
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento setup:static-content:deploy -f
$ php bin/magento cache:clean

Going to app/bootstrap.php line 11 shows:
stream_wrapper_unregister('phar');

Commenting it out works ... but that feels hacky and dirty.
What's the proper way to fix this?
Server info:

PHP: 7.2.16
CentOS 7

Thanks,


texts: Function is not getting called in Controller through ajax

texts:
What are the steps to be taken care while calling function through controller?
I have created button in admin/system/configuration. On button click , function is called.  But it is not calling controller function.

URL path is

Mage::getUrl('price/marketplaceprice/ringsbands14k'),

controller file is MarketPlacepriceController.php


texts: Add template block into another template

texts:
I've got a root template block, in which there's a block for the left column. I want to place there 2 more sub-blocks. So this is what I do...

This is the referenced left-column template block:

<block type="core/text_list" name="left" as="left" translate="label">
...
</block

and my stuff:

<reference name="left">
    <block type="core/template" name="cart_sparkasse" as="cart_sparkasse" template="sparkasse/cart.phtml" />
    <block type="core/template" name="ssl_information" as="ssl_information" template="sparkasse/ssl_information.phtml" />
</reference>

I do not get anything visualised. I turn on the template + block hints and I can see that the 2 template blocks are there, but they have no content and are not visualized. I cannot find them in the source HTML code of the page either, which leads me to the thought that they are not rendered or whatever Magento does...

Any ideas how to fix this?

UPDATE:

The code in the additional templates:

<?php echo $this->__('Baby, I am here')?>


texts: addStatusHistoryComment called by Adyen PSP -> generating a lot of backend e-mails: disable?

texts:
We have Sales -> Order COmments -> Enables = YES

We use this for our clients. So we add a comments in backend, tick "inform customer" and everybody is happy

Now we use Adyen PSP. And this PSP adds all the intermediary comment updates using

    $status = (!empty($status)) ? $status : $order->getStatus();
    $order->addStatusHistoryComment(Mage::helper('adyen')->__('Payment is pre authorised waiting for capture'), $status);

The problem is that because of Sales -> Order COmments -> Enables = YES every status update (4!) is also BCC-ed to us. Not the customer.

So my question: it is great that they provide this information: but how can one disable the e-mail generation? (whilst leaving the Order Comments functionlaity for customer intact)


texts: How to post data when clicking custom ui component button?

texts:
I am using ui-component form edit and would like to add custom button "customButton" with all post data. However, it doesn't post any data except form key.

My code

 $data = [
            'label' => __('Print Address'),
            'class' => 'save',
            'data_attribute' => [
                'url' => $this->urlBuilder->getUrl('*/*/printAddress', ['id' => $this->getRequest->getParam('id')]);
            ],
            'sort_order' => 80,
        ];


texts: Add new container in Group product View Page in Magento 2

texts:
I want to add new container only for group products in Frontend.

Above Screenshot is group product's view page of my magento frontend.

In above Screenshot,I want to add that container Div below reviews container.


texts: How to customize Magento Invoice based on GST TAX

texts:
In India, GST tax applied, how can we customize Magento invoice based on GST TAX

Note: How to differentiate Tax based on shipping address like shipping
address same state same city tax calculation value divided into CGST
and SGST, and shipping address different state  tax calculation value
applied into IGST

Note: community moderators:  I am not asked to mean everything, just ask about the idea.


texts: Magento Rest Api from Consumer key not found

texts:
I am requesting magento Rest api from my test file by appending consumer key and secret but after user login and authorization it shows consumer key not exist/found. I am passing consumer key as $_GET FROM MY form.

Please help me


texts: How to get product description in wishlist?

texts:
I just started to learn Magento2 and never dealt with Magento before. I have custom theme where in wishlist I need to show product description. So here

/app/design/frontend/Vendor/Theme/Magento_Wishlist/templates/item/column

in name.phtml I tried to get product description but without success.

I have tried this

$this->helper('Magento\Catalog\Helper\Output')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description')

but it didn't work.

Currently the code of name.phtml looks like

<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

/* @var \Magento\Wishlist\Model\Item $item */

$item = $block->getItem();
$product = $item->getProduct();

?>

    <a href="<?php /* @escapeNotVerified */ echo $block->getProductUrl($item) ?>" title="<?php echo $block->escapeHtml($product->getName()) ?>" class="product-item-link">
        <?php echo $block->escapeHtml($product->getName()) ?>

<?php //echo $helper_desc->getProductDescription($item) ?>

I need to get description on this line

<?php //echo $helper_desc->getProductDescription($item) ?>

Could you please help to get product description in name.phtml? If this matters site is on production mode.


texts:
Please excuse my English. I'm an IT student and now I'm practising with magento.

When i try to change the design System/General/Design, i get an error.

  Exception printing is disabled by default for security reasons. Error
  log record number: 1068330729847

I also get a error when a reach the CMS/Page option

  Exception printing is disabled by default for security reasons.
  Error log record number: 227607087873

i already tried to change the null to tmp in the File.php file and I also created a new folder in the root map.

Can you help me out please


texts: Magento 2 - Product price plugin does not work on promotion

texts:
I'm building a plugin to recalculate some base prices of my store using some atributes of the product. I'm using an interceptor(plugin) of Magento\Catalog\Model\Product::getPrice().

The price is modified but when I apply a promotion it have not been afected.

For a $90 product, the price modification is +$10 so the "before price" showing is $100. I have a promotion of 20% so the "final price" have to be $80. instead it is showing $72.

It is posible than intercept another method after the product repository is loaded. Maybe before currency rate have applying?


texts: How to send account confirmation email to specific customer group magento 2?

texts: I want to send an account confirmation email to a specific customer group. is it possible? please help me.


texts: On submitting module to  marketplace the Installation & Varnish Test Results failed stating  Running schema recurring...Plugin class Vendorname\Modulename\Plugin\Pluginame doesn't exist but on my local machine its working fine. Thanks in advance for your support.


texts:
I want to set an cronjob for reindexing some indexes, but preferably not all.

First of all, how would I set one up for all?
And if possible how to I exclude a specific index?


texts: PWA- Sample Data not installed getting error in magento2

texts:
I am trying to install sample data in PWA studio.

But getting error

  [RuntimeException]
    Failed to execute git clone --mirror 'git@github.com:PMET-public/module-catalog-sample-data-venia.git'

I have manually downloaded

module-catalog-sample-data-venia
module-configurable-sample-data-venia
module-customer-sample-data-venia
module-sales-sample-data-venia
module-tax-sample-data-venia
sample-data-media-venia

But where to where to add it?


texts:
The magento works fine, and suddently starts giving an exception. The report says:

a:5:{i:0;s:96:"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '213894' for key 'PRIMARY'";i:1;s:2966:"#0 /public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ma...', Array)
#4 /public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ma...', Array)
#5 /public_html/lib/Zend/Db/Adapter/Abstract.php(574): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ma...', Array)
#6 /public_html/app/code/core/Mage/Log/Model/Resource/Visitor.php(154): Zend_Db_Adapter_Abstract->insert('mage_log_visito...', Array)
#7 /public_html/app/code/core/Mage/Log/Model/Resource/Visitor.php(108): Mage_Log_Model_Resource_Visitor->_saveVisitorInfo(Object(Mage_Log_Model_Visitor))
#8 /public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(458): Mage_Log_Model_Resource_Visitor->_afterSave(Object(Mage_Log_Model_Visitor))
#9 /public_html/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Core_Model_Resource_Db_Abstract->save(Object(Mage_Log_Model_Visitor))
#10 /public_html/app/code/core/Mage/Log/Model/Visitor.php(167): Mage_Core_Model_Abstract->save()
#11 /public_html/app/code/core/Mage/Core/Model/App.php(1303): Mage_Log_Model_Visitor->initByRequest(Object(Varien_Event_Observer))
#12 /public_html/app/code/core/Mage/Core/Model/App.php(1284): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Log_Model_Visitor), 'initByRequest', Object(Varien_Event_Observer))
#13 /public_html/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#14 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(505): Mage::dispatchEvent('controller_acti...', Array)
#15 /public_html/app/code/core/Mage/Core/Controller/Front/Action.php(59): Mage_Core_Controller_Varien_Action->preDispatch()
#16 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(409): Mage_Core_Controller_Front_Action->preDispatch()
#17 /public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#18 /public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#20 /public_html/app/Mage.php(639): Mage_Core_Model_App->run(Array)
#21 /public_html/index.php(98): Mage::run('', 'store')
#22 {main}";s:3:"url";s:37:"/illustrator-men-business-attire.html";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}

The last line (22) is changing with different URLs in the different report files.

I have managed to get the website by restoring the database from the backup of 2 days ago. But after a few hours the same error appears.


texts: CCAvenue Payment Gateway Responce Message Return 404 error

texts:
After successfully integrated CCAvenue Payment gateway response message return 404 error,

Form :

                <input type="hidden" name="tid" id="tid" readonly />
                <input type="hidden" name="merchant_id" value="1234"/>
                <input type="hidden" name="order_id" value="123654789"/>

                <input type="hidden" name="currency" value="INR"/>
                <input type="hidden" name="redirect_url" value="abc.com/ccavResponseHandler.php"/>
                <input type="hidden" name="cancel_url" value="abc.com/ccavResponseHandler.php"/>
                <inputtype="hidden" name="language" value="EN"/>
                <button type="submit" class="btn btn-default" id="pass">Pay</button>


texts: Issue with mage-messages cookie in iphone safari

texts:
For my device testing (iPhone Safari), multiple notifications pop on,

from the code message.js

initialize: function () {
        this._super();

        this.cookieMessages = _.unique($.cookieStorage.get('mage-messages'), 'text')[_.unique($.cookieStorage.get('mage-messages'), 'text').length-1];

        this.messages = customerData.get('messages').extend({
            disposableCustomerData: 'messages'
        });

        if (!_.isEmpty(this.messages().messages)) {
            customerData.set('messages', {});
        }

        $.cookieStorage.set('mage-messages', '');

        // $(window).on('beforeunload', function () {
        //     $.cookieStorage.set('mage-messages', '');
        // });

    }

Although I am setting mage-messages as empty at the end

$.cookieStorage.set('mage-messages', '');

Still, on the next reload the very first line of code gives me the old mage-messages message

$.cookieStorage.get('mage-messages')

This issue only prevails in iPhone safari, works fine in desktop safari and chrome.

How to resolve that issue, from where does that previous cookieStorage are getting set even if I am clearing it the at the end of my script.

And why does that issue only happening in iPhone device


texts: creating order before payment completed in ccavenue

texts:
Hi I am using ccacvenue payment gateway for my site. The issue is the order is getting created before the payment process starts so for failed transaction too the order is generated and customer is getting email that order is placed successfully. How to prevent the order creation for failed transaction

Help me resolve the issue


texts:
Today i added a new page on my magento webshop.. nothing special.
But after i added that page, everytime i go on another page it adds .html in the Url and it just gives me a empty html page.
I didn't change anything in the code so I have no idea what might cause this problem.
Any help would be much appreciated!


texts: Export products by category name instead of category id

texts: How can i export my products by category name instead of category id,


texts: Can't override recent order template from custom module

texts:
In customer account dashboard there's a recent orders block, i tried to override it like this:

app/code/Test/SuccessPage/view/frontend/layout/customer_account_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
          <referenceBlock name="customer_account_dashboard_top">
              <action method="setTemplate">
                  <argument name="template" xsi:type="string">Test_SuccessPage::order/recent.phtml</argument>
              </action>
          </referenceBlock>
        </referenceContainer>
    </body>
</page>

app/code/Test/SuccessPage/view/frontend/templates/order/recent.phtml

<h1> Success !! </h1>

Unfortunately, it's not working at all


texts: Upload Multiple Images on the frontend Form

texts:
I want to upload Multiple images on frontend side. i have added

  enctype and Input type file

the field is accepting multiple images but after printing array of Data its shows only one single image.

Frontend form field code is

<div class="control">
            <input type="file" name="images " id="review_field" data-validate="{required:false}" data-bind="value: review().images" multiple title="Upload Product Images" />
        </div>

when I add name="images[]" and after printing the $Data array, the images field doesn't shows. The screenshot is attached with adding images[] in name.

Controller

  /** @var \Magento\Review\Model\Review $review */
        $pathurl = $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'review_booster/';
        $mediaDir = $this->_filesystem->getDirectoryRead(DirectoryList::MEDIA)->getAbsolutePath();
        $mediapath = $this->_mediaBaseDirectory = rtrim($mediaDir, '/');
        $files = $this->getRequest()->getFiles();
        if (isset($files['image']) && !empty($files['image']["name"])){
          try {
          $uploader = $this->_fileUploaderFactory->create(['fileId' => 'image']);
          $uploader->setAllowedExtensions(['jpg', 'jpeg', 'gif', 'png']);
          $uploader->setAllowRenameFiles(true);
          $path = $mediapath . '/review_module/';
          $data['images'] = $files['image']['name'];
            $result = $uploader->save($path);
          }catch (\Exception $e) {
            $this->messageManager->addError(__($e->getMessage()));
          }
        }


texts: How to set a test environment in Magento?

texts:
This post is not a question but an experience share.

Sometimes we need to test our Store in live environment with the live database, or be able to show clients how the new version will look like without installing another test server, or in the case you don't want to create another GIT branch on your local server and don't want to push to Live critical files...

My solution is to create another codepool just for testing purpose.

First create a file called testing.php on Magento's Root (next to index.php) with this code

<?php
setcookie('testing',true);
?>
<!DOCTYPE html>

    <title>test</title>
    <meta name="robots" content="noindex,nofollow"/>

<a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>/?___store=test_store">Go to test store

Then we modify Mage.php (it's a slight modification so can be deleted without incidences with a Magento update) to make the Autoload part to look like this

if (isset($_COOKIE['testing'])) $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'test';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'local';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'community';
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'core';
$paths[] = BP . DS . 'lib';

Now if you want to modify your code you simply copy the folder from app/code/local to app/code/test your code should work fine at this point.

Frontend
For the frontend it's easier as you just need to create the store view with the code test_store in Configuration change your current store to the test go to Design > head > Default Robots > NOINDEX, NOFOLLOW
Then Design > Themes should have the default to your main theme and all others to your test theme.
If you have a multilingual store that has a selection you will have to create a website instead of store view.

There is certainly a better solutions, please share if you have it.


texts:
Magento2 has multiple auto-generated class, which i know of i.e .factory,proxy. I came across Builder class on many occasions

app/code/Magento/Catalog/Controller/Adminhtml/Product.php

Could anyone highlight the use of this?


texts: Product import raising an error but the script is stopping, not being handled by catch{}

texts:
I am importing some products. Generally this works fine and when it does raise an error, I skip that item because I handle it using try / catch. I have an issue sometimes though where the catch isn't triggered despite an error being raised.

For instance, one product threw an error here in Catalog\Product\Type\Configurable.php with this line:

foreach ($this->getConfigurableAttributes($product) as $attribute) {
            $this->getProduct($product)->setData($attribute->getProductAttribute()->getAttributeCode(), null);
        }

basically it was reporting that $attribute was null (and it threw the error when debugging using xdebug) however, instead of then going into my catch code, it just stopped the script. I have already fixed the issue that caused this BUT I need to know how to catch things like this and skip / log the item, not just stop the script.

Can anyone lend some advice please?


texts: Bundle product with simple product and custom option required can't add from the reorder action

texts:
I have issue with bundle product with simple custom option required in reorder action.When i reorder same product it always give error like Please specify required options as all i have debug in ordered item there is selected options.

i have also checked no other extension is conflict with this logic is it core bug or may be something going wrong with my side also nothing was changed in core code.

I am stuck with this issue still 3 days can anyone please guide me on this


texts:
I load my custom JavaScript file the following way:

In:

  app/design/frontend/VENDOR/THEME/Magento_Theme/layout/default_head_blocks.xml

I put:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/Module/etc/module.xsd">
    <head>
        <script src="js/custom.js"/>
    </head>
</page>

And it works!

However, the custom.js script is loaded at the bottom of the <head> tag. How can I load custom.js to be the first script loaded? Thanks for any help.


texts: Magento 2 checkout_cart_product_add_after Observer setWeight not working

texts:
I am working with Magento 2.0.10, I have created an observer to set the product price and weight posted from the products details page using a custom attribute. In the below example I am trying to set a static price and weight. For the price attribute its working correctly, but I am not able to set the weight. The quote item is giving the actual product weight while calculating shipping. Even if I change the observer event to sales_quote_item_set_product, it is not working at all for changing weight.

And even now I have tested with Magento 2.1 as well, but it isn't working at all

In events.xml and I am creating an observer like below

<event name="checkout_cart_product_add_after">
    <observer name="checkout_cart_product_add_after_customprice" instance="Test\Slider\Observer\Customprice" />
</event>

And script that i have used in my observer is working like this

$item = $observer->getQuoteItem();
$item = ( $item->getParentItem() ? $item->getParentItem() : $item );
$item->setCustomPrice(10);
$item->setOriginalCustomPrice(10);
$item->setWeight(10);
$item->getProduct()->setIsSuperMode(true);


texts:
I modified the text for the product review form but the website doesn't reflect the update.

I edited:

vendor/magento/module-review/view/frontend/templates/form.phtml

I put uploaded it to my custom theme at:

app/design/frontend/{vendor}/{theme}/module-review/view/frontend/templates/form.phtml

I cleared all my cache and deleted all the static theme files but when I refresh the button text is still the same.

My custom theme reference magento's blank theme as the parent.

Did I upload my modified file to the wrong place?


texts: How to change the homepage to another url page

texts: How to change the current homepage to another url page I want?


texts: Validate system configuration based on two fields using backend model

texts:
I have 2 fields, x and y. If both the fields are same then I want to check save the changes, or else I want to give a message "Value mismatched. Unable to save changes".

system.xml

                      <test1 translate="label">
                            test1
                            <frontend_type>text</frontend_type>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </test1>
                        <test2 translate="label">
                            <backend_model>test/system_config_backend_test2</backend_model>
                            test2
                            <frontend_type>text</frontend_type>
                            <sort_order>2</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </test2>

Backend model class

public function save()
{
    $test2= $this->getValue(); //get the value from our config

    //need to get $test1 also. How to get??
    $test1 = ;
    if($test1 != $test2)
    {
        Mage::throwException('Could not saved');
    }

    return parent::save();
}

How to get the two values together so that we can compare and check? Thanks in advance!


texts: How to import MD5 password to Magento 2?

texts: I am trying to import customer info into magento2, but my old website use MD5 to store the passwords. Does magento2 support MD5 ? How to make MD5 work for magento2 ?


texts: Multiselect Dependent Field Custom Module

texts:
I have two Multi select Drop downs admin. i tried to make it dependent but not success.

Below is code :-

Multiselect 1:-

 $fieldset->addField('mainfiled_id', 'multiselect', array(
            'label' => Mage::helper('Custom')->__('custom main field'),
            'class' => 'required-entry',
            'required' => true,
            'name' => 'location_id',
            'values' => Mage::getSingleton('custom/userlocation')->getOptionArray(),
        ));

Multiselect 2:-

$fieldset->addField('dependent_ids', 'multiselect', array(
        'label' => Mage::helper('custom')->__('Dependent'),
        'class' => 'required-entry',
        'required' => true,
        'name' => 'pos_ids',
        'values' => Mage::getSingleton('custom/dependent')->getOptionArray(),
    ));

On based selection of Multiselect 1 need to update values of Multiselect 2.


texts: I need to get product collection by child category in magento 2

texts:
I need to get product collection by child category.

Category Structure:

Shop
  Colors
    Rushmore -- 12
    Boston Mill
    Little Cottonwood

Here is my code:

$colorId = 12 (This is my rushmore id(child id))
    $categoryFactory = $objectManager->get('\Magento\Catalog\Model\CategoryFactory');
                        $cat = $categoryFactory->create()->load($colorId);
                        $categoryProducts = $cat->getProductCollection()->addAttributeToSelect('*')->addCategoryFilter($cat);

                        foreach ($categoryProducts as $product){
                            print_r($product->getData());

                            //echo '<span>'.$product_name.'</span>';
                        }


texts: Related video Configuration not working for Product Video

texts:
I have retained 'No' for 'Related Video' in Stores > Configuration > Catalog > Product Video >

But, after I play the video on Product page, the related videos are displayed.

Is this a bug? How to fix this?

Have run command:

php bin/magento c:f


texts:
I'm having problems finding the right template to modify the tax in invoice file (look at attached image).

I want to make tax (in my case 'Käibemaks 20%') as small as the subtotal and total.
I managed to edit subtotal and total successfully in totals.phtml file, but cant seem to find the correct file or place for tax.

Thanks in advance for any help!

FORGOT TO MENTION: I'm using Fooman PDF customizer and email attachments modules


texts:
I am experiencing that some of my CSS rules are being ignored by Firefox, IE and Safari, while it looks right in Chrome, which I have developed for.
I have hard refreshed, cleared the browser cache, used computers that never visited the site before and browsershots. Furthermore, I cleared CSS and JS in the cache management. Checking the CSS files I can see that the browsers are refering to old versions of the CSS files that does not match what I uploaded to the server. Why are the browsers loading old CSS versions?
My website is: http://www.thirstforgreat.com/merchandise.html


texts: How to create a custom design product attribute

texts: I want to create a product attribute like below image. When user click add then it will add two new textboxes. if clicked on delete button it will get deleted. All the data will be stored serialized and stored. when open it will deserialized the data.


texts: How do I get an array of admin menu items?

texts: I am trying to get an array of all registered admin menu items that can be used from a bin/magento command to help choose a parent item to build a child item for. I have tried using \Magento\Backend\Model\Menu\Config->getMenu() but any of the methods on the returned model result in an empty array.


texts: cron.sh - expr and expr command not found

texts:
Incipit: I have never used sh before.
My server is using linux RedHat and every time I run cron.sh, the server sends me an email with:

shop/cron.sh: line 45: expr: command not found
shop/cron.sh: line 46: ps: command not found

Cron string: /bin/sh /home/mn0198/public_html/shop/cron.sh
I have read that it may be a problem of portability, but I don't even know where I should start.

#!/bin/sh
#
# Magento
#
# NOTICE OF LICENSE
#
# This source file is subject to the Open Software License (OSL 3.0)
# that is bundled with this package in the file LICENSE.txt.
# It is also available through the world-wide-web at this URL:
# http://opensource.org/licenses/osl-3.0.php
# If you did not receive a copy of the license and are unable to
# obtain it through the world-wide-web, please send an email
# to license@magento.com so we can send you a copy immediately.
#
# DISCLAIMER
#
# Do not edit or add to this file if you wish to upgrade Magento to newer
# versions in the future. If you wish to customize Magento for your
# needs please refer to http://www.magento.com for more information.
#
# @category    Mage
# @package     Mage
# @copyright  Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
# @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
#
if [ ! "$1" = "" ] ; then
    CRONSCRIPT=$1
else
    CRONSCRIPT=cron.php
fi

MODE=""
if [ ! "$2" = "" ] ; then
    MODE=" $2"
fi

PHP_BIN=`which php`

# absolute path to magento installation
INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'`

#   prepend the intallation path if not given an absolute path
# the following lines are 45 and 46
if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then
    if ! ps auxwww | grep "$INSTALLDIR$CRONSCRIPT$MODE" | grep -v grep 1>/dev/null 2>/dev/null ; then
        $PHP_BIN $INSTALLDIR$CRONSCRIPT$MODE &
    fi
else
    if  ! ps auxwww | grep "$CRONSCRIPT$MODE" | grep -v grep | grep -v cron.sh 1>/dev/null 2>/dev/null ; then
        $PHP_BIN $CRONSCRIPT$MODE &
    fi
fi

EDIT - Command test
I have run these through putty ssh(I don't know if it's correct):

command -v expr >/dev/null 2>&1 || { echo >&2 "not installed.";}
hash expr >/dev/null 2>&1 || { echo >&2 "not installed.";}
type expr >/dev/null 2>&1 || { echo >&2 "not installed.";}

command -v ps >/dev/null 2>&1 || { echo >&2 "not installed.";}
hash ps >/dev/null 2>&1 || { echo >&2 "not installed.";}
type ps >/dev/null 2>&1 || { echo >&2 "not installed.";}

All of them return not installed


texts: How do I run custom script from magento2 root folder?

texts:
Below url throwing Class customScript does not exist error. my test.php and customScript.php are in test folder.
Once i run http://127.0.0.1/magento2/test.php, getting "Class customScript does not exist error" .

Here is my test.php code.

<?php

  require __DIR__ . '../../app/bootstrap.php';

 $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);

 $app = $bootstrap->createApplication('customScript');

$bootstrap->run($app);

And in customScript.php

<?php

  class customScript extends \Magento\Framework\App\Http implements

   \Magento\Framework\AppInterface {

public function launch()
{
    $this->_state->setAreaCode('frontend'); //Set area code 'frontend' or 'adminhtml
    $id = 11588;
    $_product = $this->_objectManager->create('\Magento\Catalog\Model\Product')->load($id);

    echo $_product->getName();

    return $this->_response;
}

public function catchException(\Magento\Framework\App\Bootstrap $bootstrap, \Exception $exception)
{
    return false;
}

  }

How do I run php custom script on magento2

Please anyone able to achieve this?


texts: How to get product attribute 'size' value on category page in magento 2?

texts: How to show "size" attribute value on category page?


texts: How to disable a particular customer account without deleting the record from the table in Magento 2?

texts: I want to give customers an option to delete/deactivate their account if they wish to. However, I don't want to remove the data from the table. Instead, I want to retain the customer data but they should no longer be able to sign in unless they 'reactivate' their account using some steps not important right now.


texts: How to add a reference on home page that will redirect me to the category according to the language

texts:
I have created two store views, each one for a different language. I created two static blocks, having the same identifier but different content (one in English and one in Russian) and each one is assigned to the corresponding store view.

Then, I created two categories, one for the English and one for the Russian language and assigned from the display settings the corresponding CMS static block. When I change language, the category changes accordingly and the static block content is loaded correctly.
Now, I need to add one link on home page and the link should redirect me to this category page and display the correct static block content. For example when the user selects EN as language, display the English store view static block and when the user selects the RU as language, to display the Russian store view static block.

This is my code:

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

The problem with this is that family.html only loads in the English store view but in the Russian store view loads the page without the content (which is a different CMS static block).
How can I change the reference in order to load the page and the content in both stores?


texts: How to turn off the block of content heading?

texts:
I want to turn off the content heading block, any idea how I can do it from local.xml?

When I echo this in my template phtml file,

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

I will always get this content beading block which I don't need,

frontend\base\default\template\cms/content_heading.phtml

I tried with these two guesses but they don't work of course,

<remove name="content_heading"/>
<remove name="content.heading"/>

Any idea?


texts: What and why is the proper way to load a model

texts:
I have quite a lot of experience with Magento but I realized that I don't understand which way of loading a model is the correct one and why. I've read everything that I could, about the topic but people explaining stuff like this never actually go deep enough to explain, why use this specific method instead of another. Let's assume there is no repository for the model I want to load.

Up untill now I was always using model in constructor and then simply load it.

public function __construct(
    \Vendor\Module\Model\Something $somethingModel
) {
    $this->somethingModel = $somethingModel;
}

public function getTestById($id) {
    return $this->somethingModel->load($id);
}

And it always worked as intended, I'm also pretty sure it's or at least was used commonly in core.

But then I saw one of my colleagues using

modelFactory->create()->load($id)

As far as I understand factories are being used to create a new entity, for example, if I wanted to create a new product then I can create the factory, populate it with data and then save it. But then again, I started researching the topic and I saw example from Fabian Schmengler
(When Should We Use a Repository and Factory in Magento 2?) who was loading the model this way and also discouraged others from simply loading the models, he didn't explain why though besides saying that it's 'not part of the service contract'. As far as I understand repositories are part of service contracts so I don't see any connection here when it comes to loading models that are not available through a repository.

To add some more confusion I've also found a way of loading the model by getting the resourceModel from created modelFactory, it was presented by Vinai Kopp (How to implement service contract for a custom module in Magento 2?) and now I'm completely lost as I've always read that I shouldn't use resource models directly.

So yeah, could somebody tell me which is the correct way and why I should use it instead of all of the other methods?


texts:
Payfort\Fort\Block\Payment\Redirect
Incorrect dependency in class Payfort\Fort\Block\Payment\Redirect in /var/www/magento/app/code/Payfort/Fort/Block/Payment/Redirect.php
\Psr\Log\LoggerInterface already exists in context object

How to solve this error?


texts:
i need in product page add button or links, where when user click on this button, in cart we can send current product but with price = 0

i have button:

<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="addtocart" onclick="setLocation('<?php echo Mage::getUrl('checkout/cart/add', array('product'=>$_item->getId(),'qty'=>1)) ?>')"/> - button working, but how i can add value from price?

<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="addtocart" onclick="setLocation('<?php echo Mage::getUrl('checkout/cart/add', array('product'=>$_item->getId(),'qty'=>1, 'price'=>0)) ?>')"/> - not working

Let me know how i can do better?
Thanks


texts: Magento 2 - documentation library for modules

texts: I am big fan of Java developer docs - http://devdocs.io/haxe~java/lang/abstractstringbuilder#codePointBefore ., I dont find similar one for magento 2. Can anyone share the link if you have a know how?


texts:
Need some help from where we can get video help and other tutorial for Magento 2.0 and above.

Can someone please share valuable info or link in this post.

thank you in advance.


texts: How do I prevent the short description text from running together on a grouped product page?

texts:
As you can see on our grouped product page below, the text from the product short description is being run together in one paragraph. On Mac browsers, the text ends up being interspersed from different paragraphs.

Where can we control the layout of this type of page?


texts: Magento 1.9 Where is original price saved in order tables?

texts:
If a customer bought a product with special price (catalog price rule), the special price will be saved in sales_flat_order_item table. I wonder if the original price is also saved in this table? If so, in which database field it is saved in? I've looked through the whole table and I couldn't find where the original price is.

I found a column called Original Price. But it saves the special price as the original price.


texts: Can't recuperate the css and javascript magento 2

texts:
I put my site on virtual machine and i executed all the necessary permisssions also reindexed the site and flush cache and deploy_static but no result i get those error  instead

  requested URL
  /site/pub/static/version1543486866/adminhtml/Sm/shop4u/fr_FR/jquery/jstree/themes/default/style.css
  was not found on this server

(for all css and some javascript) please any advice ?? and thanks in advance


texts: Customer custom attribute value not getting set

texts:
I have created a custom attribute for a customer in Magento 2 and when I tried to save the value it gives me an error "Trying to get property of non-object".

How can I save the attribute value?
Here is my code to save the attribute.
Any help.

$customer is the factory class of customer

$customer->setCustomAttribute('custom', 'hello');
$customer->save();

$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
        $customerEntity = $customerSetup->getEavConfig()->getEntityType('customer');
        $attributeSetId = $customerEntity->getDefaultAttributeSetId();

        $attributeSet = $this->attributeSetFactory->create();
        $attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);

        $customerSetup->addAttribute(
                \Magento\Customer\Model\Customer::ENTITY,
                'custom',
                [
                    'type'         => 'varchar',
                    'label'        => 'custom',
                    'input'        => 'text',
                    'required'     => false,
                    'visible'      => false,
                    'user_defined' => true,
                    'sort_order' => 90,
                    'position' => 90,
                    'system' => 0,
                ]

            );
        $attribute = $customerSetup->getEavConfig()->getAttribute(\Magento\Customer\Model\Customer::ENTITY, 'custom')
            ->addData([
                'attribute_set_id' => $attributeSetId,
                'attribute_group_id' => $attributeGroupId,
                'used_in_forms' => ['adminhtml_checkout','adminhtml_customer','adminhtml_customer_address','customer_account_edit','customer_address_edit','customer_register_address'],
            ]);

        $attribute->save();


texts:
I have a requirement to make a custom report for customer behaviour. It touches the order table, customer table, log visits table.
Can anyone point in the direction as how to start with scratch reports in Magento2.


texts: Block/limit/filter addresses or email address?

texts:
We've been targeted apparently by a group that's testing stolen card numbers against our store. We've asked Paypal (our processor) for help and they've pretty much told us we're on on own.

The "test" orders thus far all seem to be using the same street address and email address, but I can't find any way to block these. A google search for

  Magento Block \anything else\

is rather unhelpful in this case since the term "block" is used extensively in magento's internal structure.

Is there any way to setup some rules, filters, etc in Magento to automatically reject orders that meet certain criteria (such as a known-bad list of emails, names, addresses, etc) and preferably toss up a generic "Bad Credit Card" error such as not to tip off our fraudster?


texts: An error has happened during application run. See exception log for details magento2 site

texts:
I am getting this error:

  An error has happened during application run. See exception log for details.

How to get more information that can help solve this?


texts: how to get short description on mail of refund on Magento2

texts:
i am want to show product short description on refund mail.
My error: Fatal error: Uncaught Error: Call to a member function getId() on null in
i am editing in : Magento_Sales/templates/email/items/creditmemo/default.phtml
My code is:
    <?php
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */

    // @codingStandardsIgnoreFile

    ?>
    <?php $_item = $block->getItem() ?>
    <?php $_order = $block->getItem()->getOrder();
    ?>

        <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">

<?= $block->escapeHtml($_item->getName()) ?>

<?= /* @escapeNotVerified */  __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?>

<?php
$objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
   $productId = $block->getId($_item);
   $currentproduct = $objectManager->create('Magento\Catalog\Model\Product')->load($productId);
   echo $currentproduct ->getShortDescription();

       ?>

Please help me.


texts: I was wondering if anyone know an extension for Magento that controls incomings and expenses related with processes. E.g.: I could add Office's supplies, cabs receipts, and so on. And by the end of every month for instance get Reports over all this information.


texts: custom tab to configurable products only

texts:
i added below code for custom tab

My New Custom Tab>My New Custom Tabcore/templatecatalog/product/mynewcustomtab.phtml

but it show for all products now if i want to enable it only for configurable product what should i do for it


texts: How to set session data in one array and unset after success in Magento

texts:
I need to set session data in array in magento ...not in particular variable...
And after success ..I want to remove data by array id ...
I created in variable...
But on success i have to be remove all session ...so I need to store session data in array..

  $vhelper->_vendorsession()->setVname($this->getRequest()->getPost('vname'));
            $vhelper->_vendorsession()->setEmail($this->getRequest()->getPost('email'));
            $vhelper->_vendorsession()->setPhoneNumber($this->getRequest()->getPost('phone_number'));
            $vhelper->_vendorsession()->setCompanyName($this->getRequest()->getPost('company_name'));

            $vhelper->_vendorsession()->setBrandsName($this->getRequest()->getPost('brands_name'));
            $vhelper->_vendorsession()->setAboutBusiness($this->getRequest()->getPost('about_business'));
            $vhelper->_vendorsession()->setSellerTrade($this->getRequest()->getPost('seller_trade'));
            $vhelper->_vendorsession()->setSellerPrimaryCategory($this->getRequest()->getPost('seller_primary_category'));
            $vhelper->_vendorsession()->setSellerUniqueProductCount($this->getRequest()->getPost('seller_unique_product_count'));
            $vhelper->_vendorsession()->setSellerUniqueSkuDepth($this->getRequest()->getPost('seller_unique_sku_depth'));
            $vhelper->_vendorsession()->setSellerPrimarClientType($this->getRequest()->getPost('seller_primary_client_type'));
            $vhelper->_vendorsession()->setCompanyWebsite($this->getRequest()->getPost('company_website'));
            $vhelper->_vendorsession()->setSellerCity($this->getRequest()->getPost('seller_city'));

I need to know that how can i set this in array..


texts: How to use products images from another server without downloading it into our application

texts: I'm trying to import about 2L products into my Magento 2.2.5 store. I have images in another external server. I want to use the images from that external server instead of downloading from that server into my application. means, the catalog images src is from another server. How can I do that? please guide.


texts: Magento 2- How to pre select and load CCAvenue on checkout page

texts:
I have installed and configure the CCAvenue payment method in Magento 2.3 successfully, now I want to pre-select and load CCAvenue on the payment section.

Please suggest.


texts: Magento 1.9.0.1 to 2.0.2. migration tool integrity check failed

texts:
I'm trying to use the magento 2 data migration tool, but i keep getting errors when i try to start data migration.

I've looked around for people who also get the integrity check failed notice, but their error seem diffrent and their solution don't work for me.

I'd be great if someone can point me in the right direction to solving this issue!

See below a screenshot for the command i executed en the output with errors. I added -vvv because someone on another forum/topic suggested it.


texts: image zooming is displaying in right side of the page

texts:
In Product view page, image is serving from this path : link

/media/catalog/product/cache/1/image/350x350/9df78eab33525d08d6e5fb8d27136e95/b/a/ball.jpg

it's using 350x350 size

but i wanted to serve from this path : link2

media/catalog/product/cache/1/image/850x850/9df78eab33525d08d6e5fb8d27136e95/b/a/ball.jpg

I need 850x850 size.

we are using : <?php echo $dexxtz->getImageFeatured($this->helper('catalog/image')->init($_product, 'image')); ?>

Edit

when i change size values in backend as below, images are serving from path i required. but in product view page, when we hover on product image, its zooming on right side of the page as link3 but before it was working fine as link4


texts: Can magento 2.1.0 GA smoothly upgrade to 2.1.1?

texts: Magento 2.1.1 is just released and I'd like to upgrade my 2.1.0 GA to 2.1.1. Since I already have data and modules in 2.1.0 so that I'd like to know if anyone have successfully upgrade to 2.1.1 from 2.1.0 GA? If so, could you please provide steps of your upgrade procedure? thanks


texts: setMetaKeyword() not working to insert data for categories magento 2

texts:
Following is the code for updating categories, but the meta keywords in not getting updated

 $categoryFactory = $obj->create('Magento\Catalog\Model\ResourceModel\Category\CollectionFactory');
          $categories = $categoryFactory->create()
                      ->addAttributeToSelect("*")
                      ->addAttributeToFilter('entity_id', array('in'=>$category_ids));

          $tableName = $resource->getTableName('catalog_category_entity_varchar');
          $tableDesc = $resource->getTableName('catalog_category_entity_text');

          foreach($categories as $category)
          {

             $metatitle= $csv[$id]['category_id'];
             $metadesc= $csv[$id]['meta_description'];
             $metakeyword= $csv[$id]['meta_keywords'];
             $description=$csv[$id]['meta_description'];

             $category->setWebsiteIds([1]);
             $category->setMetaTitle($metatitle);
             $category->setMetaDescription($metadesc);
             $category->setMetaKeyword($metakeyword);

              $category->save();

          }


texts: How i set the custom email template in magento 2.1

texts:
In magento 2.0 use this {{template config_path="design/email/header_template"}}

how i use this in magento 2.1


texts: How to get product images which are associate with its sku?

texts: I want to upload a csv file which contains product sku and i want to get product images which are associated with that sku.please help me out.thanks in advance.


texts: Issue when running deploy static content command - Magento 2

texts:
When running the php bin/magento setup:static-content:deploy command I am having an issue with the frontend of the site where it looks like it is loading the Magento/luma theme and ignoring all of my theme files.
Also, I have tried the --exclude-theme on the command to ignore the Magento/luma theme but no luck.
Here is how the website is looking when I run the command:


texts: Manage Currency Rates Dynamically in Magento

texts:
I want to know the mechanism of how to manage multiple currencies in our Magento store dynamically. It is required as their price rates varies at some time intervals.

By doing lots of goggling I came to know that this can be managed in Magento at "System->Configuration->General->Currency Setup->Scheduled Import Settings" (See the attached screenshot).
I am very much new to this concept that how to use this ‘Scheduled Import Settings’ option configuration.
Please guide me if anyone has this knowledge or used it before.


texts: Uncheck all shipping metod radio buttons

texts: I would like to uncheck all shipping methods. When a customer is on a checkout page, radio button is not preselected (all circles are empty).


texts: Add a custom column in the Newsletter Subscribers grid

texts:
I am starting with Magento 2, I want to add a custom column in the Newsletter Subscribers grid.
So I overload the file: newsletter_subscriber_block.xml.
            <block class="Magento\Backend\Block\Widget\Grid\Column" name="adminhtml.newslettrer.subscriber.grid.columnSet.SubscribedNewslettersLists" as="SubscribedNewslettersLists">
                <arguments>
                    <argument name="header" xsi:type="string" translate="true">Subscribed Newsletters Lists</argument>
                    <argument name="filter" xsi:type="string"></argument>
                    <argument name="renderer" xsi:type="string">Ljr\ListTypesNewsletters\Block\Grid\Renderer\SubscribedNewslettersLists</argument>
                </arguments>
            </block>

I recover my data well and it's great with DataObject I want to cross data compared to the row.
But I would like to return an array, like for example the store view.
I tried to use the "options" argument instead of "render" but impossible to recover the DataObject.
I noticed that the form for Newsletter Subscribers grid they do not use UI compoment, so I have to proceed with an xml file?
Thank you in advance for your help


texts: English to english translation problem magento2

texts:
I am translating the text("You canceled the coupon code.") with "Thank you for canceling the coupon code" (This is just english to english translation) from Magento\Checkout\Controller\Cart\CouponPost in my custom module. For this I have custom module and created en_US.csv file under app/code/MyVendor/MyModule/i18n/en_US.csv. My module is already enabled and I have so observers,plugins which are working fine.

But somehow this translation is not working on frontend side, anyone has similar problem? or am i missing something? or english to english translation is not possible?

I already tried cache:clean , di:compile :static-content:deploy.

I already checked Change success message on applying coupon code question


texts:
I use:

bin/magento sampledata:deploy

And while its working it finishes with "Killed"

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

Any ideas as to what might be going wrong?


texts:
I work in project with marketplace extension, and I like to Customize the shopping cart to add some information like, the name of the vendor and it's logo, but I can't do that.

Someone please can help me, how can I do that ?


texts: The problem with importing Product Sheet in the category, the title that has a comma

texts:
When importing faced such problem. If the path search has regular commas after each comma creates a new category.
Example:
Default Category/Event,Music and Image/

need to create a single category("Event,Music and Image"),but it turns out several categories^
1) event
2)Music and image.

tell me how to import category with a comma?


texts: I want to implement a functionality in my magento site to search product by "Search by image".


texts: Emails errors and not being sent due without any custom templates

texts:
I'm on Magento 1.9.* and my emails are failing because of this error:

Exception: This letter cannot be sent. in public_html/app/code/core/Mage/Core/Model/Email/Template.php:385

On further review this code is returning false because getTemplateSubject is empty:

public function isValidForSend()
{

Mage::log('getTemplateSubject: '.$this->getTemplateSubject(), null, 'email.log'); //EMPTY

   return !Mage::getStoreConfigFlag('system/smtp/disable')
        && $this->getSenderName()
        && $this->getSenderEmail()
        && $this->getTemplateSubject();
}

The thing is I don't have any custom templates. When looking at the templates folder @ /public_html/app/locale/en_US/template/email, This is what I see

I have templates here but they all have a _backup_date.html file associated with it. Is this where my issue lies? What process would do such a thing to rename all these files?


texts: How to get direct index value of array post

texts:
How to get direct values for array post

  [store_image] => Array ( [delete] => 1 [value] =>
  test/1/test.jpg
  )

I am using this to get the value of check box

if ($main_images=$this->getRequest()->getPost('store_image'))
    {
      $delete=$main_images['delete'];
    }

but if check box is not checked it gives me Notice

  Notice: Undefined index: delete

How to prevent from this notice Magento way?


texts: importing customers from magento 1 that have more than one address

texts:
I have around 7000 customers that i exported from magento 1 and now need to import to magento 2.

The customers have more than one address, any idea how i can fix this ?

Header contains invalid attribute(s): "website", "billing_prefix", "billing_firstname", "billing_middlename", "billing_lastname", "billing_suffix", "billing_street_full", "billing_city", "billing_region", "billing_country", "billing_postcode", "billing_telephone", "billing_company", "billing_fax", "shipping_prefix", "shipping_firstname", "shipping_middlename", "shipping_lastname", "shipping_suffix", "shipping_street_full", "shipping_city", "shipping_region", "shipping_country", "shipping_postcode", "shipping_telephone", "shipping_company", "shipping_fax", "is_subscribed"


texts: Display problems in backend product page magento 1.7

texts:
Do you have any idea why I'm having this problem when I open a product page in backend ?

I'm struggling to find out what's breaking the product page. I disabled all 3rd party modules. When I refresh I have the correct display for second a half and then, boom, it simply breaks.

Do you have any idea ?

Thanks


texts: Problem with showing customer avator in account information page

texts:
I have added a custom image field to customer and I want to show it in customer information page. when it is uploaded it saves into pub/media/customer folder.
Now I want to have its url to see the image in browser, whereas I can see http://../pub/media/catalog/.../catalog1.jpg but when I enter url http://../pub/media/customer/.../avator.jpg in the browser it returns 403 forbidden error. Any suggestion?


texts: How do I capture multiple invoices per order?

texts:
according to the documentation:

Multiple Invoices can be created per Order, containing as much or little of the purchased item quantity as you desire.

How do I do this? When I select ‘Invoice’ from a sales order, I have no options to change the quantities of items to invoice, and I can only invoice all of the items in the order.

Any help appreciated. We’re on EE 1.12.


texts: Difference between community and Enterprise Magento 2 extensions?

texts: What are differences between Magento 2 Community and Enterprise extensions? I am aware that there is absolutely no difference for Magento 1. But is it the same also with Magento 2?


texts: Sorting custom attribute not working in magento

texts:
I need to sort the product collection by custom attribute called popular which having value 1 or 0. Below is my code,

    $collection1 = Mage::getModel('catalog/product')->getCollection();
    $collection1->addAttributeToFilter(array(array('attribute' => 'status', 'eq' => 1)));
    $collection1->addAttributeToSelect(array(array('attribute'=> 'price')));
    $collection1->addAttributeToSelect(array(array('attribute'=> 'special_price')));
    $collection1->addAttributeToSort('popular', 'desc');
    foreach ($collection1 as $col) {
                        echo $col->getId();
                        echo '<br>';

    }
    exit;

Here I just printing the product id and every load it is showing different products. I re-indexed the products and I have set the product attribute options all to yes in admin. Like Used for Sorting in Product Listing to yes,  Used in Product Listing to yes, but still Im not getting unique product list. Is there something I missed here ..? And if we apply two sorting to the collections which sort will it take ?.  please help me.

Note: I have tried with price attribute type for this attribute but still no luck (I thought if the attribute type is price then sorting will work correctly)

Update 1: I already tried with setorder, but that is also not working.


texts:
I am trying to inject a javascript file in specific page in my admin form. Currently I am overriding a community extension and so far the backend part of the code works as expected. But so far my attempts to load the script were unsuccessful.

An answer in different post states that there is a specific order when creating the appropriate xml node, a quote from there:

  To load it on just admin dashboard use the (full 3 element) route with underscores as separators to the page

So, I've dumped the following values in my page:

Mage::app()->getRequest()->getControllerName(); // -> adminhtml_sport
Mage::app()->getRequest()->getActionName(); // -> edit
Mage::app()->getRequest()->getRouteName(); // -> sport
Mage::app()->getRequest()->getModuleName(); // -> sport

What I've added in my xml file:

<adminhtml_sport_sport_edit>
    <reference name="head">
        <action method="addJs"><script>path/custom/script.js</script></action>
    </reference>
</adminhtml_sport_sport_edit>

did not work. As a last note, I would like to ask: Can this be achieved by using the config.xml file in my custom extension and nowhere else?. Thank you for your time.


texts: How Can I Solve Product Zooming Images Extracting as Two Imges

texts: When i try to zooming Products Image, Its Extracting as a two images in box,  How can i solve this Extracting  error.


texts: Paypal : (#11452: Merchant not enabled for reference transactions)

texts:
Magento 2 :

I am not sure if it's only technical issue but since Paypal think it is..

While tring to integrate a billing agreement on customer account (frontend), I have this message with paypal :

  Merchant not enabled for reference transactions (#11452: Merchant not
  enabled for reference transactions).

I have no idea at all, or where looking at. Any idea ?


texts:
I am trying to download version magento 1.9.0.1 on windows 8, but it wont unzip, it displays a message like  "windows cannot open the folder". the compressed (zipped) folder 'C:\Users\personal\downloads\magento-1.9.0.1.zip' is invalid". on the Magento website the filesize is 32.72 MB whereas when the download apparently is 'done' the zipped file at hand is only 4985kb (4.86 Mb).

I would really appreciate if somebody would help me with this, thanks


texts: How to queue "New Order" email before "New Invoice" email?

texts:
I'm working on a Magento CE 1.9.2.2 install. The cron is setup and all emails are being sent.

Now when a customer completes an order and returns to the success page after making the payment he/she will receive two emails. The first email is the "New Invoice" email and the second email is the "New Order" email.

It doesn't seem very logical to receive an invoice before receiving an order confirmation. And sometimes minutes can pass before the order confirmation is sent, while the customer has already received the invoice.

So I want to change the order in which these two emails are sent. I want the first email to be the "New Order" email and the second email to be the "New Invoice" email.

Is there an easy solution to make this work or would this require complex customizations?


texts:
On my webshop I have the option to quickshop from the category overview, which opens a lightbox if the product have different sizes. In this lightbox I have added the short description for the given product, but the text gets too long.
Therefor i would like to limit the text, so it is cut off at some point with "..." following it. Hereafter I have a "Read More" link.
The code I use to display the description with is;

echo $_product->getShortDescription();

Is there some way to limit it? It should only be limited in this lightbox and no where else on the homepage.


texts:
I want to change my checkout link in the top links on my magento site to go to the basket instead of the checkout process.

I have found ways of just removing the links via XML files but no document son editing where the link takes you.

So the clarify i need to change the top link "checkout" to take the customer to the basket and not the checkout process. Can anyone help?


texts: Magento API endSession() return not correct value

texts:
Calling the web service endSession(),  returns a message without value.
Magento 1.7.0.2

Request XML

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento">
  <SOAP-ENV:Body>
    <ns1:endSessionParam>
      <sessionId>580529f990xxxxxxxxxx97d873c9fc0</sessionId>
    </ns1:endSessionParam>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Result Magento 1.7.0.2

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns1="urn:Magento">
    <SOAP-ENV:Body>
        <ns1:endSessionResponseParam/>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Magento ver. 1.9.0.1 return correct response

Result Magento 1.9.0.1

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns1="urn:Magento">
    <SOAP-ENV:Body>
        <ns1:endSessionResponseParam>
            <result>true</result>
        </ns1:endSessionResponseParam>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

How can I fix this bug ?

//MAGENTO WS-I COMPILANCE MODE TRUE
$proxy_wsi = new SoapClient('http://magxxxto.com/index.php/api/v2_soap/?wsdl', array('trace' => 1));
$session_id = $proxy_wsi->login((object)array('username' => 'apikeyUsername', 'apiKey' => 'apikeyPassword'));
var_dump($session_id);
$tmp=$session_id->result;

$flag=$proxy_wsi->endSession($session_id->result);
var_dump($flag);
exit;

return flag empty stdClass but no with Magento 1.9


texts: hotmail & webmail unable to receive transactional email? why? my site is on magento 1.8.3.8

texts:
During my customers signup an account on my website magento 1.9.3.8 if its an gmail account the person receives confirmation if its a hotmail or a webmail he is unable to receive any email?

my site is - semipreciousking.com