Skip to main content

Update

Updates a specific promotion.

Examples

All at once:

$promotion = \SureCart\Models\Product::find('8ba8d60f-5277-4e6b-807c-dee8166446d5');
$promotion->update([
'code' => 'NEWCODE',
]);

Wait until attributes are updated:

$promotion = \SureCart\Models\Product::find('8ba8d60f-5277-4e6b-807c-dee8166446d5');
$promotion->code = 'NEWCODE';
$promotion->save();

Update Attributes

Response Attributes