Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

Filter by
Sorted by
Tagged with
1
vote
1answer
146 views

Magento 2.3.0 calendar selection issue

I have a store with Italian Language with Magento 2.3.0. In that store, I have created a calendar and I am facing some issue while selecting the date from the calendar. My Date Format is dd/MM/yy. My ...
1
vote
2answers
374 views

What is the layout for editing the “Your search returned no results.” page?

Instead of showing "Your search returned no results." I would like to give the user some links to other pages in the site. When I look in module-catalog-search/view/frontend/layout I see three files ...
1
vote
0answers
12 views

Magento2 Innermost category selection as Radio Button

like we have check-boxes for selecting category for products, but for a specific requirement I want to limit the selection of innermost category to just one instead of multiple. for example parent-&...
1
vote
0answers
29 views

Tax is not included in Sagepay transaction

While placing order from Admin using Sagepay, Tax is included in order total but Tax is not being included on sagepay transaction. Even I've set "Include Tax In Order Total" to "Yes". I am using ...
1
vote
2answers
206 views

How to convert latin characters into the english characters?

I have following brand name which contains Latin character. How to convert the brand name into English? Latin characterise string: RéVive LeurCrème Want to convert into - Revive LeurCreme
1
vote
0answers
8 views

Is there any way to retain the entered customer billing/shipping addresses in magento admin once entered?

We see that the addresses of billing/shipping added to the order creation process gets erased if we remove all line items from the cart and then add back new product using "Add products by SKU" button....
1
vote
0answers
167 views

Missing Rows In Sales Order Grid

I have an interesting issue. Admin sales order grid does not show all records in sales_order_grid table. I tried several solutions. For example, I activated async grid generation on admin panel, ...
1
vote
0answers
17 views

When we migrated to Magento 2 we found that we were unable to edit configrable products price from Admin

When we migrated to Magento 2 we found that we were unable to edit configrable products from Admin. I want to be able to change the price. Please tell me how to fix it.
1
vote
0answers
49 views

How to show product custom attribute value on sales order view page under magento admin

How to show product custom attribute value on sales order view page under magento 2.2.6 admin.
1
vote
0answers
29 views

When I try to generate Fedex shipping label using magento version 2.2.6. The error is showing “Customs Clearance Detail is required.”

If I try to change file Carrier.php add 'CommercialInvoice' => ['Purpose' => "SOLD"], the error is showing like [08-Feb-2019 12:20:39 UTC] PHP Fatal error: Namespace declaration statement has to be ...
1
vote
0answers
132 views

Xdebug don't stop in the breakpoints

I try to debug my magento2 project with xdebug php 7.1 and nginx. I have differents breakpoints in app/code/Extension/Module and doesn't stop in any one. Just stop if I have the option "Break at the ...
1
vote
1answer
21 views

Deploying code via GitHub

Due to the security reasons, we want to deploy the changes in code with GitHub. I can see that we can only change the code via GitHub. Is it possible to change the admin configuration as well via ...
1
vote
0answers
90 views

Magento 2.2.6: Programatically updating product custom options

