News:

Looking for documentation? Take a look on our wiki

Main Menu

How to insert <br> between two prices of a product correctly?

Started by The Godfather, April 23, 2016, 01:19:04 AM

Previous topic - Next topic

The Godfather

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

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation