All Questions

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

How to sort product collection on stock status

I want to sort product collection on category page so that the in stock products shall appear before out of stock products. All the out of stock products will be displayed after the in stock products. ...
0
votes
2answers
21 views

Applied Theme not showing on store

I have created 2 custom themes for the site, and applied one of theme as the theme store. But my webpage/store is loading the layout of the theme which is not been applied. I have been struggling with ...
1
vote
1answer
3k views

Magento 2 : Need to import product image from external url

I just need to import all product images from external url , can i able to do this using default functionality in magento 2. If yes, how can i use this product images external url during import csv ...
0
votes
1answer
10 views

Magento 2, Cancels order after credit card payment complete

I'm facing an interesting issue. When the customer pays with credit card, magento cancels the order automatically. I have no idea how it happens tough. Since i'm newbie, i couldn't find out what is ...
0
votes
2answers
27 views

Magento 2 How to override Magento\Catalog\Block\Product\View to add getStoreCode () function

I need to overwrite the block Magento\Catalog\Block\Product\View to add the getStoreCode () function and be able to call it from a phtml file that uses this block. I have followed a tutorial to create ...
0
votes
2answers
1k views

Add value to hidden field Magento 2 admin

I am trying to add a hidden field with a value to my Magento 2 admin form. I used the following code: $fieldset->addField('order_id', 'hidden', ['name' => 'order_id', 'value' => 'Test']); ...
5
votes
2answers
1k views

Stock availability status on Configurable simple products

On a Configurable product, the following gets displayed if the Configurable product has stock /is saleable. However, when one of the items in the dropdown of Simple products is actually out of stock ...
0
votes
2answers
2k views

Magento2 Search Issues

Using Magento 2.1.10 The search part of Magento 2 seems quite buggy. I have a product titled "abc with xyz". When I search "abc", the product gets displayed but its pushed in between the collection,...
0
votes
1answer
15 views

How to add Item Status to order confirmation email Magento 2.3.1

