Skip to content

How to customize/override magento2 extension

We are tried to customize/override the extension template file. we want to override below extension and its originale path is html/app/code/VedndorName/Marketplace/view/frontend/templates/product/add.phtml /html/app/code/VedndorName/Marketplace/view/frontend/layout/marketplace_product_add.xml Now we created a file structure to override this template with file but changes not appearing can you… Read More »How to customize/override magento2 extension

Magento 2 – how to create order programmatically with custom price AND tax amount for each line item (not percent)

I created a module that creates an order programmatically and I can also set the custom price. This is part of my code: foreach($orderData[‘products’] as $product) { try { $quoteProduct = $this->productRepository->get($product[‘sku’]); $this->logger->info(sprintf(“Adding product to quote, id: %d, sku: %s,… Read More »Magento 2 – how to create order programmatically with custom price AND tax amount for each line item (not percent)

Indexer does not exist

We are facing this error during setup upgrade command while installing this extension. Unable to apply data patch AmastyMostviewedSetupPatchDataCreateGroupExamples for module Amasty_Mostviewed. Original exception message: amasty_mostviewed_rule_product indexer does not exist. Magento 2.4.7-p3