Tagged Questions
Denotes questions related to Magento CE and EE 2.1.x
0
votes
0answers
6 views
Cache error during checkout (page-cache.js)
I very very very often get this when I go to checkout.
https://www.dropbox.com/s/daoyet3z48ftlgw/Screenshot%202017-01-23%2015.11.38.png?dl=0
This's making me go crazy!
How to fix this?
0
votes
2answers
21 views
how i use escapeHtml in magento 2?
in magento my code is
value="<?php echo $this->escapeHtml($this->getDefaultValue()) ?>
how i set this in magento 2
0
votes
0answers
8 views
How to change div fotorama__stage height on product view page
How can I change height in the below code on Product detail page
<div class="fotorama__stage" data-fotorama-stage="fotorama__stage" style="width: 462px; height: 372px;">
I have tried below ...
0
votes
0answers
12 views
Magento 2 website periodically goes down and indexing doesn't work
Can anyone help me with my magento 2 website?
Despite being with a good hosting company with enough space, my website periodically goes down about once or twice a week. The hosts say that it's ...
0
votes
0answers
16 views
override Magento\Catalog\Block\Product\View\Gallery using preference not working
I am trying to override the getGalleryImagesJson() method of Class Magento\Catalog\Block\Product\View\Gallery but I am unable to do so.
Below are my codes:
di.xml
<?xml version="1.0"?>
<...
0
votes
0answers
25 views
escapeHtml is not work in option value in the magento 2
here is my code
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_product = $objectManager->get('Magento\Catalog\Model\Product')->load($productId);
//...
0
votes
0answers
11 views
Magento2: how to hide sort by option in category listing page in responsive mode
Sort by option coming in category and product listing,i want to show sort by option in product listing page in responsive mode.how to hide it in category listing.Is it possible to get different class ...
0
votes
1answer
25 views
Move breadcrumbs on category pages
How to move breadcrumbs before toolbar on category pages?
I want to show category page breadcrumbs before sort by dropdown.
0
votes
1answer
27 views
Magento 2 - Order status after shipment and invoice
I'm using Magento 2.1.3
I would like to change the order status to custom "waiting for courier" after shipping and invoice is created instead of "complete".
Right now I'm using event "...
0
votes
0answers
13 views
Creating custom module in magento2 admin grid shows fatal error
a:4:{i:0;s:562:"Recoverable Error: Argument 3 passed to yyy\xxx\Controller\Adminhtml\Items::__construct() must be an instance of Magento\Framework\View\Result\PageFactory, instance of Magento\Backend\...
1
vote
0answers
20 views
Add input box in checkout page
I am trying to add an input text box in checkout payment part for customer input the sales id.
The payment option in the image is just one of the default Magento payment method.
do I need to rewrite ...
1
vote
2answers
17 views
what is the best way to create a new instance for class?
What is the difference or best way for creation instance of new class?
Object manager?
or
Define in to constructor?
0
votes
1answer
23 views
Magento 2.1, Customer-Login - User stay Logged In
Users "Stay Logged In" in Magento 2.1, they should never be automatically Logged Out. Manual Log Out only.
0
votes
0answers
18 views
Magento 2.1.2 Adding product will result to exception errors
When I go to the backend of the site and navigate to products>catalog and click the add product button it will generate some errors.
I hope someone can help me with this problem.
Thanks.
0
votes
0answers
7 views
How to make parent-child relationship of associated checkboxes in Magento 2
There's a documentation about associated checkboxes in magento 2 documentation, i want to make a checkboxes like that but i don't know how to do it using fieldset, here's an example of checkboxes that ...
0
votes
0answers
11 views
Magento 2 - Stop SID redirection on first pageload
I am new to Magento 2 and I have been trying to make my website stop redirecting www.mysite.com to www.mysite.com/?SID=some_long_SID_here.
I have searched online and tried a series of things, ...
0
votes
0answers
7 views
How to change the category style magento 2?
I want to make the category style as like image below.
Can anyone please help me how can I design it in Magento 2? Please show me the path and code where I have to change.
Thanks
0
votes
0answers
12 views
Added block is affecting the mobile menu - magento 2.1
I have add the following block in my Magento_Theme/layout/default.xml
<referenceBlock name="navigation.sections">
<block class="Magento\Framework\View\Element\Template" name="store.menu....
0
votes
0answers
18 views
jit-grunt: Plugin for the “clean” task not found
After running grunt clean in magento 2.1.3 root folder I get error
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-...
1
vote
0answers
12 views
Magento2: How do I get products back order setting?
I am trying to add a block in catalog_product_view.xml to display special info when back orders are allowed on an item. I can't figure out how to get the backorder setting for the product though. I ...
0
votes
1answer
24 views
Magento 2.1 which template file do I need to override to edit homepage content?
I've been trying to find the phtml file that I need to override in order to edit the homepage content - the bit that says "CMS homepage content goes here.". I can't seem to find the right template ...
0
votes
0answers
13 views
Magento 2, Nginx with Let's Encrypt on Ubuntu 16.04
I have read many times How To Secure Nginx with Let's Encrypt on Ubuntu 16.04
But have problems on step 2.
My command:
sudo letsencrypt certonly -a webroot --webroot-path=/var/www/domain.ru/html -d ...
0
votes
0answers
10 views
Magento 2 How to set owner email address to get new order email?
I am Using Magento 2.1.1 version with em-everything default theme.If Any customer ordering the product from store the new order email is not sending to store-owner email id but customer is getting the ...
0
votes
1answer
21 views
How can i disable module manually in Magento 2
I'd like to know if its possible to manually disable a module by changing some code like in Magento 1.
I know the SSH way.
0
votes
1answer
12 views
MassActions not working return js error
I m creating a custom module and everything is working fine except the mass actions. I know that i must have missed some setting ;) but i cant figure out where. Here is the grid config code:
...
0
votes
1answer
22 views
What is the differences and similarities between Magento plugin vs extension vs module?
Please explain the differences and similarities among them with use cases
0
votes
0answers
4 views
Magento 2.1 override the view.xml file and see changes on site
I'm pretty new to Magento 2.1 and am trying to figure out how the themes work. I've read through a lot of the documentation, but what I'm having trouble with right now is the view.xml file in my own ...
0
votes
0answers
22 views
Launch magento admin (after installation) - FAIL
I have installed magento 2.1. succesfully. Problems is when I try to access magento admin for first time, I receive error in browser:
dns address could not been found / ERR_NAME_NOT_RESOLVED
Both ...
0
votes
0answers
9 views
magento 2 add tracking detail to order?
I want to add the tracking number before generate the shipment.
$number = '1234872394';
$carrier = 'fedex';
$title = 'Federal Express';
$track = $objectManager->create('\Magento\Sales\Model\...
0
votes
0answers
24 views
(ReflectionException): Class Fc\CustomHandles\Observer\AddHandles does not exist
I'm attempting to implement some custom handles in my magento 2 project by following this:
http://frankclark.xyz/modules/magento-2-get-customer_logged_in-and-customer_logged_out-layout-handles
After ...
0
votes
0answers
12 views
Magento 2 offline payment method new order status
I've created a new offline payment module using this generator http://cedcommerce.com/magento-2-module-creator/payment-module
config.xml
....
<order_status>pending_payment</order_status&...
0
votes
0answers
11 views
Magento 2: Configurable Products, “Add Products Manually”
I'm trying to add 95 simple products to a configurable product using the "Add Products Manually" button in the "Configurations" tab of the product edit page.
Everything seems to be working okay until ...
0
votes
0answers
19 views
There has been an error processing your request after implementing new theme [on hold]
After implementing a new theme, when I visit my website I receive:
There has been an error processing your request
Specified invalid parent id (Ves_All::ves_all)
How do I resolve this?
0
votes
0answers
22 views
Magento 2 payment gateway callback
I am new guy in the Magento 2 world. Based on the official Payments Integrations documentation for 2.1 version I have made gateway so the module contains requests data builders, validators, response ...
0
votes
1answer
39 views
factory injection in magento 2 not working
Trying to override authenticate method of \Magento\Customer\Model\AccountManagement. Here is the code:
namespace namespace\module\Model\Customer;
class AccountManagement extends \Magento\Customer\...
-1
votes
0answers
14 views
Magento 2 - How to integrate Google map to Autocomplete Address Form in checkout?
How do you integrate Google Maps for Autocomplete Address Form in checkout?
4
votes
1answer
15 views
Check if product is new using observer
I have observer targeted on "catalog_product_save_after" event.
Need to check if current product is completelly new and not one of existing items.
How to do this?
3
votes
2answers
23 views
No 'online refund' in Magento2?
We've just switched from Woocommerce to the latest Magento2.1 and we are having problems with payments and refunds. There is no online refund option for credit memo, just offline refund.
We are ...
4
votes
1answer
51 views
how to install magento2devbox-web
Today I got mail from Magento regarding Magento DevBox Beta for faster access the website and more features. I have downloaded the module, But Where I need to paste it and how to install it. I don't ...
0
votes
0answers
12 views
Defining character length for custom attribute in magento 2
I have added custom attribute with type of VARCHAR and it is also added in attribute table.
But I want the length of field as 1000 char. I also checked the eav_attribute table but it does not have ...
0
votes
1answer
14 views
How do you give multi-stores different themes in Magento 2?
Under Stores/Different Stores I have set up a new website, store and store view. The new store has its own root category. I've set up the base urls to point the the second url. I've done the sym links ...
3
votes
1answer
23 views
Magento 2 - admin form show textbox on dropdown change
I have a form in admin with dropdown and textbox.
I want to show textbox only if dropdown value is set to yes.
I have not used UI-component for this.
I have tried below code but its not working.
&...
0
votes
1answer
8 views
Construct full image URL as REST API Client (for products and categories)
I've looked at the following post and a few others, and the methods for constructing the image URL are failing for me:
Getting full image url for products via REST API
How can I construct the full ...
0
votes
1answer
19 views
magento “erasing” simple products from configurable association
This is in magento 2.1.3
I have a bunch of simple products imported, as well as the configurable product that is supposed to be imported.
At first I could not find the link to "add products manually"...
1
vote
1answer
23 views
Overriding constructor in magento2
I am not sure its happening with me because i am a newbie in magento2. Every time i try to override a constructor i end with an error. Tried to find out a lot but nothing helps. So at last decided to ...
0
votes
0answers
8 views
Custom CSS styles on CMS Page over the main styles
I created a CSM page and added custom styles for it through field Layout Update XML:
<head>
<css src="css/mycustom.css"/>
</head>
So in this file i have some styles that conflicts ...
0
votes
0answers
16 views
Magento 2.1 Color Navigation - Unique link per product
I'm a newbee in the Magento platform and I'm strugling to get the configurable product option working the way I want.
As on this page: https://www.amara.com/products/collins-cushion-60x60cm-silver ...
0
votes
0answers
12 views
Magento 2 import csv
I have a product CSV where sku, name and an attribute created by me are specified.
When I import the CSV, it gives an error saying
1. Specified URL key already exists in row(s): 637, 640, 677, 909, ...
0
votes
1answer
16 views
Automatically cancel magento 2 pending orders after a specified amount of time?
We found that we sometimes run out of stock/inventory due to orders pending payment. Is there a way to "release" those stock/inventory after a specified amount of time, automatically, without us ...
0
votes
2answers
14 views
In Magento2 UpgradeSchema, Don't we have addColumns to add more columns to a table?
In Magento2 UpgradeSchema we have a function as,
$setup->getConnection()->addColumn(
$setup->getTable('quote'),
'testColumn',
[
'type' => \Magento\...