Is there a way to add the Item status (Ordered/Backordered) to the order confirmation email? I tried below code. <td class="item-status"> <?php if ($_item->getQtyBackordered()...
1
vote
3answers
25 views

I want to fetch Product Names on behalf of comma separated SKU's

I want to fetch Product Names on behalf of comma separated SKU's i.e. sku1,sku2,sku3 and the expected result is Name1,Name2,Name3
2
votes
2answers
3k views

Get Store/Website by Language/Country

Im searching since a week how i can get a store_id / website_id for a given language. Like: $countryId = 'DE'; // or country = Germany foreach (Mage::app()->getStores() as $store) { if($store-...
1
vote
1answer
21 views

Magento 2.4 Catalog_product_get_final_price Event not working with Observer

I want to create dynamic pricing for the products on the Magento 2 store. After much reading on the internet I understand this can be achieved by: Create a custom module Register the event and ...
0
votes
1answer
11 views

Not able to create configurable product with more than 30+ variations

While creating configurable products with more than 30+ variation and click on save. The variable products were created and the configurable product was missing, I cant able to create new configurable ...
1
vote
1answer
19 views

How to get customer id using graphQl?

I am getting below data on customer data GraphQL query const query = () => ({ query: { customer { customer_id firstname lastname suffix email ...
18
votes
3answers
7k views

Magento 2 - Homepage is 404

Am struggling with a strange error in magento 2. Have a setup where i have removed some stores, so now only single store. Am trying to set the home page in admin (CMS Home Page) No matter what I ...
1
vote
1answer
834 views

Can't run composer command programmatically in magento 2

I am using php shell_exec method to run the magento commands in my controller. Below is my controller code. <?php namespace Vendor\Module\Controller\Adminhtml\Migrate; use Psr\Log\...
0
votes
1answer
5k views

Show Billing Address Form In Checkout First Step In magento 2

Stuck:On when select new address I want to customize checkout page Need to show billing with shipping i have done most of part but fields are not showing. I try Like this. Create a new region in ...
0
votes
0answers
18 views

Flash player Down unable to upload image

in magento admin dashboard i unable to upload image due to flash player down. Please advise the option for adding of product images.
1
vote
1answer
925 views

Can't Create Configurable Products with multiple Attributes programmatically

I'm trying to create a configure product with multiple attributes. Here is my code. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $simpleProduct = Mage::getModel('catalog/...
87
votes
13answers
185k views

Magento 2 Reindexing - One or more indexers are invalid. Make sure your Magento cron job is running

I couldn't find the way to do reindexing in mass actions on magento 2. Seems like you need to run it from cronjob. Is there an alternative way to reindex data in magento 2 from backend or command ...
1
vote
2answers
824 views

Magento 2.3.4 and Elasticsearch: Getting a blank result page when searching

I am having issues with my company's Magento test site. The issues are when searching using Elastic search, the resulting page is a blank page. Then, when I look for relevant errors in various logs, I ...
0
votes
0answers
9 views

How to use grouped product attributes for simple products in layered navigation

I am working on a chemical catalog and I have created grouped products to add attributes like molecular weigt, CAS-Number and other chemical data. These data are all the same for my simple products. ...
0
votes
0answers
11 views

Shipping Estimator from ShipperHQ fails on page load if I remove item from cart or leave and come back to cart

My shopping cart has a shipping estimator from ShipperHQ. If the value changes in the zip code field it calculates the shipping cost. If you remove an item from the cart, update the quantity, leave ...
1
vote
1answer
1k views

Magento 2 messages are not displayed on homepage

I am working on a Magento 2.1.2 project, theme Porto. I installed the MageMonkey extension for Mailchimp integration. I strugle with displaying the messages of successful / unsuccessful subscription ...
0
votes
0answers
9 views

Why do some of my products not have a custome price check box when creating an order from the admin side? Magento 2.4

When creating an order in Magento 2.4 Some of my products will have a custom price check box, and some of them won't. The attributes for each are exactly the same. The only difference is the name. Is ...
0
votes
0answers
7 views

How to move cart items in checkout from sidebar to main container under payment methods

I want to move the cart items and the cart summary from the sidebar into the main container under the payment methods in order to show the customer all items first, before he can place the order. ...
0
votes
1answer
2k views

QuickSearch widget Magento 2. How to make closed search

I read a lot documentation and see code search. But don't understand how make an opening search by clicking on the icon. Mobile version have opening search by clicking on the icon. How make same for ...
3
votes
3answers
2k views

Can't force reindex in ssh for catalog search index

Can't seem to reindex in back end and so thought I would give it a go in terminal Navigated to the appropriate bits and still it won't do it. I'm a bit of a novice at shh so wondered if someone ...
1
vote
1answer
3k views

How to save quote billing address in magento 2?

For our project we have customized theme in Magento2. This has billing and shipping address pages. We have to save the billing address details in quote address table. But we didn't come across any ...
0
votes
2answers
1k views

How to change the base image of configurable product by selecting the dropdown value?

I have created an attribute variants and added it in an attribute set. It is created to be used for configurable products.After creating a configurable product with this attribute set, the attribute ...
0
votes
2answers
969 views

Cart items will not be deleted in observer

I searched a lot but none of the solutions worked for me, I am trying to delete an Item from observer but if there is only one item in cart it works with removeAllItems() but if there are more than ...
3
votes
4answers
4k views

php bin/magento setup:upgrade

when I install a new theme I do this commands via Putty: php bin/magento setup:upgrade how can I fix this problem? I'm working on Magento 2.1.0 PHP Warning: Uncaught Exception: Warning: ...
2
votes
1answer
915 views

Magento 1.9.2 Sort attribute by position

I have the following code but need to sort by the position value set for each attribute option in the back end. $this->_optionCollection = Mage::getResourceModel('attributepages/...
1
vote
1answer
28 views

Magento2 Registration Form is not showing State Dropdown

I want to show Address fields in Registration form of Magento 2.4.0 I have created file in my theme as below. app/design/frontend/YOUR_PACKAGE/YOUR_THEME/Magento_Customer/layout/...
0
votes
1answer
2k views

Adding an attribute to customer order page on the backend

I want to add a custom attribute which i have already created to the order page in the back end. I have used this in my config.xml file to add the attribute to the customer account page, but I want to ...
0
votes
0answers
15 views

Help I can't see the reviews comments

Can someone help me, in version 2.3.5 of magento I can't see the reviews, and also put it in a tabs
1
vote
3answers
864 views

Fotorama gallery multiple breakpoints

When the breakpoint is single everything works fine, when I try to add one more breakpoint, it doesn't work. Here is my code from view.xml. So firstly I need to display nav as vertical thumbs, next ...
3
votes
1answer
1k views

How to Update/Override Core form Validation in magento 2?

I want to override or update core validation for magento frontend form like as checkout page form address field validation change. need to change the core validation
2
votes
2answers
757 views

Relationship between block, controller and model - magento

I am new guy to magento. I have seen $this->functionName() in template file of particular module. And then functionName() is placed under block. My question is Can I call any controller function or ...
1
vote
1answer
786 views

Magento 2 : Error 503 first byte timeout

Getting this error when i'm update product from product grid using update attributes. Error Page:
0
votes
0answers
9 views

Add to cart button in knockout template

I have created a module to show recent orders of logged-in customers in the sidebar using the Knockout template. But I am not able to get how to add the add to cart button in that template as the way ...
0
votes
1answer
10 views

I want to make full width of all cms page. now it is max-width of 1280px. i want to make it to 1720px. how can i change

I want to change max-width, but it is not overriding in custom-theme. how can i change Here is the css style . @media (min-width: 768px), print .navigation, .breadcrumbs, .page-header .header.panel, ....
5
votes
2answers
2k views

Magento2: How to add separate css file on each cms page?

Is it possible to add individual CSS file on each cms page? Upon researching, I can do it by adding code on Layout update XML. Unfortunately, it isn't working. Here's my code: <head> <...
0
votes
1answer
14 views

Magento 2 Translation on Ajax Backend Not Working

I am making ajax request , and I call __('string to translate') function on backend. The problem is that translate is not working at all. My ajax controller is implementing HttpPostActionInterface ...
0
votes
1answer
12 views

How to add static pages in the Magento 2 search result?

I'm using a Magento 2.4 and in my project I have many static pages that I would like to be part of my search results. How could I add Magento 2 static pages in my search results?
8
votes
8answers
23k views

Is there a way to export all categories into a csv?

Is there a way to export all categories into a csv? Im moving data from a non-magento store into a fresh build.
11
votes
2answers
11k views

Payment has already been made for this InvoiceID (#10412: Duplicate invoice) [closed]

I have created one recurring profile product & using paypal as payment gateway. After clicking on payment I got the error as "PayPal gateway has rejected request. Payment has already been made ...
0
votes
2answers
4k views

How to add custom product attribute in PDF invoice?

I am trying to add custom attribute , product(book) publisher name below product name in PDF invoice(like in image)& publisher is custom attribute created by me. I copied app/code/core/Mage/...
1
vote
2answers
1k views

Magento 2.2 : MySQL General error 1787 when reindexing

How to fix the two errors below ? $ php bin/magento indexer:reindex Design Config Grid index has been rebuilt successfully in 00:00:00 Customer Grid index is locked by another reindex process. ...
0
votes
0answers
9 views

No Shipping quotes being returned - receiving “Access Denied”

The UPS Shipping Method suddenly stopped working yesterday. Upon enabling debugging for the service, it returns: [result] => \<HTML>\<HEAD> \<TITLE>Access Denied\</TITLE>...

15 30 50 per page