red sun Posted June 2, 2015 Share Posted June 2, 2015 I have a CC5 store with lots of options per product.Line 149 of admin/skins/templates/orders.index.php just has the variable {$product.options} which produces a linear list which is very difficult to read when there are lots of options (see screen grab).Please could someone let me know where {$product.options} is created and if it's possible to amend the code to add <br /> tags at the end of each option.Many thanks... Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 2, 2015 Share Posted June 2, 2015 In the file /admin/sources/orders.index.inc.php, find near line 273 (line number for CC604, should be nearby for CC5):$product['options_array'] = false; if (!empty($product['product_options']) && preg_match('/^a:[0-9]/', $product['product_options'])) { $product['options_array'] = cc_unserialize($product['product_options']); $product['options_text'] = implode(' ', cc_unserialize($product['product_options'])); } elseif (!empty($product['product_options'])) { $product['options_text'] = $product['product_options']; } Change just this: implode(' ', To: implode('<br />', Quote Link to comment Share on other sites More sharing options...
red sun Posted June 2, 2015 Author Share Posted June 2, 2015 Many, many thanks for this.For anyone else looking for this it's line 266 of /admin/sources/orders.index.inc.php in CC 5.2.16 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.