Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 343,202

Results 1,621 to 1,640 of 1,701
17 Mar 2022, 7:21 PM
#1621
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Dynamic Price Updater

mvstudio:

The other file was too big to insert in the comments area

includes/classes/dynamic_price_updater.php
Attachment #19926

I don't believe we changed any other files, but I'll look just to make sure.
And as for this file, the only change(s) really were in the default text constants (as compared to the master version of the file in github) where that difference may just be "temporary" or recent. I would not expect that difference to really cause an issue though I would suggest checking to see if you have any debug logs generated as a result of using the plugin. I wouldn't be surprised if there is a missing definition that execution of the ajax code may stop and that could be preventing the next step from occurring and leaving the spinning circle... Just an idea...

Note that if no debug logs exist then there may be a separate issue preventing debug logs from being generated/written. I often will then try to force a debug log to be generated just to prove that it can happen which validates that the absence of a log is because there isn't a log worthy event occurring... Sort of "backwards" thinking but a logic principle.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Mar 2022, 7:27 PM
#1622
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

mc12345678:

And as for this file, the only change(s) really were in the default text constants (as compared to the master version of the file in github) where that difference may just be "temporary" or recent. I would not expect that difference to really cause an issue though I would suggest checking to see if you have any debug logs generated as a result of using the plugin. I wouldn't be surprised if there is a missing definition that execution of the ajax code may stop and that could be preventing the next step from occurring and leaving the spinning circle... Just an idea...

Note that if no debug logs exist then there may be a separate issue preventing debug logs from being generated/written. I often will then try to force a debug log to be generated just to prove that it can happen which validates that the absence of a log is because there isn't a log worthy event occurring... Sort of "backwards" thinking but a logic principle.
Oh, and absent all of that logging issue/problem, while the initial claim was that this happened under version "3", was corrected and now is happening in version "4", indicates that if all else is good and correct (page validates, java code is sound, no php errors), then there is some problem with the way the data is being "handled" or processed that needs to be corrected... The fun part of that is figuring out what is erroring or not processing, when, and why...

Ideally though, perhaps you find some other modification had been made to the "older" site to make this work. It really could also be outside the scope of the plugin and instead something in another file that had to be modified to function. I saw that there were a lot of other scripts available/executed on the product page. Again I didn't have access to appropriate tools to follow the program flow to be able to see if one of other plugins might cause an issue with this... I mean, even loading sequence of those other plugins could make a difference as well... Etc...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 Mar 2022, 9:56 PM
#1623
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Dynamic Price Updater

mc12345678:

Oh, and absent all of that logging issue/problem, while the initial claim was that this happened under version "3", was corrected and now is happening in version "4", indicates that if all else is good and correct (page validates, java code is sound, no php errors), then there is some problem with the way the data is being "handled" or processed that needs to be corrected... The fun part of that is figuring out what is erroring or not processing, when, and why...

Ideally though, perhaps you find some other modification had been made to the "older" site to make this work. It really could also be outside the scope of the plugin and instead something in another file that had to be modified to function. I saw that there were a lot of other scripts available/executed on the product page. Again I didn't have access to appropriate tools to follow the program flow to be able to see if one of other plugins might cause an issue with this... I mean, even loading sequence of those other plugins could make a difference as well... Etc...

No error logs were generated. So I generated one to see what would show, and nothing did.
I removed the two files I've been working on, which I made cosmetic changes to see if maybe the plugin didn't like what I did, and that didn't do anything the behavior is still present.

So I went back to see if maybe I left some clues that would point on why I was having this issue back then. I had installed the wholesale plugin which I didn't install in this one, and the stock by attributes plugin, which I don't have on this one either. So whatever happened then, has to be unrelated to this event. Which means another one of the plugins I have installed could be the culprit.

I switched templates to the classic and the issue persists.

This is the list of all the plugins I have installed. Some of them I was able to turn off from the admin area and the issue still persisted. Do you know of any of these plugins messing with this? That would help me in narrowing down on what to look for.
About us (define page)
Admin order weight (displays the order weight in admin)
Admin notes
Average product rating
Category tab simple dropdown
Google recaptcha
Instafeed (displays an Instagram feed at the bottom of the homepage)
Invoice payment module
New item badge
One page checkout
Order comments boilerplate
Print invoice popup
Returns and refunds define page
Sitemap XML
Snap affiliates
Specials define page
Square payments
User tracking
USPS
UPS
Ultimate URL
TyPackagage tracking
Better together
Dynamic price updater
Zen colorbox

