New answers tagged

0

You need to copy manually in plugin on \Magento\Quote\Model\Quote\Address\ToOrderAddress::convert. For examples, see Magento plugins (EE only unfortunately): \Magento\GiftRegistry\Model\Plugin\ConvertQuoteAddressToOrderAddress::afterConvert \Magento\CustomerCustomAttributes\Model\Plugin\ConvertQuoteAddressToOrderAddress::afterConvert Reason for this is ...


0

You can achieve this with a custom SQL statement protected $resourceConnection; public function __construct( ... \Magento\Framework\App\ResourceConnection $resourceConnection, ... ) { $this->resourceConnection = $resourceConnection; } $connection = $this->resourceConnection->getConnection(); $sql = "select id FROM customtable ...


0

Be careful at namespace in ProductTags.php: namespace Wizbusiness\CustomerSubscriptions\Model; I think there need to be: namespace Wizbusiness\CustomerSubscriptions\Model\Config\Source;


0

In eav_attribute table check the class Wizbusiness/CustomerSubscriptions/Model/Config/Source/ProductTags exist or not.I hope it will help you.


0

What you want to do is directly inject the collection factory related to your model into the constructor of the Price class. So, in the constructor of Insigma\CustomPriceApi\Model\Price, inject the Magge\Custom\Model\ResourceModel\Categrory\CollectionFactory factory. Collection classes are what have the addFieldToFilter and other search related methods for ...


0

i got the answer by creating helper class <?php namespace vendor\module\Helper; use vendor\module\Model\ResourceModel\Collection_Folder\CollectionFactory; class Helper extends \Magento\Framework\Url\Helper\Data { public function __construct( \Magento\Framework\App\Helper\Context $context, CollectionFactory $modelFactory ) { ...


Top 50 recent answers are included