Questions tagged [magento2.1.5]

Questions related to Magento 2.1.5

Filter by
Sorted by
Tagged with
1
vote
2answers
637 views

Magento 2: Changing default minimum length of customer password from admin not working. (Seems like a bug)

I have changed the default minimum length of password from admin side but still I am unable to save customer from front end.The default length is being taken from some core constant apparently.
0
votes
2answers
1k views

How to show history of products viewed by logged in customer and delete if current user wishes to?

What I have tried till now is $objManager = \Magento\Framework\App\ObjectManager::getInstance(); $visitors = $objManager->get('Your\Store\Block\Customer\Login'); $currVisitorId = $visitors->...
1
vote
0answers
221 views

How to store value in custom option field programmatically from cart page?

I've created custom option to store text for products programatically using after save observer as below: /var/www/html/mylocal/app/code/Custom/Addcustomoption/Observer/Catalog/ProductSaveAfter.php ...
2
votes
1answer
693 views

Magento 2 Categories not display

Magento 2 Category tree not showing on admin's product edit page? How can I solved it?
1
vote
1answer
842 views

Adding custom option programatically

I'm trying to add custom option programmatically after product save event. I've found some solution on stackexchange which are not working for me. So I'm posting all my codes here for finding any ...
0
votes
1answer
318 views

Magento 2.1.5 Server load very high suddenly

I have a magento 2.1.5 EE website. There are around 5000 visitors a day. Below are the server Specifications: Intel Xeon E3-1270 CPU 3.50Ghz CPU Clock Speed 4 CPU Cores 8 CPU Threads 8MB CPU Cache ...
0
votes
1answer
1k views

Magento 2 find bundle items parent products

I've simple product assign in bundle items of Bundle product. Now I've simple product ID and I'm trying to find in which bundle product it's given in bundle items using following code but it returns ...
2
votes
2answers
186 views

Magento 2.15 after cache flush made .css changes disapeared

Any advise how is the best to adjust .css (colors), that it would stay permanently? After editorials in .css and flushed cached all changes in .css disappeared. Any advise how I could keep them ...
0
votes
2answers
417 views

Promorule “Buy 3 Pay 2” does not apply

I have to make some promo when you buy 3 items discount 1, and only pay 2, but when i try to buy the discount does not apply, this is my screenshot from the promo.
1
vote
0answers
16 views
0
votes
2answers
169 views

catalog price rules in magento 2.1.4 and 2.1.5

I tried to apply catalog price rules from Magento backend, But it did not work out in fronted. I cleared cache, indexing still its not working.I think this is bug for Magento versions 2.1.4 and 2.1.5. ...
2
votes
1answer
418 views

Magento 2 - Why is it showing “Please specify at least one search term”?

I'm doing many advanced searches on my Magento 2.1.5 and each consult is showing this message below: My URLs are like: mystore.com/catalogsearch/advanced/result/?brand=859 mystore.com/catalogsearch/...
1
vote
1answer
544 views

Magento2 Product detail page add checkbox before add to cart button

In a Product Detail Page after Quantity add checkbox when checkbox button is checked than "add to cart" button stay active if not click on checkbox than disable button. Thanks,
1
vote
1answer
1k views

How to reorder “Apply Discount Code” field on last step of checkout?

I would like to reorder the "Apply Discount Code" to the top of the payment step. I had a customer who complained that the order of these elements indicated it was to be entered after payment, and so ...
2
votes
1answer
386 views

Magento2 - where the admin console user preferences stored?

I have logged into the admin panel of Magento 2, gone to products->catalog and have set the 'per page' limit to 900. My Magento instance can't return 900 records in one page so it crashes, and a div ...
3
votes
1answer
3k views

How to Make First and Last Name Optional for addresses?

I have a Magento 2.15 site that almost exclusively sells B2B. We don't have many customers that are just individuals. 99% of them are businesses. So when checking out, the people that order for their ...
0
votes
1answer
51 views

Hide a specific row in product specification

