bigpedro Posted March 18, 2014 Share Posted March 18, 2014 Hi All On our site we have really indepth product options on our products. In some cases there can be up to 8 different options that effect the product. We use the print packing note to pick and pack the order in our stores. At the moment this sheet displays the options but they are all laid out in one text block. This is not easy to read as in effect you end up with something like this: size: medium colour: pink : strapsize: 126cm design: track As you can see it is easy for the packer to misread etc. Does anyone know how we could make these options display on a seperate line for each? Any help would be appreciated as always! Pete Ward Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 18, 2014 Share Posted March 18, 2014 I'm not sure what "print packing note" actually is, but if it is the first page of the admin's Print Order function, and on this printout the options are listed on a line just under the name of the product in the list of products that make up the order, then try this: In the admin template file orders.print.php, near line 43, find:<br />{$LANG.catalogue.title_options} {foreach from=$item.options item=option}» {$option}{/foreach} Add the HTML break tag as seen here:<br />{$LANG.catalogue.title_options} {foreach from=$item.options item=option}» {$option}<br />{/foreach} Quote Link to comment Share on other sites More sharing options...
bigpedro Posted March 31, 2014 Author Share Posted March 31, 2014 Thank You Bsmither! Worked a treat. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted March 26, 2015 Share Posted March 26, 2015 Hi, This worked for me too . But now when I print an invoice it brings up a blank screen What did I do wrong? {foreach from=$item.options item=option}» {$option}<br />{/foreach} I hope you can help. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 26, 2015 Share Posted March 26, 2015 What worked? In later versions of CubeCart, when you click the Print icon to get a hard-copy of the order, there is supposed to be a new browser window (or browser tab) with the document to print. If this new window/tab is empty, then there may be a problem with the template, or there may be a problem with the folder that holds this new document and its permissions. Has anything changed since this last worked? If you restore the original file, does the problem go away? Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted March 26, 2015 Share Posted March 26, 2015 Hi, Thank you for your reply. Yes, when I click on the print icon it opens a new window. But, there is nothing displayed. I tried removing the <br /> but this did not solve the problem. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 26, 2015 Share Posted March 26, 2015 In admin, Maintenance, Rebuild tab, clear the cache. Please obtain a CubeCart package from the download section of CubeCart.com that is equal to or later than the version of CubeCart you are currently running. From the download package, replace the file orders.print.php. This will eliminate this file as being the problem. If you can find the PHP error_log, maybe there is something there that will give us a clue. Also, check in admin, Error Log. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted March 27, 2015 Share Posted March 27, 2015 I have just checked the admin Error log and there is the following error: /public_html/admin/skins/default/templates/orders.print.php" on line 125 "{/foreach}" unclosed {if} tag Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 27, 2015 Share Posted March 27, 2015 CC5212 and CC5216, orders.print.php only goes to line 97. CC602 only goes to line 123. So, an error on line 125 means you have made some other edits to the file. I would say line 125 is very near the end of the file, so make sure the last few lines look like: {if !empty($order.notes)} <div class="page-break"> <div id="header"> <div id="printLabel"> <div>{$order.address}</div> <div class="sender">{$LANG.address.return_address}<br />{$STORE.address}, {$STORE.county}, {$STORE.postcode} {$STORE.country}</div> </div> <div id="storeLabel"> <img src="{$STORE_LOGO}" alt="" /> </div> </div> <div class="info"> {foreach from=$order.notes item=note} {$note} {/foreach} </div> </div> {/if} {/foreach} {/if} </body> </html> 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.