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.0.7]

Denotes questions related to Magento CE and EE 2.0.7

0
votes
0answers
34 views

Some modules use code versions newer or older than the database. First update the module code, then run 'setup:upgrade'

The module code base doesn't match the DB schema and data. Magento_Theme schema: 2.0.1 -> 2.0.0 Magento_Theme data: 2.0.1 -> 2.0.0 Magento_Customer ...
1
vote
0answers
212 views

Special price for configurable products not displaying in product list page and not in product detailed page, Magento 2.0.7 used

Using Magento 2.0.7 Special price for a configurable product is not showing on the product page or in listing page, Added two simple product with different sizes SMALL and LARGE size and given ...
1
vote
2answers
332 views

After rewrite Magento\Customer\Model\AccountManagement giving me fatal error

I have successfully rewrite Magento\Customer\Model\AccountManagement using preference but after enabling paypal express its giving me error like below, on checkout and cart page. <?xml version="1....
1
vote
1answer
301 views

How to disable a request for shipping information on a downloadable, virtual item

In Versions 2.0.7 to 2.1.9 CE, when a customer is logged in, and One-page checkout is enabled, and a free, downloadable item is in the cart by itself, when I click either the "Go To Checkout" or the "...
0
votes
0answers
116 views

Magento 2 : JS issue at the time of enable bundle js

I am trying to enable bundle js feature but getting this issue on product view page SyntaxError: missing ; before statement </div>'}}(window,document,location,"undefined"! Any one have ...
0
votes
1answer
376 views

Autoselect free shipping option on checkout

On checkout page, if free shipping available - this option should be already selected. How can I do this in Magento2?
1
vote
0answers
43 views

White screen Magento homepage after migration settings

When going to our base url we get a white screen on the homepage: http://95.85.37.169/ We migrated from magento 1.9.0.1 to 2.0.7 and cannot figure out why this is crashing now. I cannot figure out ...
0
votes
1answer
589 views

Image path not saving in database with Custom Module

I've created a custom grid module and now I am trying to create and upload image for the Form.php. When I save it the image it gets uploaded to the right location which is 👍 but it does not save the ...
0
votes
2answers
869 views

Recently Viewed not showing up when full page cache is enable

The only solution i found so far is to add cacheable="false" to recently_viewed block in xml, but this did not work. Is there any other way to force magento show "Recently Viewed" block on product ...
5
votes
0answers
396 views

How to prefill Magento2 checkout email field?

I am passing email from some other page which I want to prefill in check out page shipping address form. I have been referring to How to auto fill the shipping address field it works for other fields ...
2
votes
1answer
116 views

Hide a shipping method frontend and still show in backend condition based magento 2

I want hide a multiple shipping method in frontend based on customer group. Please tell me Where I have to put the condition to check shipping method with customer group? If match then shipping ...
2
votes
0answers
506 views

how to save the custom time in order comment history in magento 2?