Thank you for taking the time. I truly appreciate it.

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

18 Mar 2022, 2:08 AM
#1624
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

mvstudio:

No error logs were generated. So I generated one to see what would show, and nothing did.
I removed the two files I've been working on, which I made cosmetic changes to see if maybe the plugin didn't like what I did, and that didn't do anything the behavior is still present.

So I went back to see if maybe I left some clues that would point on why I was having this issue back then. I had installed the wholesale plugin which I didn't install in this one, and the stock by attributes plugin, which I don't have on this one either. So whatever happened then, has to be unrelated to this event. Which means another one of the plugins I have installed could be the culprit.

I switched templates to the classic and the issue persists.

This is the list of all the plugins I have installed. Some of them I was able to turn off from the admin area and the issue still persisted. Do you know of any of these plugins messing with this? That would help me in narrowing down on what to look for.
About us (define page)
Admin order weight (displays the order weight in admin)
Admin notes
Average product rating
Category tab simple dropdown
Google recaptcha
Instafeed (displays an Instagram feed at the bottom of the homepage)
Invoice payment module
New item badge
One page checkout
Order comments boilerplate
Print invoice popup
Returns and refunds define page
Sitemap XML
Snap affiliates
Specials define page
Square payments
User tracking
USPS
UPS
Ultimate URL
TyPackagage tracking
Better together
Dynamic price updater
Zen colorbox

