All Questions

2
votes
2answers
20 views

Best way to change block´s template?

I've been studing for the Magento certification and I came across a question in the swiftotter practice exam that said: Can someone explain me why the answer I chose is incorrect? I thought the way ...
0
votes
1answer
560 views

Remove street address field and required attribute from shipping address

I have a very custom use for Magento and I'm trying to remove street address from the checkout. Currently I have: class LayoutProcessor { /** * @param \Magento\Checkout\Block\Checkout\...
0
votes
0answers
4 views

How to pass data from UI Form to PHP Class

I have created a form using UI component, This form has a select dropdown which displays option related to current entity id if form is in edit mode and all options if a new entity is being added by ...
0
votes
0answers
2 views

URL rewrites not working Magento 2.3.0

Im having an issue with URL rewrites in Magento 2.3.0. URL rewrites are of course turned on and most URLs have been rewritten but there are some which have not been. They are included in the ...
0
votes
0answers
2 views

Magento2 installation stuck on user configuration (49%) on Ubuntu vagrant

I try to install Magento2 on my Ubuntu using vagrant, the installation stuck on " Installing user configuration... " without any error.
2
votes
3answers
38 views

Choosing a delivery method, Magento 2

I have the opportunity to pick up goods from the store. It is necessary to make this delivery method only available if the basket contains data from certain categories, and if there is at least one ...
0
votes
0answers
2 views

Magento 2: How to filter category by store id?

I want to filter category by store id. Used the following code, but it is not working. $collection = $this->categoryCollectionFactory->create(); $collection->addAttributeToSelect('*') ...
2
votes
0answers
21 views

Checkout.com Payment Gateway error “Transaction has been declined. Please try again later.”

Transaction has been declined. Please try again later. Checkout.com In Magento 2, when trying to place order using checkout.com payment gateway with sandbox credentials getting above error
0
votes
0answers
17 views

Virtual categorie rule with smile elasticsuite extension [on hold]

Can someone help ? That would be great. I'm using Smile elasticsuite extension for my M2 project. When creating virtual category rule only "contain" and "is not contain" options are available, ...
1
vote
1answer
20 views

Magento 2 Import/Export Options Missing

I've installed Magento 2 and under System -> Data Transfer there are no options. Do I have to enable them somehow?
0
votes
0answers
28 views

Magento 2 How to add configurable product to cart in product view page?

