Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alok Tiwari

    (@aloktiwari)

    Hello,

    you will need to change the shortcode content it is currently display on that code. Open the file “amazon-product-price.php” and go to the function price_handler() and change this code

    echo '<p>';
        if(!empty($price) && !empty($MSRP))
        {
             echo 'Retail Price: '.$MSRP2.'<br>';
             echo 'Lowest Price: '.$price.'<br>';
             $MSRP2 = number_format($MSRP /100,2);
             $percent = ($Savings/$MSRP2);
             echo 'Saveing Percent: '.number_format($percent,2).'%<br>';
        }
        elseif(!empty($price) && empty($MSRP))
        {
            echo 'Price: '.$price.'<br>';
        }
        echo '</p>';

    to

    $result = '<p>';
    if(!empty($price) && !empty($MSRP))
        {
             $result .=  'Retail Price: '.$MSRP2.'<br>';
             $result .= 'Lowest Price: '.$price.'<br>';
             $MSRP2 = number_format($MSRP /100,2);
             $percent = ($Savings/$MSRP2);
             $result .= 'Saveing Percent: '.number_format($percent,2).'%<br>';
        }
        elseif(!empty($price) && empty($MSRP))
        {
            $result .= 'Price: '.$price.'<br>';
        }
        $result .= '</p>';
        return $result;

    Then it will work as you want. If not contact me on wptricksbook.com via contact request form.

    Thanks

    Thread Starter somethingclever123

    (@somethingclever123)

    thank you so much that works!

    Plugin Author Alok Tiwari

    (@aloktiwari)

    OK thank you if any other work contact me.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘moving the price down in a post’ is closed to new replies.