Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
2
votes
1answer
40 views

admin area getting error 'require is not a function at editor.js:6' after upgrading magento 2 from 2.1.1 to 2.1.17

After upgrading Magento from version 2.1.1 to 2.1.17, I am facing this error Uncaught TypeError: require is not a function at editor.js:6 across admin area especially in edit pages when I look ...
0
votes
2answers
81 views

call contact form on phtml page

I called contact form in my .phmtl page using this code: <?php include ($block->getTemplateFile('Magento_Contact::form.phtml')) ?> The problem is when I click on submit, there's no success ...
2
votes
0answers
41 views

Magento 2.1.10: Sort by Special Price doesn't working

I'm working on category page, and try to sort the products collection by Special Price. I've override setCollection() of \Magento\Catalog\Block\Product\ProductList\Toolbar And the result is the only ...
2
votes
2answers
160 views

Magento2 - New order e-mail for us

we have an extension that sends out a new order e-mail to our own private mailbox. Which is different from the ones that customers get. We print these mails automatically on a receipt printer. We use ...
1
vote
1answer
357 views

how to add a custom customer attributes under shipping address in checkout page in Magento2?

how to add a custom customer attributes under shipping address in checkout page in Magento2? i m using this extension for customer attributes. In customer registration page In Shipping Page
0
votes
0answers
22 views

How can I add custom heading in tiny mce 4 editor in Magento2?

I want to add custom heading in tinymce 4 editor in magento2. Is anyone having knowledge? like below screen shot.
0
votes
0answers
21 views

Add bundle product in Wishlist with child product which selected

I am trying to add bundle product into wishlist but there are one issues we found. When i select the child product which associated with bundle product. When we clicked on Add to wishlist, only bundle ...
0
votes
2answers
207 views

Authorize.net : An error occurred on the server Please try to place order again

I have configured Authorize.Net Payment method in Magento 2.1.7, In checkout page, I'm using credit card transaction both production and test mode while placing the order, I am getting "An error ...
3
votes
2answers
196 views

Magento 2 - How to change sales order grid column label?

How could i change this label? Tried with sales_order_grid.xml didn't work. <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
1answer
27 views

UrlRewite one website to another?

Is it possible in magento to redirect existing site one page to another website? Like. http://magento-website/demo to http://magento-website-2/demo Without using htaccess and php header function. ...
0
votes
0answers
24 views

if I delete a product from the admin, I can't access old orders anymore

I am running magento 2.1. and recently I realized that if I delete a product from the admin, I can't access old orders anymore...🧐 Does anybody have an idea what should I do?
0
votes
0answers
40 views

In magento2 , how to show dynamically added customer attributes in customer grid?

In magento2 , how to show dynamically added customer attributes in customer grid? I have used this extension dynamic added customer attributes in backend Customer_gitd
3
votes
1answer
35 views

Adding Textarea as filter in ui listing

I want to add filtering for a ui listing <item name="filter" xsi:type="string">text</item> Using this i am able to add filter but its a textbox. I want it to be a textarea any solution ...
1
vote
1answer
162 views

Magento 2 set created date to order when creating

I have followed the below steps to create an order in magento 2. But i want to set my preference date when creating it. How to create order programmatically in Magento 2?
2
votes
1answer
47 views

How to add a custom attributes from backend in registration page in magento 2

How to add a custom attributes from backend in registration page in magento 2 Refer Image:
0
votes
0answers
288 views

Magento 2 dynamic custom column in UI listing, sorting not working

I have create two columns "Sending" and "Remaining". The value of them is based on the "In stock" column. When i tried to sort the order of one of column then it doesn't work. It gives me an error. eq ...
0
votes
1answer
33 views

Magento 2.1 adminhtml Action 'Edit' give 404 while Index works

Update: Here is what the Developer Toolbar gives me on the 404 page: Mode: Developer Controler Module: Magento_Backend Controler Class: Magento\Backend\Controller\Adminhtml\Noroute\Index ...
0
votes
0answers
20 views

Remove “delete product” option for user role

I have a custom user in my magento store backend. I want to restrict him from deleting any products, just add/edit what is already there.
0
votes
0answers
30 views

Magento2 weight and qty decimal seperator

How to remove weight decimal from product page? Right now I set 3KG on admin panel but it shows 3.0000 in product page Also i have this issue on QTY too. it shows 5.00. I use Magento 2.1.8
1
vote
0answers
34 views

How to call custom block file in custom theme in magento 2

How to call custom block file in custom theme in magento 2 app/code/Cm/Mod/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
29 views

Magento 2 Default logo on Email

I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the ...
0
votes
2answers
70 views

Magento 2.2.1 error during static content deploy

I have a own template in app/design/frontend/tm/XXX-theme. I built it like described in the dev docs. Parent theme is luma. Magento run in developer Mode. After i use setup:static-content:deploy ...
0
votes
2answers
62 views

How to remove **A** sign in price of australia currency in Magento 2

I want to remove A sign before dollar sign.I setup Australian Dollar currency in Magento2
0
votes
1answer
77 views

How to apply discount per item?

Magento is giving a discount which applies in the total and another method which is applying the custom price. I don't want to change the price. I just want to change in the subtotal and total price. ...
2
votes
1answer
62 views

In magento 2 how to add custom data in sales order confirmation mail template

In magento 2 how to add custom in data sales order confirmation mail template
2
votes
0answers
29 views

After i enable a terms and conditions its reflects a error in one page checkout in magento 2 [closed]

In magento 2 after i enable a terms and conditions its reflects a error in one page checkout Refer Image: https://prnt.sc/nw9ivm
1
vote
3answers
455 views