How can I add Configurable Product to shopping cart in product view page ? I try this code to show the custom option.` $customOptions = $_objectManager->get('Magento\Catalog\Model\Product\Option')-...
3
votes
0answers
18 views

Magento 2.2.7 error when using bulk attribute update when item is enabled

When trying to use the bulk update attributes I get the following error: Exception message: Required parameter 'theme_dir' was not passed I've been chasing this error for the last 2 weeks. At ...
0
votes
0answers
3 views

State specific product offering - Best practice

To build an e-commerce site that offers a specific set of products for each state of a country, what would be the best practice to be followed to create the product catalog. Approaches Define each ...
0
votes
0answers
6 views

Magento 2 problem with Mageplaza Search module

Could someone please explain how does Mageplaza Search module for Magento 2 generates content in file english_0.js located at /pub/media/mageplaza/search folder Problem is that frontend website ...
3
votes
0answers
19 views

Custom store view per customer group

I need a solution for showing a different store view to different customer group. For example: Store view 1 must be displayed to the Customer Group 1 and Store view 2 must be displayed to the ...
3
votes
3answers
4k views

Magento 2 Update record/table with where clause

How can I update record with multiple where clause? I know below method to update record with single where condition. I tried to used addFieldToFilter() but not succeeded. $objectManager = \...
2
votes
1answer
19 views

Magento 2 :Sort Attributes Alphabetically in layered Navigation

I want to sort the attributes in layered navigation in the alphabetical order. http://i.prntscr.com/zDuYTVDbSWqv_507ew0JbQ.png Sort in the order as:Climate, Color, ... I tried to override the ...
0
votes
0answers
4 views

Tooltip functionality in UI grid column Magento-2

I need to add tooltip functionality in UI grid column for Magento-2. When hover on particular record which is available in that particular column then that record's description is display on tooltip. ...
0
votes
0answers
4 views

Allow HTML tags for Bank Transfer Payment Method Instructions

I want to add some instructions with HTML tags to style content for the instructions text. When I'm adding tag in the textarea but it's displaying tags on the frontend not converting HTML tags to ...
0
votes
0answers
5 views

Magento 2 Add category chooser without UI component

I am trying to add category chooser in my custom admin form without ui component but unfortunately I am getting error in system.log [2019-03-22 09:27:47] main.CRITICAL: Vendor\Module\Block\...
1
vote
1answer
16 views

What is Asynchronous Web APIs in Magento 2.3?

In Magento Open Source 2.3.0 Release Notes Magento introduced Asynchronous web endpoints in Release Notes. Example PUT /async/V1/products/24-MB01 payload { "product": { "price": 29 } } ...
0
votes
0answers
8 views

Cron status running blocking next pending?

what is cron behavior when cron job will be terminated and cron status is set to running. I've notice that jobs scheduled after this cron entry with running status are not fired. Running status block ...
1
vote
1answer
15 views

Magento 2 How can I restrict abc.com/newsletter/manage/?

In Magento 2 we have newsletter functionality and we can hide the link from the customer account and hide from customer account create a form as well. That all working fine. I want to hide the page ...
1
vote
1answer
27 views

Missing add to cart button on some items

We're experiencing a strange issue with our catalog, I'm scratching my head of where to start looking for... Here are the symptoms: Item X - doesn't have the "Add to Cart" Button. When I go to the ...
0
votes
2answers
33 views

How to get all state code in magento 2.1.7?

I am passing the parameters as 'recipientstate' => $customer['region'] and 'cardholderstate' => $customerbilling['region'] Right now I am getting the region value's as ARIZONA , but I want it ...
2
votes
3answers
1k views
3
votes
2answers
27 views

How to check observer called from search page?

I am accessing observer (controller_action_layout_render_before) through this: app/code/Vendor/Module/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
550 views

Media browser field in magento2

I'm currently trying to create (or find how to) a field to display the Media browser (or media storage manager) in admin Edit on a custom module. Type file / image work fine, but it could be much ...
1
vote
3answers
39 views

How to make page non-cacheable in cms

I have added below code to load custom template file from cms. <p>{{block class="Vendor\Module\Block\Testblock" template="Vendor_Module::test_template.phtml"}}</p> If template is loaded ...
0
votes
1answer
66 views

magento 2 EE should not save search terms with zero search results

I am using magento 2.1.8 Enterprise edition. I do not want to save search terms which have zero search results. Is there any solution ? There is no option in configuration to stop saving the search ...
1
vote
1answer
15 views

Could not add pagination while fetching product as per category ID

I am using end point API to fetch product as per category id and want to add pagination on it but in my code its not happening like this. I am explaining my code below. $quoteUrl ='http://example.com/...
1
vote
0answers
11 views

Magento 2.3. changing form validation options loses validation messages translations

I am running Magento 2.3. In the customer create account form I changed the way validation form errors are shown in this way: var dataForm = $('#form-validate'); dataForm.mage('validation', { ...
0
votes
1answer
12 views

Quote Payment in Magento2

I want to getAddtional infomation from quote payment by order id.
1
vote
1answer
14 views

Magento2.2.5 : How to maintain a session value in product detail page to custom controller page?

I implemented some custom options in the product pdp page. i.e, i have to engrave the product in frontend(eg.pendant FRONT SIDE) as well as the backend(eg.pendant BACK SIDE) without refreshing the ...
0
votes
3answers
68 views

Set programmatically added attributes to product

I'm writing cron module to import products (Magento 2). In this module I'm adding attribute, attribute value and assign this new attribute value to product. It sounds easy but new added attributes and ...
0
votes
0answers
8 views

Adding shipping total during checkout

I've a custom shipping module which has a drop-down list options for choosing an option to add some cost for shipping amount, i only successfully to use preference to override Magento\Quote\Model\...
4
votes
1answer
553 views

Custom ui_component data not being sent to controller

I've created a custom ui_component to add an extra field to the product edit page, but when I click save the custom field values are not included in $this->getRequest()->getPostValue(). My code ...
0
votes
0answers
7 views

Magento 2 Column search dependency in UI listing

Is there a way to make some listing select in filter to depend on some other select? I have seen this done on frontend checkout but that's a form not a list. The idea is to make two columns ...
2
votes
2answers
28 views

Getting error in catalog product price indexing

I am facing below error while running indexing for catalog product price. Command: php bin/magento indexer:reindex catalog_product_price Error: SQLSTATE[23000]: Integrity constraint violation: ...
0
votes
0answers
16 views

how to add tab link to current url in magento 2

i have tabs on my page with tab1 tab2 tab3 im working on adding tabs to current url I'm getting from get method to which tab going to see by option box like this input url ...
0
votes
0answers
11 views

Custom created quote is not assigning to Customer cart

I have create functionality to create quotation from admin with flexible price from admin. Customer can show it in my account section,If he like it and want to buy he can. As he click on order button ...
1
vote
0answers
9 views

Magento2 Migrate Orders History and Product Catalog Including Media

I have installed magento 2.2.6 . i want to migrate to magento 2.3.0 for that i have fresh installed magento 2.3.0 on new link. now is there any way i can migrate all orders histories and product ...
3
votes
1answer
16 views

Can't update product / Unique constraint violation

Since migration, to Magento 2.3 i can't save any products. Exception.log reports (when i try to update in default scope) : [2019-03-21 17:29:07] main.CRITICAL: Unique constraint violation found {"...
0
votes
0answers
5 views

How to install git patch of Authorize.net Direct Post Signature Key?

I am using Magento2.3 and download the Authorize.net Direct Post Signature Key Patch file and put it to magento's root directory then go to the putty and run below command: patch --p0<...
4
votes
4answers
2k views

Magento 2: Add to Cart JS Override works on product page but not on category page

I override magento\vendor\magento\module-catalog\view\frontend\web\js\catalog-add-to-cart.js as I need to change the text from "Add to Cart" to "Buy Now" magento\app\code\Custom\Module\view\frontend\...
1
vote
0answers
10 views

All cache pages return 404 after crawling with wget

I have the weirdest error... I clear my Magento 2 cache and execute the following wget command to crawl the entire site: wget --spider -o wget.log -e robots=off -r -l 5 -p -S -T3 --header="X-Bypass-...
1
vote
0answers
8 views

Magento2 error while extension installation in create backup step

In my magento2 store I want to install the extension. I have tried this via composer as well as admin extension manager. Every time the process failed in Backup stage after generating the 4Gb of data ...
2
votes
1answer
22 views

Which tables are updated in data migration tool Map step

In Magento data migration tool, we have a map step which migrates catalog and sales data. As I only want to migrate sales data, I need to ignore the unwanted tables in map.xml that are related to ...
2
votes
1answer
18 views

Magento 2.1.8 pdf href opening in a new tab

I am new in Magento and trying to modify an extension. I would like the href to open in a new tab. The code is as follows: if ($itemRule['file_action'] == \Mageplaza\ProductAttachments\Model\Config\...
1
vote
0answers
10 views

Magento 2 - Warm Cache Vs Cold Cache Concept (With Varnish & Redis)

I want to know the concept difference between warm cache and cold cache. How do we use both these techniques effectively with varnish and Redis cache. Any help, knowledge and experience sharing would ...

15 30 50 per page