Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

306 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

Product page not displayed correctly

We are new in Magento, version 2.2.6. Today we noticed our product listing page have errors, there are some css code, also the entire layout is wrong, I have well attached a picture to this. Please ...
0
votes
0answers
21 views

How can I call JS-file on any page? Magento 2.2.6

I have a custom JS file. But when I try to call it - it doesn't work. I use that code on content -> pages -> my_page: <script src="My_site/file.js"></script> It's just an image-slider. ...
0
votes
1answer
46 views

Intensity reduce of captcha image overriding in magento 2

I have changed number of lines and dots in native magento 2 captcha in /vendor/magento/zendframework1/library/Zend/Captcha/Image.php. but not impact in captcha
0
votes
0answers
15 views

Can it's possible to set JavaScript variable on <script type=“text/x-magento-init”> tag data in Magento 2

I want to make the changes of spConfig variable by javascript variable. <script type="text/x-magento-init"> { "#product_addtocart_form": { "configurable": { ...
0
votes
1answer
132 views

The form inside the popup failed to submit the data in magento 2

I have created a button in product Detail page. While clicking the button, it will show the popup, the popup contains form. After filled the details in the form , the submit button is not working ...
0
votes
1answer
21 views

I wish to add custom section in product detail page in magento 2

How to add custom button in product page,while clicking that button it needs to show custom form in a popup ?
0
votes
0answers
15 views

While editing the customer in backend throws exception in magento 2

I am trying to edit the customer in backend, while clicking edit it thows the below exception
0
votes
0answers
21 views

How can I change the default store view?

Right now my store view drop down looks like this- All Store Views Main Website --Example Store ----Default Store View It always starts at All Store Views instead of Default Store View. How can I ...
0
votes
0answers
8 views

I am applying tax but it is not working on the site

I am applying tax from store->tax rules adding new tax rules and then adding world wide 15% tax . these are my steps in the form of screenshots . step-1 : http://prntscr.com/ltn34b step-2 : http://...
0
votes
2answers
205 views

The next arrow hidden on the product images in fotorama zoom pages at magento 2.2.6

I need to show the next arrow in all the pages of the product when the product page shown in full screen. Is there any option to enable next arrow in fotoram.js file? I have used magento 2.2.6 version....
0
votes
0answers
32 views

How to prefill shipping details in cart page in Magento 2

I have created one custom button in cart page to save country, state, postal code which is entered by the customer. After entering the country, state, postal code the customer wish to save the the ...
0
votes
0answers
35 views

how to set null value to email column in sales order address table

I want to set the email field in sales order address table to null.But if i give $address->setEmail('')->save(); Its saying that the email is not in correct format.I am able to save the customer ...
0
votes
1answer
51 views

Why default cross sell layout doesn't show anything?

I'm trying to show cross sell on product page anfd I'm using default logic: <block class="Magento\Catalog\Block\Product\ProductList\Crosssell" name="catalog.product.crosssell" template="...
0
votes
2answers
66 views

How to show Cross sell products even if the main product isn't in cart?

I'm using Magento-2.2.6 I am showing cross sell product in product_detailed_info with success. The only problem is that cross sell product are shown only if the "main" product is in cart. How can I ...
0
votes
1answer
106 views

How to move attributes in magento 2.2.x?

I want to move some attributes, but I don’t see any settings for this.
0
votes
1answer
63 views

Form Field is not showing in Admin Panel

I added a custom form field here my code is <field name="bannermobileimage"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
0
votes
0answers
12 views

Can not scroll image in mobile device for product page

I am trying to access my site on mobile. But when I access product page on mobile and touches the image then scroll is not working... But when I scroll by touching the area except for image it is ...
0
votes
0answers
56 views

Magento DHL - Error in parsing request XML:Invalid byte

Trying to Connect DHL with default DHL module in Magento 2.2.6 but getting error for any quote request: <Status> <ActionStatus>Error</ActionStatus> <Condition&...
0
votes
2answers
82 views

Magento 2 - Trying to get the items from the order into the success page

I am trying to pull the products from the order on the success page, but it keeps returning with "0" when I do var_dump. <?php namespace CJ\CJTracking\Block\Checkout; class Success extends \...
0
votes
0answers
17 views

How change const list_product_order to order when sorting product list magento 2

In magento 1 url when sorting is: http://demo.magentocommerce.com/men/shirts.html?dir=asc&order=price But magento 2 when sorting is http://demo.magentocommerce.com/men/shirts.html?product_list_dir=...
0
votes
0answers
57 views

Magento 2: Set table structure in order invoice pdf

I have need to set order invoice PDF in table structure. I have tried in Magento 2 below core files for same but not done. magento\vendor\magento\module-sales\Model\Order\Pdf\Invoice.php ...
0
votes
0answers
19 views

Magento 2 : On clicking swatches, thumbnail images are hiding

On product page, On clicking swatches Size and color. Thumbnail images are hiding.Why is it so happening. I used custom theme. Please help somone.
0
votes
1answer
112 views

filter data using addFieldToFilter() Condition in block file magento2

I need to filter values based on and condition in my custom table id status categoryid and i have to filter data according to status and categoryid my current code is $collection = $this->...
0
votes
0answers
31 views

Creating a new folder for Images uploading in Magento admin panel

Currently, we are using the version Magento 2.2.6. We would like to create a new folder for the images with the admin panel as per the below image. But the popup for creating a new folder hides ...
0
votes
0answers
56 views

An error will be output when migrating data to Magento 2

Below is the error contents outputted when migrating data from magento 1.9.3.1 to magento 2.2.6. Please tell me how to fix the error. [root@windows magento]# php bin/magento migrate:data vendor/...
0
votes
0answers
29 views

Where can i find the device_name from which the order is placed in magento 2 db?

Need to know the list of the device names appended in the Magento platform and in which table is it rendering from? for example: "device_name": "Smartphone", "device_name": "Desktop"
0
votes
0answers
84 views

Magento 2.2.6 Remove Category Filter From Sidebar Filtered Navigation

I am only looking to remove the "Filter By Category" section. I wish for the other filter options to remain. The pages impacted are the main category catalog pages. I have tried the multiple ...
0
votes
0answers
64 views

Magento 2 youtube product video error on mobile device

My YouTube product videos wont play on mobile devices (except iPad). I'm getting a "Your browser does not currently recognize any of the video formats available" error. I don't believe this is really ...
0
votes
0answers
334 views

Remove sticky behaviour of cart summary in Magento 2.2

i need to disable sticky behaviour from the cart summary block in checkout cart page, but can't figure out how to do it. I tried overriding js file /vendor/magento/theme-frontend-blank/...
0
votes
1answer
81 views

Magento 2: Unable to get item_id while event “sales_order_save_after” is trigger

I need the product item id while sales_order_save_after event call. I try the following code. I am not able to get the item_id $order = $observer->getEvent()->getOrder(); foreach($order->...
0
votes
0answers
182 views

Magento Customer Grid Custom attribute can't export csv and export xml

Magento Customer Grid Custom attribute can't export csv and export xml, Showing error, how to add custom attributes to the customer export. PHP Fatal error: Uncaught TypeError: Argument 2 passed ...
0
votes
1answer
366 views

Order confirmation receiving twice in magento2

I am facing same issue in Magento2, After the order gets confirmation we receiving the order confirmation mail twice. We using External plugin JccPaymentGateway , by using that plugin if we do order ...
0
votes
0answers
104 views

How to get and show the best selling products in magento 2

I wish to show best selling products in homepage.Please provide me a solution to get best selling products and display in hoe page. Thanks
0
votes
0answers
39 views

Changing Price of Product in All Pages instead of Being Full Page Cache in Magento 2

I am used Magento 2 full page cache. So all the data come from Magento 2 Cache. So if I saved the specific page or product only then data will be updated otherwise everyone will show the same data. ...
0
votes
0answers
49 views

Get order id and product id while order placed using Observer | Magento 2

Hi i need to get the order id and product id while order is generated in magento2 <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
32 views

How to get Class names of all the elements while writing LESS?

I want to create a new theme for my magento2 , so that i create all the boilerplate files that are required for theme creation. Now my problem how do i get all the class names for writing the LESS ...
0
votes
0answers
83 views

Mini Cart Not Working in Mobile view in magento 2

For Mobile view, I have added the items in the cart, the mini cart icon shows the product count correctly, But it will fail to trigger the minicart-wrapper class which means while clicking the cart ...
0
votes
2answers
42 views

not able to read parameters in Magento 2.2.6

How to read 'aref' parameter while creating new Magento account using : http://mydomain.in/customer/account/create/?aref=88987990 I have implemented as below: use Magento\Framework\Event\Observer; ...
0
votes
0answers
34 views

custom attribute save is not working during regsitration

I have created custom attribute, and i'm displaying those attribute in registration page. When user clicks on create an account i get values for custom attribute from post value. But when i tried to ...
0
votes
0answers
16 views

magento 2.2.6 Simple Product will be output when searching on the category page

magento 2.2.6 Simple Product will be output when searching on the category page. If you solve the same problem, please tell me how to do it.
0
votes
0answers
25 views

Magento2 - New Products added after upgrade from 2.2.1 to 2.2.6 doesn't display in frontend

When I am adding new products after upgrade to 2.2.6, the new products are not shown in the front-end category neither it shows in the search result. but I can access the product directly from the ...
0
votes
2answers
187 views

How include the Swiper slider html in Magento2.2.6?

I tried i include the swiper.min js. but not working. https://idangero.us/swiper/demos/080-scrollbar.html i added this slider in our product phtml file then coming error please let me know how we ...
0
votes
0answers
15 views

Order summary custom field Validation Magento2

In Checkout Order summary I have added 3 fields by overriding checkout summary. But before clicking next button I need to validate if customer has selected any values, if not when clicking Next it ...
0
votes
1answer
50 views

How to add custom js file for PDP page in magento 2

I wish to include custom js file in PDP page in magento 2. I wish to do some action while product has some options. Please provide me a solution to add custom js in PDP page
0
votes
0answers
176 views

Magento 2.2.6 SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '164-57-21'

I am getting below error during migration Magento 1.9.3.6 to Magento 2.2.6 [PDOException] ...
0
votes
0answers
35 views

Magento 2 : How to add div to separate Swatch and Custom Option

I've a configurable product with custom options. I can see default HTML structure is like There's div with ID product-options-wrapper which contains HTML for swatch and Options. For Swatched there'...
0
votes
1answer
28 views

Custom cron not working in magento 2.2.6

I Have created the custom cron in my custom module. crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
26 views

Error: Using Duplicate Id (.phtml file)

i declare a div in a .phtml file for a slider <div id="page-header-sliders" class="page-header-sliders template-1 full-width"> and this phtml file is create 5 slider in a same cms page, so id ...
0
votes
0answers
42 views

Custom Customer attribute grid not filter by asc or dec

I have tried to create custom customer attribute and it is working fine, but i have tried to filter this from grid like asc or dec. it is showing error.I have attached screen shot with it. [2018-11-...
0
votes
0answers
30 views

Magento 2 main menu didn't display after transfer from server to localhost

My main menu doesn't display on storefront after taking live backup. when i logged in on admin panel my all products and categories shown in products and category pages, but they didn't display on the ...