In Magento2, how to get the product description from Sales order table

I want to display the order id, item description, sku and price of products from the sales order and sales order item tables. For some reason, the description columns in my sales order item table is ...
1
vote
0answers
25 views

Magento 2 add custom shipping cost to order

How can i add custom shipping cost to the order here is the code. $shippingAddress = $quote->getShippingAddress(); $shippingAddress->setCollectShippingRates(true) -&...
0
votes
0answers
89 views

Magento 2: jQuery update to 3.x causing issues with RequireJS

I've just updated my jQuery version in Magento to 3.1.4, now all of a sudden in my console it's showing this error. I know the mobile isn't compatible yet though the Require.js errors were never there,...
0
votes
1answer
40 views

Magento 2 - Configurable how to get Name of first associated product

I need to get the name and assigned attributes value of the first associated product of configurable in Magento 2. I use something like this: $_product->getResource()->getAttribute('color')-&...
1
vote
1answer
33 views

How to set varchar on installschemas

I would like to add a new column inside the magento2 database. Write now i add a \Magento\Framework\DB\Ddl\Table::TYPE_TEXT as the column type. here is my code if(!$installer->getConnection()-&...
1
vote
1answer
33 views

Magento 2 products backend, product title in list not the same as what is in product

When I load the magento backend, the product title does not reflect the title that is in the actual product. For example, the product might say, "New jewelry ring set" and but in the actual product (...
0
votes
0answers
15 views

Render UI-component through block

I'm quite new to Magento's front-end and could not find any results on what I'm looking for. I currently have a table which contains many rows and need to render a ui-component button for each each ...
0
votes
2answers
48 views

Magento 2 create Order programatically and set a custom date to it

I have a order to create an order in magento 2. But the order it create is with the date when i run the script. I don't want to save the current date for the order. I want to set a certain date to the ...
2
votes
1answer
110 views

How to add custom dropdown in checkout page magento2 [closed]

I want to add custom dropdown in checkout page where dropdown contain following value:option1 and option2
3
votes
1answer
63 views

make sticky header without custom js code

I tried to make the header sticky using the default jquery code: $('.page-header').mage('sticky', { container: '.page-wrapper' }); I added this piece of code into the theme.js file in the ...
0
votes
0answers
40 views

How can i add multiple images for variable products

Is there any way to upload multiple images for a variable product? For Eg. I have a product, let's take the T-Shirt. I have 1 T-shirt with 3 color variant. I want to upload 3 images for each color ...
0
votes
0answers
22 views

Add custom attribute to myorder magento2.1

How to add custom attribute like country of manufactured into my order page in customer panel magento2.1? Also i want to add configurable variations into my order page, EX: bought T-shirt red size m ...
1
vote
2answers
51 views

Decimal of price and qty magento2.1

I have a problem in my customer panel myorder tab. In my order i see price 12,125.0000 and QTY: 5.0000 how should i remove decimal from them? it is just in my order and methods that i used is like ...
1
vote
2answers
18 views

Multiselect attribute created not saving in Db

I have created a custom Multiselect product attribute. It has been created successfully but the value are saved when assigned store view specific. But if i select an option and save in global it is ...
0
votes
0answers
27 views

Configure cart rule in magento2?

I want to create a cart rule with the following conditions: Buy 3 products at £50 (Price of each product must be equal to £30). How to do that. Thanks.
1
vote
1answer
72 views

Magento 2 Uncaught TypeError: Argument 1 […] \DataSetup::__construct() […] must be an instance […]

I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment after adding some new modules, compiling and ...
0
votes
0answers
57 views

Magento2.1 top menu cache

Want to create cache for magento 2.1 menu to don't send request. Created cache folder and on menu.php on Block set directory but got below error: Error filtering template: Notice: Undefined ...
0
votes
0answers
29 views

How to increase the width of Tier Price box in advanced pricing

I overwritten Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AdvancedPricing:getTierPriceStructure() Custom fields are added to the advanced pricing section but the width of the custom fields ...
0
votes
2answers
120 views

How to change of out stock error message in magento2?

I need to modify out of stock error message in cart page in magento2? In Magento\CatalogInventory\Model\Quote\Item\QuantityValidator.php: public function validate(Observer $observer) { /...
0
votes
0answers
33 views

Magento 2 Customer dashboard ../customer/account/ error Object DOMDocument should be created

i have problem with magento 2 ../customer/account error Object DOMDocument should be created. In report file i have this: a:4:{i:0;s:37:"Object DOMDocument should be created.";i:1;s:14394:"#0 /...
0
votes
1answer
37 views

Magento2 production mode error magento2.1

I got below error on my category pages and product pages after setting minify html to yes: Parse error: syntax error, unexpected ‘<‘, expecting end of file” magento2 production mode What should ...
0
votes
1answer
434 views

Magento 2.3.0 product image cache resizing images

All my images are 1024X1024 HQ images. When magneto move the imaged to cache folder it resize it and make i get smaller images with white frame all around it (see images "before").  I try to fix it by ...
3
votes
3answers
800 views

How to enable or disable crons in Magento 2?

I checked in cron_schedule table, cron are disabled. I want to enable or disable crons. How can I do that?
2
votes
0answers
28 views

Unable to resolve the source file. magento 2 admin sales order grid

In admin. We are getting this error open SALES=>Orders. Unable to resolve the source file for 'adminhtml/Magento/backend/en_US/Magento_Ui/templates/collection' #0 /var/www/abc.com/vendor/magento/...