Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Brackets in Shipping Method title


Guest

Recommended Posts

Posted

This seems like a really easy thing to do, but I just can't figure it out. How do you remove the brackerts from around a shipping method's 'title'. I've figured out how to get rid of the text inside the bracket, but now im left with something like this: APO/FPO (Military) (). How can I eliminate the (). Thanks.

Posted

When you removed the text, it was probably from the language file, right?

Look in the file for the shipping method itself where it callls the define for that text that you removed and you will most likely find the brackets around the call to the define.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Posted

Hmm, this is what I have in my languages file..

 

define('MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_TITLE', 'Free Standard Ground');

define('MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_DESCRIPTION', 'Free Standard Ground');

define('MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_WAY', '');

define('MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_WEIGHT', 'Weight');

define('MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_AMOUNT', 'Amount');

 

 

Which should I comment out? The define for 'MODULE_SHIPPING_FREESTANDARDGROUND_TEXT_WAY'?

Posted

Tom;

 

Exactly which shipping module are you using?

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Posted

i created this module based directly off of the module table.php. the only thing i changed around were the variables MODULE_SHIPPING_TABLE_TEXT_TITLE and MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION and such. everything else is exactly the same (even the language files).

Posted

can anyone else figure this out? ... how to get rid of the brackets (i already have the text gone) after a shipping method?

Posted

Tom;

 

If enable other shipping modules, do you see the brackets around parts of the description in the other modules?

 

If so, you might look at checkout_shipping.php, as that would suggest that the brackets are added universally to all shipping methods from somewhere in that file.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Posted

I figured it out yes! ok here's what I did.

 

in checkout_shipping.php i changed this line:

 

$shipping = array( 'id'    => $shipping, 'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), 'cost' => $quote[0]['methods'][0]['cost']);

 

to this

 

$shipping = array( 'id'    => $shipping, 'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module']), 'cost' => $quote[0]['methods'][0]['cost']);

 

in effect i axed this bit of code

 

 . ' (' . $quote[0]['methods'][0]['title'] . ')'

 

makes sense right, i probably should have just looked for parenthasis(sp)! dir hir hir. Hope this helps someone.

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...