All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Cannot update order state and status programatically

This is my first attempt: $orderId = 57; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId); ...
1
vote
3answers
13 views

Magento 2 - How to override knockoutjs template?

I try to override the following template from my own module vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html but I don't find the file where I can override it, I ...
0
votes
1answer
1k views

Getting error of “An error occurred while processing your form. Please try again later.” after submitting a form

I am Getting error of An error occurred while processing your form. Please try again later. after submitting a form. Here is my code app/code/Smartwave/Porto/Model/Post.php <?php /** * ...
1
vote
0answers
12 views

Product image cache remove and regenerate live on frontend - M2.3.5

At the moment we have many old product image cache url's on the frontend, with all 404 errors. We can run the php bin/magento catalog:image:resize command to regenerate them, but we have more than 270....
0
votes
0answers
4 views

PayPal express checkout issue on custom discount

I have an issue during the paypal express checkout. I have a custom module for applying custom discount on quote. During paypal payment, it fails returning this error: report.CRITICAL: PayPal NVP ...
0
votes
0answers
25 views
+100

Get shipments by order number in Magento 1.9 API

I am trying to get the list of shipments for a given order via the API (I use the SOAP API but I don't think it matters). I don't have the order ID but the 9-digit number (the increment_id from the ...
0
votes
0answers
4 views

Magento 2 how to hide columns in customer listing grid

I want to hide some columns from customer listing grid. I try to use false in customer_listing.xml, but it doesn't work. And I noticed that some columns (for example "confirmation", "...
0
votes
0answers
5 views

How we can add anothere ColumnsControls component in the Grid

How we can add another ColumnsControls component on the same grid with a different configurations. I have checked Dev Docs Magento But there isn't an understandable documentation how to add provider ...
0
votes
0answers
3 views

Stripe 1.9.1 error in Magento 2.3.5-p1 - Authentication required

We recently installed the Stripe module but in checkout nothing happens when placing an order, the only thing we can see is in network and console this {"message":"Authentication ...
0
votes
0answers
5 views

How to configure ElasticSearch that is on a remote host?

I'm new to ES and just want to set up Magento 2.4 and ES in its simpelst way, just to get a impression. Magento is on host A, ES on host B. Both on RHEL systems in the same network. I've installed ES ...
98
votes
11answers
28k views

How can I bootstrap Magento 2 in a test.php script?

In magento 1 I could create a file where I only needed to instantiate the Mage_Core_Model_App class and then I could add my "dirty" code for test purposes. Something like this test.php: <?php //...
0
votes
1answer
16 views

How to exclude defer js extension in special page?

How to exclude extension in special page? like it don't loading to onestep checkout page. Because i'm using defer js extension no admin backend just auto enable but it affect onestep checkout page. i ...
1
vote
1answer
727 views

Magento 2.1.1 Checkout page is blank after login

I tried to run Magento(CE) 2.1.1 in my server but it seems that my checkout page isn't displaying anything, just header and footer.
0
votes
3answers
22 views

Creating shipment programatically issue in Magento 2

I am facing an issue with creating a shipment programatically. This is my code: // Magento\Sales\Model\Convert\Order $shipment = $this->convertOrder->toShipment($order); foreach ($...
0
votes
2answers
32 views

Magento 2.3.4 error while upgrading to Magento 2.4.0

I upgrade to version 2.3.4 to version 2.4.0 but I have an error. I have searched on google but it is not working. Problem 1 - magento/magento2-functional-testing-framework 2.4.5 requires php 7.0.2||7....
0
votes
1answer
7 views

How can i remove the postal code from the address book? Magento 2.3

I've been trying to locate the module responsible for adding new addresses in the address book in order to remove the "postal code". That way when the customer wishes to add a new address ...
0
votes
0answers
20 views

Magento 2 eWay payment gateway error - A server error stopped your order from being placed. Please try to place your order again

Eway payment getting an error A server error stopped your order from being placed. Please try to place your order again Note : Amount received in eWAY payment gateway, but order not created.
1
vote
1answer
1k views

Magento 2 get attribute options by attribute code?

How to get the list of option values for particular attribute code in magento 2? <?php namespace Sample\Shopbyage\Block; use ...
0
votes
0answers
5 views

TaxVat editable only on new customer registration

I have a B2B store where most of my customers are imported from an in house software. We have a new requirement witch is to allow new customers to register on the frontend of the store and then be ...
0
votes
0answers
3 views

How to get customizable option values for not visible item configurable product in magento 2

via graphqlAPI i set Customizable options for Child product (Configurable items) - not visible item when i add configurable product to cart with customizable options - it's working but while ...
0
votes
0answers
5 views

Magento 2: Validate User using custom session

I'm developing custom login for the users which has no relation with the customer or customer session of Magento 2. I have created a separate table to store the details of the user and created a login ...
1
vote
3answers
3k views

Magento 2 : Redirect on cart page after login

I want to redirect the customer to cart page after login from anywhere ex.login from checkout page or customer account login. Anyone know how to do this? Please help me.
0
votes
0answers
13 views

Add custom block in transnational email

I am using Magneto 2.3.5-p1, I want to add some custom values in my New Order Transactional email template using block, for that, I have created a custom template from Marketing->Eamil Template and ...
0
votes
0answers
7 views

How do I get search results from all stores in a multi store magento2 setup?

I have two stores setup in my magento 2.3.4 website. I need the search results to show results from both stores. Any ideas on how this can be achieved ?
1
vote
2answers
38 views

Add Custom Meta tag

hi i want to know is it possible to show a custom meta tag here i have created an attribute and assigned to the seo group and i want this value to be visible under meta tag for the current product ...
7
votes
5answers
14k views

Magento2: run cron job every minute

System cron starts Magento 2 cron every minute: $ crontab -l */1 * * * * /usr/bin/php /home/user/prj/mage2/bin/magento cron:run >> /home/user/prj/mage2/var/log/cron.log I see new line Ran jobs ...
0
votes
0answers
4 views

