addProduct

addProduct ( string productName , mixed productPrice , string url , string _reference , string _productImage , string _productQuantity , mixed _additionalInformation ) : void

Add a competitor's product in PricesTracker, the current competitor is used.

Parameters

productName

Can be HTML (it will be cleaned)

productPrice

Can be HTML (it will be cleaned)

url

This URL will be used after for the partial analysis (faster). It must be acccessible. This link allows to undoublon products, it must be unique for all products. If you manage combinations, you can use the tips of the #. For example, create this type of link for combinations on the same page : http://site.com/product.html#combination1

_reference (optional)

On the MEGA version. Product references are used to be compared with references of the shop, ean13, upc codes and supplier references. If it fit, proximity rate rise a lot.

_productImage (optional)

On the MEGA version. Allows to display a product image on the matching part when the customer is hover the competitor's product

_productQuantity (optional)

To use in very particular cases

_additionalInformation (optional)

Can be a serialized array or some other object which is after manager (for example in pricing rules)