Menu Content

Currencies Accepted


Shopping Cart

cart
Your Cart is currently empty.

How to Download A Product

For most of our products, including the free ones, you will need to go through checkout and place an order.

Read More

 

Find Us Elsewhere

Follow us on Twitter

Spiral Scripts on Facebook

rapidssl_ssl_certificate
2Checkout.com is a worldwide leader in payment services
Home » Forum

Welcome, Guest

XML Feed: Tags with Field Names in Camel Case?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: XML Feed: Tags with Field Names in Camel Case?

XML Feed: Tags with Field Names in Camel Case? 7 months ago #307

I have a custom XML Feed based on GoogleBaseXML to continually update/transfer information to a custom made website. The XML Feed is working except I would like the field names in the Feed to be in Camel Case, as opposed to all uppercase word starts or all lowercase word starts. (ie productName, not productname or ProductName)

I have tried adding some PHP functions to convert the XML Feed to Camel Case tags, but it disregards the code and reverts back to the standard format.

Any advice or a possible solution, or any PHP code I can add in to convert the tags would be very much appreciated.

Re: XML Feed: Tags with Field Names in Camel Case? 7 months ago #308

The xml tag names are defined in the file components/com_googlebasexml/models/googlebasexml.php.

Look for the function getTags() - if you are using a version of the component prior to 2.0.0 then it will be around line 870, if you are using 2.0.0 then it is around line 1100.

The function is self-explanatory, it simply defines the tag names, eg

	$tags->description = 'description';
$tags->id = 'g:id';
$tags->link = 'link';
$tags->price = 'g:price';
$tags->sale_price = 'g:sale_price';
$tags->sale_price_effective = 'g:sale_price_effective_date';
 


You can change the values to whatever you want.
  • Page:
  • 1
Time to create page: 0.44 seconds
 
 

VirtueMart Featured Products Grid

Switch View

A module extension for the the Joomla CMS. It plays a random list of mp3s using the Flash media player.

£12.00
A Flash puzzle game for the Joomla! content management system. This would be suitable for a site aimed at children.

£12.00


This module displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£12.00


This module displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£14.00