@mattab opened this Issue on September 14th 2011 Member

Currently we do not track the "price" of an object on a Ecommerce product page view. We only track product SKU, Name and category.

Tracking the price will be a useful data point for future uses. Also, we will be able to return the "price" in the API response as a new field.

@mattab commented on September 19th 2011 Member

(In [5191]) Fixes #2660

  • Adding price tracking on Ecommerce pages, via JS or PHP api.
  • Displaying price in API field avg_price ONLY IF the product was NOT purchased. If a product was purchased, the "display price" tracked is not displayed and purchased price is used instead.
  • Price tracked with this feature will ONLY be displayed as "Avg_price" in Product Names, and Product SKUs ONLY WHEN the products havent been bought.
  • Hacking around tracking price for ecommerce items, using a custom variable and small custom hacks to the SQL to get the average price for each custom var.
    Similar to doing basic version of custom variables co variation
  • Allow custom variables values to be integer (previously would fail to record the custom variable)

TODO: Update Doc

@mattab commented on September 20th 2011 Member

(In [5194]) Refs #2660

  • Fix bug in JS API
  • Now use price tracked in categories to process avg price per category
This Issue was closed on September 20th 2011
Powered by GitHub Issue Mirror