July 23, 201214 yr This has completely got me going round in circles now. I am using the WordPress ecommerce plugin "WP e-commerce" along with another plugin, "Simple Shipping". Now, everything is great, works a treat. I do have a small issue though, that I am unsure if is even possible. In the users accounts area I have created an area to show the delivery option selected at checkout, and estimated time of delivery. No matter what I try, this just doesn't work. I can, however, get the total shipping cost to display correctly in its place! So...I was wondering if it is at all possible to do some kind of edit/rewrite on the out put of the string that calls the shipping cost, (ie rather than show £6.00, it would show something like "Next Day")? I tried a simple replace of certain parts of the string, like below <?php $string = "An infinite number of monkeys"; $newstring = str_replace("monkeys", "giraffes", $string); print $newstring; ?> ..but because the initial string is pulling the contents from the database, this didnt work out too well! Suggestions anybody? Failing that, anybody here an expert with the above plugins?
July 23, 201214 yr Have you tried throwing preg_replace at it? Vaugely remember something about string replace failing if it came after a mysql_real_escape_string statement.. something to do with encoding. Edited July 23, 201214 yr by Sogo7
Create an account or sign in to comment