Shopping Basket


Cart empty

Blog Items

Here at Spiral Scripts Towers we have been busily thinking... Read more..

Most websites exist to make money for their owners:... Read more..

  One of the more annoying features of the Joomla... Read more..

There is an unfortunate mis-perception among PHP programmers... Read more..

Joomla is the world's most popular system for building... Read more..

Log In

Find Us Elsewhere


This article explains how to display product sale prices in our GooglebaseXML shopping feed for Virtuemart.

If you have discounts on your products then Google allows you to include the optional attributes g:sale_price and g:sale_price_effective date.

It is actually very simple to supply these in your feed. The feed will automatically pick up on the fact that there is a sale price for any products that you have set a discount for. It will supply the sales price in the feed using the g:sale_price tag.  The only thing that you need to be careful about is that you must set a start and end date for the sale or discount. You can do this in the price setting in the Virtuemart product editor [view screenshot]. If you are running a generic sale then you can set a start and end date in the tax and calculation rule [view screenshot].

If you don't set the start and end date then the feed will still detect the correct sale price, but it will supply this in the feed using normal g:price tag, to conform to Google's feed specification.

Google always ask for a start and end date for any sale price, if you do not provide these, then it just regards this as the normal price. We think that the point of the rule is that Google do not want stores to advertise that something is on sale, when actually it is selling for the normal price. So it asks for the start and end date.


Donate to Us

If you like our extensions, consider making a donation to say thanks.


Support Forum

Joomla Tips

How to Allow Download Files Securely

Many website owners want the ability to sell files as downloads, or make them available to registered subscribers, or make them available as free downloads.... Read more..

Generating Unusual Output Types in Joomla!

If you are a Joomla! developer you are probably already aware that you are not restricted to generating html output from an extension. In fact it is possible... Read more..

Creating an XML Feed in Joomla

If you are a Joomla! developer you are probably already aware that it is possible for the CMS to output many other types of content in addition to the... Read more..

Modal Windows in Joomla! 3

window-small How to display selected content, such as an image, some extra text, or the results of a search, in a popup window rather than requiring the user to click... Read more..

What is the Amazon Product Advertising API?

The Amazon Product Advertising API is a programming interface that allows access to much of the data on products that Amazon offers for sale on its websites.... Read more..