Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

0
votes
0answers
2 views

Transactional Email Styling not displaying on preview

I'm trying to style the content of the email example is the New Ordern or the Order Confirmation Template. Now I selected this template and added some css styling on this field under the Template ...
0
votes
2answers
591 views

Magento 2.1.6 - cronjob only working if i run commands not by schedule

I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: ...
1
vote
2answers
553 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
2
votes
1answer
215 views

Custom field in catalog product image gallery

I want to add custom input field in catalog product gallery in magento 2.1.7 I already create a column in catalog_product_entity_media_gallery_value table and also made related configuration for ...
0
votes
1answer
561 views

How to display field “VAT Number” during registration

How to display field "VAT Number" (required) during registration. This field is visible when editing the user from the administration panel. Only how to display them during registration? I found ...
0
votes
2answers
83 views

Magento 2 - get final prices include tax and round

I've custom block phtml in my old store and I need to be converted to Magento 2. Magento 1.9.x code: $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(...
0
votes
2answers
566 views

Magento 2.1.7 product page 404 after migration

I migrated all of the data from a Magento 1.9 build to Magento 2.1.7 everything has gone well. categories are showing, products are in the categories, product images are showing on backend and ...
2
votes
2answers
3k views

Magento2 How to Update product price by website or store id

I try to programmatically update product price for different website in magento2. This blow code is working but It will update main website price only, I need to update different website price using ...
0
votes
0answers
11 views

Magento 2.1 EE saving popularity with an increment of 2

I am using the below code in my Plugin to save search terms which have search terms greater then zero.But it is saving the popularity with an increment of 2 whereas according to default functionality ...
2
votes
3answers
1k views
4
votes
0answers
64 views
+50

Header and footer in an external file

I'm using an index.php file under /pub/custom folder, which is used to create custom designs. This file is completely written in html and javascript. Is there any way to include current header and ...
4
votes
1answer
572 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 ...
2
votes
0answers
14 views

Transactional Email Change Logo not working

I'm trying to change the logo of the transaction email. But upon changing of logo it's not displaying the preview of the uploaded image. So now I tried to preview using the inspector and below is what ...
5
votes
6answers
3k views

My Custom product tab not displaying in Magento 2

I am trying to inject my custom product tab in storefront on product view page, but it's not displaying. For this I am written below code. registration.php <?php \Magento\Framework\Component\...
0
votes
2answers
555 views

Magento 2 change validation messsage in checkout address fields

