View Single Post
  #3  
Old April 18th, 2012, 08:33 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

You have access to all Product information in the $product Object. On your product details page in a Text module add this:

HTML Code:
<pre><?php print_r($product); ?></pre>
That will display what's in the $product Object. For one of my product it displays this:

Code:
stdClass Object
(
    [id] => 128400983332994
    [net_id] => 6
    [net_code] => ss
    [network] => ShareASale
    [merchant_id] => 1284
    [merchant] => Altrec
    [name] => Salomon Women's Origins Opal Skis w/ 10 Bindings
    [slug] => salomon-womens-origins-opal-skis-w-10-bindings
    [description] => High performance and stable one-ski-quiver with maximum versatility to explore the resort on and off-piste.
    [price] => 100.00
    [image] => http://www.altrec.com/images/shop/detail/swatches/SAL/8.79670_d.jpg
    [thumbnail] => http://www.altrec.com/images/shop/detail/swatches/SAL/8.79670_s.jpg
    [url] => http://www.shareasale.com/m-pr.cfm?merchantID=15547&userID=169381&productID=478830276&afftrack=REFERRER_ID
    [tags] => sports-outdoors,sports,outdoors,outdoors-camping,camping,skis,all-mountain-skis,all,mountain
    [saleprice] => 0.00
    [brand] => Salomon
    [currency] => USD
    [sku] => 79670
    [model] => 
    [ean] => 
    [isbn] => 
    [asin] => 
    [amlocale] => 0
    [shipprice] => 0.00
    [sprice] => 0.00
    [promo] => 
    [specs] => 
    [site_link] => store/mens/salomon-womens-origins-opal-skis-w-10-bindings.html
    [cat_id] => 591458
    [state] => 1
    [legacy_id] => 478830276-15547-ss
    [qrnd] => 14056
    [cfields] => 
    [views] => 3
    [clicks] => 0
    [compset_status] => 0
    [upd_ts] => 1334513130
    [drip_ts] => 0
)
To access the brand name I can get it from this PHP:
PHP Code:
$product->brand 
To access the merchant name I can get it from this PHP:
PHP Code:
$product->merchant 
Hope that helps,
Eric