Hi Bill
Please test your site as I believe the Updater is now working :smile:
I've taken the liberty of disabling the debug output
Let me know if I've missed anything :wink:
Cheers
Dan
Printable View
Hi Bill
Please test your site as I believe the Updater is now working :smile:
I've taken the liberty of disabling the debug output
Let me know if I've missed anything :wink:
Cheers
Dan
I gave it a look and the price at the top of the page is not changing.
Which product did you test it on? Perhaps I set up the attributes incorrectly.
Thank you for being so committed to help. I appreciate it;
Hi Bill
That's odd... I've just gone back for a quick test and the price is updating on one of the products you mentioned in the PM (I only had time to check one product this morning)
Having said that I have only tested in Firefox
I'll have another look later this evening (I hope)
Cheers
Dan
Dan,
IT WORKS! (Insert Hallelujah Chorus here.)
You Sir, are a God-send! I'm sure that many others in this forum who you have helped feel the same way.
Thank you for sticking with me on this. It will add so much to our site.
God Bless You
Bill
Hi Bill
Yay! Thank you for the kind words
I'm glad it's all working for you now :smile:
Dan
Chrome, (I also sent you a email & PM with same content)
I really like the way the Price Updater makes a site look great. However, I have uploaded and made the required changes within the files, and I cannot get it to work. I left the debugger active so you can see if I am having issues there or not. My website I have installed this on is www.lovemyfragrance.com and I only have 1 item uploaded so I could set the site up before I uploaded all fragrances I have for sale.
Could you be so kind as to check this to see what I have or have not done correctly? I have the latest Zen Cart and I am using a purchased template, however, I have made the ness changes to the template...at least I think I have. May be I don't have the attrubutes set right, not sure. I really need some help here.
Thank you and I appreciate all you can do.
Kathy
Hi perkiekat
Unfortunately you're not using my original version of the Updater, rather, I assume, web28's modified version
If you are unable to contact him for advice in this matter just PM me your FTP details and I'll see if I can fix it
Cheers
Dan
Hi
Got the PM and the details so I'll have a look for you as soon as I can... I can't guarantee any timescale I'm afraid because, as is usually the case with developers, I have a few things on the go
I'll try to have a look later and get some news to you
Cheers
Dan
Ok. Thanks. I'll wait. I have some other things to attend to as well. The deadline is Sunday to get this up and running with products. So I think we have the time. Can I upload other products or should I wait?? I think I'' wait. Not sure if I have the Attributes set correctly using the Price Updater.
I think you should be using a radio button instead of a checkbox, I bet that will get it to work. Also, you need to add an image for the attribute for it to work with radio buttons and I think checkboxes, too. We use a 1px x 1px transparent gif for those attributes that we don't want pics for, just to satisfy the updater and get it working right.
Hi perkiekat,
i see some mistakes in your html file. Have you read the install update in post 395?
web28
There's a javascript error on your site.
Have you edit the jscript_price_updater.php?
Web28
Please sent me your edit attributes.php and the admin login
There is a mistake in the JavaScript data array
Web28
All problems are solved, the updater worked flawlessly.
Web28
Hi all
I apologise for the absolutely massive wait but I've finally got a completely new version of the Updater: version 2... I've completely rewritten it from the ground up... Here are a few features:
- Smaller, more reliable JS core: less is output to the browser minising page load and the new object detection routines are more reliable
- More accurate: the Updater now relies on object overriding and uses the Zen Cart classes to get answers
- Uses currency symbols based on the current user's selection (or, it should)
- Sales and discounts are now completely handled
- Enhanced developmental extensibility
There are other good bits too but they're mostly development stuff... There are a couple of cons tho:
- Uses Ajax: may be a tiny bit slower to update prices (but should be negligable really)
- Needs PHP5 (but I can create a PHP4 compatible version if anyone needs it)
- Now consists of 3 files (not that large and zipped in their structure)
- No sidebox support (yet, this is in the pipeline)
Oh I'd like to thank web28 for the idea of not loading the Updater unless it's needed (web28: I hope you don't mind that I used the idea)
Anyway the file is located at the link in my signature or in the following attachment
I hope this version goes well but please remember it is a first version so please post any issues here
Cheers
Dan
D'oh! I'm an idiot... I included the wrong file in the last post! It's late...
Anyway new attachment on this one (and the latest update is always in my sig)
Please don't use the post above!
Cheers
Dan
Hi Dan,
Thanks for the continuing work! I just uploaded the new files and deleted the old updater file and it doesn't do anything to the price now.
The readme says:
includes/classes/dynamic_price_updater.php - This file has settings that should not have to be changed although if the price doesn't update you might want to check the DPU_PRICE_ELEMENT_ID setting as if your template has the price in an element (e.g. div) with a different ID this setting needs altering
The define for DPU_PRICE_ELEMENT_ID is in the jscript_ajax_updater.php file and not the class file. But, it has the correct ID for the price element so that isn't the problem.
What do I need to do to debug and figure out what is happening?
Thanks!
Matt
Hi Matt
Thanks for the correction I'll get it changed :smile:
Can you send me a link to where the Updater isn't working?
Thanks for helping me test this version too :smile:
Dan
Hi all
Just a note: please only download the Updater v2 from my signature... The attachments above have some issues
Cheers
Dan
Thought I was being a user, as I couldn't get this to work ... :blink:
Then I re-read things and saw the php 5.x ... kind of would be nice to have a version for php 4.x, should you be so inclined ... :cool:
Hi Ajeh
As it's been asked for I'll prep up a PHP4 tonight (hopefully with release)!... Watch this space!
Cheers
Dan
Hi
My sig now contains a link for a PHP4 version of the Updater (I had to put it all on one line, I hope it's understandable)
On PHP5 either version should work the same but only use the PHP4 version on PHP4
Any problems please let me know here!
Cheers
Dan
Maybe someone else can test the php4 version ... I cannot get it to work on php4 or on php5 ... :unsure:
If someone could help out with some testing I'd be very grateful... I only have the one site I can play with (my test site) and that's running on PHP 5.2.2 and all seems well there
Although, Ajeh, if you could provide me a URL I might be able to figure out what's going on (or at least in which area the fault is occurring)
The original Updater was a tricky beast and I expect this one will be no less :wink:
Cheers
Dan
I've been extremely busy today and couldn't check the forum until now...anyways...I'd be very happy to test it on my site, however, since I've had the site changed yesterday, I wouldn't know where to start with uploading the files to over ride the files thats there. Any suggestions Chrome?? You game to try it on there??? You have the info to enter the files on my server and definitely my permission...:smile:
I have PHP Version: 5.2.8
and can test on Windows Vista
Hi all
I've updated the Updater v2 and the file is in my sig... I've made a single PHP4/5 version... I didn't realise there were that many PHP4 servers out there :wink:
Hopefully this is the version that gets it right... Testers to your marks...
Thanks all :smile:
Dan
Hi Kat
Thanks... I'll get it set up for you
Dan
Hi again Dan
I'm wondering what is occuring now as I think we are going about this the correct way but the updater is still not working. Please see:
http://www.prestigeringcompany.com/i...products_id=56
This product is set to a base price of £110.00 with attributes set +£ increase.
An IE Javascript 'error on page' still appears.
Any help/advice would be much appreciated.
Thank you.
Steve
Hi Steve
It might be an idea to try the new Updater (v2)... it's not subject to the type of error you're experiencing here
If you want to try it just rename the original Updater file to begin with an underscore (_) then upload the new Updater (there are 3 files)... There is a readme with it also
Let me know what you decide to do or if anything else goes wrong
Cheers
Dan
Hello Dan,
Just a question about your files.
I downloaded the lasted files and placed them in the correct folders, well I think they are (note pad doc in the zip file)....
Just to confirm can you please tell me the exact folder for each file please, for some reason I can seem to get it to work,
Thanks so much,
lesko
Hi lesko
The dpu_ajax.php goes into the catalog root; dynamic_price_updater.php goes in includes/classes/; jscript_ajax_updater.php goes in includes/modules/pages/product_info/
If you've put those files in the correct places but the Updater doesn't work please send me a link and I'll check it out for you... This version of the Updater is still very new and relatively untested so apologies for any teething problems it may have
Cheers
Dan
Hi Dan
BRILLIANT! v2 appears to have sorted out my problems! Yay!
Many, many thanks,
Steve :)
Hi Steve
I'm glad it worked for you :smile:... V2 addresses quite a few issues that tripped up the original Updater
If I could put out a request for anyone using V2: Do you have Lightbox or Mootools installed? I had a weird issue the other day where Mootools was causing a conflict with the Updater so if anyone could test and report your findings I would be most grateful
Cheers
Dan
Hello there Dan,
I tried Version 2 yesterday, and it didn't work but I do have a variant on Lightbox. I have Highslide, and I know it works very similar. Could be that I reckon. Let me know if you require any more details.
I have v2 on a live test site with the regular lightbox using scriptaculous and prototype and it works without conflict. Will be adding it to the live site in a while if there are no other bug reports.
Thanks again, Dan!
Hi
Heathen: Thanks for testing... Would you, by any chance, have a URL for the failing Updater? If you like you can PM it to me... I do have a theory on why it isn't working and I'm going to create a version that should (hopefully!) increase the general compatibility
Matt: Thanks for testing (again!)... It's nice to know that the Updater works with Lightbox at least!
Thanks to all who are testing!
Dan
Hi,
Looks like I can actually post now, for some reason my ribbonsbaskets account was unable to create any new posts...strange
Any way created a new account so I can now respond.
First off, than you sooo much for this mod. Without it I don't think there are any other options!
I am having a problem with DPU2 now though, it was working seamlessly before I added some additional mods including JQLightbox, upgrading to PHP5, and added Tabbed Pro. Now DPU wont work.
Im using zen cart 1.3.8, link to a product with attributes: http://www.ribbonsbaskets.com/just-h....html?cPath=78
I know that the DIV the price needs to be properly entered in to the jscript_ajax_updater.php file. I did change it to the div the my price is nestled in. The price is actually in two divs. I wasn't sure if this was a problem so I removed the price from the div and just left it in its original div but it still didn't work. I then just put it back in to the div because without it things don't work right.
-Kris
www.ribbonsbaskets.com
Still confused, gone through a day of fighting against copyright infringment:blink:
Still confused:frusty:
Lankeeyankee,
Just wondering if you have tested your site in Mozilla Firefox? Dan placed the Price Updater on my site and I had the Slimbox installed. Worked wonderful in IE however, in firefox, the price updater wouldn't work. I liked the Price Updater better than the Slimbox and got rid of Slimbox.
My reason for posting is this: The way I am reading your post, all works good together long as you use Lightbox correct? If this is the case, I am going to install the Lightbox.
Thanks,
Pkat
Lightbox is great, I love it...but I think many others have had problems with lightbox and DPU - like me.:smile:
I can confirm that in FF3 and IE8 that there are no conflicts between DPU or DPU2 and the zen lightbox mod that uses prototype and scriptaculous. I'd like to know if anyone has tried this with the jQuery lightbox? I am going to be switching to that soon and hope there are no confilcts!
Hi all
I'm going to write a version I hope will have no conflicts... In the v2 as it is I've used a prototype object and I think it conflicts in certain circumstances
Over the next couple of days I'm going to refactor the JS and see if I can introduce some greater compatibility... In fact, didn't the original Updater have some issues with Lightbox?
Anyway, I hope to have a new release for Friday evening
Cheers
Dan
Ah yes, I remember... It was either a regular expression or a variable type comparison
This version doesn't use any regexes for finding the attributes: it collects them directly from the form... The issue here is a little odd in that an array is created but is never populated (a console log after populating the array reveals it to be zero-length)... I do have a theory as to why this might happen so I'm going to try some things tomorrow
I hope this works!
Dan
Yeah, I did notice those fixes though the file is different in the new version so I didnt even try it.
:mellow:
We get the same problem with DPU on all browsers so its not browser specific for us.
Im so excited to see if the new update will work for us, meger donation will be on your way if we use your mod.
:clap:
Along the lines of the price updater, does anyone have an idea how to change the price based on market conditions? For example, let's say that I want to sell gold jewelry at $100 based on the gold spot price of $50. If the spot price increases to $55 then I want the price to automatically adjust by $5.
Any thoughts?
thx,
rpersonal2
Hi all
I've made a minor tweak to the JS in jscript_ajax_updater.php... The new version is in my sig and all you need replace is includes/modules/pages/product_info/jscript_ajax_updater.php
If someone could test this out for me I'd be very grateful and I'd like to thank those that have already helped and continue to... Unfortunately I can't test this currently because I suspect something has gone horribly wrong with my test site and Slimbox isn't working
This is the first attempt at the fix... If this doesn't work I'm going to completely rewrite the script in a different fashion
If that doesn't work I plan to break down and cry... Then carry on working on it :wink:
Cheers!
Dan
Hello Dan,
Thanks for the new version, and sorry for the delay. I tried it on the following page, and it seems to be the same. Though I have a heavily modded site, I think that is the cause.
http://www.thegemtree.com/index.php?...products_id=38
:smile:
Hi Heathen
Thanks for testing so quickly... I've visited the link but I can't actually see the Updater JS in there... Have you removed it from that page?
Cheers
Dan
Hi Dan,
I have it uploaded there. I think it has something to do with a mod I had done, and it is not loading scripts from that folder. Sorry for the trouble, I completely forgot. I will ask them and see if I can get it fixed on my end.
Regards,
James
Hi James
No worries but you did have me concerned until I did some research :smile:... I was toying with the idea of a conflict with XHR objects, though they should be autonomous
Let me know when you manage to get the script loaded and whether it works... If it doesn't I'll take it into account :smile:
Thanks for testing anyway
Dan
Hi all
Just a minor thing but I thought I'd let you all know that the link in my sig now takes you to a page where you can download the Updater (both versions)... I've set this up so I can track the amount of downloads each version gets :smile:
There is a bit of an issue currently in that I've done something weird with the file download headers... If anyone can spot the stupid mistake that's completely evading me please give me a shout
The files will download properly but for some reason IE is giving a security warning (you can safely allow the action, the file is just a Zip)... If you are unable to download the file please let me know and I'll provide a direct link
Cheers
Dan
First, GREAT mod. It worked awesome straight 'out of the box' for me with the exception of one thing.
Apparently there is a conflict between this mod and another mod I have installed: Attribute image replaces main product image on selecting attribute
It stopped working after I installed the DPU mod.
My site (work in progress): http://www.natural-health-nutrition-...&products_id=4 (this is the only *real* product right now and the only one with attributes.)
If the two mods are incompatible and unfixable, is there an image swap mod that will work with DPU?
Another request/question too...
Is there a way to have the price display without the quantity if it is only a quantity of one, but still show the quantity if it is more than one?
I appreciate your help!! :smile:
Still not working, I changed the div the price sits in to second div its in "productbox" and changed it in the ajax_update file. Would it work this way or do I need to take the price out of its original div for it to work? Link to a product with attributes: http://www.ribbonsbaskets.com/just-h....html?cPath=78
OK, just tried what I was asking about...didnt work.
Hi
Thanks for testing and responding so quickly! :smile:
I'm going to rewrite this version of the javascript... It's the only file that will need replacing (this isn't just going to be a change to a few lines)
I'll release as soon as I can (if all goes well maybe later this evening)
News soon and thanks again :smile:
Dan
Hello Dan,
It all works fine. I disabled the thing that was blocking it. Just wanted you to know it is ok here.
Thanks,
James
Hi James
Thanks! Just as a matter of interest what was blocking it? It seemed like something was making an Ajax call but getting no response
I wouldn't mind taking out all the faults if I can :smile:... I haven't prepped the replacement yet because things got a little hectic... I'll get it ready ASAP
Cheers
Dan
Hi Dan,
I was using CSS / Javascript loader by Yellow1912. It uses minify technology, and disabling this made your mod work and something else work.
I was wondering, is there a way to display the price for sold out items? I see that it goes to 'Your Price: 0.00'. Just curious.
James
Hi James
Hmm, maybe it's the minifying of objects that's causing the issue... I know that Mootools is available minified and that broke the Updater... Some research needed there I reckon
Good catch on the sold out bit! Completely forgot about that... I'll put in a section that disables the Updater should the product be sold out (essentially a request is sent on page load with the quantity value of 0)
Cheers for the feedback! :smile:
Dan
Is there a way to stop the 2 "Your price $x.xx" from showing in the Product description? Does it have to show twice? Can it show one "Your price $x.xx"
Lesko
Hi lesko
That's the Second Price... There's a line in includes/modules/pages/product_info/jscript_ajax_updater.php that goes
If you change that toCode:var _secondPrice = 'cartAdd';
And that should kill the second displayCode:var _secondPrice = false;
Let me know how it goes
Dan
Our "css/js loader" has actually been disabled since the installation of that mod, it never did work properly for us. It could be that we are using SEO URL.
I've tried everything I could think of to try and get DPU working as well as the minify thing.:frusty:
Even though the minifier is not being used and is disabled do you think this would play a part in why DPU is not working?:blink:
Thanks Dan,
That did it! its works great....
lesko
Hi
Lesko, I'm glad to hear it :D
Ksookma, I got your site confused with James's... His site has the minify issue but yours is hitherto unique
You have something that's calling an Ajax routine on page load... Do you know which of your mods uses Ajax?
Thanks for the support :smile:
Dan
Sorry bout the miss spellings, typed that one out a bit too fast!:smile:
Hi Dan,
will your add on work for me for this type of pricing?
http://www.monarchdecals.com/pricelisttest.gif
Thanks in advance.
Hi
Yes, it should... If it doesn't it's easy enough to disable but to be honest I see no reason why it wouldn't work
Cheers
Dan
Chrome, I see that your probably on our site looking at the mod. Let me know if there is anything I can do to assist in fixing it. Cant wait to get the mod working! Thanks for the great support on this!!
Hi ksookma
I'll be working again on the Updater over the weekend... I haven't had any time this week to prepare the fixes I proposed
Thanks for the support and feedback, everyone! :smile:
Dan
Chrome, I do think that one of my mods use ajax. Im not quite sure what ajax is but you were saying that this might be a part of the problem.
Chrome,
Thank you so much for your hard work on this contribution.
I have a slight problem...I have dual pricing mod, and would like both the regular price and wholesale price to be displayed. Currently, it only displays one (regular price for regular customers or wholesale price for wholesale customer). Is there a work around for this?
Thanks in advance.
Chrome, Anxious for an update :wink:
Hi all
Sorry for not replying sooner, I've been incommunicado
Firstly I'm really sorry not to have an update but I am working on it... Things have been really busy... Please accept my apologies
kachana, unfortunately the module doesn't handle dual-pricing at this time
Cheers, news soon
Dan
Hi all,
sorry to ask Chrome but it seems to me that the link in your sig is broken... Where can i download DPU?
Many thanks :smile:
Hi all
Just to let you know that yesterday evening the server my site is on failed in its entirety... This means that no development was possible... In fact this is directly related to the query izar just made: The files are unreachable, even by me
I'll try to remedy this situation ASAP but it looks like I'm the lowest priority :(... As soon as I have any news I'll post here
For now I've attached the Updater that I have from my archive (it should be up-to-date)
Cheers
Dan
Wooow.. That's really bad.. Hope you can solve it fast and with no collateral damage for your work..
Best luck :smile:
Hi
Thanks... I don't think anything should be lost... Thankfully the admin is dedicated and attentive... More than I can say for the hosting company :wink:
Currently the site is still down
Dan
Hi all
Just to let you all know that my site is now back up and running... Nothing was lost in the failure so the link in my sig should work again
I'm still setting up my development spaces so it'll be a day or two before i'm back up and running
I'm going to try and get the updated version out tomorrow night if I can... No guarantees because just at the minute every time I go to work on it something comes up that I have to attend to
Sorry for the long delay and thank you all for being so patient
Dan
Chrome, I would recommend looking in to Camelot Hosting. I recently switched from crappy GoDaddy to Camelot and they have been good to us since. A bit more that godaddy but very reasonable and unsurpassed service with much faster server speeds.
Im not paid to brag about camelot hosting I just really like them, they also tailor to zen cart based sites.:D
Hi ksookma
Thanks for the advice... My site is on the server of the company I work for and the admin is currently setting up the new server... He is, however, considering ditching the new host because of their tardiness... I'll pass on your recommendation :smile:
My development sites are still down as of this moment (I've only had the chance to bring my main site back online)
As soon as I can I'll get this done
Again all I can do is thank you all for your patience
Dan
Hi Chrome, thanks for this mod works great.
My only problem is I have just installed CEON URI mod for url rewrites, now when an attribute is selected the price doesnt update but displays an alert 'Server response: Not Found'? I'm guessing theirs a reference to a file it now cannot find because of the rewrite.
Hope you can help.
Thanks.
Hi bigsy
Can you provide a link for your site? It will be the URL rewriter that's causing the issue but if I can have a look I should be able to fix it and include the fix for future releases (when I get to preparing it!)
Cheers
Dan
Hi chrome, thanks for the reply, I have PM'ed the url, its on a dev server. Hope you can figure it out.
Just noticed and I think you might have, dpu_ajax.php is not found when entering it, yet it exists on the server and is found no problem when CEON is disabled?
Hi
Yeah I've taken a look and something weird is happening... The Updater is actually getting the XML response but for some reason it's getting a 404 response from the server (verified this in Firebug)
I presume the CEON mod has an .htaccess file with it so I'll have a look at that shortly see if I can see anything... Certainly is odd
Cheers
Dan