Skip to content

Commit a5f8b0d

Browse files
Merge pull request #2335 from ahmedkaludi/1.48
1.48
2 parents 8cc8887 + 60d042a commit a5f8b0d

File tree

7 files changed

+378
-117
lines changed

7 files changed

+378
-117
lines changed

core/array-list/repeater-fields.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@
143143
),
144144
'ImageGallery' => array(
145145
'image-gallery-collections' => 'image_gallery_collections',
146+
),
147+
'Vehicle' => array(
148+
'vehicle-engine' => 'vehicle_engine',
146149
)
147150

148151
),
@@ -1309,6 +1312,53 @@
13091312
'type' => 'media',
13101313
),
13111314
),
1315+
'vehicle_engine' => array(
1316+
array(
1317+
'label' => 'Name',
1318+
'name' => 'saswp_vehicle_engine_name',
1319+
'type' => 'text',
1320+
),
1321+
array(
1322+
'label' => 'Type',
1323+
'name' => 'saswp_vehicle_engine_type',
1324+
'type' => 'text',
1325+
),
1326+
array(
1327+
'label' => 'Fuel Type',
1328+
'name' => 'saswp_vehicle_engine_fuel_type',
1329+
'type' => 'text',
1330+
),
1331+
array(
1332+
'label' => 'Displacement Value',
1333+
'name' => 'saswp_vehicle_engine_dis_value',
1334+
'type' => 'text',
1335+
),
1336+
array(
1337+
'label' => 'Displacement Unit Code',
1338+
'name' => 'saswp_vehicle_engine_dis_unit_code',
1339+
'type' => 'text',
1340+
),
1341+
array(
1342+
'label' => 'Power Value',
1343+
'name' => 'saswp_vehicle_engine_power_value',
1344+
'type' => 'text',
1345+
),
1346+
array(
1347+
'label' => 'Power Unit Code',
1348+
'name' => 'saswp_vehicle_engine_power_unit_code',
1349+
'type' => 'text',
1350+
),
1351+
array(
1352+
'label' => 'Torque Value',
1353+
'name' => 'saswp_vehicle_engine_torque_value',
1354+
'type' => 'text',
1355+
),
1356+
array(
1357+
'label' => 'Torque Unit Code',
1358+
'name' => 'saswp_vehicle_engine_torque_unit_code',
1359+
'type' => 'text',
1360+
),
1361+
),
13121362

13131363

13141364
)

core/array-list/schema-properties.php

Lines changed: 84 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,6 +6293,11 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
62936293
'id' => 'saswp_product_schema_offer_count_'.$schema_id,
62946294
'type' => 'text',
62956295
),
6296+
array(
6297+
'label' => 'Offer URL',
6298+
'id' => 'saswp_product_schema_offer_url_'.$schema_id,
6299+
'type' => 'text',
6300+
),
62966301
array(
62976302
'label' => 'Price Valid Until',
62986303
'id' => 'saswp_product_schema_priceValidUntil_'.$schema_id,
@@ -6477,6 +6482,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
64776482
'ReturnShippingFees' => 'ReturnShippingFees',
64786483
)
64796484
),
6485+
array(
6486+
'label' => 'Return Policy Refund Type',
6487+
'id' => 'saswp_product_schema_rp_refund_type_'.$schema_id,
6488+
'type' => 'select',
6489+
'options' => array(
6490+
'' => 'Select Refune Type',
6491+
'FullRefund' => 'FullRefund',
6492+
'ExchangeRefund' => 'ExchangeRefund',
6493+
'StoreCreditRefund' => 'StoreCreditRefund',
6494+
)
6495+
),
64806496
array(
64816497
'label' => 'Shipping Rate Value',
64826498
'id' => 'saswp_product_schema_sr_value_'.$schema_id,
@@ -7221,7 +7237,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
72217237
break;
72227238

72237239
case 'Review':
7224-
7240+
$review_item_type = get_post_meta($schema_id, 'saswp_review_item_reviewed_'.$schema_id, true);
72257241
$meta_field[] = array(
72267242
'label' => 'Review Name',
72277243
'id' => 'saswp_review_name_'.$schema_id,
@@ -7323,7 +7339,8 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
73237339
'SoftwareApplication' => 'SoftwareApplication',
73247340
'MobileApplication' => 'MobileApplication',
73257341
'VideoGame' => 'VideoGame',
7326-
)
7342+
),
7343+
'default' => $review_item_type,
73277344
);
73287345