Thank you for taking the time. I truly appreciate it.
Great to have all that information; however, I discovered that by looking at the console when accessing the "problem" product, that the issue is in fact a script related issue. The following error was in the "log":
DPU catch error: TypeError: Cannot use 'in' operator to search for 'id[2]' in
at getPrice (```
https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33

>     at init (```
https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33
```:562:9)
>     at onload (```
https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33
```:674:3)

May I recommend attempting the following?
Change at/about line 154 of includes/modules/pages/product_info/jscript_dynamic_price_updater.php
from:
            if (!(el.name in attributes) && el.name.startsWith("id[")) { // Ensure not to replace an existing value. I.e. drop a duplicate value.

to:
            if ((attributes === '' || !(el.name in attributes)) && el.name.startsWith("id[")) { // Ensure not to replace an existing value. I.e. drop a duplicate value.
"Easy" way to modify it so that you "build" up to the final result:
start with:
            if (!(el.name in attributes) && el.name.startsWith("id[")) { // Ensure not to replace an existing value. I.e. drop a duplicate value.
add parentheses around the first term:
            if ((!(el.name in attributes)) && el.name.startsWith("id[")) { // Ensure not to replace an existing value. I.e. drop a duplicate value.
Then, just before the exclamation point (represents a logical "not" or flip the "truthiness" of the variable that follows. If it was true, then consider it false, if it was false, then consider it true) add the test to see that attributes still is an empty text string (original value) so that if that is true, then there is no need to check for el.name being in the string... (Not that I'm entirely sure that "el.name in attributes" is the right way to perform that test considering I didn't make that change and haven't done *ANY* testing on that version of DPU.)

            if ((attributes === '' || !(el.name in attributes)) && el.name.startsWith("id[")) { // Ensure not to replace an existing value. I.e. drop a duplicate value.


Now, all that said, and I was *assuming* that this particular site was a development location, turning off the spinning feature would have at least allowed the base/normal price to be displayed. (I should know the exact configuration switch to change, but am drawing a blank at the moment and need to move on.)

And sorry if it doesn't resolve the issue, there's some action being done/taken in here that I didn't code and wouldn't have used for multiple reasons. I also haven't opened up a tool to test execute and see results of the way the data is being handled... What is considered desired in this line is to determine if the collected data already includes the radio item that has the name it is given where that name *SHOULD* be unique to all other objects within the group (otherwise basically there is a problem with the page) and if that named item is not already captured AND the associated attribute's "name" starts with id[, then go ahead and collect the attributes name and the value assigned to it so that later that data can be decoded to display the price... Something about the process though seems wrong because I would expect the javascript: X in Y to work for any length of text (IF that operator is the correct operator for a string of text... Problem is that the MDN instruction references use of the 'in' operator to search through an object or its prototype chain... I'm not seeing either of those in my "limited vision"... Unfortunately and further, using this method/style of looking through a string of text for matching "text" (assuming that really is what is being done) seems problematic to successfully perform: E.g. the text contains: 'test~5|run~6|test2~7', well when get to a variable that has the name 'ru', it appears that a text search for 'ru' would indicate that it already exists because 'run' is present and 'ru' is a subset of 'run'...

Anyways, I'm showing what I don't know/understand and babbling on further... Again, didn't have this issue in the version I prepared... Post back on success/failure (or at least when it has been incorporated)... 

Again, the issue is not with your other plugins but specifically/directly with the javascript/jQuery code associated with a series of attributes only having radio buttons (or perhaps any radio button at all), perhaps change to another selection type if need to support operation? Not really one that does the same thing of showing the picture right in ones face without switching from one to another... Sorry, enough.. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Mar 2022, 3:01 AM
#1625
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Dynamic Price Updater

mc12345678:

Great to have all that information; however, I discovered that by looking at the console when accessing the "problem" product, that the issue is in fact a script related issue. The following error was in the "log":
How?! Where did you find that error?? I have much to learn!

Now, all that said, and I was assuming that this particular site was a development location, turning off the spinning feature would have at least allowed the base/normal price to be displayed. (I should know the exact configuration switch to change, but am drawing a blank at the moment and need to move on.)
Yes. It's on development, not a live store, yet. I was finishing a few cosmetic details and playing around to make sure everything was working fine before launching it when I saw the endless spinning wheel. Since it isn't a live store is not that big deal the wheel keeps spinning. The control to turn it off is in configuration/dynamic price updater/show a small loading graphic, and yes if I turned it off the wheel of course stops spinning. That worked.

I made the change you suggested, and the wheel stopped spinning, so that's progress!

So here is what's different about the live store and the one I'm working on, the one you're helping me with.

This is the live store https://www.byvalenti.com/index.php?main_page=product_info&cPath=16&products_id=6
Same product and everything, when a selection of color is made the wheel spins and stops with every selection made even if the product isn't priced by attribute. If there would be a change in price on a per color basis, the price updates. That's how it's supposed to work, or at least how it's been working for year now.

On the development store https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33 with the modification you suggested now loaded, the wheel spins while the page is being loaded and stops. If a different color is selected the wheel won't spin, that's because I'm assuming it detects the product isn't priced by attribute, so it doesn't have to. So I went to check it out to see if the price was different if it would update. So I changed the attributes on the product to price by attributes and changed the prices for each attribute and they do change perfectly.

All this to report, the changes suggested do work! You're brilliant!!!! Thank you so, so much!! Please let me know how I could donate or the least buy you a coffee?... :hug:

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

18 Mar 2022, 3:22 AM
#1626
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

mvstudio:

How?! Where did you find that error?? I have much to learn!

Yes. It's on development, not a live store, yet. I was finishing a few cosmetic details and playing around to make sure everything was working fine before launching it when I saw the endless spinning wheel. Since it isn't a live store is not that big deal the wheel keeps spinning. The control to turn it off is in configuration/dynamic price updater/show a small loading graphic, and yes if I turned it off the wheel of course stops spinning. That worked.

I made the change you suggested, and the wheel stopped spinning, so that's progress!

So here is what's different about the live store and the one I'm working on, the one you're helping me with.

This is the live store https://www.byvalenti.com/index.php?main_page=product_info&cPath=16&products_id=6
Same product and everything, when a selection of color is made the wheel spins and stops with every selection made even if the product isn't priced by attribute. If there would be a change in price on a per color basis, the price updates. That's how it's supposed to work, or at least how it's been working for year now.

On the development store https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33 with the modification you suggested now loaded, the wheel spins while the page is being loaded and stops. If a different color is selected the wheel won't spin, that's because I'm assuming it detects the product isn't priced by attribute, so it doesn't have to. So I went to check it out to see if the price was different if it would update. So I changed the attributes on the product to price by attributes and changed the prices for each attribute and they do change perfectly.

All this to report, the changes suggested do work! You're brilliant!!!! Thank you so, so much!! Please let me know how I could donate or the least buy you a coffee?... :hug:
I can be reached via my signature "link" (a little bit of an unnecessary tortuous path) so long as it continues to exist on my account or you are always welcome to provide to the Zen Cart fund of which I receive like all users of the software only the benefit of its continued use and the occasional fun of fixing some new and unique issue..

As to seeing the console, like 99% of browsers have some form of "debug" view (on a PC) by pressing the F12 key. It's been a while since I've looked up/talked about macintosh, but seems that there is something similar. Anyways, there is often (and each browser is different) some sort of console that provides "feedback" about the operation(s). Some are better than others and some are easier than others, using many different ones offers the ability to "figure it all" out... :)

BTW, good work on developing NOT on the live site...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Mar 2022, 2:35 PM
#1627
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Dynamic Price Updater

mc12345678:

As to seeing the console, like 99% of browsers have some form of "debug" view (on a PC) by pressing the F12 key. It's been a while since I've looked up/talked about macintosh, but seems that there is something similar. Anyways, there is often (and each browser is different) some sort of console that provides "feedback" about the operation(s). Some are better than others and some are easier than others, using many different ones offers the ability to "figure it all" out... :)
Oh man! I totally forgot about that one! Of course I knew about it, I just didn't think of it :wacko:

mc12345678:

BTW, good work on developing NOT on the live site...
Thank you!??? :laugh: I might not have developed the site, I praise you all for the mechanics of it, but the design aspect is most certainly all me :D

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

18 Mar 2022, 3:57 PM
#1628
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

mvstudio:

How?! Where did you find that error?? I have much to learn!

Yes. It's on development, not a live store, yet. I was finishing a few cosmetic details and playing around to make sure everything was working fine before launching it when I saw the endless spinning wheel. Since it isn't a live store is not that big deal the wheel keeps spinning. The control to turn it off is in configuration/dynamic price updater/show a small loading graphic, and yes if I turned it off the wheel of course stops spinning. That worked.

I made the change you suggested, and the wheel stopped spinning, so that's progress!

So here is what's different about the live store and the one I'm working on, the one you're helping me with.

This is the live store https://www.byvalenti.com/index.php?main_page=product_info&cPath=16&products_id=6
Same product and everything, when a selection of color is made the wheel spins and stops with every selection made even if the product isn't priced by attribute. If there would be a change in price on a per color basis, the price updates. That's how it's supposed to work, or at least how it's been working for year now.

On the development store https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33 with the modification you suggested now loaded, the wheel spins while the page is being loaded and stops. If a different color is selected the wheel won't spin, that's because I'm assuming it detects the product isn't priced by attribute, so it doesn't have to. So I went to check it out to see if the price was different if it would update. So I changed the attributes on the product to price by attributes and changed the prices for each attribute and they do change perfectly.

All this to report, the changes suggested do work! You're brilliant!!!! Thank you so, so much!! Please let me know how I could donate or the least buy you a coffee?... :hug:
I'm curious, and the condition may not exist on either site, but do you have a product that has only two option names with each set for radio buttons and where at least one option value in each of the option names has a price associated with it? Curious to validate that the above proposed change doesn't cause an issue. Testing would involve selecting option values in a sequence to verify that the price updates/changes as expected for each condition and sequence of selecting.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Mar 2022, 4:14 PM
#1629
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Dynamic Price Updater

mc12345678:

I'm curious, and the condition may not exist on either site, but do you have a product that has only two option names with each set for radio buttons and where at least one option value in each of the option names has a price associated with it? Curious to validate that the above proposed change doesn't cause an issue. Testing would involve selecting option values in a sequence to verify that the price updates/changes as expected for each condition and sequence of selecting.

I don't have one at the moment, but I did a test and seems to be working as expected. I changed the product to price by attributes and gave each option a price and it looks like it does change the price accordingly depending on which option is selected. In adding the product to the shopping cart with the various selections and heading over to checkout everything appears to be working.

Again my developing skills are quite limited, so I wouldn't know if there is an error I should be aware of or look out for. No error logs in the admin area, just this in the browser console which I wouldn't know what it all means.

Some cookies are misusing the recommended “SameSite“ attribute 7
Cookie “_fbc” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite fbevents.js:24:77689
Cookie “_fbp” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite fbevents.js:24:77689
Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite analytics.js:35:486
Cookie “_gid” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite analytics.js:35:486
Cookie “_gat_gtag_UA_1317268_7” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite analytics.js:35:486
Cookie “_fbc” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite fbevents.js:24:77689
Cookie “_fbp” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite fbevents.js:24:77689
This page is in Almost Standards Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
Object { cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000, data: {…}, url: "ajax.php?act=DPU_Ajax&method=getDetails" }
​cache: false
​data: Object { securityToken: "686992c2aa0f0014bd8d6494dcd48008", products_id: 33, attributes: "id[2]~14|", … }
​dataType: "json"
​timeout: 5000
​traditional: true
​type: "POST"
​url: "ajax.php?act=DPU_Ajax&method=getDetails"
​<prototype>: Object { … }
​​__defineGetter__: function __defineGetter__()
​​__defineSetter__: function __defineSetter__()
​​__lookupGetter__: function __lookupGetter__()
​​__lookupSetter__: function __lookupSetter__()
​​__proto__: 
​​constructor: function Object()
​​hasOwnProperty: function hasOwnProperty()
​​isPrototypeOf: function isPrototypeOf()
​​propertyIsEnumerable: function propertyIsEnumerable()
​​toLocaleString: function toLocaleString()
​​toString: function toString()
​​valueOf: function valueOf()
​​<get __proto__()>: function __proto__()
​​<set __proto__()>: function __proto__()

I left the item with the price options active if you would like to check it out https://www.byvalenti.com/ZCBASE/tinted-lip-balms-c-15_30/lip-whip-souffle-tinted-lip-balm-in-6-beautiful-colors-p-33

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

25 Apr 2022, 3:53 PM
#1630
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

Is it possible to point to ONE location where we might find a working copy of this mod.

The plugins say 3.2 loaded 5 years ago. Github has three versions including a 4.0 version from 8 years ago. I did find one of the two 3.2 versions was touched in 2020.

Just a little bit of clarity as to where we can find the latest and greastes would be appreciated.:yes:

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

26 Apr 2022, 9:27 AM
#1631
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 understand the frustration. Effort was made to shepherd the wandering tribes together and I would suggest this is used as a starting point:
https://github.com/Zen4All-nl/Zen-Cart-Dynamic-Price-Updater

and to report issues there.

I have not compared in aeons since my site is not broken.

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

26 Apr 2022, 9:42 AM
#1632
torvista avatar

torvista

Totally Zenned

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

Re: Dynamic Price Updater

....subsequent to that post I see no activity on that Github account since April 2021 and no post from Design75 since June 2021, which is a concern.

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

1 Jul 2022, 10:33 PM
#1633
testerservers avatar

testerservers

New Zenner

Join Date:
Jun 2008
Posts:
71
Plugin Contributions:
0

Re: Dynamic Price Updater

Have anyone been able to get the
Dynamic Price Updater v4.0.0 Beta 3

from GitHub to work on Zen-Cart 1.5.7d?

I tried the old version that is listed here but it's not working. I have this new one installed but all 3 places it is suppose to update, they just spin the ajax.gif, and nothing happens. Below is what errors I'm getting in the Admin of the Zen-Cart

[01-Jul-2022 22:15:03 UTC] Request URI: /Lrjs-5tGH-pQgkk/index.php?cmd=configuration&gID=35, IP address: 70.90.246.89
#1  file_get_contents() called at [/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php:159]
#2  this_plugin_version_check_for_updates() called at [/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php:185]
#3  require_once(/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php) called at [/includes/autoload_func.php:37]
#4  require(/includes/autoload_func.php) called at [/Lrjs-5tGH-pQgkk/includes/application_top.php:37]
#5  require(/Lrjs-5tGH-pQgkk/includes/application_top.php) called at [/Lrjs-5tGH-pQgkk/configuration.php:8]
#6  require(/Lrjs-5tGH-pQgkk/configuration.php) called at [/Lrjs-5tGH-pQgkk/index.php:11]
--> PHP Warning:  file_get_contents(https://plugins.zen-cart.com/versioncheck/1301):  failed to open stream: HTTP request failed! HTTP/1.1 526 
 in /Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php on line 159.

[01-Jul-2022 22:15:03 UTC] PHP Notice:  file_get_contents() error checking plugin versions.
Trying http instead. in /Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php on line 161
[01-Jul-2022 22:15:04 UTC] Request URI: /Lrjs-5tGH-pQgkk/index.php?cmd=configuration&gID=35, IP address: 70.90.246.89
#1  file_get_contents() called at [/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php:162]
#2  this_plugin_version_check_for_updates() called at [/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php:185]
#3  require_once(/Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php) called at [/includes/autoload_func.php:37]
#4  require(/includes/autoload_func.php) called at [/Lrjs-5tGH-pQgkk/includes/application_top.php:37]
#5  require(/Lrjs-5tGH-pQgkk/includes/application_top.php) called at [/Lrjs-5tGH-pQgkk/configuration.php:8]
#6  require(/Lrjs-5tGH-pQgkk/configuration.php) called at [/Lrjs-5tGH-pQgkk/index.php:11]
--> PHP Warning:  file_get_contents(http://plugins.zen-cart.com/versioncheck/1301): failed  to open stream: HTTP request failed! HTTP/1.1 526 
 in /Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php on line 162.

[01-Jul-2022 22:15:04 UTC] PHP Notice:  file_get_contents() error checking plugin versions.
Aborting. in /Lrjs-5tGH-pQgkk/includes/init_includes/init_dpu_config.php on line 165

I'm trying to figure it out because I need this to work as the original one worked on my v1.5.5e cart.

Just when you think you're getting your website back up and going, there is something that has changed dramatically somewhere, and even everywhere.

The site works fine, except for me not being able to get the products to update.

I was thinking that everyone that uses this mod should put together a pool of about $5 per person and even pay to have someone or entity redo this mod so it works without breaking every time there is an update to Zen-Cart.

Any help appreciated!

TesterServers.

4 Jul 2022, 4:55 PM
#1634
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi there,
When I installed this module, my product info page is keep refreshing and never stop.
Does anyone know what is the reason?

4 Jul 2022, 7:33 PM
#1635
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

morrysmith:

Hi there,
When I installed this module, my product info page is keep refreshing and never stop.
Does anyone know what is the reason?
If you'll look back through the thread you'll see that some think this mod is somewhat abandoned.:(

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

5 Jul 2022, 4:40 AM
#1636
testerservers avatar

testerservers

New Zenner

Join Date:
Jun 2008
Posts:
71
Plugin Contributions:
0

Re: Dynamic Price Updater

dbltoe:

If you'll look back through the thread you'll see that some think this mod is somewhat abandoned.:(

Agreed.. but it still should be carried on since it's "open source". I'll contact a few sources to see what they'll charge to redo the mod. If I had the time, I could create a testing server and install it back on a v1.5.5e zen cart, and then install it on newer versions to find out what has changed, in order to pin-point why the mod isn't working anymore. I'm starting to believe it may be the changes to the newer PHP versions, and probably some other changes in server configurations.

This mod was, and still is too good to just let it go by the wayside. It made shopping for my customers so easy.

I'm going to get this mod reworked, even if I have to pay to have it done. I'm going to make a few testing sites starting with the version of zen where the mod worked, and then step up the zen version until I spot where the mod quit working properly or at all.

Stay tuned...

TesterServers

5 Jul 2022, 9:36 AM
#1637
torvista avatar

torvista

Totally Zenned

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

Re: Dynamic Price Updater

@zen4all: are you still in the running or you wish to transfer ownership of the source github elsewhere?

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

5 Jul 2022, 4:53 PM
#1638
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Dynamic Price Updater

Yes, I installed it on the newest version of zen cart(v1.5.7d), and it's not working but just keep refreshing the product info page about 2 times/every second.
And when I tested it on v1.5.6c, there is no problem.

5 Jul 2022, 5:13 PM
#1639
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

morrysmith:

Yes, I installed it on the newest version of zen cart(v1.5.7d), and it's not working but just keep refreshing the product info page about 2 times/every second.
And when I tested it on v1.5.6c, there is no problem.

That issue is addressed in: https://www.zen-cart.com/showthread.php?70577-Dynamic-Price-Updater&p=1370158#post1370158
As referenced by: https://www.zen-cart.com/showthread.php?70577-Dynamic-Price-Updater&p=1371663#post1371663
Found by going back 2 or 3ish pages.

Explanation of why that is occurring is provided back there.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

6 Jul 2022, 2:29 AM
#1640
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Dynamic Price Updater

Thank you so much for your help, I've been stuck with this problem for weeks and it finally works.