update 7_11_2019
This commit is contained in:
@@ -485,7 +485,7 @@ class UserController extends Controller {
|
||||
->with('array_cat_name', $array_cat_name);
|
||||
}
|
||||
|
||||
|
||||
//save item from my design //
|
||||
public function saveNewStoreItem(Request $request){
|
||||
$post = $request->all();
|
||||
$UserModel = new UserModel;
|
||||
@@ -500,6 +500,7 @@ class UserController extends Controller {
|
||||
$itemForm = $post['itemForm'];
|
||||
$itemUrl = $post['itemUrl'];
|
||||
$itemPrivacy = $post['itemPrivacy'];
|
||||
$available_size = implode(",", $_POST['available_size']);
|
||||
|
||||
$check_product_url = array(
|
||||
'ProductURL' => $itemUrl
|
||||
@@ -541,6 +542,7 @@ class UserController extends Controller {
|
||||
'ProductDescription'=> $itemDescription,
|
||||
'ProductURL' => $itemUrl,
|
||||
'ProductForm' => $itemForm,
|
||||
'AvailableSizes' => $available_size,
|
||||
'PrivacyStatus' => $itemPrivacy,
|
||||
'TemplateCode' => $templateCode,
|
||||
'DesignCode' => $designCode,
|
||||
@@ -590,6 +592,7 @@ class UserController extends Controller {
|
||||
return view('user-layouts.add_item')->with('store_array', $store_array);
|
||||
}
|
||||
|
||||
//manually uploading item
|
||||
function saveNewItem(Request $request){
|
||||
|
||||
$post = $request->all();
|
||||
@@ -606,7 +609,10 @@ class UserController extends Controller {
|
||||
$itemForm = $post['itemForm'];
|
||||
$itemUrl = $post['itemUrl'];
|
||||
$itemPrivacy = $post['itemPrivacy'];
|
||||
$available_size = implode(",", $_POST['available_size']);
|
||||
|
||||
|
||||
|
||||
$check_product_url = array(
|
||||
'ProductURL' => $itemUrl
|
||||
);
|
||||
@@ -647,6 +653,7 @@ class UserController extends Controller {
|
||||
'ProductDescription'=> $itemDescription,
|
||||
'ProductURL' => $itemUrl,
|
||||
'ProductForm' => $itemForm,
|
||||
'AvailableSizes' => $available_size,
|
||||
'PrivacyStatus' => $itemPrivacy,
|
||||
'TemplateCode' => $templateCode,
|
||||
'DesignCode' => $designCode,
|
||||
|
||||
Reference in New Issue
Block a user