fix: resolve container width issues, spa redirects, and appearance settings overwrite. feat: enhance order/sub details and newsletter layout
This commit is contained in:
@@ -371,13 +371,13 @@ class ProductsController
|
||||
}
|
||||
|
||||
// Virtual and downloadable
|
||||
if (isset($data['virtual'])) {
|
||||
if (array_key_exists('virtual', $data)) {
|
||||
$product->set_virtual((bool) $data['virtual']);
|
||||
}
|
||||
if (isset($data['downloadable'])) {
|
||||
if (array_key_exists('downloadable', $data)) {
|
||||
$product->set_downloadable((bool) $data['downloadable']);
|
||||
}
|
||||
if (isset($data['featured'])) {
|
||||
if (array_key_exists('featured', $data)) {
|
||||
$product->set_featured((bool) $data['featured']);
|
||||
}
|
||||
|
||||
@@ -510,13 +510,13 @@ class ProductsController
|
||||
if (isset($data['height'])) $product->set_height(self::sanitize_number($data['height']));
|
||||
|
||||
// Virtual and downloadable
|
||||
if (isset($data['virtual'])) {
|
||||
if (array_key_exists('virtual', $data)) {
|
||||
$product->set_virtual((bool) $data['virtual']);
|
||||
}
|
||||
if (isset($data['downloadable'])) {
|
||||
if (array_key_exists('downloadable', $data)) {
|
||||
$product->set_downloadable((bool) $data['downloadable']);
|
||||
}
|
||||
if (isset($data['featured'])) {
|
||||
if (array_key_exists('featured', $data)) {
|
||||
$product->set_featured((bool) $data['featured']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user