Questions tagged [magento2.1.5]

Questions related to Magento 2.1.5

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

Get quantity in stock for items added in cart in JS

I need the quantity available for each product in cart in my custom javascript file. Does anyone know how to do this?
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 ...
4
votes
0answers
148 views

Magento 2.1.5 - Sales Order reports show missing data

I am facing issue with order sales report its skipping some data from monthly order report, Some order dates are missing in reports but in order gird it display with same dates order Magento: 2.1.5 ...
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 ...
2
votes
1answer
2k views

Magento 2 create custom block and phtml in Magento_Customer module

I want to create a new custom Block and Block phtml file same as the Customer Index Block for use to the customer, when customer login the customer just click on the left navigation link and access ...
1
vote
1answer
186 views

Magento 2: How to Create Paypal Order Programmatically?

I have below link for creating order https://www.mageplaza.com/magento-2-create-order-programmatically.html How can we create Order with Paypal?
2
votes
1answer
662 views

Magento 2: After login how to get current quote id?

Magento 2: After Customer Login Get Cart Information? On observer I got 2 active quote id's. I can get by latest from quote table. Is there any way to get current quote id?
2
votes
1answer
2k views

Zero tax for those with valid VAT Number (maybe via customer groups)

I wish to charge zero tax if a customer has a valid VAT Number. I can add a VAT Number to an address and I receive the message "Your VAT ID was successfully validated. You will not be charged tax.". ...
0
votes
1answer
673 views

Magento 2 returns 404 after switching language on product pages

magento 2 one store click on product page giving www.abc.com/product1.html after switch on next language it showing like this catalog/product/view/id/15/s/tablets if have any idea please tell me
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 => ...
0
votes
1answer
696 views

Magento 2 redirect going back to admin

I have a controller that is executed in the system configuration. The desired result is that the code is executed and is redirected back to its original page. When the url keys are active, the page ...
0
votes
2answers
618 views

How to get collection of pagination in template?