$orderId = $orderId; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId); $order->setState(\...
0
votes
2answers
252 views

Change backup folder from /var/backup to different/external-shared folder in Magento 2

I need to change my backup directory to some other directory which is different from Magento installation root directory. How can i do this?
0
votes
1answer
94 views

Authorize.net payment failes but order created anyway

When authorize.net payment fails - order still being generated(with status cancelled but anyway). How to prevent this? They do it with two different calls. First - create order, then - request to ...
0
votes
1answer
467 views

Add new field to shipment grid (with items price incl tax) - Magento 2 [closed]

I need to add a new field to shipment grid and this field must contain items price incl tax. So I also should plug into the shipment saving prosess to calculate and save this field value.
0
votes
1answer
101 views

Format for action attribute in menu.xml

Following the convention for value of the action attribute in menu.xml: [router_name]/[controller_name]/[action_name] I need to know how to give the value for my action attribute if my controller ...
1
vote
0answers
307 views

How is the minicart content loaded and rendered?

I have overriten the content.html minicart template in my theme, currently the code looks like this: <!-- ko if: cart().summary_count --> <div class="detailArea"> <div> <ol ...
0
votes
5answers
351 views

Magento 2 js not loading after installing a new theme

This is my current magento 2 website http://jamesviana.online/ Above is the error I have installed a new paid theme which have been installed the backend is working while in the frontend the js not ...
3
votes
1answer
2k views

Magento 2: How to remove add to cart template from product detail page

I have to remove add to cart button from product detail page when product store has 0. How to achieve this
1
vote
2answers
2k views

Magento 2 : Add template below addtocart button and replace quantity and addtocart template from product detail page

I have two requirements Add template below addtocart button. Replace core template of quantity and addtocart button with my own template. How to achieve this My layout file is below:- ...
1
vote
1answer
390 views

How to add href to custom attribute in customer grid?

I have created the custom attribute to upload the business proof file during registration. I am able to store the file in /pub/media and file name in Database and the file name also displaying in ...
0
votes
3answers
415 views

Overriding a block is not work in Magento 2

This is My di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"&...
0
votes
2answers
110 views

Apply specific tax only if products price more than 110

Is there any way to create tax rule based on cart total product unit price? I need to implement New York 4% state tax for purchase price over $110. Thanks. A little clarification. Tax should be ...
4
votes
1answer
731 views

how to get the product custom option in template file in the magento 2?

this is my code but when i echo count ($_product->getOptions()) output show 0 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->get('Magento\...
2
votes
4answers
6k views

How I will use escapeHtml in Magento 2?

In Magento 1 I used the code below for value: value="<?php echo $this->escapeHtml($this->getDefaultValue()) ?> Now how will I set this code in Magento 2?
2
votes
3answers
1k views

Disable payment method on frontend only

How to disable payment method Check / Money Order only on frontend, but left available for admin on backend ? I can't find solution for M2
1
vote
2answers
1k views

In a custom module I override the cart item template

How do I correct my code to fix this? In my custom module I have the file app/code/MyCompany/MyModule/view/frontend/layout/checkout_cart_item_renderers.xml with the following code: <?xml version="...
0
votes
1answer
1k views

override in cart page in the custom module in the magento 2 is not work?

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance dc" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <...
4
votes
1answer
1k views

Add last 4 digits and type of card to Payment Information in admin view order

After customer create order with Authorize.net, the info in Payment Information in admin view order says "Credit Card Direct Post (Authorize.net) The order was placed using USD.". How can I add type ...
2
votes
1answer
67 views

how can I set the type before order confirm in magento 2 in phtml file

In magento 1 $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM); how can I set this ...
0
votes
2answers
3k views

How to solve 500 internal server error in custom module in magento 2

My php version is 5.6 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_curl.dll' - /usr/lib/php/20131226/php_curl.dll: cannot open shared object file: No such ...
6
votes
2answers
5k views

How to call block method from Controller in magento 2

I want call block methods from controller. My files are below Controller namespace Vendor\ModuleName\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
2
votes
1answer
903 views

Maintenance Mode is not going to 503 Page

Normally when you enter maintenance Mode, Magento is supposed to return a 503 Error, and redirect to a customizable page. Right now, when I enable maintenance mode, Magento returns a 500 error, and ...
0
votes
0answers
1k views

How can make jquery ajax controller in magento 2

I am not able to find correct approaches to done this work. I found some resources but there they guys are using model files also but they didn't explain about that files. My codes are below ...
6
votes
1answer
3k views

Remove success message after show

I custom add to cart module on Magento 2 and keep message like Magento core. if (!$this->_checkoutSession->getNoCartRedirect(true)) { if (!$this->cart->getQuote()->getHasError()) { ...
0
votes
0answers
3k views

How to use Ajax in magento 2 custom module

I am working on one custom module and i need product load when any ID is clicked. Loading is handle by ajax. I am not aware of ajax in Magento 2. Can anybody give me small demo of ajax in Magento 2 ...
0
votes
2answers
1k views

List all products with special price

I need to create a page which lists all special products (with active special price). How can I do this?
1
vote
0answers
44 views

How to translate html content in magento 2 [duplicate]

I am having some content in .html file in checkout page, I want to translate that content to french but I am unable to translate. I tried many methods but still not getting.I translate all phtml files ...
1
vote
0answers
196 views

How to create custom Ajax Tabs using jquery in magento 2 [closed]

I have to do this in custom module. How can we achieve this in phtml file.? You can click here for detail part. I need this kind of function in my custom module.
1
vote
3answers
2k views

How to override addtocart.phtml for all type of product in magento 2

I have done this but my code is not working for all types of product. layout file <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
282 views

I am getting error while changing developer mode to production mode in magento 2

The detail of error is below: Enabled maintenance mode Starting compilation Something went wrong while compiling generated code. See the error log for details. Command returned non-zero ...
0
votes
2answers
1k views

How to update shopping cart after addtocart button click in magento 2

My layout file code is cms_index_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/...
0
votes
0answers
218 views

Add product to cart programatically and update shopping cart using block and template file in Magento2

I have to add product from home page using custom module. so how to add products in shopping cart by clicking Add to cart button. Please anyone help me
0
votes
1answer
563 views

How to add product into shopping cart by single click using custom module in magento 2?

My template file code is $listBlock = $this->_listBlock; $addToCartUrl = $listBlock->getAddToCartUrl($_product); ?> <form data-role="tocart-form" action="<?php echo $...
1
vote
0answers
74 views

How to replace load jquery.js form local to link web CDN in require.js

When my page load require.js required jquery.js from local https://mypage/pub/static/frontend/../../en_US/jquery/jquery.min.js And I want to change required from link web CDN https://ajax....
3
votes
1answer
3k views

How to get custom Featured product collection in magento 2

I have created one custom attribute and also i have added some product under that attribute now i need product collection of that attribute. Below is my block code for collection but it's not working ...
5
votes
1answer
10k views

How to Create Magento 2 Multiple Languages?

I want to create my store in multiple Languages. But I can not do it.
3
votes
0answers
98 views

How to get layout tab ajax request parameter in block?

I want to send productId when vendor tab is clicked . vendor_section current ajax url is :- dailydealadmin/index/vendor. But I want this url like this :- dailydealadmin/index/vendor/productId/5. ...
1
vote
2answers
813 views

how to create store view column in upgrade schema in magento 2

I created an admin module for that I need Store View multiselect option. I created upgrade schema and checked it but still selected language is not selected after saving the page.In database table I ...
1
vote
1answer
53 views

Change link jquery from local to web

This is link jquery in my local ../pub/static/frontend/../../en_US/jquery/jquery.min.js and I want change to https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js Anyone help me?