I use a data content provider, I get product pictures and all information pushed into my server but some of the information I don't want to show up on the front end. If you want to take a look at my ...
0
votes
1answer
3k views

magento 2 customer account navigation make collapsible for tablet

I am trying to make customer account navigation collapsible for tablet. Could anyone let me know which js or css file I need to edit for this? Please see the below image to what I want: Please help ...
1
vote
1answer
204 views

PayPal checkout for existing user not working

Magento-2.1.5 With php 5.6 issue: PayPal checkout for existing user not working. When you say continue to PayPal keeps spinning forever. In console, I got this error Failed to load resource: the ...
0
votes
1answer
1k views

Magento 2: How to stop order from Invoicing Programmatically?

I have requirement when done Payment with Paypal using Capture Method. It automatically creates Invoice. I need to stop that. How to achieve Programmatically?
1
vote
2answers
3k views

Why the checkout spinner keeps spinning in Magento 2?

It has always worked and now suddenly the spinner in the checkout keeps spinning and doesn't stop loading... I flushed cache again but the problem persists. Any ideas?
1
vote
1answer
548 views

Custom controller: Argument 1 must be instance of Context, instead Objectmanager is given

Created a module which was working for a long time, however after some other edits to the site I got this error: "Recoverable Error: Argument 1 passed to vendor\module\Controller\Cart\Index::...
0
votes
1answer
262 views

How to rate products in product listing page?

How to perform rating in any custom product listing page so that user do not have to go to product detail page to rate it? I got suggestions to look at Magento 2 : Show product ratings for each star, ...
1
vote
1answer
37 views

How to redirect user from magento store to another website , like to facebook or twitter?

I have tried to write as follows <a href='www.facebook.com'>facebook</a> in my template file located at: /app/code/Your/Store/view/frontend/templates/todays/deal.phtml But it is ...
0
votes
2answers
976 views

How to get SID programmatically : Magento 2

I am working on multi store Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront is set to "Yes" allow customer to stay logged in when switching between ...
1
vote
1answer
662 views

How do I get the price of product in the base currency?

I have a block on Magento where I would like to display the price of the current product in the default display currency. This store has multiple currencies. When I invoke $product->getPrice(), I ...
0
votes
1answer
928 views

Magento 2.1.5 : Add decimal number to price

How to add third decimal point to products, orders, tax, shipping price in both frontend and backend ? Ex: Product: 12.55$ ==> 12.550$
0
votes
2answers
176 views

get cart amount from external script

I want display the amount of items in the cart outside of magento. Thus I created this script inside a scripts folder in the magento directory: <?php require __DIR__ . '/../../app/bootstrap.php'; $...
1
vote
1answer
294 views

Magento 2 in minicart popup need qty incrementer and decrementer