I am working on custom script to update product custom options. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->create('Magento\Catalog\Api\...
1
vote
0answers
74 views

How to Save Front-end Feedback Form Data in database table Magento 2

I want to save form data in a table, I searched a lot of stuff but unable to do it here i created a form in form.phtml file <form > <label for="fname">First Name</label> &...
1
vote
0answers
476 views

Getting “DDL statements are not allowed in transactions ” error when re-index programmatically in magento 2.2.X

I am working on Magento 2.2.6. As per requirement I need to do re-index on sales_order_save_after event. It is working well in Magento 2.1.X but I am getting following error on Magento 2.2.X. ...
1
vote
0answers
507 views

Send Tracking information email to customer when tracking number saved to Magento

Is there a way for Magento2 to send tracking information email to the customer when tracking information is saved? Currently, we are using 3rd party tool ecomdash to process the order and shipment, ...
1
vote
0answers
360 views

Magento 2 Custom payment methods not display in backend new order create?

I created a custom payment method and it is displaying in checkout page (frontend).But this payment method is not displayed in admin side also when i create a new order. Anyone can help on this ? My ...
1
vote
0answers
175 views

Magento 2: How to move block into html div?

I want to move below block in third "col-md-4 col-lg-4" div:- <block class="Magento\Catalog\Block\Product\View" name="product.info" template="Magento_Catalog::product/view/form.phtml" after="alert....
1
vote
1answer
306 views

How to get the shipping address from using sales_order_payment_save_after event

I need to save the shipping address while order is placed in my custom table how to i take the shipping address . I am using the event sales_order_payment_save_after and did the following codes $...
1
vote
0answers
46 views

API issue returning object

We have this API where we save different fields, but the object $lines we have created doesn't save properly. The code below are the getters and setters for the object $lines. Save method API: ...
1
vote
0answers
164 views

Programmatically import multiple products with same image name in 1 transaction - Magento 2.2.6

I'm running into an error while importing multiple products with the same image name in one transaction. The file "/var/www/magento/pub/media/tmp/catalog/product/t/e/test.jpg" doesn't exist or not ...
1
vote
0answers
31 views

why images showing 404 when used inspect with .jpg.tmp

Randomly some product images are showing error only when i click inspect. Error details : Failed to load resource: the server responded with a status of 404 (Not Found). See image below. i ...
1
vote
1answer
455 views

call block from controller via ajax

I call controller function from phtml via ajax, it calls controller function Now i am trying to call block function in controller it is not working Controller code public function __construct( ...
1
vote
0answers
76 views

Magento 2 : Print Quote Details

I want to print Quote detail's similar to print order from Cart page. Is it possible to print quote details along with quote item detail and quote amount detail. Please provide me the logic or code ...
1
vote
1answer
515 views

“Could not save product ”5648“ with position 1 to category 6”

When I tried to remove the category from the product edit page the following error is getting displayed. I am saving the product manually via admin end.....
1
vote
1answer
1k views

Magento 2.2.6 - Mixin does not work

I try to add more KO functions to the Magento_Checkout/template/summary.html I have an own extension "XXX_Checkout" For this i do the follow parts: Create Mixin /app/code/XXX/Checkout/view/...
1
vote
1answer
272 views

How to move product.price.render.bundle.customization from bundle.summary to product.info.price in Magento 2

Magento 2 bundle product has a set of simple products. If you click each simple product's checkbox, its bundle product's price is re-calculated and displayed in bundle.summary block. I want to move it ...
1
vote
1answer
201 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 ...
1
vote
2answers
300 views

How to hide the column entries in admin grid?

I have a column called goods. I can enter the number inside that column and save. After save I don't want to show the entry in the grid. It should be empty. I want to show only the column name as ...
1
vote
1answer
283 views

Magento 2 : Change Language Code

I'm facing issues while update language code for website. <!doctype html> <html lang="en"> I want to change it with en-GB. I've already locale setup with default configurations. Any ...
1
vote
0answers
85 views

Magento2.2 How to get userContext into ScopeConfig

It's more a core logic issue than a technical issue! I created one new table for admin_user: admin_user_config_data |config_id|user_id|path|value And, like in core_config_data, in this new table ...
1
vote
2answers
26 views

Magento2 on upgrade not generating static assets

I made a copy of a website for upgrade from 2.2.1 to 2.2.6, but I think there is some small issue, which I am not able to figure out. The static contents in the pub static folder are not getting ...
1
vote
0answers
509 views

set custom shipping amount programmatically in Magento2

I am trying to set the custom shipping amount to quote or order without shipping method. Main thing is that shipping amount have to be stored in the database. Please help me for the same .. My ...
1
vote
1answer
2k views

Magento 2 Add Custom Sale Order Grid Column and Export in CSV

i added custom columns in Sales Order Grid successfully, but when i export data in CSV file the custom column blanked <?php namespace Vender\Module\Ui\Component\Listing\Column; use \Magento\...
1
vote
1answer
331 views

Magento 2: Login user programmatically showing wrong default header message “Default welcome msg!” instead of showing “Welcome, user!”

When you login to Magento 2.2.6 programmatically with code below, header show default message "Default welcome msg!" instead of "Welcome, user!" // Load customer session $customerSession = $...
1
vote
0answers
42 views

How to fix install blog extension last step error?

How to fix install blog extension last step error? please check this screenshot. http://prntscr.com/li3e5p i'm facing many errors on this server(platform.cloudways.com).
1
vote
0answers
23 views

Magento ver. 2.2.6 - Custom Checkout Step by customer group

I have to add a new custom checkout step which only should appear by a specific customer group.
1
vote
0answers
58 views

Extend a default JS component or Use Mixin

Which is better and recommended to use Extend a default js component as explained at https://devdocs.magento.com/guides/v2.1/javascript-dev-guide/javascript/custom_js.html#extend_js or to use Mixins ...
1
vote
0answers
60 views

How to enable a custom shipping method for API in Magento 2?

We have created a custom shipping method in magento2, It's being added to the JSON response when we fetch the order data as well. But we are not able to append it in post request JSON of order ...
1
vote
1answer
384 views

Magento 2 - Getting user role

I would like to get the Role of the user logged in. I'm trying to use the \vendor\magento\module-user\Model\User.php class, but all results give me null or empty. I'm trying to use \vendor\magento\...
1
vote
1answer
292 views

Correct way of adding images programmatically?

I have the following problem, right now my program uploads the images and does it good, however when i go to the edit product page, the following are empty or uncheked: Role Alt text Here is the ...
1
vote
1answer
317 views

magento 2.2.6 Indexer:reindex error

I get the following error when running the indexer:reindex command for Magento 2.2.6 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DB.catalog_category_product_index_store1_replica' doesn'...
1
vote
1answer
440 views

Getting error Call to a member function dispatch() on null in Block

This is the proper way of outputting something Fatal error: Uncaught Error: Call to a member function dispatch() on null in /opt/lampp/htdocs/learnm3/vendor/magento/framework/Model/ResourceModel/Db/...
1
vote
1answer
60 views

How to call product new.phtml in admin cms home page magento 2.2.6

How to call new.phtml file in the home page admin Magento 2.2.6 version? Please check my screenshot link here http://prntscr.com/lapiu7. And also check my theme default.xml code. <referenceBlock ...
1
vote
1answer
363 views

Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit

I added a custom field inside my product attributes and it's render and save OK, but when I reload the attribute form, the value of my custom field is empty. If I enter to the form data inside the ...
1
vote
0answers
27 views

When I add product from backend I got this

I am using Magento 2.2.6 When I add product from backend I got page like shown in below image. Is it any known issue in Magento 2.2.6 or any cache related issue?
1
vote
0answers
23 views

Replace instant purchase message with popup (2.2)

I'm using a custom theme I wrote that derives from magento-blank and was wondering how I might go about replacing the instant purchase message at the top with a popup. Currently, on a mobile device, ...
1
vote
1answer
217 views

Magento 2 Backend - Click on the admin user and an error will be output

If you click on the administrator user, an error will be output. Please tell me the solution. Below is the error code. 1 exception(s): Exception #0 (Exception): Warning: Illegal offset type in /var/...
1
vote
1answer
145 views

How to add a video as background for all pages in Magento 2?

I am trying to add a video as the background for the Magento frontend. Is it possible to do it? Or would gif be a better idea, despite bigger size?
1
vote
0answers
227 views

Special characters in attribute options

When I am trying to add a special character "&" in a custom product attribute option. The characters after it are cut off, & included. It does not work if you enter it as an HTML entity "&"...