Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 343,202

Results 1,681 to 1,700 of 1,701
25 Jul 2023, 3:59 AM
#1681
goldbuckle avatar

goldbuckle

Zen Follower

Join Date:
Dec 2006
Location:
near Atlanta Georgia
Posts:
220
Plugin Contributions:
0

Dynamic Price Updater

Is there anyone in the ZenCart community that can update this plugging for the latest version 1.5.8 or 1.5.8a?

Best,
Goldbuckle

25 Jul 2023, 10:00 AM
#1682
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: Dynamic Price Updater

You can try an updated version in branch 158 here:
https://github.com/dbltoe/Zen-Cart-Dynamic-Price-Updater

with no guarantees.

Due to the complexity of this mod, the development and support is pretty forked-up, as various well-meaning people have attempted to keep it alive.

This functionality really should be a core function, but it is not trivial to implement once it touches discount-pricing-hell.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 Oct 2023, 9:45 PM
#1683
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Dynamic Price Updater

Just a bit question... I was done some stuff and bored.. I turned on, signed 158a and put the files for DPU, I put the create language files and it works now! I need some testing and work for additional image swapped with it, but it's not working yet. I think both worked better with one then two plugins.

Dave
Always forward thinking... Lost my mind!

7 Oct 2023, 9:45 AM
#1684
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Dynamic Price Updater

davewest:

Just a bit question... I was done some stuff and bored.. I turned on, signed 158a and put the files for DPU, I put the create language files and it works now! I need some testing and work for additional image swapped with it, but it's not working yet. I think both worked better with one then two plugins.
The zip file includes a language file for the admin and the shop. The language file for the shop should be placed in includes/languages/english/extra_definitions/ versus includes/languages/english/extra_definitions/responsive_classic. Otherwise, the language file would only work when the selected template was exactly responsive_classic. Putting it directly in extra_definitions allows any template to use the language file.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

7 Oct 2023, 9:21 PM
#1685
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Dynamic Price Updater

dbltoe:

The zip file includes a language file for the admin and the shop. The language file for the shop should be placed in includes/languages/english/extra_definitions/ versus includes/languages/english/extra_definitions/responsive_classic. Otherwise, the language file would only work when the selected template was exactly responsive_classic. Putting it directly in extra_definitions allows any template to use the language file.

You no, but I like template. Also I can try with or without php strict, it still worked...

My system:
Zen Cart 1.5.8a
Database Patch Level: 1.5.8
Server Linux 6.2.0-33-generic
Apache 2.4.53 (Unix)
PHP 8.1.6 (Zend: 4.1.6)
MySQL 10.4.24-MariaDB
jQuery v3.5.1

Dave
Always forward thinking... Lost my mind!

20 Aug 2024, 2:13 PM
#1686
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: Dynamic Price Updater

Note that with the inclusion of POSM (stock control of attributes) in ZC 2.1.0, this add-on

https://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_7&products_id=60

can replace DPU.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

20 Aug 2024, 5:29 PM
#1687
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Dynamic Price Updater

Are you running it successfully with EO installed?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Aug 2024, 5:42 PM
#1688
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: Dynamic Price Updater

I don't use Edit Orders.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

27 Aug 2024, 3:50 AM
#1689
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,969
Plugin Contributions:
8

Re: Dynamic Price Updater

torvista:

I don't use Edit Orders.

:wow: well done!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

13 Nov 2024, 2:07 PM
#1693
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: Dynamic Price Updater

Note that this change to ajax.php

https://github.com/zencart/zencart/blob/811e641d9fce1649c9313a3553285c2ecfb1ed17/ajax.php#L51

only allows alpha-numeric characters/does not allow an underscore in either of the parameters.

So this call from DPU gets failed:
https://yoursite/ajax.php?act=DPU_Ajax&method=getDetails

as can be seen on the browser console network XHR with the 400 responses.

A quick fix is add the underscore to the check

!preg_match('/^[a-zA-Z0-9_]+$/', $_GET['act'])

but the class/use of this variable needs to be renamed.

Since DPU needs to taken behind the shed to be shot/replaced with this add-on to the core attributes stock manager

