Guest Posted January 19, 2015 Share Posted January 19, 2015 Hi Just trying to put the finishing touchs to our new site. On the checkout confirmation page where boxes such as Products, Delivery Address, Billing Address and Shipping Method appear, under shipping method it shows as Flat Rate () I would like to remove () if possible but gain seem to be looking in all the wrong places. (also is it a good ideato remove these () or are they required. Many thanks Grandpa Link to comment Share on other sites More sharing options...
auzStar Posted January 19, 2015 Share Posted January 19, 2015 @@grandpaj Hi John, I did report this here: http://www.oscommerce.com/forums/topic/396152-bootstrap-3-in-2334-responsive-from-the-get-go/page-58#entry1709152 It's due to define('MODULE_SHIPPING_FLAT_TEXT_WAY', ''); having an empty value in "catalog\includes\languages\english\modules\shipping\flat.php". Standard osc contains a value so the brackets appear with text in normal osc checkout confirmation. It's not really a bug but something that probably needs attention where a check is put in place so that an empty value won't display the brackets. We'll see what @@burt suggests to correct the issue when he comes online. cheers My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
Guest Posted January 19, 2015 Share Posted January 19, 2015 @@auzStar I guess we'll just have to wait and see what @@burt has to say. Aesthetically the () looks horrible. Cheers grandpa Link to comment Share on other sites More sharing options...
burt Posted January 19, 2015 Share Posted January 19, 2015 ?? They are there to contain the text that you set up in the language file... Link to comment Share on other sites More sharing options...
auzStar Posted January 19, 2015 Share Posted January 19, 2015 @@grandpaj Yes well. As per my solution from the link in my post above; quote: "Probably easier to fill the defines than check for null values", since there are a number of files to modify to get rid of the empty brackets. (Not sure why the brackets weren't placed in the language files to start with) The brackets contained text in previous versions of osc. You can change the text in the language files to suit. The only option here is to enter text. It's not just the "flat rate" that's affected. It's also "item" and "table" rates. This line: define('MODULE_SHIPPING_******_TEXT_WAY', ''); needs to modified in each language file. cheers My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
♥Tsimi Posted January 20, 2015 Share Posted January 20, 2015 Just curious, what kinda text would somebody type in there? Link to comment Share on other sites More sharing options...
auzStar Posted January 20, 2015 Share Posted January 20, 2015 @@Tsimi @@grandpaj The previous versions of osc (i.e. all 2.3 series except bs, probably osc2.2 series as well, not sure though) contained something like this in the shipping module language files: define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way'); Flat, Item and Table all had 'Best Way'. Zones had 'Shipping to'. I think it's a way to show how you were shipping the products for the respective shipping modules. 'Best Way' was put in by default. You could put in whatever you wanted i.e. Courier, Snail Mail, Australia Post, Jetcar, Space Shuttle :) In bs version Zones still contains define('MODULE_SHIPPING_ZONES_TEXT_WAY', 'Shipping to'); but Flat, Item and Table are empty? Zones has been left populated because it displays something like this "Shipping to AU : 18 lb(s)" cheers My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
♥Tsimi Posted January 20, 2015 Share Posted January 20, 2015 Space Shuttle :lol: imagine the customers face! Link to comment Share on other sites More sharing options...
auzStar Posted January 20, 2015 Share Posted January 20, 2015 @@grandpaj I see why the brackets weren't put in the language files. In "checkout shipping", where the list of shipping options/costs appear, if this isn't empty -> define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way'); then it will look odd with brackets when (Best Way) is displayed under Flat Rate, due to the way the layout is formatted. But looks ok in "checkout confirmation" Flat Rate (Best Way). I guess these language definitions weren't designed to be empty. :) My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
burt Posted January 21, 2015 Share Posted January 21, 2015 I think, though I am not 100% sure off the top of my head, you would need to remove the brackets in the class file and the shiipping file; https://github.com/gburton/osCommerce-234-bootstrap/blob/master/includes/classes/shipping.php#L101 and https://github.com/gburton/osCommerce-234-bootstrap/blob/master/checkout_shipping.php#L129 Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2015 Share Posted January 21, 2015 @@burt Thanks burt. Will take a look. Don't you ever sleep. Many thanks Grandpa Link to comment Share on other sites More sharing options...
Guest Posted January 23, 2015 Share Posted January 23, 2015 @@auzStar Somewhere Ive stuffed up, And now get this message, not sure for how long or when this might have been caused. Ive tried the obvious fix like upladin the sipping file but no go, any clues what Ive managed to do. Warning: include(includes/modules/order_total/ot_subtotal.php): failed to open stream: No such file or directory in /home/grandp/public_html/includes/classes/order_total.php on line 26Warning: include(includes/modules/order_total/ot_subtotal.php): failed to open stream: No such file or directory in /home/grandp/public_html/includes/classes/order_total.php on line 26Warning: include(): Failed opening 'includes/modules/order_total/ot_subtotal.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/grandp/public_html/includes/classes/order_total.php on line 26 Fatal error: Class 'ot_subtotal' not found in /home/grandp/public_html/includes/classes/order_total.php on line 29 Many thanks grandpa Link to comment Share on other sites More sharing options...
auzStar Posted January 23, 2015 Share Posted January 23, 2015 @@grandpaj Hi John, First, make sure this file exists "catalog\includes\modules\order_total\ot_subtotal.php" and test first. Otherwise... If you modified the files from burt's post above, just restore them from backups or upload fresh copies from the GOLD package for both of those files. Make sure you're following the same folder paths as shown at the top of the pages when viewing the links above for each file. cheers My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.