After installing varnish, I am unable to get to Web Setup Wizard. The browser spins for a while and then I end up on https://example.com:81/setup with an error that Chrome interprets as: took too long to respond. ERR_CONNECTION_TIMED_OUT which I think means a redirect loop. My site is Apache and […]
Magento2
How can i get the Bundle Product Price Dynamic model for multiple stores and websites programmatically or any custom module. Trying below but not working as expected. foreach ($stores as $store) { $obj = MagentoFrameworkAppObjectManager::getInstance(); $obj->get('MagentoStoreModelStore')->setCurrentStore($store->getStoreId()); $product = $obj->get('MagentoCatalogModelProduct')->load('Bundle_ID'); $bundlePro=$product->getPriceInfo()->getPrice('final_price'); // For min price $minPrice = $bundlePro->getMinimalPrice()->getValue(); // for max […]
i am want to show correct product image on my order details page: I am using it as: $_item = $block->getItem(); $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $_product = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getProductId()); $imageHelper = $objectManager->get('MagentoCatalogHelperImage'); $image_url = $imageHelper->init($_product, 'product_page_image_small')->setImageFile($_product->getImage())->resize(100, 100)->getUrl(); but showing main product image its not showing child product image. here i am want […]
I have created a new type of custom option but when I’m trying to delete it it get deleted but the other custom option data gets deleted as well. It only happens if I create the option on sort order 1st position. It also gives JS error in console. screen-shot […]
There is a page on which there are many elements and which have checkboxes, here is an example of one of them. app/code/Test/Module/view/frontend/templates/items.phtml elements set
I have some product in my shop which can be ordered but they will be available for shipping in few weeks (because they are still in factory). Is there any way to set the date when the product will arrive from factory and will be ready for shipment?
I wan’t to add data in a custom field that I created, I used InstallSchema like this: Setup/InstallSchema.php use MagentoFrameworkSetupInstallSchemaInterface; use MagentoFrameworkSetupSchemaSetupInterface; use MagentoFrameworkSetupModuleContextInterface; class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $installer->getConnection()->addColumn( $installer->getTable('quote'), 'pakke_shipmentid', [ 'type' => 'text', 'nullable' => true, […]
When I open the single product URL (open product). I wait 8 seconds or more for the page to load. Responsible for this behavior is the amount of queries that magento is performing. For this I enabled slow_query_log as on. Below I leave the link to the entire log generated […]
Everything I have read indicates the formulat for distributing the cart discount among the items of the order is: To calculate the discount amount for each item, Magento uses the following equation: $discountRate = Item price X Qty / SUM of all the items ordered $finalDiscountAmt = Discount total X […]