Some changes to products are NOT being saved, some of them are., i.e., change in shipping cost. Some of these changes I made a couple of weeks ago. They were saved, now they are not. Any ideas - this is a MAJOR problem.
Now this is just freaky. Seems about 1/2 of my products are defaulting to a weight of 5 ounces. I am using weight based shipping for my entire store. Is there a file somewhere that could possibly be causing this?
I think these are incorrect in product.php getform
if ( $request->has('min_qty', 'post')) {
$view->set('min_qty', $request->gethtml('min_qty', 'post'));
} elseif (isset($product_info['min_qty'])) {
$view->set('min_qty', $product_info['min_qty']);
} else {
$view->set('min_qty', 1);
}
if ($request->has('weight_class_id', 'post')) {
$view->set('weight_class_id', $request->gethtml('weight_class_id', 'post'));
} elseif (isset($product_info['weight_class_id'])) {
$view->set('weight_class_id', $product_info['weight_class_id']);
} else {
$view->set('weight_class_id', '');
}
@$product_info ??
if ( $request->has('min_qty', 'post')) {
$view->set('min_qty', $request->gethtml('min_qty', 'post'));
} elseif (isset($product_info['min_qty'])) {
$view->set('min_qty', $product_info['min_qty']);
} else {
$view->set('min_qty', 1);
}
if ($request->has('weight_class_id', 'post')) {
$view->set('weight_class_id', $request->gethtml('weight_class_id', 'post'));
} elseif (isset($product_info['weight_class_id'])) {
$view->set('weight_class_id', $product_info['weight_class_id']);
} else {
$view->set('weight_class_id', '');
}
@$product_info ??
Brent
That would just suppress the error message. There really shouldn't be any errors messages anyway.bthirsk wrote: I think these are incorrect in product.php getform
if ( $request->has('min_qty', 'post')) {
$view->set('min_qty', $request->gethtml('min_qty', 'post'));
} elseif (isset($product_info['min_qty'])) {
$view->set('min_qty', $product_info['min_qty']);
} else {
$view->set('min_qty', 1);
}
if ($request->has('weight_class_id', 'post')) {
$view->set('weight_class_id', $request->gethtml('weight_class_id', 'post'));
} elseif (isset($product_info['weight_class_id'])) {
$view->set('weight_class_id', $product_info['weight_class_id']);
} else {
$view->set('weight_class_id', '');
}
@$product_info ??
That wouldn't affect this problem tho.
I built my store from scratch using OpenCart so I have never used import/export for anything. Weird huh? I went thru every product today and fixed them all so I will get back to you if the changes don't stick this time.
Who is online
Users browsing this forum: No registered users and 2 guests