// products won't sync themselves
$webService = new PrestaShopWebservice(
$shopUrl,
$apiKey,
false
);
$xml = $webService->get([
'resource' => 'products',
'display' => 'full'
]);
GET /api/products/42
↓
CHANGE ONLY KNOWN DATA
↓
PUT /api/products/42
↓
GET + VERIFY
PrestaShop Webservice: ασφαλέστερο workflow για product updates
PrestaShop SQL: τα joins που χρειάζεσαι για χρήσιμα catalogue reports
SUPPLIER FEED
↓
RAW
↓
NORMALIZE
↓
MAP
↓
VALIDATE
↓
PRESTASHOP READY
Supplier Feed → Google Sheets → PrestaShop: reusable transformation pipeline
GET /api/products
?display=[id,reference,price]
&output_format=JSON
200 OK
{
"id": 42,
"reference": "ABC-001"
}
PrestaShop Webservice API: το πρώτο σου πραγματικό request
Products, Combinations και Stock στο PrestaShop: πώς συνδέονται πραγματικά
reference,name,price,quantity
SKU-001,Basic Tee,19.90,12
SKU-002,Cargo Short,29.90,7
CSV → NORMALIZE
→ VALIDATE
→ MAP
→ IMPORT
PrestaShop CSV Product Import: το σωστό αρχείο πριν πατήσεις Import
GET /api/products
?display=[id,reference,name]
&filter[active]=[1]
&sort=[id_DESC]
&limit=0,50
# next page
&limit=50,50
PrestaShop Webservice: filters, sorting και pagination χωρίς να κατεβάζεις όλο το catalogue
const url = shopUrl +
'/api/products';
const res = UrlFetchApp.fetch(url, {
headers: {
Authorization: 'Basic ' + token
}
});
PrestaShop → Google Sheets: product export με Webservice και Apps Script
Specific Prices στο PrestaShop: γιατί το price field δεν είναι πάντα η τελική τιμή
SOURCE
Men > Tops > Casual Shirts
↓
NORMALIZE
↓
MAP
↓
id_category = 42
Category Mapping για PrestaShop imports: σταμάτα να εμπιστεύεσαι τα supplier category names
POST /api/images/products/42
Content-Type:
multipart/form-data
image=@product-main.jpg
VERIFY → REORDER → CLEANUP