Re: Dynamic Price Updater
Quote:
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?
It can be done, but not very easy. You will have to split the price in two parts, and place a <span> around the comma with a class. This could be done using jQuery.
Re: Dynamic Price Updater
Quote:
Originally Posted by
Design75
It can be done, but not very easy. You will have to split the price in two parts, and place a <span> around the comma with a class. This could be done using jQuery.
It can't be done with php? I have no knowledge of jQuery..
I thought if someone could show me where I can find the 'final output' of this plugin I might find a way.. :blush:
Re: Dynamic Price Updater
Quote:
Originally Posted by
Design75
It can be done, but not very easy. You will have to split the price in two parts, and place a <span> around the comma with a class. This could be done using jQuery.
Can you tell me where I can find the price? Or maybe refer me to a post in which it is explained?
I assume that from there on I will figure out how to change this :lookaroun
Thx in advance
Re: Dynamic Price Updater
Quote:
Originally Posted by
MarcoB
Can you tell me where I can find the price? Or maybe refer me to a post in which it is explained?
I assume that from there on I will figure out how to change this :lookaroun
Thx in advance
I'll look it up tommorow, and let you know
1 Attachment(s)
Re: Dynamic Price Updater
When I change family size price changes. So beautiful. But I also want to change to the extra options. Because family size of extra options are 2 euro. Is it possible?
Attachment 14882
Re: Dynamic Price Updater
Not sure, but looks like a checkbox is used... Further not sure if the plugin works/recognizes checkboxes... May want to switch to a radio button or dropdown with an additional option of both items and an individual price for that mixture. That's also assuming that the plugin works with multiple attributes.
Re: Dynamic Price Updater
But when I change family size same time change to extra options attribute.
Re: Dynamic Price Updater
Quote:
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 :D
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 :P
Re: Dynamic Price Updater
Is it ok to use Dynamic Price Updater on ZenCart 1.5.3? On the plugin page, it just says 1.5.0 and 1.5.1
Re: Dynamic Price Updater
Quote:
Originally Posted by
dharrison
Is it ok to use Dynamic Price Updater on ZenCart 1.5.3? On the plugin page, it just says 1.5.0 and 1.5.1
Yes it is, I have it working on 1.5.3 and 1.5.4 sites