Questions tagged [magento2.1.5]

Questions related to Magento 2.1.5

Filter by
Sorted by
Tagged with
1
vote
1answer
604 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....
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.
4
votes
1answer
429 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
878 views

Magento 2: Paypal - I'm sorry - but we were not able to process your payment. Please try another payment method or contact us so we can assist you

While doing payment with Paypal Sandbox suddenly it gives below error I'm sorry - but we were not able to process your payment. Please try another payment method or contact us so we can assist ...
0
votes
1answer
388 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
141 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
2answers
142 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'; $...
3
votes
1answer
829 views

Magento2 rewrite: product resource collection class does not effect on functions

I have rewrite catalog product resource collection Magento\Catalog\Model\ResourceModel\Product\Collection. Class override successfully but functions override is not working. Suppose, i want ...
0
votes
2answers
1k views

Magento 2 After updating the admin URL getting 404 Not found page

I have changed the admin URL using the below command line: php bin/magento setup:config:set --backend-frontname="admin_path" I have followed the below answer for change the admin URL: How to change ...
0
votes
1answer
287 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
1answer
560 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 ...
2
votes
1answer
580 views

How to create the homepage.phtml in Magento 2

How to create create the custom theme in Magento 2. i have create the custom, in my template i have write the some html code. But its not display default code only display here my codes app\design\...
2
votes
3answers
2k views

Creating a custom homepage template in Magento2.1.5

i know this question is already here.But i have tried all things. And nothing works for me.i need help, i am new to magento i have created a custom theme as default theme. Now i am trying to create a ...
0
votes
1answer
132 views

Categories Not Saving CE 2.1.5

I've been working on getting things setup in my store and so far everything is good. I created categories and spent time loading them up with products. But it seems somewhere along the way I've lost ...
1
vote
0answers
855 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
2answers
1k views

Magento 2 - $product->save is not saving/updating data

I wanted to do simple price update script, that loads data from xml and passes it to product queried by custom attribute "ean". I am able to get the product by 2 different ways ...
1
vote
2answers
4k views

Magento 2: Event name before place order?

I'm looking for event before any order placed. Need to do validation on observer. https://www.mageplaza.com/magento-2-module-development/magento-2-events.html If there is Bank Transfer then before ...
0
votes
0answers
473 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 ...
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 ...
1
vote
2answers
50 views

How to add a new theme in Magento2.1.5?

How to add a new theme? I am trying to add in localhost.
4
votes
1answer
3k views

Magento 2: How to delete order's invoice, credit memo & shipment programmatically?

I would like to delete order's invoice, credit memo & shipment programmatically. How to achieve this by passing only order id?
0
votes
1answer
1k views

Magento2: Receiving a The page you requested was not found eventhough the desired page is found

My Magento 2.1.5 is trowing a "The page you requested was not found, but we have searched for relevant content." displayed on front pages. After clearing sessions and local cache the message goes away ...
0
votes
1answer
1k views

Magento 2 get custom module data in theme phtml

I have created the custom module and inserted all the required fields detail in the database. Now, I want to list all rows in below file path: I have tried with the $objectManager, but direct call $...
1
vote
0answers
56 views

Error in Magento 2.1.5 Component Install

I am installing a magento 2 extension for the first time while installing it continuesly saying Update is already in progress. I am not sure what is the problem. Magento cron is set properly and ...
1
vote
2answers
319 views

Getting exception: Boolean value is expected, supported values

