Skip to content

Instantly share code, notes, and snippets.

@amacgregor
Created August 11, 2011 18:40
Show Gist options
  • Save amacgregor/1140394 to your computer and use it in GitHub Desktop.
Save amacgregor/1140394 to your computer and use it in GitHub Desktop.
Get Simple product custom options
<?php
//Assuming your product is already loaded
$allOptions = $product->getProductOptions();
foreach($allOptions as $option){
echo $option['label'] . ' - ' $option['value']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment