New Zenner
- Join Date:
- Jul 2014
- Posts:
- 13
- Plugin Contributions:
- 0
Dynamic Price Updater
OK a strange one, the dynamic price updater works on mobile phones but not tablets or desktop PCs..
Views: 342,338
New Zenner
OK a strange one, the dynamic price updater works on mobile phones but not tablets or desktop PCs..
New Zenner
Does anybody know where is the updateR function in Dynamic Price Updater for 1.5?
Has it been disappear?
I'm trying to update a 1.3.8a to 1.5 zencart, and this addon is highly used.
Totally Zenned
aire:
Does anybody know where is the updateR function in Dynamic Price Updater for 1.5?
Has it been disappear?
I'm trying to update a 1.3.8a to 1.5 zencart, and this addon is highly used.
As far as I know it has never been a part of DPU
New Zenner
Thank you!
New Zenner
Greetings and thanks very much for this addon.
I have searched this thread completely and cannot find an answer as to whether this modification works on the product listing screen. On my installation of Zen-Cart, it only works when viewing a single product. The question has been asked several times but there has not been an answer given, one way or the other other.
So, does this modification work on the product listing page or am I simply missing something to make it work?
Thanks to anyone who can shed a little light on this for me.
Totally Zenned
Tuxy:
Greetings and thanks very much for this addon.
I have searched this thread completely and cannot find an answer as to whether this modification works on the product listing screen. On my installation of Zen-Cart, it only works when viewing a single product. The question has been asked several times but there has not been an answer given, one way or the other other.
So, does this modification work on the product listing page or am I simply missing something to make it work?
Thanks to anyone who can shed a little light on this for me.
No, it does not work on the product listing page, and it never will, because there are no attributes to select from in the product listing.
New Zenner
Design75:
No, it does not work on the product listing page, and it never will, because there are no attributes to select from in the product listing.
Oh, Ok. I guess I have been running the Attributes On Products Listings 2.0 so long, I'd forgotten that it was a plug-in.
That being the case, I wonder how difficult it would be to add dynamic price update functionality to work in conjunction with this plug-in. I'm using ZC 1.5.1.
New Zenner
Totally Zenned
Ah I see, I wiil put it on my to do list, but I can not promise anything. It is a long list :laugh:
Totally Zenned
dharrison:
All works fine. One last thing: I have the total show up twice on the page, is there a way I can change this so the Unit price for the product shows up as well as the total?
If that means extra development, then please do quote me on PM what it would cost or if it's something I can do myself (with instructions!).
Many thanks for your help Erik. :laugh:
I don't know about the second part, but I had the total showing twice on one of the sites where I installed the mod. Solved it by adding this to the stylesheet:
#productPricesSecond {display: none;}
New Zenner
If anyone is using any Numinix products or any other modules that add extra columns to the configuration table, you will experience an error when installing this module!
The log file will show "PHP Fatal error." To fix this problem, you must supply the columns you intend to modify when performing an INSERT (which is good practice IMHO).
For example line 49 of init_dpu_config.php should read:
$sql = "INSERT INTO ".DB_PREFIX."configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Dynamic Price Updater Status', 'DPU_STATUS', 'false', 'Enable Dynamic Price Updater?', '".$dpu_configuration_id."', 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),')";
That should be replicated for all INSERT commands into the configuration table (or any table for that matter).
-c
Totally Zenned
clange:
If anyone is using any Numinix products or any other modules that add extra columns to the configuration table, you will experience an error when installing this module!
The log file will show "PHP Fatal error." To fix this problem, you must supply the columns you intend to modify when performing an INSERT (which is good practice IMHO).
For example line 49 of init_dpu_config.php should read:
$sql = "INSERT INTO ".DB_PREFIX."configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Dynamic Price Updater Status', 'DPU_STATUS', 'false', 'Enable Dynamic Price Updater?', '".$dpu_configuration_id."', 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),')";
>
> That should be replicated for all INSERT commands into the configuration table (or any table for that matter).
>
>
> -c
You are absolutely right. And it was already scheduled for a next release.
New Zenner
Design75:
You are absolutely right. And it was already scheduled for a next release.
Very cool. Thanks for this plugin!
Totally Zenned
clange:
Very cool. Thanks for this plugin!
Don't thank. Me for the plugin :smile: it was Chrome who made it, I merely updated it.
I am thinking about rewriting it to use Ajax and jQuery, but those are future plans.
New Zenner
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?
Totally Zenned
clange:
If anyone is using any Numinix products or any other modules that add extra columns to the configuration table, you will experience an error when installing this module!
The log file will show "PHP Fatal error." To fix this problem, you must supply the columns you intend to modify when performing an INSERT (which is good practice IMHO).
For example line 49 of init_dpu_config.php should read:
$sql = "INSERT INTO ".DB_PREFIX."configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Dynamic Price Updater Status', 'DPU_STATUS', 'false', 'Enable Dynamic Price Updater?', '".$dpu_configuration_id."', 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),')";
>
> That should be replicated for all INSERT commands into the configuration table (or any table for that matter).
>
>
> -c
> **Design75:**
>
> You are absolutely right. And it was already scheduled for a next release.
Recommend (if not already considered) also that the DB_PREFIX."configuration be changed to simply TABLE_CONFIGURATION as in the below and the configuration_id be removed so that it is system independent and because it is auto_generated (some systems don't like NULL and require 0, but they both end up doing the same thing, assigning the next id.. Update is shown below, another recommendation is a matter of "taste", but one may assume that the addition of a key is not the same as a modification of it (also see the example sql for populating the database with the demo product that the last_modified field is generally not set to a date), so the last_modified field probably could be left off the insert. That has not been incorporated below):
$sql = "INSERT INTO ".TABLE_CONFIGURATION." (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Dynamic Price Updater Status', 'DPU_STATUS', 'false', 'Enable Dynamic Price Updater?', '".$dpu_configuration_id."', 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),')";
Totally Zenned
mc12345678:
Recommend (if not already considered) also that the DB_PREFIX."configuration be changed to simply TABLE_CONFIGURATION as in the below and the configuration_id be removed so that it is system independent and because it is auto_generated (some systems don't like NULL and require 0, but they both end up doing the same thing, assigning the next id.. Update is shown below, another recommendation is a matter of "taste", but one may assume that the addition of a key is not the same as a modification of it (also see the example sql for populating the database with the demo product that the last_modified field is generally not set to a date), so the last_modified field probably could be left off the insert. That has not been incorporated below):
$sql = "INSERT INTO ".TABLE_CONFIGURATION." (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Dynamic Price Updater Status', 'DPU_STATUS', 'false', 'Enable Dynamic Price Updater?', '".$dpu_configuration_id."', 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),')";
THanks, this is somethying i already had changed in the test version. Theoretically it is possible someone changes the name of the configuration table.
Totally Zenned
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.
New Zenner
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:
New Zenner
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
Fields marked required must be completed.
Tell staff why this post should be reviewed.