I am trying to develop magento2.1.5 module but getting exception for my admin controller: Boolean value is expected, supported values: array ( 0 => true, 1 => 1, 2 => 'true', 3 => '1', 4 => ...
1
vote
3answers
824 views

Magento 2 : Admin Data Grid is not displaying correctly

I have fresh install magento 2.1.5. Every thing is working well except admin data grid. I also run php bin/magento setup:static-content:deploy, but issue still exists. When I use inspect element i ...
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.
-1
votes
2answers
133 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, ...
0
votes
1answer
883 views

Magento 2: How to give Admin Input Field Validation

I have below code $this->addColumn( 'qty[]', [ 'header' => __('Qty'), 'type' => 'number', 'index' => 'qty', ...
1
vote
1answer
962 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 ...
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 ...
0
votes
1answer
343 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
0answers
155 views

Magento 2: Update Minicart Product Price

I would like to update Minicart Product's price. I need all parameters so we can update it. It should update automatically Grand & Sub Total or We need to Update as well?
0
votes
2answers
1k 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 ...
0
votes
1answer
112 views

Number of products are not matching on category page

I have 20 products in a category. But when I open the same category on frontend it shows 11 products. I logged the query and directly fired on the database, it correctly shows 20 records. But for the ...
0
votes
0answers
104 views

Magento 2: How to override Item Info of MiniCart

I would like to override Item Info of Mini Cart here as well as on Checkout Sidebar I need to apply changes on price. Which files need to override & function?
1
vote
0answers
302 views

Magento 2: Update Minicart

I need to update minicart from Homepage to Untill Checkout. I exactly need to update price to solve Magento 2: Admin price changes are not refreshing minicart immediately till checkout Which event ...
1
vote
0answers
844 views

Magento 2: Admin price changes are not refreshing minicart immediately till checkout

I have added 1 product with it's price in Cart. It's value is 100 USD. Now from backend I'm enabling Special Price & set it to 50 USD. How can I directly apply that price in Cart? I know we can ...
0
votes
3answers
2k views

Magento admin-panel isn't working

I wanted to try working with Magento, so I downloaded the Magento 2.1.5 Community version from the website and installed in on my localserver from XAmpp (php 7.0.15). Magento installed successfully (...
5
votes
2answers
3k 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/...
0
votes
2answers
161 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. ...
8
votes
3answers
12k views

Magento 2: Select Field From Collection Query

I have below query. I want to select only 1 field from table instead of all. $collection = $this->_collectionFactory->addFieldToFilter('status', 0)->load(); //$collection->getSelect()->...
2
votes
1answer
232 views

Cronjob started rollback and files were deleted. Why?

I faced a strange behaviour. First, I setup cron jobs as described in http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-cron.html. Then I changed file permissions to dev ...
0
votes
1answer
27 views

CMS pages linked to from 2nd level category pages include category path in url and give 404

CMS pages (such as about-us, privacy-policy etc) link fine from root domain (such as domain.co.uk) and from domain.co.uk/category1.html. In this instance then the correct URL is domain.co.uk/about-us ...
0
votes
1answer
472 views

Magento 2: How to add Text Box in Admin Listing?

I need to add texbox in below code. $this->addColumn( 'qty', [ 'header' => __('Qty'), 'type' => 'text', 'index' => 'qty', '...
2
votes
1answer
485 views

Magento 2 Categories not display

Magento 2 Category tree not showing on admin's product edit page? How can I solved it?
0
votes
2answers
158 views

magento CE 2.1.5 PHP help

I am trying to use Magento locally on Windows with PHP 7. I have followed this guide. ***** Step By Step ***** Download the latest Apache Version - Zip-File Copy Apache24 folder from Zip-...
0
votes
1answer
105 views

How to map the localhost path for magento 2 index file, to a domain name

I have created a magento 2 setup and currently accessing the site by punching the whole url like localhost\bla\bla\bla.....\magento-root-directory\ But I would like it to be localhost\www.xyz....
3
votes
2answers
7k views

Magento 2: How to get Product Id from Cart Item Id

In Minicart, we have products <input id="cart-602-qty" maxlength="12" name="cart[602][qty]" size="4" type="number"> This is not Product Id. So how to get actual product id from cart item id? ...
1
vote
0answers
60 views

Magento 2.1.5: Mysql Error when browse Category page which have no products

When i browse to one category page that do not have any product i receive a report error. The report says: a:4:{i:0;s:2291:"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an ...