73297346
}
@@ -10587,36 +10604,71 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1058710604
'id' => 'saswp_vehicle_schema_manufacturer_'.$schema_id,
1058810605
'type' => 'text',
1058910606
),
10590-
array(
10591-
'label' => 'Price',
10592-
'id' => 'saswp_vehicle_schema_price_'.$schema_id,
10593-
'type' => 'text',
10594-
),
10595-
array(
10596-
'label' => 'High Price',
10597-
'id' => 'saswp_vehicle_schema_high_price_'.$schema_id,
10598-
'type' => 'text'
10599-
),
10600-
array(
10601-
'label' => 'Low Price',
10602-
'id' => 'saswp_vehicle_schema_low_price_'.$schema_id,
10603-
'type' => 'text'
10604-
),
10605-
array(
10606-
'label' => 'Offer Count',
10607-
'id' => 'saswp_vehicle_schema_offer_count_'.$schema_id,
10608-
'type' => 'text'
10609-
),
10610-
array(
10611-
'label' => 'Price Valid Until',
10612-
'id' => 'saswp_vehicle_schema_priceValidUntil_'.$schema_id,
10613-
'type' => 'text'
10614-
),
10615-
array(
10616-
'label' => 'Currency',
10617-
'id' => 'saswp_vehicle_schema_currency_'.$schema_id,
10618-
'type' => 'text'
10619-
),
10607+
array(
10608+
'label' => 'Identification Number',
10609+
'id' => 'saswp_vehicle_schema_identification_no_'.$schema_id,
10610+
'type' => 'text',
10611+
),
10612+
array(
10613+
'label' => 'Color',
10614+
'id' => 'saswp_vehicle_schema_color_'.$schema_id,
10615+
'type' => 'text',
10616+
),
10617+
array(
10618+
'label' => 'Interior Type',
10619+
'id' => 'saswp_vehicle_schema_interior_type_'.$schema_id,
10620+
'type' => 'text',
10621+
),
10622+
array(
10623+
'label' => 'Interior Color',
10624+
'id' => 'saswp_vehicle_schema_interior_color_'.$schema_id,
10625+
'type' => 'text',
10626+
),
10627+
array(
10628+
'label' => 'Transmission',
10629+
'id' => 'saswp_vehicle_schema_transmission_'.$schema_id,
10630+
'type' => 'text',
10631+
),
10632+
array(
10633+
'label' => 'Vehicle Configuration',
10634+
'id' => 'saswp_vehicle_schema_config_'.$schema_id,
10635+
'type' => 'text',
10636+
),
10637+
array(
10638+
'label' => 'Drive Wheel Configuration',
10639+
'id' => 'saswp_vehicle_schema_wheel_config_'.$schema_id,
10640+
'type' => 'text',
10641+
),
10642+
array(
10643+
'label' => 'Price',
10644+
'id' => 'saswp_vehicle_schema_price_'.$schema_id,
10645+
'type' => 'text',
10646+
),
10647+
array(
10648+
'label' => 'High Price',
10649+
'id' => 'saswp_vehicle_schema_high_price_'.$schema_id,
10650+
'type' => 'text'
10651+
),
10652+
array(
10653+
'label' => 'Low Price',
10654+
'id' => 'saswp_vehicle_schema_low_price_'.$schema_id,
10655+
'type' => 'text'
10656+
),
10657+
array(
10658+
'label' => 'Offer Count',
10659+
'id' => 'saswp_vehicle_schema_offer_count_'.$schema_id,
10660+
'type' => 'text'
10661+
),
10662+
array(
10663+
'label' => 'Price Valid Until',
10664+
'id' => 'saswp_vehicle_schema_priceValidUntil_'.$schema_id,
10665+
'type' => 'text'
10666+
),
10667+
array(
10668+
'label' => 'Currency',
10669+
'id' => 'saswp_vehicle_schema_currency_'.$schema_id,
10670+
'type' => 'text'
10671+
),
1062010672
array(
1062110673
'label' => 'Aggregate Rating',
1062210674
'id' => 'saswp_vehicle_schema_enable_rating_'.$schema_id,

0 commit comments

Comments
 (0)