|
@@ -81,7 +81,7 @@
|
|
|
<?php
|
|
|
$groupAttrArr = [
|
|
|
'Bust'=>'80',
|
|
|
- 'Waist'=>'70',
|
|
|
+ 'Waist'=>'60',
|
|
|
'Hips'=>'70',
|
|
|
'Hollow to floor'=>'60',
|
|
|
];
|
|
@@ -302,6 +302,29 @@
|
|
|
custom_option[attr] = value;
|
|
|
});
|
|
|
custom_option_json = JSON.stringify(custom_option);
|
|
|
+
|
|
|
+ var a = $(".current.my_sizebj").text();
|
|
|
+ if(a == 'CustomSize'){
|
|
|
+ customsize = new Object();
|
|
|
+ $("input.custom_op").each(function(){
|
|
|
+ attr = $(this).attr("attr");
|
|
|
+ value = $(this).val();
|
|
|
+ customsize[attr] = value;
|
|
|
+
|
|
|
+ if(value == ''){
|
|
|
+ alert("Please fill in "+ attr);
|
|
|
+ throw SyntaxError();
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ customsize = JSON.stringify(customsize);
|
|
|
+ }else{
|
|
|
+
|
|
|
+ customsize = '';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//alert(custom_option_json);
|
|
|
sku = $(".sku").val();
|
|
|
qty = $(".qty").val();
|
|
@@ -318,6 +341,7 @@
|
|
|
$data['custom_option'] = custom_option_json;
|
|
|
$data['product_id'] = "<?= $_id ?>";
|
|
|
$data['qty'] = qty;
|
|
|
+ $data['customsize'] = customsize;
|
|
|
if (csrfName && csrfVal) {
|
|
|
$data[csrfName] = csrfVal;
|
|
|
}
|