Skip to main content
edited tags
Link
Fabian Schmengler
  • 66.1k
  • 25
  • 188
  • 422
Notice removed Authoritative reference needed by ntzz
Bounty Ended with Marius's answer chosen by ntzz
added 2 characters in body
Source Link
Adarsh Khatri
  • 8.4k
  • 3
  • 28
  • 59

I'm using bundle products, and wantswant to get the ID of simple products.

I was trying to get the ID from the product selection, but iI think itsit's impossible.

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId()$_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

I'm using bundle products, and wants to get the ID of simple products.

I was trying to get the ID from the product selection, but i think its impossible.

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

I'm using bundle products, and want to get the ID of simple products.

I was trying to get the ID from the product selection, but I think it's impossible.

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

deleted 74 characters in body
Source Link
ntzz
  • 534
  • 1
  • 7
  • 25

I'm using bundle products, and wants to get the ID of simple products.

I was trying to get the ID from the product selection, but i think its impossible, so maybe, i could get it by the short description or something like that?.

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

I'm using bundle products, and wants to get the ID of simple products.

I was trying to get the ID from the product selection, but i think its impossible, so maybe, i could get it by the short description or something like that?

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

I'm using bundle products, and wants to get the ID of simple products.

I was trying to get the ID from the product selection, but i think its impossible.

My code:

<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
    $id = $_selection->getProductId();          
    $product = Mage::getModel('catalog/product')->load($id);

    $descripcion = $product->getDescription();
    $descriptions[ $id ] = $descripcion;
}
?>

But the $_selection->getProductId() its the product ID SELECTION, not the product ID from catalog.

Any idea?

Notice added Authoritative reference needed by ntzz
Bounty Started worth 50 reputation by ntzz
Source Link
ntzz
  • 534
  • 1
  • 7
  • 25
Loading