Categories
CMS Magento Mastering Development

Magento 2.3.5 Address Verification Suddenly Fails

For about month, my store has been making and completing sales. Now, suddenly it fails on address verification. Vertex is not being used and it clears if we choose Shipping Option 2 (Overnight shipping at $34.95) If a person chooses standard shipping, it fails Option 1 (Mageplaza Shipping methods module). We even switched their amounts […]

Categories
CMS Magento Mastering Development

Mobile menu showing to right side in magento 2

i am using magento 2.3.x i have 4 store with different languages, when i browser my website into mobile view my english view is showing menu to right side, while my arabic language showing menu to the left side, i want that arabic language store also show menu to right. thanks i have check the […]

Categories
CMS Magento Mastering Development

How to use orderCollectionFactory and productCollectionFactory together in Model file?

I have created a custom attribute in product and saved a string in that value and I want if some one order those product of same value string i want that collection of product. So, i want to use \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory these together is there a way to get these product.

Categories
CMS Magento Mastering Development

Admin order page: add print button

I found almost how the print button is created on the invoice page (invoked from vendor/magento/module-backend/view/adminhtml/templates/widget/button.phtml) with the debug option in Magento2. I would like to add in directly on the order page to avoid going to the invoice page each time. I can’t find the exact code that need to be added to my […]

Categories
CMS Magento Mastering Development

Basic Auth / Restricting backend admin panel for M1

Good evening. Should it not be possible toeither restrict or use basic auth on the admin panel for login? Just as an extra security layer. Can there be any flaws/errors regadring 3rd party extentions like payments, tracking etc? Or does it depend on what URI / API the extentions are using? Otherwise is there anything […]

Categories
CMS Magento Mastering Development

My magento 2.2.4 homepage loads while other pages refuses to load

When I open my magento homepage it loads successfully while catalog search, categories and product page load a http 500 error.

Categories
CMS Magento Mastering Development

how to solve 401 redirect on custom ajax on Custom tab between shipping and Payment option

I have created some steps between shipping and Payment form and add some field between then and applied ajax on that but i have facing an issue for not logged in user it will gave an error of 401 and redirect on login page on saving first field. Will anyone help me how to successfully […]

Categories
CMS Magento Mastering Development

How many ways to do dependency injection?

How many ways to do dependency injection? Object Manager,Constructor injection and Method injection Is that it ?

Categories
CMS Magento Mastering Development

Geting bundle product price by product id this code working without cron but in cron doesn’t work Magento2

This code work without cron, but in cron doesn’t work it’s returning Zero[0] Also check cron is executing successfully. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create(‘Magento\Catalog\Model\Product’)->load($product_id); if ($product->getTypeId() == ‘bundle’) { $regularPrice = $product->getPriceInfo()->getPrice(‘regular_price’)->getMinimalPrice()- >getValue(); $specialPrice = $product->getPriceInfo()->getPrice(‘final_price’)->getMinimalPrice()- >getValue(); } Here product_id is your product Id.

Categories
CMS Magento Mastering Development

Results from search in Magento 2 relevance not correct

I’ve the problem that the results from an search query on frontend are in the wrong relevance. It is on an live webshop. For example, when i search ‘Philips’ or ‘Grohe’, the first product is in both search-queries always ‘Creative SB Tactic 360 Sigma Headset’. As you can see in the title, there is no […]