All Questions

39,728 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
98 views

How to do the same controller action to create an image for one button but not for another?

We are calling same controller action for 2 buttons for create product pro-grammatically and assign a custom image for that product. 1. create - custom image uploading for newly created product 2. ...
6
votes
0answers
708 views

Magento 1.9.3.1 email template for set password by admin not existing in transaction mails?

I got a strange problem with email template for this case and can't find the correct template. How to reproduce: admin user => Admin -> customers -> manage customer ->... -> change password Now the ...
6
votes
0answers
1k views

Multi store with different domains, cookie store is causing problem

Please note that it's not another "how to setup multistore". I've read other questions and it seems that my problem is not described. Following are not answering my question: set default page to ...
6
votes
1answer
490 views

How to create custom cache and store/get something in Magento 2

I want to store any dummy data in custom cache and get that data in my own custom cache. I have followed this link but not telling much explanation.
6
votes
1answer
3k views

Mass action in custom grid block Magento 2 not showing

I've created a product grid block following this tutorial, right now i want to add new massAction item but the mass action field won't show up in the toolbar grid, here's the xml file: <?xml ...
6
votes
0answers
99 views

Adding a variable for each Simple product within a Bundle in Magento 1.9 CE

In our Magento store (1.9 CE) we have some Simple products which fit multiple applications. So we want to create a Bundle product for each application and include the Simples in them. The problem lies ...
6
votes
4answers
5k views

Magento 2 : Successful Order with Failed Payment

I am using an Indian payment gateway (PayTM), and payment gateway is working fine (in terms of successful payment and failed payment URLs). However, The payment succeed or failed, Magento still : ...
6
votes
1answer
1k views

Magento2 : Extra Checkout Step after Review & Payments Section with Place Order Button

I have added custom checkout step after Review and Payment, all steps are working fine but issue is Place Order button display on Review and Payment. How to move Place Order button to last added ...
6
votes
0answers
612 views

how to update product preview image on product page like the functionality on list page , magento2

I created a configurable product, use attribute colour and size. There is a setting on attribute colour: "Update Product Preview Image -> yes." so that, on list page, when i click the colour, the ...
6
votes
1answer
322 views

Magento 2: What is the proper format for a javascript widget's _bind() method?

Using 2.1.3, I've been trying to bind page elements to internal javascript widget methods, and have been unsuccessful - the docs (http://devdocs.magento.com/guides/v2.0/coding-standards/code-standard-...
6
votes
1answer
190 views

Issues with deplyoing static files command and frontend loses css and js

I have a serious issue which is ongoing with running php bin/magento setup:static-content:deploy First, I installed Magento 2.1.3 by uploading the files and run the setup wizard, all went fine, ...
6
votes
0answers
284 views

Magento2 : custom rate for shipping method

In magento2 - I want to use custom price for one of my shipping method per quote. I want to show custom amount for only current quote. how to do it. Like there is a shipping method. "CUSTOM FLAT ...
6
votes
0answers
627 views

Split Order with two different shipping method in Magento 2

I am using Magento2. I want to do with Split Order with two different Shipping Methods. Buyers should select two shipping methods. One should be comes from External API and other should comes from ...
6
votes
0answers
4k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
6
votes
2answers
562 views

Gruntfile.js, Autoprefixer and bin/magento setup:static-content:deploy

The vanilla checkout of Magento2 contains a Grunt boilerplate including the autoprefixer task. It works all sweet and dandy (according to our frontend devs). However now as I need to make the whole ...
6
votes
0answers
2k views

Why is Magento 2 local developer mode site with nginx and xdebug enabled is super slow?

I am getting a 50 second server response time for a category page. When processing, the following is shown in top: 4312 www-data 20 0 488280 146704 41816 R 99.7 1.8 1:11.54 php-fpm7.0 I ...
6
votes
1answer
946 views

How to dynamically load phtml file on a button click in Magento 2