Working on Magento 2 checkout validation following is the code <?php namespace VendorName\ModuleName\Block; class LayoutProcessor { /** * @param \Magento\Checkout\Block\Checkout\...
1
vote
0answers
17 views

Magento2 : Undefined Index amount in Order/Totals/Tax.phtml file

I installed one GST module on my local instance. after installing that module i am unable to create invoice for sales order. Getting the attached error message.I disabled all my third party extensions ...
2
votes
0answers
22 views

Can't add products to shopping cart / cart keeps loading Magento 2

I recently copied a website over to another host by using the import tool. After this I don't seem able to add items into my shopping cart. The button keeps saying loading and the Ajax loader shows ...
1
vote
1answer
27 views

Inline Edit Not Working In Admin Grid Magento 2

<?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/...
2
votes
1answer
30 views

Getting a CLI error when trying to compile

I am getting this error on terminal: PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31 when trying to run these commands: sudo php bin/magento setup:...
1
vote
1answer
18 views

Magento2 Shipping City For Shipping Amount Caluculations

I need to apply table rate shipping based on following conditions City to City Metro to City Metro to Metro City to Other City to Special Locations I written my own module but ...
3
votes
3answers
2k views

How to Show Tier Price in Magento 2 Catalog Page

I have setup a tier price for my Magento 2 product and I can see the tier price on product details page like below screen shot. I need to show the same "Buy 3 for $0.00 each and save 100%" in my ...
0
votes
5answers
4k views

Magento 2 Attempt to load value of nonexistent EAV attribute

I see in my log the nexe warning: [2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339' for entity type 'Magento\Catalog\Api\Data\...
2
votes
1answer
560 views

Getting Products by category id! Magento 2.1 REST

How can I get products of 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 same Category [...
5
votes
1answer
557 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 ...
4
votes
0answers
22 views

Load default address when logged in on magento2

I want to load magento2.1 default address on my cart page address box when i'm logged in. mean that, when i'm in one step checkout page and logged in, in my address part, see default address instead ...
2
votes
6answers
6k views

Magento 2: How to renew the category URL rewrites?

I cannot get Magento 2 to renew URL rewrites for categories. I was forced to clear url_rewrites table after some weird problems happened after importing categories and products. Now I get something ...
1
vote
0answers
14 views

Magento 2.1.8 dev site catalog search and products listing redirecting to live site

I have setup my magento 2.1.8 EE live site on staging for development. The homepage, admin and cms pages are working fine. But my prduct pages are redirecting to live site and catalog search also ...
3
votes
1answer
130 views

Magento2.1 Configurable attributes in cart

I want to add configurable products attributes to cart page too. Example: T-Shirt color:red size:m already added to cart by price 100$, Now I want to change attributes on cart and use color:green ...
0
votes
3answers
45 views

Display Widget in phtml file magento 2

I have Following widget and its working in cms page but now I want it to display in phtml file {{widget type="Magento\Catalog\Block\Widget\RecentlyViewed" uiComponent="widget_recently_viewed" ...
0
votes
0answers
17 views

Blank Email Magento 2 - Order / Password

At my shop I have the problem that when someone creates a new order, the order confirmation (email) is simply displayed blank (white page). The email address is also not displayed correctly. If you ...
3
votes
1answer
569 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($...
3
votes
3answers
232 views

Magento 2 Admin login Problem

I am able to login to the admin control panel the first time and when I logout and login again it get this message: There has been an error processing your request SQLSTATE[23000]: Integrity ...
0
votes
2answers
589 views

How or when get invoice it's increment id

I need to work with invoice, just after it's payed but already has increment_id. Is there event after invoice save? Or which function generate increment_id, so i can create plugin on it. Thanks. PS:...
2
votes
2answers
589 views

How to Override my admin phtml and css file in my theme

How to Override my Admin PHTML, XML and LESS/CSS file in my theme. Any one have Idea ?
3
votes
0answers
9 views

Magento2.1 add pagination to my wishlist

Want to add pagination and toolbar to my wishlist page on customer panel. Mean that i want to do something like list.phtml on wishlist page in customer account - customer panel.
0
votes
1answer
73 views

Your session has expired main home page magento 2

Go to home page and add to cart product and then this time error is come Your Session Has Expired I also try to change pen PHPMYADMIN run: UPDATE core_config_data SET value = 864000 WHERE path = '...
5
votes
1answer
39 views

How to add custom attribute in magento2.1 customer panel wishlist section?

I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to ...
0
votes
2answers
604 views

Magento 2.2 .htaccess issue

I am just migrating my site from wwww.example.com to www.example.com/demo. Now problem is that CSS is not loading and any URL does not work. Please let me know if any issue in the .htaccess. #########...
1
vote
2answers
566 views

Is there a list of all magento 2 functions like getName(), getPrice() etc

I'm trying to fetch information of certain products, just not sure what function is available. I was wondering if there is a list of all magento 2 functions, like getName(), getPrice() etc.., then I ...
6
votes
1answer
559 views

How to add custom customer attribute in custom tab in customer edit page of admin in magento2

I have created custom customer attribute successfully. Which are showing under account information tab of customer edit in admin. I want to show them in my custom tab.
1
vote
3answers
18 views

Magento2.1.14: Css not loaded after upgrading apache 2.34 to 2.37

I have upgrade apache 2.34 to 2.37. Then I have the problem that all css and js files are only throwing a 500 error and are not loaded. I have got this error on error log: option followsymlinks not ...
3
votes
1answer
37 views

How to rename order shipments name in customer dashboard frontend?

I am using Magento 2.1 I want to rename order shipments name and switch order shipments first then invoice.
2
votes
1answer
161 views

Review Api for magento 2.1.12

I have successfully install this module Reviews/Rating I call this url="/V1/review/mine/post" method="POST".I don't know what data is passed in body of this URL.
4
votes
3answers
5k views

Magento 2 add Sort By Best Sellers Option on category products litsing page

I am trying to add new custom sort by option on categories products listing page along with other existing options like Name , Position and Price. To test my functionality i am directory doing ...
0
votes
0answers
19 views

Magento2 template functionality [closed]

Can anybody tell me a template with tablisting function With category selector and manually add product. From admin panel can check and add and edit and remove
2
votes
1answer
17 views

magento 2.1 change address structure hierarchy

I want to show state, province, postcode in line like below india-dehli 185235 how can i change the hierarchy of address structure?
1
vote
1answer
33 views

How to get recently viewed product collection in observer Magento 2

I want to fetch a recently viewed products collection in the observer and by using that collection I want to add my custom product in that collection. Following Things That I Want To Achieve. On ...
6
votes
1answer
722 views

Magento 2 create admin config table with custom rows and columns

I want to create admin config with a table to take the data and save in config for that I followed this link. But I also want to create custom rows in that table programmatically and also without the ...
1
vote
0answers
113 views

Ajax call getting CORS errors/conflicts

What i'm trying to do is as follows, we have different external content pages that have one or more of our products and need a simple "add to cart" button. To accomplish this i want to use a ajax ...
1
vote
1answer
24 views

Magento 2.1 - How do I downgrade Algolia Search? [closed]

I've been using Algolia Search for Magento 2.1 for 2 weeks. Somehow I accidentally ran the composer command and updated Algolia to version 1.10.0. Now I want to downgrade it back to version 1.8.5. ...