Magento Stack Exchange
372 FOLLOWERS
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform.
Magento Stack Exchange
6h ago
I am new in Magento, I am exploring the Magento code base.
I have a question: can I make changes to the B2B Admin panel UI after Magento-2.4.7 installation from the project directory? Is there any code available that I can modify?
For instance, if I want to change the name Dashboard to Dash only am I able to do so?
My intension is to integrate React based front screen with Magento admin panel and functions.
Summary: To kick-start where an existing e-commerce site owners requirements are to use magento functions and admins. In short, all the products will be displayed in the existing e-commerce ..read more
Magento Stack Exchange
6h ago
how to make full static like the red part make it like the blue marked part ..read more
Magento Stack Exchange
6h ago
I have around ~10k of products to create programmatically. I also have around 20 custom attributes. Saving the stock, the price, special price, those 20 custom attributes it takes around < 50 min. Once I added the image part, from 50 mins its jumps to 8 hours. The images are big indeed, but 8 hours its a lot of time.
This is my script of saving the images :
//$productData contains the attributes, prices, etc
$product = $this->productInterfaceFactory->create(['data' => $productData]);
$product = $this->productRepository->save($product);
$images = $this->getImages(); // it ..read more
Magento Stack Exchange
6h ago
I am including a variable email in my template. But it does not format to be clicked and open in the recipients email app (specifically gmail). I have figured out how to do this with a hardcoded email, but not a variable formatted email. Looking for assistance in how to code.
{{var order.getCustomerEmail ..read more
Magento Stack Exchange
6h ago
Via the api, multi select options were accidentally inserted as duplicates.
So instead of 11111,22222 being stored in catalog_product_entity_text.value it was submitted as 11111,22222,11111,22222 and stored as such.
This causes the indexer to break with duplicate errors.
SQLSTATE[23000]: Integrity constraint violation:
1062 Duplicate entry '681306-12156-1-7638991-681306' for key 'PRIMARY',
query was:
INSERT INTO `catalog_product_index_eav_temp`
(`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`)
VALUES ..read more
Magento Stack Exchange
6h ago
when admin filters orders in sales->orders page. Reports should be displayed for following fields (under the order grid):
Total (totals sum)
Subtotal (subtotals sum)
Shipping (shippings sum)
VAT (Vat sum)
Quantity (quantities sum)
Number of Orders
Number of Canceled Orders
Please fell free to ask if you have additional questions ..read more
Magento Stack Exchange
6h ago
Any idea how to disable products without images via SQL ?
Magento ver. 2.4.3-p1
Thank you ..read more
Magento Stack Exchange
6h ago
After performing a test upgrade from Magento Open Source 2.4.6 to 2.4.7 the frontend does not load returning the error
Error: Cannot instantiate interface Magento\Csp\Model\Collector\MergerInterface in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
setup:upgrade completes without errors
setup:di:compile completes without errors
No further errors found in log files
Backend / Administration is working fine ..read more
Magento Stack Exchange
6h ago
I want to trigger shipping email manually , while hitting file i tried below but mail is not triggered please tell me any option available to sent email?
$convertOrder = $objectManager->create('Magento\Sales\Model\Convert\Order');
$shipment = $convertOrder->toShipment($order);
// Loop through order items
foreach ($order->getAllItems() AS $orderItem) {
// Check if order item has qty to ship or is virtual
if (! $orderItem->getQtyToShip() || $orderItem->getIsVirtual()) {
continue;
}
$qtyShippe ..read more
Magento Stack Exchange
6h ago
I have downloaded Magento 2 stable from https://www.magentocommerce.com/download with sample data and installed.
It's working fine in both areas i.e. frontend & backend.
But I could not find app/code folder.
Similar module folders are found under vendor\magento.
Has the folder structure changed in Magento 2 again?
Where we can put our custom module folder ..read more