Save Product in Campaign - celdotro/marketplace GitHub Wiki
- Allows a product to be added to a campaign with a custom promotional price that doesn't keep into account the campaign's discount
celmarket\Campaigns\CampaignsEdit
saveProduct
- method: campaign
- action: saveProduct
- numecampanie = campaign's name
- model = product's model
- promo = promotional price
An object with the following attributes
- message = Produsul a fost adaugat -> successfully added, Produsul nu a fost adaugat -> failed to add the product
https://github.com/celdotro/marketplace_examples/blob/master/Campaigns/5.saveProduct.php
{
"request": {
"numecampanie": "X",
"model": "X",
"promo": 1
},
"response": {
"message": "Produsul a fost adaugat"
}
}