\Ebox_GoogleShopping

Returns XML file

Summary

Methods
Properties
Constants
getGshopSettings()
generate()
prepareXML()
update_xml_file()
getManufacturer()
getStock()
getAdditionalImg()
getCategory()
getVariant()
getProdCate()
No public properties found
No constants found
No protected methods found
$sExportPath
$sFolderName
$varcount
$sExportFileExt
N/A
No private methods found
No private properties found
N/A

Properties

$sExportPath

$sExportPath : string

Name of the export path.

Type

string

$sFolderName

$sFolderName : string

Name of the module folder.

Type

string

$varcount

$varcount : integer

Counter to maintain article count

Type

integer

$sExportFileExt

$sExportFileExt : string

Extention of the export file.

Type

string

Methods

getGshopSettings()

getGshopSettings() : \serialized

Function to get the Google Shopping settings

Returns

\serialized —

array

generate()

generate() : \xml

Generate XML on success.

Returns

\xml

prepareXML()

prepareXML(string  $sInput) : \$sOutput

Returns cleaned output by replacing strings

Parameters

string $sInput

input string

Returns

\$sOutput

update_xml_file()

update_xml_file(string  $content, string  $GBaseSuffix, string  $gbfeedsTitle) : null

Updates XML file

Parameters

string $content

content in it

string $GBaseSuffix

suffix to be added

string $gbfeedsTitle

title to be added

Returns

null

getManufacturer()

getManufacturer(string  $blShopCheck = true) : string

Returns Manufacture/brand values on success.

Parameters

string $blShopCheck

null

Returns

string

getStock()

getStock(string  $oArticle) : \value

Returns stock values on success.

Parameters

string $oArticle

article

Returns

\value

getAdditionalImg()

getAdditionalImg(string  $oArticle) : \url

Returns additionalImage values on success.

Parameters

string $oArticle

article

Returns

\url

getCategory()

getCategory(string  $oArticle) : \value

Returns category values on success.

Parameters

string $oArticle

article

Returns

\value

getVariant()

getVariant(string  $oxid, string  $oArticle, \value  $parentPrice) : \xml

Returns variant values on success.

Parameters

string $oxid

id

string $oArticle

article

\value $parentPrice

price

Returns

\xml

getProdCate()

getProdCate() : \value

Returns Google Product Category values on success.

Returns

\value