Currently via below code I can get in list.phtml From this I get brand name dropdown value in list.phtml correct: <div class="brand-name"> <?php $optionText = ''; $attr = $_product->getResource()->getAttribute('brand'); if ($attr->usesSource()) { $optionText = $attr->getSource()->getOptionText($_product->getBrand()); } ?> <?php if($optionText){ ?> <?php echo "" . $optionText . "<br>"; ?> <?php } […]
Magento
In /vendor/magento/module-sales/view/adminhtml/templates/order/create/totals/tax.phtml <td class="admin__total-amount"> <?= /* @noEscape */ $block->formatPrice($block->getTotal()->getValue()) ?> </td> I would like to found getTotal function to fix rounding issue, I’m using canadian tax and there’s 2 taxes for Quebec for example: Taxe: 5.9825$ T.V.Q. (9.975%) 3.985014$ T.P.S. (5%) 1.997501$ I like to change function that calculate total […]
I have done setup magento 2.4.2 in cloud/shared hosting, and then i have Elasticsearch in VPS with config .yml like this : transport.host: localhost transport.tcp.port: 9300 http.port: 9200 network.host: 0.0.0.0 node.name: elasticsearch-node-1 cluster.initial_master_nodes: [“elasticsearch-node-1”] How to connect this elastic from shared/cloud hosting?
I have a configurable product created and also simple products. I want to add the option on the forme and poids attribute to link them. Thse option are properly configured, they appear in the admin if I want to add from admin But i’m creating them threw an import. I […]
I’m using Magento 2.4 I added new Terms & Condition, but I want to display it based on some conditions, Is there’s any way you know to do it please let me know. Thanks.
I want to create a custom layout for one or more categories. I followed the next steps: Extended and customized <theme_dir>Magento_Cataloglayoutcatalog_category_view.xml (layout instructions work fine) Created the custom layout <theme_dir>Magento_Themepage_layoutcustom-category-layout.xml custom-category-layout.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <update handle="1column"/> <body> <referenceBlock name="footer" remove="true" /> </body> </layout> Then added the layout in […]
I’m working with Magento 1.9 and I’m having a problem with multi-store catalog promotion, since I have a category that is being displayed in 2 stores, and I created a catalog promotion for each store, with the view of Store 1 (Verejo) the catalog promotion works (30% discount on the […]
Is it possible to sort the output of the modules node in config.php alphabetically? This way git versioning won’t get messed up since Magento sometimes changes the sorting. <?php return [ 'modules' => [ 'Magento_ModuleA' => 1, 'Magento_ModuleB' => 1, 'Magento_ModuleC' => 1, ... composer.json has an option for it, […]
I am using a theme purchased for my magento site and therefore have the onepage checkout. I would like to add the general conditions of sale on the last part but I cannot modify the template xml file. When I add the code to display the checkbox, the purchase tunnel […]