Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plsh_get_price_html($price, $product )
- {
- $price = str_replace('<span class="amount">', '', $price);
- $price = str_replace('<span class="from">', '', $price);
- $price = str_replace('</span>', '', $price);
- /* THE FOLLOWING LINE IS EDITED! */
- $price = str_replace('From: ', '', $price);
- $price = str_replace('<ins>', '', $price);
- $price = str_replace('</ins>', '', $price);
- $price = str_replace('<del>', '<s>', $price);
- $price = str_replace('</del>', '</s>', $price);
- if(strpos($price, '</s>') !== false)
- {
- $price_parts = explode('</s>', $price);
- $price = $price_parts[1] . $price_parts[0] . '</s>';
- }
- return $price;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement