Extending the connector - Magento 2
General considerations
It is not recommended to directly change the connector code directly, use the standard Magento 2 approaches in customizing modules.
Events list
netsuite_stock_item_save_before
Description: grants a chance to execute custom code right before the stock for an item is saved
Parameters:
- stock_item type cataloginventory/stock_item, the Magento stock item that is to be saved
- item_search_row, type ItemSearchRowBasic, the stock information from Netsuite
netsuite_bill_address_create_before
Description: occurs just before a billing address is sent to Netsuite
Parameters:
- netsuite_address, type BillAddress
netsuite_ship_address_create_before
Description: occurs just before a shipping address is sent to Netsuite
Parameters:
- netsuite_address, type ShipAddress
netsuite_address_create_before
Description: occurs just before a customer (address book) address is sent to Netsuite
Parameters:
- netsuite_address, type CustomerAddressbook
netsuite_customer_send_before
Description: occurs just before sending a customer to Netsuite
Parameters:
- netstuite_customer, type Customer
netsuite_new_order_send_before
Description: occurs just before sending an order to Netsuite
Parameters:
- magento_order type sales/order, the Magento order object
- netsuite_order type SalesOrder, the Netsuite order
netsuite_import_request_before
Description: occurs before an import operation starts
Parameters:
- record_type the type of the record to be imported
- search_object the search request that will grab the to-be-imported requests, type TransactionSearchBasic
netsuite_import_product_created_after
Description: Occurs when a product is imported
Parameters:
- magento_product, type catalog/product, the Magento product object
- netsuite_product, type InventoryItem, the Netsuite product object
- product_is_new, type bool, whether the product previously existed in the db or not
netsuite_inventory_item_is_importable
Description: gives a chance to write custom code in deciding whether a inventory item is importable or not
Parameters:
- inventory_item, type InventoryItem, the Netsuite product
- is_importablebool, whether the product is importable
netsuite_item_fulfillment_import_save_before
Description: occurs just before a Netsuite fulfillment gets imported as a Magento shipping
Parameters:
- netsuite_shipping, type ItemFulfillment, the Nesuite shipment
- magento_shipping the Magento shipment, not yet saved
product_map_value_extracted
Description: allows writing custom code when field mapping in product import occurs
Parameters:
- product_map_value, type RocketWeb_Netsuite_Model_Product_Map_Value, the mapping
No comments to display
No comments to display