I have a phtml file view.php and its block class View.php. I need to show that phtml on a modal on checkout page and to do that I'm pre-loading phtml file using following code : <div id="modal-...
6
votes
0answers
1k views

Magento 2: Get Order Information Outside Magento Issue for Date

I have below script, trying to get all Orders. I have issue with Date. That i have solved using https://github.com/magento/magento2/issues/7560 //place this before any script you want to calculate ...
6
votes
0answers
1k views

Magento 2 Admin- Invalid data provided for linked products

Getting an error " Invalid data provided for linked products " when adding related products to a product from the admin panel and saving Indexer crons, already setup Magento CLI version is : 2.1....
6
votes
0answers
765 views

Magento : Validate Product against shopping cart rule

I have a Shopping cart rule which applies to a particular category with some discount. I have a situation wherein I want to validate product against this rule whether this rule can be applied to that ...
6
votes
1answer
1k views

Magento 2: How to change Advanced Search from “AND” to “OR”?

I'm stuck with this situation: I have 2 select-type attributes: A and B for example In both of the attributes, I have the same list of Options (but they are different option ids) For example In ...
6
votes
3answers
5k views

Magento 2 bin/magento not working as it should

I've just installed a fresh copy of Magento 2.1.2 from composer. I've previously installed Magento 2 in a different directory completely fine and the commands all run as they should. This has only ...
6
votes
0answers
638 views

Magento : Template block has not been whitelisted error

I have a site with a CMS page using the 'core/template' block, and getting an error Security problem: core/template has not been whitelisted - even though the 'core/template' is clearly listed in the ...
6
votes
0answers
1k views

Paypal Payflow Pro : Not signed up for this tender type - 25

I am using PayPal Pay-flow pro payment method on my magento store. Now when I enabled it "PayPal express (papal UK express)" is automatically enabled. Now issue is when I try to place an order this ...
6
votes
2answers
1k views

New website/store view, all pages 404 (including homepage)

As per the title, I've set up a new store on a different domain and all pages including the home page are returning 404. I've tried pretty much everything, and I'm wondering if any of you can think ...
6
votes
0answers
134 views

How to send custom request to authorize with Direct Post in Magento2?

In magento2 - I want to capture some amount other than order manually from authorise. How to create manually request? And How to sent request to authorise with Direct Post method.
6
votes
2answers
1k views

Product created programmatically unable to add to cart in magento 1.9.2?? It gives error “The product could not be found.”

