Hot answers tagged

2

please include your nusoap.php inside lib folder, (for example ) : magento_root_folder/lib/nusoap/nusoap.php so it can be called with this code part : require_once Mage::getBaseDir().DS.'lib'.DS.'nusoap'.DS.'nusoap.php'; $client = new nusoap_client(...); hope this help


2

If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql. mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from ...


2

I found this solution: $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title'); $connection = $this->_resourceConnection->getConnection(); $query = "SELECT * FROM " . $tableName; $resultOptions = $connection->fetchAll($query);


2

try Following way... $order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId); $order->getGrandTotal();


1

Your overwrite looks good. Problem is where you send email. You maybe missing following part: $transport->setTemplateVars([]) OR $template->setVars([]); [Update] Replace addAttachment method by following code: /** * @param $body * @param $mimeType * @param $disposition * @param $encoding * @param null $filename * @return $this */ public ...


1

I suggest you use implement extension attribute for this field at here. See how to use Extension attribute. https://devdocs.magento.com/guides/v2.3/extension-dev-guide/extension_attributes/adding-attributes.html Make your field as an extension attribute of data interface Magento\Quote\Api\Data\CartItemInterface Create extension_attributes.xml at app/code/...


1

If you want to limit the collection that shows within the grid when using the UI component, you need to look at the DataProvider class. There are methods in there which allow you to add "filters" that are always present (e.g. limiting rows to only those within a specific store). For example, I have a custom module that keeps a history of changes made within ...


1

Overriding only getOptionArray() is not just enough because if you see in Magento\Catalog\Model\Product\Visibility at line 107, 120 & 134, getOptionArray() is called with self.Self will always call the original method rather than new one, hence you simply need to copy and paste getAllOption(), getAllOptions() & getOptionText() in your overridden ...


Only top voted, non community-wiki answers of a minimum length are eligible