These are my block methods: public function getProductsViewHistory() { $page=($this->getRequest()->getParam('p'))? $this->getRequest()->getParam('p') : 1; $pageSize=($...
3
votes
3answers
2k views

Magento 2 get specific customer group customers list

I have created a custom module and want to get specific customer group users to list in the dropdown. For this I have gone through the admin > Stores > Other Settings > Customer Groups and I have ...
1
vote
1answer
729 views

How to change the text of the sign in button on the top header of a magento store

I am currently developing my first Magento website and the whole functionality behind is overwhelming so I might have overseen the possibility to fulfill the task. I am looking for a way to change ...
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
11k views

Magento2.1.5: Login and registration form on login page

Is there any way to show both forms login and Registration on the login page? http://example.com/customer/account/login/ Which .xml layout I need to overwrite. I have done many searches on google ...
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 ...
3
votes
1answer
81 views

Restrict product add to cart in magento 2

i am using magento 2.1.5, and i have two tax classes. and i want to add only one tax class product in cart at a time. if customer try to add another tax class product, it will throw the massage. for ...
1
vote
1answer
1k views

Why session custom data lost after refresh in Magento 2?

I need to save data in session on one page and retrieve same data on multiple pages. After saving the data when i refresh page Or redirect to another page data flush off . Can somebody explain me why ...
1
vote
1answer
941 views

How to add Please Select option in programmatically created select attribute for products?

I have created a custom select attribute for products using InstallData, options of that attribute are shown using source model. It shows options correctly but when I add a Please select option with ...
0
votes
1answer
880 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
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 ...
1
vote
1answer
1k views

Magento 2.1.5 : Reviews REST API

I looked for reviews REST API and I found this link: http://www.ipragmatech.com/products/reviews-rest-api-magento/ I tried to add review via it using : POST http://domain.com/index.php/rest/V1/...
0
votes
0answers
20 views

Additional field In customer Registration API

I am using magento 2.1.5, and i am using default API for customer registration. now i added one more field "business" in registration page and want to add in API response also. How to add this filed ...
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 $...
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 (...
2
votes
1answer
464 views

static-content:deploy not working

I'm overriding a core JS file in my module. When I run php bin/magento static-content:deploy and refresh the page the JavaScript does not seem to change. I started tracking the issue. I found ...
0
votes
1answer
341 views

magento 2 - downloadable file link is not working

I am facing issues about downloadable link. The download able link from email after purchase documents is taking to login page. It is not downloading the product. I have tried many solution but ...
2
votes
1answer
585 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\...
1
vote
2answers
76 views

Magento2 2.1.5 Cronjob doesn't get executed. ID always 0

My magento cronjob stopped working. It gets executed from system. Checked that in the logs. But magento just shedules the cronjobs and don't execute them. Also the schedule_id of the cronjobs is ...
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.
0
votes
1answer
31 views

Base currency rate is not showing in admin order summary : custom added fee

I have followed below link to add a custom fee to order. How to add fee to order totals in Magento 2 Custom fee is added perfectly and showing in admin order summary without any issue. Now I ...
0
votes
1answer
2k views

Custom redirect user to specific page after register Observer in Magento 2 will just redirect after the cms page to the login page

I have another problem with my custom observer module for account registration page redirect. somehow it will successfully redirect to my custom cms thank you page after registration. but after that ...
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 ...
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?
4
votes
1answer
1k views

magento2 Schedule new update is not working

I have installed Magento 2 freshly and Create a schedule for product attribute value update using "Schedule new update". In staging dashboard it shows but even after time cross the starting time it ...
0
votes
1answer
1k views

magento 2.1.5 - General system exception happened - import products

Im start learning Magento 2, made a fresh install of Magento 2.1.5 by command line on a VM with Ubuntu server 14.04 PHP 7.0.16 MySQL 5.7.17 Apache 2.4 Tried to import several times the ...
2
votes
3answers
3k views

override knockout html template file in theme

I need to add a class to the cart summary table caption. I want to hide the caption by addding the class sr-only (bootstrap): <caption class="table-caption sr-only" data-bind="text: $t('Total')"&...
3
votes
3answers
6k views

Magento 2 override the cutomer account loginpost controller

I am trying to overriding the below class in my custom module: vendor\magento\module-customer\Controller\Account\LoginPost.php For overriding this I have created the Plugin file as per the below ...
2
votes
3answers
1k views

Ajax Newsletter magento 2

I am using magento 2.1.5, and i am trying to make ajax newslatter. di.xml <type name="Magento\Newsletter\Controller\Subscriber\NewAction"> <plugin name="...
1
vote
1answer
2k views

List Sub Categories Magento 2

I want to have Category navigation - so instead of going to the product pages user can navigate using the category images and subcategories shown in a grid and also shows the left navigation on same ...
0
votes
0answers
14 views

How to restrict a configurable product adding into the cart magento 2.1.15

I have a scenario that i want to allow only one product which is a configurable product has multiple options. I can select a product with first option and add to cart and also I can select a product ...
1
vote
2answers
3k views

magento 2 utilizing the CPU 100%

i'm using a dedicated server with SSD and 16gb memory and 2.4 8 cores server and plesk panel, php7 with apache server. fresh magento 2.1.5 installation, any click or request on the store makes ...
1
vote
6answers
3k views

Stock is not updating after update the product quantity Magento 2.x?

I am facing an error in Magento 2.1.5. I have changed the product quantity from Magento admin panel but the stock did not update. I have clean cache already but it still showing out of stock. Can ...
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()->...
1
vote
0answers
48 views

getting error when upgrading from Magento 2.1.5 to Magento 2.2.6

I want to upgrade my website with the latest version. I am using below commands: composer require magento/product-community-edition 2.2.6 --no-update composer update I am getting below error:...
0
votes
1answer
635 views

Magento 2.1.5: Product Widget for Homepage - Not Working

I am facing the following issue when creating a condition to show products on the homepage using the widgets in the content manager. I am running 2.1.5 and have manually checked the files for which ...
4
votes
1answer
2k views

Make dropdown list for field city in magento 2 checkout

I want to custom field "City" to dropdown list in checkout page (magento 2.1.5). Is it possible? How can do that? New update: Thank you!
4
votes
4answers
4k views

How to override module-checkout/…/cart/item/default.phtml?

I want to customize the cart page. I'm trying to override it using module. I created module which is working fine. I created layout: checkout_cart_item_renderers.xml <?xml version="1.0"?> &...
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 ...