Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

Pass data to child template in cart-items of checkout page

My site is a market place site where vendors(sellers can sell their product). Now i want to customize the to group items in cart by each vendor like this: http://prntscr.com/hmsam6 ...
0
votes
0answers
19 views

Magento2.4- Order does not register as paid after making payment with payment gateway

I'm using one of the payment gateways. It's called Urway/one97. When the customer makes a payment with the payment gateway not register as paid + the order status changes to Complete. I sent the ...
0
votes
0answers
7 views

order does not register as paid after making payment with payment gateway

I'm using one of the payment gateways. It's called Urway/one97. When the customer makes a payment with the payment gateway not register as paid + the order status changes to complete. I sent the ...
2
votes
1answer
1k views

Getting Products by category id! Magento 2.1 REST

How can I get products of a specific category? For Example If I hit https://www.example.com/index.php/rest/V1/categories/[category_id]/products it should return all products of the same Category [...
2
votes
2answers
1k views

Add select quantity options on product page Magento 2

I want to change quantity textbox to quantity dropdown on product page. I found solutions that work for magento 1 not for magento 2. There is less information/doc about magento 2. It's being very ...
0
votes
1answer
967 views

When creating an order via the Magento2 Rest V1 API, can I disable customer emails?

I'm working through integration of orders from external sources into our Magento store. We sell directly through our Magento instance as well as through some other carts (cartLoom). When an order is ...
1
vote
5answers
4k views

Magento 2 maintenance mode doesn't work

I have website maintenance mode and it allow open just homepage. It show errors when open example categories, products and admin dashboard, Error: 1 exception(s): Exception #0 (Exception): Unable to ...
2
votes
2answers
2k views

How to add custom total row in Invoice PDF

I added pdf.xml in custom modules etc folder. But it is not reflecting in Invoice PDF. I have debug and found that in the class \Magento\Sales\Model\Order\Pdf\AbstractPdf, on line no. 676 I get custom ...
12
votes
2answers
2k views

Magento2: Conditionally replace block template and class the right way

This rather trivial requirement turns out be quite a pain for us in recent days, as we couldn't find a satisfying existing solution, yet. The Task We are trying to replace certain blocks with a ...
3
votes
1answer
2k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
3
votes
2answers
1k views

Redirect from simple product to parent product

I want to display all the associated simple products on the category- pages and link them to the their parent product. How this can be achieved? One simple product is associated with only one ...
3
votes
1answer
1k views

Magento 2 Update product additional option added in add to cart

I have configurable product in my website and I added the product additional option in add to cart to hold the custom value, Now on cart page I want to allow the user to update those additional option ...
5
votes
4answers
8k views

Magento 2 - How to change Product Name dynamically in configurable product view page

How I can change my configurable product name and description dynamically when one option is selected, right now is change only the image, I need to do the same with the name and description. HTML ...
16
votes
4answers
12k views

Magento 2: Move place order button from payment to sidebar on checkout page?

I want to move the place order button from the payment to sidebar on checkout page. Anyone can give me a suggestion? Edit: Is this even possible (with the answer/approach provided)? From my ...
10
votes
7answers
13k views

Magento 2 - Why do SKU not change dynamically in configurable product view page

When you change an attribute in a configurable product the product image changes dynamically but the SKU doesn't change. Also, if you add a configured product to your basket it gives you the image of ...
6
votes
4answers
2k views

How to redirect simple products to configurable product URL with options preselected in Magento 2.1

How can I redirect an SEO URL Key of a Simple product of which the visibility is set to "Not Individually Visible" to the parent Configurable Product SEO URL Key? There are two important ...
1
vote
2answers
2k views

Magento2 Passing Custom Parameters to Cron Jobs

How to pass custom arguments/parameters for cron jobs in Magento2. I found an article related to this for Magento 1.x, I am trying to figure out how to do the same for Magento 2.x
8
votes
6answers
12k views

Magento 2 Get selected simple product id in configurable product

We have a configurable product on the front-end with two drop-downs (size and color) How can I get the final simple product id once the user has made their selections We have done this in Magento 1 ...
3
votes
1answer
3k views

Create link dynamically in customer account navigation in Magento 2

Hi i have created account navigation link, and i have two customer groups in magento admin panel, and i only want to display that links to specific group rather than displaying all the time. here is ...
7
votes
1answer
2k views

Magento 2: insert products images alt tag programmatically