public function createcustomerproduct($data) { Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product = Mage::getModel('catalog/product'); try { $...
6
votes
1answer
1k views

Error during upgrade to Magento 2.1 from 2.0.7

Since a couple of days i try to upgrade my "native" Magento 2.0.7 I use composer as suggested by documentation : composer require magento/product-community-edition 2.1.0 --no-update; composer update; ...
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
6
votes
0answers
855 views

Magento 2 editor.js Unexpected Token

The content editor in the backend is not displaying on my site. I'm getting the following error: editor_template.js:1 Uncaught SyntaxError: Unexpected token < editor_plugin.js:1 Uncaught ...
6
votes
0answers
777 views

magento 2 can't use same url key for different store view pages

I have 2 store view on my website, one in English and one in Italian, I'm trying to set different privacy and cookie page for each view, but I need to use the same url key, to autoredirect to the ...
6
votes
1answer
549 views

How can I get only the Store View attributes, without the inherited Global data? I only need the diffs

I'm using the internal Magento APIs to get the product data on a store view level. I only want to get the values that are on that store view level, not the global values that in inherits. But it ...
6
votes
0answers
505 views

_origData is null for some models in Magento 2 before or after save

Let's get a customer save process from the admin panel as an example. We have an event observer for model_save_before and trying to get a set of values for the model that have been changed upon the ...
6
votes
1answer
1k views

How to get the product id and SKU code of the product selected

I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a ...
6
votes
2answers
7k views

URL Rewrite: From category to CMS Page

I've created a CMS Page. URL Key = about/page1. I've created some Categories. One of them, category #1, it's called about. URL Key = about and its first subcategory, category #2, is named Page ...
6
votes
0answers
81 views

Why is admin logging me out?

I go to the admin login in Chrome after clearing all cookies and everything. First thing I check Chrome cookies. I see only one cookie. Name: adminhtml Domain: .mysite.com Path: / Created: ...
6
votes
1answer
277 views

Using the secret admin frontname in a new adminhtml router

I have a module that uses an abnormal naming convention. Instead of NAMESPACE_MODULE it uses NAMESPACE_MODULE_SUBMODULE: $ find app/code/community -type f app/code/community/Acme/ModuleName/Bar/etc/...
6
votes
2answers
315 views

How to prevent Magento 2.0 from emptying cart after failed payments

How to prevent Magento 2.0 from emptying cart after failed payments? I could find multiple solutions for this problem in Magento 1.X but could not find anything for 2.0 I am sure this must be a ...
6
votes
1answer
318 views

How to use REST API for mobile App?

I have found on dev docs that REST API is recommended for mobile application. I have created integration from magento admin panel and tried to access resources with passing access token in header. ...
6
votes
0answers
1k views

How to add field dependency in admin customer form UI component

I'm trying to add field dependency with two custom fields added to admin customer form by extending customer_form.xml in local extension. Here is one answer Dependency in admin form field in ...
6
votes
0answers
829 views

Captcha not visible Create Account or Login, but is visible Forgot Password

I'm trying to get Captcha to work on "Create an Account" without any luck. The capchta image is not visible nor is "Please type the letters below" text or text box. If you try to create an account ...
6
votes
0answers
718 views

Ways of keeping Configurable product pricing consistent with Simple product pricing

By default, Magento ignores the Price set within the Simple product which forms part of a configurable (unless the Simple item is added to the basket rather than the Configurable). Many organisations ...
6
votes
0answers
1k views

Displaying Subcategory Blocks Magento 1.9.2

I'm having trouble displaying subcategory blocks in Magento. I have followed several solutions posted on here and this tutorial. I created a static block with this code: {{block type="catalog/...
6
votes
0answers
303 views

Magento 2 - Alternative use for getOrderPlaceRedirectUrl function

I am a newbie for Magento 2 module development. Have been working on Magento 1.9.x for quite a time and also used to work with getOrderPlaceRedirectUrl function for sending request to a payment ...
6
votes
0answers
415 views

Split Database: Is It Possible to Append Database Name to All Queries?

Magento 2 EE comes with a split database feature, where three master databases with their own distinct tables work for the platform. Has anybody tried to do something similar in Magento 1 (CE)? I'm ...
6
votes
4answers
4k views

PayPal gateway has rejected request. Payment has already been made for this InvoiceID

I tried for an hour, but I can't find the solution. I using sandbox account for paypal check out and I need express check out, credit and debit card and paypal account payment method, how can ...
6
votes
1answer
560 views

How can I use the Grid Serializer for custom input column

I have created a custom magento extension that lists the products in the same way as 'Manage Products' but with an extra input column where people can enter a quantity for each row which is then used ...
6
votes
1answer
2k views

“Interface Locale” admin language problem

In my admin page, the "Interface Locale" dropdown is not working. I already switched the default language to German, but is still shows English. The same with Chinese. How can I solve this problem?
6
votes
1answer
1k views

Websites with different tax classes for one country

What is the best way to have different taxes in different websites for one country? Scenario: Website 1: Tax Rate for Germany -> 19% Tax Rate for Austria -> 20% Website 2: Tax Rate for Germany -> ...
6
votes
2answers
3k views

How to change currency on checkout with paypal

I am using AED as my base currency and PayPal is not Supporting AED. i want to convert it in to US Dolor while checkout with PayPal.

15 30 50 per page