VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: The Godfather on April 23, 2016, 01:19:04 AM

Title: How to insert <br> between two prices of a product correctly?
Post by: The Godfather on April 23, 2016, 01:19:04 AM
Hi

I wanted to make a break line between two different main and discounted prices. I did it by firebug correctly, then i did it in php file,too. I also checked it in localhost and it was OK, but when it comes to real and online website, it still shown the prices in a line ( I refreshed by CTRL + F5, did not work, even tried another browser, still no changes ).

What can I do?

screenshot ( firebug) : http://awesomescreenshot.com/0c75te8i4e

modified PHP code:

        <?php
                 if ($product->prices['basePriceWithTax']>0 && $discont >0)
                    echo '<span class="WithoutTax">' . $currency->createPriceDiv('basePriceWithTax','',$product->prices,true) . '</span><br>';
                if ($product->prices['salesPrice']>0)
                    echo '<span class="sales">' . $currency->createPriceDiv('salesPrice','',$product->prices,true) . '</span>';
               
        ?>   
I added <br> after first </span>.

What can i do? Did i modify it wrong?

I'll be glad if you can help.

thanks.

Joomla 3.5.1 - Virtuemart 3.0.16 - PHP 5.6.20

Related URL: http://www.abarbuy.com
Title: Re: How to insert <br> between two prices of a product correctly?
Post by: GJC Web Design on April 23, 2016, 14:35:25 PM
or just

span.sales {
display:block;
}

Title: Re: How to insert <br> between two prices of a product correctly?
Post by: Ghost on April 23, 2016, 15:00:00 PM
Or just change span to div.