What product fields can shoppers compare in PrestaShop?
The comparison table can show the product name, URL, cover image, current price, old price, short description, reference, manufacturer, weight, stock status, features, condition and EAN13 when those values exist. The AJAX controller skips inactive PrestaShop products.
The data comes from loaded Product objects in the current language and shop. Prices are formatted from Product::getPriceStatic() with tax enabled; the old price is only returned when the price without reduction is greater than the current price. Cover images use medium_default for the comparison table and cart_default for the floating thumbnail endpoint.
- Features: the controller calls
getFrontFeatures()and returns each feature name/value pair, while the front script groups unique feature names into comparison rows. - Availability: stock status is returned from
Product::getQuantity($idProduct) > 0, so it is a simple in-stock/out-of-stock indicator. - Missing data: optional fields such as manufacturer, reference, weight, EAN13 and old price are blank or omitted in the table when PrestaShop has no value for them.
Was this answer helpful?
Related products
Still have questions?
Can't find what you're looking for? Send us your question and we'll get back to you.