Specific Prices στο PrestaShop: γιατί το price field δεν είναι πάντα η τελική τιμή
Βλέπεις:
price = 29.90και θεωρείς ότι βρήκες την τελική τιμή.
Όχι απαραίτητα.
Στο PrestaShop η πραγματική εμπορική τιμή μπορεί να επηρεάζεται από specific prices, customer groups, currency, country, quantity, dates και combinations.
1. Το base price είναι μόνο η βάση
PRODUCT BASE PRICE
↓
PRICING CONTEXT
↓
FINAL PRICE2. Τι μπορεί να επηρεάζει Specific Price
Product
Shop
Currency
Country
Customer group
Customer
Combination
Minimum quantity
Date range3. Reduction
Μπορεί να είναι:
10%ή:
5.00Άρα χρειάζεται και reduction_type.
4. Date window
FROM → 2026-08-01
TO → 2026-08-155. Quantity pricing
1–4 units → normal price
5+ units → reduced price
10+ units → another rule6. Combination-level pricing
Specific price μπορεί να αφορά:
id_product_attribute7. Audit query
SELECT
sp.id_specific_price,
sp.id_product,
sp.id_product_attribute,
sp.id_shop,
sp.id_currency,
sp.id_country,
sp.id_group,
sp.id_customer,
sp.from_quantity,
sp.price,
sp.reduction,
sp.reduction_type,
sp.`from`,
sp.`to`
FROM ps_specific_price sp
ORDER BY sp.id_product, sp.id_specific_price;Warning
Αυτό είναι audit dataset, όχι πλήρης storefront price calculation.
8. Products με πολλούς pricing rules
SELECT
id_product,
COUNT(*) AS rules
FROM ps_specific_price
GROUP BY id_product
ORDER BY rules DESC;9. Πριν από pricing feed
Όρισε:
PRICE TYPE:
Base / Final / Promotional
SHOP:
Shop 1
CURRENCY:
EUR
COUNTRY:
CY
GROUP:
Visitor
QUANTITY:
1
DATE:
Now10. Webservice resource
/api/specific_pricesMental model:
PRODUCTS
+
SPECIFIC PRICES
+
CONTEXT
↓
PRICING DATASETΤο σωστό question
Όχι:
“Ποια είναι η τιμή;”
Αλλά:
“Ποια τιμή, για ποιο context, σε ποια στιγμή;”
[SCREENSHOT PLACEHOLDER 01]
Product pricing area με ενεργό discount.
[SCREENSHOT PLACEHOLDER 02]
SQL result με reductions και date ranges.
Επόμενο βήμα
Κάνε audit αυτών των contexts με ένα catalogue report βασισμένο σε ξεκάθαρα SQL joins. Κράτησε ορατές τις σχέσεις products, combinations και stock, ώστε ένα price row να μη θεωρηθεί πλήρες sellable variant.