0

I am trying to get at the prices for custom options that do not have predefined values. For example, you can have a checkbox custom option that has some option values and you would assign a price to each.

However, you might have a textarea (which obviously does not have predefined values). In admin, you can attach a price to that textarea.

My question: How do I get to that price. My preference would be with the SOAP v2 API; however, I am open to PHP code solutions as well as I would simply extend the core API.

asked Feb 1, 2016 at 0:37

1 Answer 1

0

Through trial and error, I just found the necessary code snipped:

$product = Mage::getModel('catalog/product')->load('396');
$options = $product->getOptions();
foreach ($options as $option) {
 echo $option->getPrice();
 echo $option->getPriceType();
}
answered Feb 1, 2016 at 2:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.