Need to control multiple magento config from single admin panel

I am planning to create 3 Magento instances with load balancing. Is there any way to control all the Magento instance config from one single instance (like a single Magento admin panel for all ...
0
votes
3answers
22 views

Limit Product Name

Magento - 2.3.5-p2 I’m in the process of learning Magento. I’m trying to do the following, limit the characters in product title as the image shows. I want result number 2. I've seen various ways to ...
7
votes
1answer
2k views

Custom /catalogsearch/ filters

Beforehand I have to tell: I'm a total n00b on Magento and what I need to know is more a "common practice" or "standard" about how is something achieved in Magento, since I have to maintain (in record ...
1
vote
6answers
5k views

Magento 2 : Add Block After Add To Cart Button

I have to add block and call custom phtml file after "Add to Cart" button on product details page. I have added below code in catalog_product_view.xml file in extension. It is working but displaying ...
4
votes
5answers
8k views

Magento 2 : Place Billing Address Above Payments Methods in Checkout

When using standard checkout in magento 2, I want to place checkbox with address above my payment methods: I think I have to meddle with knockout JS which I have no experience in. Anyone knows where ...
1
vote
1answer
1k views

“Undefined property: Interceptor::$invoiceService” while overriding controller in magento2

I am trying to override "Adminhtml\Order\Invoice\Save" controller, So I made changes in di.xml as below - <preference for="Magento\Sales\Controller\Adminhtml\Order\Invoice\Save" type="Customcode\...
1
vote
0answers
7 views

Customer group form field is not populating in form after save

I have added custom field in customer group but after save it is not populating in the form. I have added field value in addValues function in _prepareLayout of form like below.but it is not display ...
0
votes
0answers
9 views

Continuous deployment in Magento cloud

Team, Can we do continuous deployment using a separate CI/CD pipeline instead of pre-integrated Magento cloud CI/CD
0
votes
0answers
6 views

How to implement Google Recaptcha in Custom Form?

In Magento 2.3 we are allowed to implement Google Recaptcha as described in the following link https://docs.magento.com/user-guide/v2.3/stores/security-google-recaptcha.html How can I add the same ...
0
votes
1answer
958 views

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging ...
0
votes
1answer
15 views

Magento 2.3.4 How to change the order status from COMPLETE to CLOSED after 5 days with a cronjob?

Since Yotpo plug-in triggers Automatic Review Email upon Magento changing order status to COMPLETE, I need to further change the status from Complete to Closed after 5 days so that the Automatic ...
0
votes
0answers
7 views

Magento 1.9 how to show the color attribute in select box on product view

I am using Magento 1.9 and I wanted to show all the simple product color option on as a drop-down on configuration product how I can do that any idea for example Product A simple product with the ...
3
votes
5answers
2k views

How to get Magento2 product with REST if sku has slash?

Does anyone have an idea about how to get a product with slash through the rest api ? I have a product with sku 100/1. The closest I have gotten is to call: get /rest/V1/products/100%252f1 But it ...
0
votes
0answers
11 views

Shipping Method - call method only when specific condition is met

I have an option on a web store to order a sample of a product/s and it is shipped for free via the default Free Shipping option. Only samples alone are free shipping, if a product & a sample is ...
0
votes
1answer
964 views

How to get current store ID for Magento 2.3.2?

How to get current store ID for Magento 2.3.2 version, I set up multiple stores (KS ,UAE), so want to know stores ID.
0
votes
0answers
11 views

Magento 2 How to extend Recently Viewed Products widget

I want to extend Recently Viewed Products widget so I can add review attribute. After creating this file: Vendor/MyModule/view/frontend/ui_component/widget_recently_viewed.xml: <listing xmlns:xsi=&...
0
votes
1answer
32 views

Uploading File (Downloadable Information) Magento 1.9x

Weird problem: When I try to upload a product file in the "downloadable information" section it begins to load but does not complete. Then it returns automatically to the admin login screen. Is there ...
0
votes
0answers
11 views

Magento 2 commands automatically killed

I am running commands setup:di:compile and cache: clean it's running for while, but after sometime it got killed in magento2.3.2. Please let me know the exact issue for this.
0
votes
0answers
27 views

Magento 2.3 - Access customer section from admin panel getting 500 (Internal Server Error)

Error while access customer information backend and return 500 error, Exception #0 (Magento\Framework\Exception\LocalizedException): The "formElement" configuration parameter is required for ...
1
vote
1answer
772 views

Magento 2: Frontend file uploader (jquery)

I need my users to be able to upload some files from the backend, with the functionality of a preview image, abort button, multiple files uploadable, etc. And since Magento already uses the blueimp/...
1
vote
1answer
1k views

How to find header_template for email template in magento2

i think header_template is xml file in which it call header.html i find header.html file it is in vendor/magento/module-email/view/frontend/email/header.html but i unable to find where is ...
0
votes
0answers
7 views

Change Mobile Menu jQuery Hide/Show Methods Magento 2

I'm attempting to update the Hide/Show of the mobile menu on Magento 2. It's a custom theme based off Luma. I'd like to change the hide/show to slide left or right. Similar to the functionality of ...
0
votes
0answers
9 views

Magento 2 Add custom AJAX script in HTML file

I want to add this code inside my html file but it's not working, tried it in phtml file and it works. Can someone tell me how can make it work in html <script> require([ 'jquery', '...
0
votes
1answer
747 views

Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed

I need some help after installing a third party theme I got this: I've looked up for similar topics on the forum but since I'm a newbie I don't get exactly where to find and how to remove the 'after' ...

15 30 50 per page
1
2 3 4 5
2054