https://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_7&products_id=60

I'm just giving a heads-up.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

4 Dec 2024, 4:00 AM
#1694
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Dynamic Price Updater

ZC 2.1.0 / PHP 8.3 / Using ZCABootstrap as template.

Managed to get everything to work by using the version loaded in from the GitHub, but changing attribute options on a product page, I get the following error:

[03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
#1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
--> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.

[03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1
#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
#1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
--> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.
4 Dec 2024, 4:26 AM
#1695
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Dynamic Price Updater

retched:

ZC 2.1.0 / PHP 8.3 / Using ZCABootstrap as template.

Managed to get everything to work by using the version loaded in from the GitHub, but changing attribute options on a product page, I get the following error:

[03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
#1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
--> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.

[03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1
#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
#1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
--> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.


Okay... this is a bandaid, the errors have stopped but I fear this is only temporary:

include/classes/ajax/zcDPU_Ajax.php:
Change line about 110:
```php
        if ($this->dpu->sideboxActive) {

to

        if ($this->dpu->sideboxActive ?? FALSE) {

And change \includes\templates\bootstrap\jscript\jscript_dynamic_price_updater.php, line 79 from:

            const DPUsideboxActive = ('<?php echo $dpu->sideboxActive; ?>' === '1');

to

            const DPUsideboxActive = ('<?php echo $dpu->sideboxActive ?? NULL; ?>' === '1');

I do not like these, but not sure where to go about declaring the property.

25 Jan 2025, 6:35 PM
#1696
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: Dynamic Price Updater

Can anyone confirm if the GitHub version of the Dynamic Price Updater v5 (linked below) is compatible with Zen Cart 2.10?
https://github.com/dbltoe/Zen-Cart-Dynamic-Price-Updater

I'm encountering an issue where the price is not updating, and the browser console logs a 400 Bad Request error for the AJAX call.

I noticed that I had the same issue as described in the last post of this thread by retched. I applied the two suggested edits, which resolved that specific problem, but the 400 Bad Request error persists.

Any insights or confirmation on compatibility would be greatly appreciated!

Thanks in advance!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

25 Jan 2025, 8:09 PM
#1697
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Dynamic Price Updater

The 'quick fix' in this post fixed the 400 error for me in v2.1.0. I have not (needed to) apply the two suggested edits.

Simon

25 Jan 2025, 8:20 PM
#1698
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: Dynamic Price Updater

simon1066:

The 'quick fix' in this post fixed the 400 error for me in v2.1.0. I have not (needed to) apply the two suggested edits.

Thank you that fixed it!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

3 Nov 2025, 12:57 PM
#1699
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: Dynamic Price Updater

While reviewing the tightening up of the use of pID/pid as a GET name:
https://github.com/zencart/zencart/pull/7413

I discovered that the use of $pID in the Ask a Question page was being overwritten by the use of pID in the DPU javascript.

Since the support and development of this mod has fallen by the wayside/is in multiple GitHub forks, I'm just pointing this out for reference as something users of this mod should review, maybe not now, but definitely if adding DPU to the upcoming 2.2.0 release.

And to repeat, the DPU functionality is in the commercial add-on to POSM, so use that and dump this.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 Feb 2026, 3:00 PM
#1700
goldbuckle avatar

goldbuckle

Zen Follower

Join Date:
Dec 2006
Location:
near Atlanta Georgia
Posts:
220
Plugin Contributions:
0

Re: Dynamic Price Updater

Is the a live demo I can see showing the customer side of POSM? I want to see how the DPU functionality works in POSM?

torvista:

While reviewing the tightening up of the use of pID/pid as a GET name:
https://github.com/zencart/zencart/pull/7413

I discovered that the use of $pID in the Ask a Question page was being overwritten by the use of pID in the DPU javascript.

Since the support and development of this mod has fallen by the wayside/is in multiple GitHub forks, I'm just pointing this out for reference as something users of this mod should review, maybe not now, but definitely if adding DPU to the upcoming 2.2.0 release.

And to repeat, the DPU functionality is in the commercial add-on to POSM, so use that and dump this.

Best,
Goldbuckle