Originally Posted by
MarcoB
Great plugin!!
But I have a question; I would like to have a different fontsize for the komma and the last two digits of the price, is there a way to do this?
I thought I should share my answer to my own question
Eventually I figured it out.
In the file /includes/classes/dynamic_price_updater.php at line 83,
after this:
Code:
$this->responseText['priceTotal'] .= number_format($this->shoppingCart->total, 2);
} else {
$this->responseText['priceTotal'] .= $currencies->display_price($this->shoppingCart->total, 0);
and before this:
Code:
$this->responseText['weight'] = (string)$this->shoppingCart->weight;
I have added this:
Code:
$nweprijs = $this->responseText['priceTotal'] ;
$this->responseText['priceTotal'] = '<span class="prijs">' . substr($nweprijs, 0, -3) . '</span>' . '<span class="komma">' . substr($nweprijs, -3) . '</span>';
This will give you extra classes for the price, so it is possible to have something like this: 19,95
It is probably not the best way to do this, but it works
Bookmarks