How to customize skin type and type Product Type Bundle programmatically in Magento?

I added the software package to Magento using all the Simple Product parameters / properties and using three methods specifically for the Bundle options: -

  • setBundleOptionsData ()
  • setBundleSelectionsData ()
  • setCanSaveBundleSelections ()

As a result, the newly added Bundle Product is displayed perfectly in the Administrator section with some default values ​​for the following properties: -

  • sku_type
  • weight_type
  • shipment_type
  • price_view
  • price_type

However, this Bundle product does not display at all in the interface, I do not know why. Can anyone help me out? I tried searching, but to no avail. Please, please tell me what am I doing wrong?

Bundle Product, . - ?

.

+3
1

- .
"saveAction()" "ProductController.php" "Adminhtml", , "$product->save();".

save(), , Magento setData() .

, "", "", "sku", "name", "description", "short_description",... 1D, Bundle Product , Magento .

, , : -

Array
(
  ['name'] => 'simple',
  ['description'] => 'test',
  ['short_description'] => 'simple test',
  ['sku_type'] => 0,
  ['sku'] => 'simple01',
  ['weight_type'] => 1,
  ['weight'] => 12,
  ['price_type'] => 1,
  ['price'] => 250,
  ['shipment_type'] => 0
)

"setData()" "bingo you go".

, Magento , , . , !

+2

Source: https://habr.com/ru/post/1752033/


All Articles