I need to insert ATL tag for catalog products images programmatically. Is there any way to do it?
0
votes
2answers
1k 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) { /...
2
votes
2answers
976 views

Magento 2.1.7 - Create a new product tax class

How to create a new product tax class in magento 2.1.7 and create two different tax rates for same region. I am unable to find "Add new tax class" button under additional settings when creating new ...
6
votes
3answers
7k views

How to log all rest api calls in magento2?

Is there any way to log all the requested rest API with details (requested URL, methods, parameters, time, etc.,) in Magento2? earlier I have logged all the rest of the API which was related to ...
1
vote
1answer
402 views

Magento 2.1.9 - CSS files not being merged

I'm running Magento 2.1.9 on nginx 1.8.1 In Stores - Configuration - Advanced - Developer under CSS Settings I've selected: Merge CSS Files: yes Minify CSS Filey: no Then I'd flush my Magento cache. ...
2
votes
3answers
68 views

How can I Set Up & Configure Robots.txt in Magento 2?

I'm trying to set up the robots.txt on our Magento store. Actually, I do not really have any idea how to do that, so I need the help of any SEO or an experienced person who can help me with this.
5
votes
1answer
1k views

How do you include a custom LESS file inside of a child theme?

I'm starting a new project using Magento 2.1 and I'm a little confused on how LESS compilation works. I created a child theme using a purchased theme as the parent. Inside my child theme, I added ...
4
votes
1answer
1k views

Magento 2 Fotorama click event

Is there a way to fire a fotorama click event from a template file? What I am trying to do is have the functionality where, when the user selects an options from the dropdown from the catalog-product-...
2
votes
0answers
20 views

I am getting warning message of this "This site ahead contains malware" in google chrome

After I installed the local setup for Magento 2.1.16 with the Nginx server. When I try to visit my site in chrome it notifies me with the site ahead contains malware. I have tried removing all third-...
0
votes
2answers
828 views

How to render block in plugin

I have an plugin with after method, that should append piece of html to return. I think that the html shoul be in some template block. Is there a way to render block from plugin? Thanks.
2
votes
3answers
2k views

magento 2 custom attributes value frontend return No value of select

I have a problem in retrieving the value of custom attribute of type select, it returns a value No I try this code in list.phtml: <span class="product_badge_value"> <?php /* @...
0
votes
1answer
1k views

PDF on WYSIWYG. How to enable it?

I have tried to enable the pdf extension in the editor this way https://developersushant.wordpress.com/2015/04/16/magento-enable-pdf-extension-on-wysiwyg/. Although, this file there is not in the ...
3
votes
2answers
1k views

Magento 2: How to set default layout to 1column

I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty". Anyone have the idea?
0
votes
2answers
2k views

Why flush cache is not working?

My issue is I have two duplicate websites one for dev purpose and one is my live site. When I change for example the theme color and flush the cache, working perfectly, color is changing. But when I ...
0
votes
1answer
999 views

magento 2 how can we send shipment and invoice pdf attachment in one email

i want to attach invoice pdf with shipment email so how can we attach invoice pdf in shipment email as i am using magento 2 mageplaza pdfinvoice module. it attach only one pdf at one time.
0
votes
3answers
3k views

Magento 2: Installation issue

I am trying to install magento on my localhost and getting issue file installing set up. Starting Magento installation: File permissions check... Required extensions ...
0
votes
1answer
971 views

How can I include and use html2canvas in magento 2

I want to use this https://github.com/niklasvh/html2canvas but getting error after including its cdn like <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.5.0-beta4/html2canvas....
2
votes
2answers
2k views

Performance issue - slow query in Magento 2

When I check SHOW PROCESSLIST; in mysql I got below query. It heavily uses CPU (more than 100%). We have a separate server for mysql(64GB RAM). INSERT INTO `search_tmp_598075de5c7e67_73335919` SELECT ...
0
votes
2answers
2k views

How to show the currency symbol at end of the product price in magento2 [duplicate]

In product details page, The currency symbol shows at starting of the product price (₹125.00). I need to show the currency symbol at end of the product price(125.00 ₹) in product details page. i.e .,...
1
vote
1answer
1k views

Magento 2 Product import error :. Value for 'product_type' attribute contains incorrect value

I'm using Magento 2 Version 2.1 . I have migrated data from magento 1.9 to magento 2.1. The csv looks like, this: sku,product_type,additional_attributes 123,simple,brands=APPLE,...
3
votes
1answer
969 views

Assign a customer cart to another customer programmatically Magento 2

I want to assign a customer product on the cart to another customer cart in Magento 2. Somewhere is saw that we can achieve the same on Magento 1.x from Mage::getModel('checkout/quote')->load($...
0
votes
1answer
1k views

Magento 2 - How does the remove wishlist button work?

I am wondering how does the remove wishlist button work? i have checked the code, and there is no form tag around it. How can it post to the remove item controller in vendor/magento/module-...
2
votes
2answers
969 views

Magento custom block rendered twice

I create a custom checkout block for checkout success page, but unfortunately the data printed twice, First in the right div inside body, and the other printed after the footer, here is the ...
0
votes
2answers
993 views

Add slide control in magento2 frontend

How can I add a slide control in the frontend using the Magento UI library or any other way? I am not talking about an image slider I talking about a control slider Something like: boostrap slide
1
vote
1answer
1k 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 ...
4
votes
2answers
948 views

How do i eliminate render blocking css and js in magento 2

In google page-speed test it shows best opportunity to speed up is eliminate blocking resource. So is there anyone who can guide me to do this?
0
votes
4answers
1k views

Magento 2.1 Web Setup Wizard Frozen to remove an extension

I installed the application YOTPO. Then decided to remove it. The system is now stuck at this screen. Therefore every time I go to SYSTEM > WEB SETUP WIZARD, it brings me to this screen and I can ...
7
votes
1answer
1k views

Magento2 - Layered Navigation how to create multiselect functionality using code

Magento2 version is - 2.1.2 I am creating custom module for layered navigation and i want to create multiselect options functionality for layerednavigation. I have already displayed checkbox over ...
1
vote
1answer
987 views

Magento2 : How to add Custom button [draft] in Product Edit form

I want add a new Draft button in Product Edit page (located between Back and Add Attribute) I am able to add by following the tutorial : magento2-how-to-add-custom-button-in-product-edit-form But, I ...
0
votes
1answer
1k views

Remove unused CSS rules in Chrome Audit

I am auditing magento 2 website performance using Chrome Audits. It warns to Remove unused CSS rules. Is it possible to fix that warning.
1
vote
1answer
1k views

x-magento-init not working in magento 2

I have Need to run some script after logged in admin user in magento 2. But, Its not calling for me. What i did: I have created js file this location. app/code/Vendor/Module/view/adminhtml/web/js/...

1
2 3 4 5
112