forked from mitokande/stockTakip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.php
More file actions
39 lines (35 loc) · 1.32 KB
/
Test.php
File metadata and controls
39 lines (35 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require_once("ApiConfig.php");
$propertiesJSON = array('properties' => ['products'=>[]]);
$prod = [
"connectedCategories"=> "[]",
"connectedProducts"=> "[]",
"customPrice"=> "",
"customPriceSource"=> "0",
"description"=> "Ön BAS",
"fitImageToCanvas"=> "Yes",
"hasExpandedOption"=> "",
"hasQuantity"=> "1",
"hasSpecialPricing"=> "",
"icon"=> "",
"images"=> "[\"https=>//www.jotform.com/uploads/benmithat18/form_files/attack-on-titan-eren-on-arka-baskili-tisort-650x650.jpg?nc=1\"]",
"isLowStockAlertEnabled"=> "No",
"isStockControlEnabled"=> "Yes",
"lowStockValue"=> "",
"name"=> "INTERN TSHIRT",
"options"=> "[{\"type\":\"quantity\",\"properties\":\"1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\",\"name\":\"Quantity\",\"defaultQuantity\":\"\",\"specialPricing\":false,\"specialPrices\":\"\",\"expanded\":false}]",
"period"=> "Monthly",
"pid"=> "100",
"price"=> "1000",
"recurringtimes"=> "No Limit",
"required"=> "",
"selected"=> "",
"setupfee"=> "",
"showSubtotal" => "0",
"stockQuantityAmount" => "200",
"trial" => ""
];
array_push($propertiesJSON['properties']['products'],$prod);
array_push($propertiesJSON['properties']['products'],$prod);
print_r( getApi()->setMultipleFormProperties(222122770297050, json_encode($propertiesJSON)));
?>