Home Communication board WiKi Get Quote

Option or variant values are not saved in X-Cart AOM module (Advanced Order Management)

If you are not able to save product options or variants in X-Cart AOM module, please try to apply the following fix. With its help product option alt text values will be updated, what will help to correct displaying of the options on invoice page in the store.

Please find the function func_update_order in the modules/Advanced_Order_Management/order_edit.php file and find the following code inside it:

if (!empty($active_modules['Product_Options'])) {
  $product["product_options"] = func_serialize_options($options);
}

It should be changed to:

if (!empty($active_modules['Product_Options'])) {
  $product["product_options"] = func_serialize_options($options);

  global $all_languages;
  if ($all_languages && is_array($all_languages) && count($all_languages) > 1)  
  foreach($all_languages as $lng) 
    $product["extra_data"]["product_options_alt"][$lng["code"]] = func_serialize_options($product["options"], false, $lng["code"]);
}
 
Home About us Privacy statement Terms & Conditions Refund policy © 2007–2024 ArsCommunity