I want to display qty incrementer and decrementer button in minicart popup. I refer this link. Place below code in minicart.js but it is not working decreaseQty: function() { var newQty =...
0
votes
1answer
323 views

Admin grid sorting issue

I have created one module about product question. Issue: When I click on any column for sort, it gives result once or twice. But when I click three times, it gives the grid with all same data. ...
2
votes
3answers
820 views

Magento 2: Theme change field is missing in Design Tab

I created a new theme but when i tried to change the theme from stores -> configuration -> design Tab I found that theme change field is missing from design tab. Please look at screen-shot ...
0
votes
3answers
67 views

Magento 2.1.x Extension Installation

I am trying to install some extension with the way thats described in the docs. I uploaded the unziped folder in my root directory and ran the command php f bin/magento setup:upgrade this threw me ...
0
votes
0answers
280 views

Mangeto 2.1.5 app/locale folder missing for language Files

I am trying to create a custom translation of my Magento Store. I have created two separate store views - Deutsch and English. Both reference to a separate store language in the backend. I was able ...
1
vote
1answer
713 views

Magento 2.1.5 add product attribute programmatically does not work

I want to create attribute programmatically. I've tested few codes but all of them doesn't work for me. Here are my steps: Create InstallData.php file with code like this one below. IN InstallData....
2
votes
0answers
296 views

Admin Product page won't load due to excess attributes

Magento 2.1.5 I have an attribute set with 750 different attributes and each one is a drop down with 5-20 different options. This causing an issue when trying to edit a product on the magento back ...
4
votes
1answer
524 views

How to load an UI Component template within payment method section in checkout page?

I am trying to load my component within the payment method section on checkout page. As of now it appears below Apply Discount section. I was wondering if its even possible to load my component just ...
0
votes
1answer
184 views

customer's password not displayed in email templates magento 2.1.5

I have try to add password on customer account email template but not able to getting password. Any one knows how can i set password on customer email template ? Really appreciate who knows solution.
0
votes
1answer
505 views

Magento 2.1.6 - Backslash before PATH - Error

After the update from 2.1.5 -> 2.1.6, I can't reach the Catalog page anymore. I see there is a "/" in front of my path. This isn't working: \C:/www/Project/pub/media/catalog/product\cache\...
2
votes
1answer
201 views

Magento Component Manager: Signin Issue :SSL certificate problem: unable to get local issuer certificate in Wamp server [duplicate]

I know this question is already asked but the given answers only for XAMPP. I am using WAMP Server.I am using magento2.1.5.Now my question is i have signin to the Magento Component Manager i got error ...
0
votes
1answer
362 views

Magento 2: How to get Order Wise Product's Manage Stock?

Does Magento store Product Wise Manage Stock in DB? Example: I have Product A : Qty: 10 with Manage Stock Yes Order : 10 Qty Now I have same product with Manage Stock No Order : 5 Qty Can I get ...
1
vote
0answers
930 views

Magento 2.1.5 CORS problem

On my localhost i create a react app (getting data from magento 2 rest api). Magento is set on vagrant so they are on other domains. When I try to send request ... var uploadReq = new Request(...
0
votes
1answer
70 views

magento 2.1.5 paypal express checkout not work

When i try to express checkout with pay-pal , i can see the pre loader , then it remain at page center and don't see pay-pal page this happen with magento 2.15 i previously used version 2.13 and it ...
0
votes
0answers
584 views

Advanced Pricing “Cost” attribute is missing in Magento 2

That is how the advanced pricing page is supposed to look like. Mine looks exactly the same except the "Cost" field is missing. Why is this and how can I fix it? Also, does this cost field ...
5
votes
2answers
4k views

How does the knockout-js part work

I still haven't figured how Magento 2 structures the knockout js part. For example how does the process work (step by step) of fetching the cart summary number. You can find this in app/code/Magento/...
-1
votes
2answers
136 views

Why magento is so slow [duplicate]

I just install mangento CE 2.1.5 in my laptop. I use XAMPPto host mangeto. My laptop is i7 processor, 8G RAM. I host other websites and visit them, is fast. Howover, when I visit my mangeto website, ...
3
votes
1answer
3k views

Magento2 not able to get & save customer custom attribute

I am using Magento 2.1.5, and created custom attribute for customer and trying to get & set the values of custom attribute but didn't get custom attribute in customer collection and as well as set ...
1
vote
0answers
37 views

Magento 2.15 override PackagesData.php in setup

How can I override the class PackagesData.php in namespace Magento\Setup\Model? I created the file app/code/local/Magento/Setup/Model/PackagesData.php but this is not working.
0
votes
1answer
1k views

Magento 2: How to give Admin Input Field Validation

I have below code $this->addColumn( 'qty[]', [ 'header' => __('Qty'), 'type' => 'number', 'index' => 'qty', ...
0
votes
1answer
389 views

blocks and pages missing

Suddenly Magento does not display any blocks anymore in the frontend. Also in the backend under content, blocks and pages are missing. I flushed my cache but there is no change. Additionally there is ...
0
votes
2answers
2k views

Configurable product not showing in frontend Even when it is stock

I have some configurable products. And they are not showing in frontend. In cataloginventory_stock_item table is_in_stock is set to 1. but for some reason after reindexing in ...