Magento2 multiply the qty of first item if add two configurable item into cart programmatically with same parent product. $items = [ [ 'product_id'=>'47', 'parent_id'=>'62', 'qty'=>1 ], [ 'product_id'=>'48', 'parent_id'=>'62', 'qty'=>1 ] ]; foreach($items as $item){ if(isset($item['parent_id']) && !empty($item['parent_id'])){ //$quote = $checkoutSession->getQuote(); $product = $productModel->getById($item['parent_id']); $childProduct = $productModel->getById($item['product_id']); $productAttributeOptions = […]
Daily Archives: December 20, 2024
I’m trying to add an attachment to an email in Magento 2.4.6. I’ve searched extensively online, but most of the solutions I’ve found are either outdated or don’t work with the latest version of Magento. Does anyone have a working example or detailed steps on how to achieve this in […]
I’ve been experiencing this issue for a while. Some of the confirmation emails do not display the product details. There are no errors in the PHP logs, so I suspect it might be a condition-related problem. Is there any way to debug how the email renders the product details? This […]
Hopefully somebody can shed some light on this issue. I have a REST handler that will bulk-update products per store view. Like text translations etc. Since the provided attributes could be anything, ranging from core attributes and custom attributes I use the main endpoint “products” and provide the product info […]
I have HTML file which I downloaded from Facebook for messages(these are messages chats with someone). It seems like ‘message_1’ ‘message_2’ and there are six html like this. 2 of them does not open properly. It opens wth some irrelevant code(+$%£). I cannot download the chat again as these were […]
I have planned to store my dual boot (Windows + A Linux distro) in images using dd to clone them, but I’m not sure if it is a good idea and if is is possible. Both OS are going to be installed in separated disk I.E: Windows: /dev/sda and Linux […]
My VoIP wallsocket is very similar to this one: I use a FRITZ!Box 7490 router Avm, with proprietary software which is near to EOL, but it works perfect with this cable: This cable is a Y cable, one plug goes to phone, the other to internet (I don’t know why […]
I use RewriteMap with the prg:<program> in Apache (v2.4.41 Ubuntu) to rewrite some requests. I’ve used this for some time and my rewrite program has returned absolute paths to the final file, and this has worked great until recently. For some reason my server is adding a base path to […]
I am curious as whether there is a proper way to save .sol or .swf game data to where you could use it with ruffle.rs. Currently, the save manager built into ruffle.rs does not work (in my experience).