Hi Guys,
I have been making my own little rich snippet calls but I can't seem to find a list of language variables I can call.
The specific ones i am hoping to find are
Price (with out currency)
Currency
Product Review
You can find my current attempts at
https://www.skydivingcanada.ca/skydivin ... ce-designs
and here is my current progress
https://search.google.com/structured-da ... ce-designs
Thank you for the help!
See if these examples help. You'll need to modify them a little bit for 2.x
Code: Select all
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" class="no-display">
<span itemprop="ratingValue" content="<?php echo $rating; ?>"><?php echo $rating; ?></span> stars, based on <span itemprop="ratingCount" content="<?php $rev = explode(' reviews',$reviews); echo $rev[0]; ?>"><?php $rev = explode(' reviews',$reviews); echo $rev[0]; ?>
</span> reviews
<span class="no-display" itemprop="worstRating">1</span>
<span class="no-display" itemprop="bestRating">5</span>
<span class="no-display" itemprop="name"><?php echo $heading_title; ?></span>
</span>
</div>
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="no-display">
Regular price: <span itemprop="priceCurrency" content="<?php echo $this->config->get('config_currency'); ?>" /></span>
<span itemprop="price" content="<?php if (!$special) { ?><?php echo $price; ?><?php } else { ?><?php echo $special; ?><?php } ?>"><?php if (!$special) { ?><?php echo $price; ?><?php } else { ?><?php echo $special; ?><?php } ?></span>
Available from: <span itemprop="seller" itemscope itemtype="http://schema.org/Organization"><?php echo $this->config->get('config_owner'); ?></span>
Condition: <span itemprop="itemCondition" href="http://schema.org/NewCondition"/>
Brand New</span>
<span itemprop="availability" href="http://schema.org/InStock"/><?php echo $stock; ?></span>
</span>
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com
Active Member
Who is online
Users browsing this forum: No registered users and 5 guests