npn2531 Posted November 13, 2013 Share Posted November 13, 2013 As familiar as a think I am with OSC I find myself stymied with the seemingly simple things. Specifically where is blue blazes is the text defined by $order->totals[$i]['text'] in admin/invoice.php ? It is actually the text that the discount coupons contribution (referenced below) displays in the order totals that I am trying to change. http://addons.oscommerce.com/info/4269 Thanks! Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
burt Posted November 13, 2013 Share Posted November 13, 2013 These textual values are stored in the orders_totals table under title. They are written there from the language file of the applicable module. To change them on existing orders, you would need to amend the DB. To change them on future orders, you would need to amend the relevant language files. Note that the logic in checkout_process (that inserts into the DB) adds an extra : to the string Link to comment Share on other sites More sharing options...
npn2531 Posted November 13, 2013 Author Share Posted November 13, 2013 It is finding, rather knowing which is the relevant language file that confounds me. (I am concerned with future orders only) Since I know how to locate language files, but still can't find the text, (maybe I need new glasses, or a learn how to search better with Dreamweaver), I was wondering if this text is not in a language file, but that didn't seem likely. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
MrPhil Posted November 13, 2013 Share Posted November 13, 2013 To search for text strings (or regular expressions), you can use findstr on Windows or grep on Linux. "findstr -?" or "man grep" for help. Link to comment Share on other sites More sharing options...
burt Posted November 13, 2013 Share Posted November 13, 2013 You might like to state the actual text that is being inserted into the DB when using this addon. orders_totals.title > ot_discount_coupon As an aside, when you see that an addon has so many updates by so many different people, it is 100% likely that the addon should be avoided. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.