I tried to override InvoiceSender (in /app/code/UFS/Sales/Model/Order/Email/Sender/InvoiceSender.php) but it doesn’t work and I don’t understand why. I added “‘created_at_formatted’ => $order->getCreatedAtFormatted(3)”. My di.xml looks like: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoSalesModelOrderEmailSender" type="UFSSalesModelOrderEmailSender" /> </config> My InvoiceSender.php looks like: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt […]
Magento
Is it standard for the Magento home page and category page to use the same Page Title and Meta Title? I thought the page title would be the CMS Page Title (for home page) or Category Name but on mine (v2.4.5) it’s just using the Meta Title for both. Can’t […]
Magento version 2.4.5, venia sample data ( might be any sample data, or just create caregories manually ) Graphql Request: { categoryList { uid name children { uid include_in_menu name position url_path children_count children { uid include_in_menu name position url_path } } } } Graphql Response: "data": { "categoryList": [ […]
I want the button to be removed after clicking on add to cart and show positive negative instead And when we click on the negative and the number becomes zero or click on delete , the button will be appear again Same as the photo
We are using below code from this github extension for tracking meta facebook pixel events in our Magento PWA Venia Site. $product = $this->registry->registry('current_product'); if ($product && $product->getId()) { $customData['value'] = $this->_magentoDataHelper->getValueForProduct($product); $customData['content_ids'] = [$product->getId()]; $customData['content_category'] = $this->_magentoDataHelper->getCategoriesForProduct($product); $customData['content_name'] = $product->getName(); $customData['contents'] = [ [ 'product_id' => $product->getId(), 'item_price' => […]
I see other questions and posts on this, but no solutions… so I’m asking again. When setting up Amazon Sales Channel, The first step is to install API keys that point back to Magento’s AWS S3 servers. Those are authenticated as soon as they are saved, and pass. Saving the […]
We used below code in Magento PWA venia setup to pass the checkout values to Google analytics dashbaord. const proceedToCheckoutButton = !isCheckout ? ( <div > <Button disabled={isPriceUpdating} priority={'high'} onClick={() => { handleProceedToCheckout(); GTMEventTrigger({ route: window.location.pathname, event('proceed_checkout', { "total_items" : cartItems?.length, "amount" : total?.value, "Currency" : total.currency, "items" : allCartItems […]
$fieldset->addField( 'first_name', 'text', [ 'name' => 'FirstName', 'label' => __('First Name'), 'id' => 'FirstName', 'title' => __('First Name'), 'required' => true, 'class' => 'input-text', 'data-validate' => '{"required":true, "validate-FirstName":true}', 'value' => $firstname // Set default value ] );