Guest Posted April 7, 2004 Posted April 7, 2004 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.
mugitty Posted April 7, 2004 Posted April 7, 2004 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!
Guest Posted April 7, 2004 Posted April 7, 2004 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'?
mugitty Posted April 8, 2004 Posted April 8, 2004 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!
Guest Posted April 8, 2004 Posted April 8, 2004 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).
Guest Posted April 8, 2004 Posted April 8, 2004 can anyone else figure this out? ... how to get rid of the brackets (i already have the text gone) after a shipping method?
mugitty Posted April 10, 2004 Posted April 10, 2004 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!
Davee Posted April 10, 2004 Posted April 10, 2004 I've had the same problem trying to find the same thing, I'd love to know the answer :)
Guest Posted April 10, 2004 Posted April 10, 2004 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.
cycore Posted July 12, 2006 Posted July 12, 2006 thanks! i've been looking for the piece of code that causes the brackets for about an hour now...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.