Magento : get attribute value php


i have tow attributes described in the image bellow :

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/5hqXu.png" data-original="https://i.stack.imgur.com/5hqXu.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

i wanna know how to get value of it

________ _________ _________

Thanks !


First load the product model:

$product = Mage::getModel('catalog/product')->load(<product_id>);

then use:

$allowCustomPrice = $product->getAttributeText('allow_custom_price');


$minPrice = $product->getMinPrice();

Note: I am asuming, that you will replace with original product id, and attribute codes are "allow_custom_price" and "min_price" respectively.


  • mysql_connect() Difference between localhost and
  • How can I programmatically compute path length using Jena RDF/Ontology API?
  • Google Maps API and DynamicMapsEngineLayer: Loop Over Features in the Map
  • mysql utf8mb4_unicode_ci cause unique key collision
  • EF Core 2.0.0 One to One-or-Zero with Fluent Api
  • Jquery-Bootgrid, Row is null on click
  • how to load twitter data from hdfs using pig?
  • Magento not sending forgot password emails
  • How to remove a product from a category magento 1.5
  • How to retrieve Business Component rows in SIebel Open UI PM?
  • Protocol issue connecting Derby by db2 ODBC
  • SQL Server 2005, Caches and all that jazz
  • Error Processing Request: Mage registry key “_singleton/inchoo_notes/feed_updates” already exists
  • CSS Grid, position absolute an element in a css grid item: IMPOSSIBLE
  • SqlCommand back up Database
  • how to get data attributes of dynamically generated element
  • Magento get URL before current
  • Magento site down due to mysql error General error: 1030 Got error -1 from storage engine
  • ListItem.Attributes.Add not working
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • How to change the font size of a single index for UISegmentedControl?
  • Python urlparse: small issue
  • FileReader+canvas image loading problem
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Getting last autonumber in access
  • XCode can't find symbols for a specific iOS library/framework project
  • Getting Messege Twice Using IMvxMessenger
  • python draw pie shapes with colour filled
  • MATLAB: Piecewise function in curve fitting toolbox using fittype
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Binding checkboxes to object values in AngularJs
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • How can I use `wmic` in a Windows PE script?
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal