Q: How do I remove the <sup> code from USPS titles?
Posted: Mon Sep 30, 2013 10:28 pm
This edit will remove all text after the first < symbol in all USPS titles:
If that doesn't work for you, see the fix posted by BionicBill, and ensuing discussion, here:
http://forum.opencart.com/viewtopic.php ... 96#p424265
Code: Select all
IN:
/catalog/model/shipping/usps.php
AFTER:
if ($quote_data) {
ADD:
foreach ($quote_data as &$quote) {
$quote['title'] = str_replace('&', '&', $quote['title']);
if (strpos($quote['title'], '<')) {
$quote['title'] = substr($quote['title'], 0, strpos($quote['title'], '<'));
}
}
http://forum.opencart.com/viewtopic.php ... 96#p424265