I have to say this is an extremely useful add-on for me. Thank you so very much for all of your hard work Dan. I truly appreciate it.
Perkiekat
Printable View
I have to say this is an extremely useful add-on for me. Thank you so very much for all of your hard work Dan. I truly appreciate it.
Perkiekat
Hi all,
I am a pretty new Zenner, neither really familiar with php coding nor a native English - so please appologize my confuse writing. I have successfully installed your contribution DPUv2_MTC and it works extraordinarily well for Zencart 1.38a and 1.39g (english and german versions tested). Albeit there is a slight deviation from the correct price calculated, as posted earlier - when TAX is shown in the store and admin area. You can certainly circumvent this problem by applying the mod described within this thread: twice ' limit 1' to ' limit 0' in the dynamic_price_updater.php.
Now I am trying to get another mod running within my site - product attribute grid. This will enable to select another option type: grid, which places quantity boxes for each attribute. Hence, somebody can simultaneously select products offered in eg. different colors. This mod is very crucial for me, but fails to be compatible with the DPUv2_MTC. I suppose, the DPU uses the ordinary quantity field to calculate its prices - can somebody suggest a solution to this problem?
Thanks for your time and effort,
sincerely Stevie
Hi
Thanks Kat for your support :smile:
Q do you have a link to your site? If you prefer you can PM it to me
Cheers
Dan
Dan,
This whs exactly what I was looking for, great job!
One question though, how can I style the second price, and where?
I'd like it to show the same font size as the first price.
I see in jscript_ajax_updater.php that one can style it:
"// adjust the second price display; create the div if necessary"
But where do I put the div?
I'm just puzzled as to where to put it.
Styling using css is fine, it's just where to put the div class/div span?
I tried a few places, but then the price disappeared altogether.
Thanks in advance.
And thanks for a great addon.
Cheers
Endre
Hi Endre
There should be no need to go digging that deep into the code. The second price display can be styled via CSS by targeting the ID 'productPricesSecond' or if you want it to appear elsewhere on the page then you need to find this line in the code:
The 'cartAdd' portion of that code tells the Updater where to place teh second price; it's the ID of the element you would like the Updater to appear before. In this instance the second price is set to appear before the Add to cart button. You can choose any element on your page that has ID for a reference point. I recommend Firebug for Firefox (use the inspect element feature) to find the point in your page you would like the second price to appearCode:var _secondPrice = 'cartAdd';
Hope this helps
Dan
Gwych!
Dan, you are the man!
That worked perfectly.
Thank you very much for the incredibly quick reply, and great help.
Cheers
Endre
Hullo!
I love me some dynamic price updating, I've been using it for a few months now, and I have never seen any issues with it on the front end. However, something must be amiss, because I'm getting these errors in my error log:
[17-Nov-2010 14:40:16] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /****/rainestudios.net/includes/classes/dynamic_price_updater.php on line 194
[17-Nov-2010 14:40:16] PHP Warning: Variable passed to each() is not an array or object in /****/rainestudios.net/includes/classes/dynamic_price_updater.php on line 195
Any idea what's going on here?
My site is http://rainestudios.net
Here's a few items that uses a lot of dual pricing (so you don't have to hunting around):
http://www.rainestudios.net/index.ph...products_id=81
http://www.rainestudios.net/index.ph...products_id=44
Thank you so much -- love this add on!
amy
ps -- any known conflicts with dual pricing? I'm going to get some wholesale pricing up soon.
Hi Guys
I am using Zen Cart 1.3.8a
I have the Vat Module Installed that is available from the Addons and Contributed Modules
This was working perfectly until i added the DPU V2 module.
(i am not complaining mind you....lol)
If you look at the link of my site below, you will see that DPU module works, but has removed the INC vat price that briefly appears. Apart from this it works perfectly.
Is a part of the problem also because there is now a 2nd price statement that appears lower in the page and seems to replace the VAT inc price and then drops lower down the page??.
http://evilempireperformance.co.uk/g...roducts_id=622
I did have a problem with it working correctly on a MAC and just a ? instead of a £ on a PC in windows which a friend managed to solve by hard coding the £ sign into one of your files.
Please can anyone help me get my VAT INC price back as i am stuck and a total newbie at all this.
Cheers Rob
The Vat Module is this one by the way.....
http://www.zen-cart.com/index.php?ma...roducts_id=848
Just in case you need to know.
Cheers Rob
I'm still wondering about these error messages I'm getting -- and now I've hit upon a new snag. I've searched through the thread and may have missed the answer, but I am running a sale and my sale prices show up on category listings, but once DPU kicks on on the product page, the sale price is lost. If you add the product to the cart, the full price is used and not the sale price.
Can anyone help?
amy
http://raine.net
OK I found my own answer here:
http://www.zen-cart.com/forum/showpo...&postcount=536
Hi Dan,
Thanks for the mod exactly what i wanted for a redesign of my current site which is under way at the moment. I am having some trouble getting the mod working properly though :huh:
I have copied all the files over to the server and placed a div around the product price block with an id="productPrices" however whenever i go to a product on the site i get a popup window "Status returned - Service Unavailable" and the price does not update. The loading symbol is displayed next to the price and stays there after i exit the popup window. When a different option is selected or the quantity changed the same window appears but the price remains the same with the loading image still to its right.
I do have the image Slimbox on the site but disabling this does not change things..
Have tried uninstalling DPU 2 and installing the original but it wasn't quite working properly either and the newer version is more what i'm after for it.
If you had a minute or two to take a quick look at the site it would be appreciated. If you do have time PM me your IP address as i will have to add you to the allowed list on the website maintenance setup and send you the link.
Thanks for your time!
:bigups:
Liam.
All sorted now with a big thanks to Dan :bigups:
Less than 10 mins after posting here Dan PM'd me and helped out to get it sorted in only a few replies :cool:
It turns out that the site was getting a 503 error and thus opening a new window with the error message.
If anyone else encounters the same problem they can give this a try;
Find this line in includes/modules/pages/product_info/jscript_ajax_updater.php:
It should be line 98... replace it with:Code:if (_this.XHR.status == 200) {
So thanks to Dan for the above fix/work around the updater is working perfectly on the site and is working alongside the Lightbox addon :DCode:if (_this.XHR.status == 200 || _this.XHR.status == 503) {
If anyone has a problem with their installation/implementation post it up here and i'm sure he will help out.
Liam
FANTASTIC Mod! Easy to install! Very good!
One minor issue. If I have an attribute with a One Time price add, the box works correctly, the price is correct, but it displays 2 x 0.00 for the attribute when it should be 1 x 0.00.
I'm decent enough with PHP, so any ideas on how to quickly fix it?
Hi
Thanks :smile:... Do you have a link? I'll check it out
Dan
Hi
Is there a specific product that is showing this error? All the products I've viewed seem to behave themselves
If you need to, check out dpu_ajax.php in the site root for some display options
Dan
Check the 20"x24" print.
- Price is $60.00.
- Add one of the services (for instance, Proofing). The price will change to reflect the cost of the service. For instance, if I add the Proofing option, the the price changes to $70.00, but the Price Breakdown shows "Base Price x 1 ($70.00)" and "Proofing x 0 ($0.00)", where it should show "Base Price x 1 ($60.00)" and "Proofing x 1 ($10.00)".
- If I change the quantity to (2), the math is correct, but I get: "Base Price x 2 ($130.00)" and "Proofing x 2 ($0.00)" where it should show "Base Price x 2 ($60.00)" and "Proofing x 1 ($10.00)"(proofing is a 1 time charge)
Hi ,
I have installed this price updater module in my site and it works fine.
But i need few tweeks in that module to fit my requirement .
I am not sure how to do it .
Pleas guide me.
EXample product -" dining set" .
-> I like to add attribute as text box -EX: chair quantity (done).
-> Added price for that text attribute -EX:$100. (done ).
-> Now In my case dining set chair is variant -depends on people choice .
->So now
I need to multiple the price for the text attribute with its value .
EX: 4 (value entered by customer in text attribute box),then $100 x 4= $400 will be the price for this attribute .
Please advice me how to do this?
->Can i pass a extra variable to your ajax file and return the value to the product as i expected .
->How to pass this price to the cart page?
because i need to this calculation before add to cart right ?
Add to cart page didn't accept the price from the product info page right?
Please advice me .
Atleast point to the right file.
Hi,
i just installed the newest version of DPU and for some reason the "Your Price $xxx.xx" is appearing twice. one where i have specified and another in the attributes between the add to basket and the last attribute. how ever when i look at the source code the second price is no where to be found.
address is Click here to see what i am talking about
Hello,
I have one BIG problem and i need some expert help asap here, al my prices are showing 0. I have tryed everything in admin and still not figure out what is wrong. Our business have been down now for 3 days ....this is NOT good for us. Pleas help us
url is here
Pleas help!!:frusty:
Hi
Azzoor, I'm glad you fixed the problem :smile:... I couldn't get online until now
Johan, I can't see anywhere that you are using the Updater... However, I did check out your site
Now, my knowledge of Swedish is non-existent so I Google-translated 'Ring för prisuppgift' and, as I suspected, it means 'call for price'. You need to switch this off to allow the prices to show
To anyone else wondering where I've been hiding I can only apologise (I know, again!)... I do receive updates from the forum and try to help wherever I can but I am still struggling massively with workload and available time... If the issue is minor I will endeavour to answer ASAP but the more complicated issues (those with tax or sales, for instance) are having to be put on hold
Please do post if you have an issue and I will try my best to help solve it
Things are looking more promising this year already and I hope to be back at the DPU helm for a healthy round of updates soon
Before I go I hope everyone had a great Christmas and New Year
Dan
Is this mod still available ?.
The two provided links for download don't work.
Hi
My site is down temporarily... I've got the admin guys looking into it so hopefully should be back up and running in a few hours
*edit* Site running again... Damn good admin :smile:
Cheers
Dan
I know this one has been raised in #662 & I still don't get how to figure it out.
Besides the fact of a continuously spinning ajax logo, an alert box 'status returned - not found' pops up. Is that an issue of DPU or is the reason somewhere else to look for?
thanks & keep it up!
Hi
Do you run any SEO or SEF extensions? Quite frequently these cause some issues for the Updater
Can you send a link to your site? Feel free to PM it to me if you prefer
Dan
thanks Dan,
the shop is still on an internal maschine, no access from outside.
I don't have any other extensions installed. Just the current standard installation ....
rosp
Hi
A local server may cause the Updater to experience some issues... Are you sure the server is configured correctly? Updater sends an Ajax request to a file in the root of the site; can you open the file manually in your browser?
Without being able to check a few things the only thing I can say is install Firefox + Firebug, open the Firebug console, fire up the Updater and then check the URL to see if it's correctly formed... You can post the result here if you like but I can't guarantee I'll be able to help
Dan
Hi.
Is the most up-to-date version of the may 28th 2008 version? if not can you post the link the most updated version.
Thanks! I can't wait to try it out!
I've add the DPU and having one problem.
I'd need to keep the format of the sale price with the ORIGINAL price strike through, the SALE PRICE in red, and Save: 20% Off.
Right Now when the price updates is just displays the Updated price in regular font and the rest is gone.
Try it here:
http://focalpointhardware.net/index....products_id=18
Is there a way to remedy this?
Thanks!
Thanks for this great mod. :clap:
A small suggestion for a possible future release is to make it multi lingual
cheers Dan, I figured it out.
awesome mod!
thanks
Hi all
Rosp: Glad you got it working :smile: What was the issue?
Design75: Thanks! Hmm, multilingual... I hadn't thought of that... Nice idea, I'll give it some thought
BrooklynArtist: Unfortunately, the Updater doesn't provide the display style you require at this time... Currently, I'm having to devote all my time to a project with a quite frankly insane deadline... That deadline is the end of the month so I should have some more time to look into things then... If you need this functionality urgently please PM me so we can arrange something
Thanks to all for the support :smile:
Dan
hey Chrome. I appreciate the fact that you're busy. I'm trying to fix some thing up that I can be satisfied with at the moment just as it is.
Just one more quick question for you.
I was able to change "Your Price" to a red font "Sale Price:" just by replacing 'Your Price:' with '<span class="priceupdater">SALE PRICE:</span>', and then styling it in the stylesheet.
Is there somewhere in the code, though, that I can create a html/css tag for the dynamically updated price itself so I can turn it red also?
Thanks! I don't a lot about javascript but I'll read through the script myself to see if I can figure it out.
Hi
I notice you're using V1... That's not as efficient or customisable as V2... Also V2 is much better at calculating prices as it uses the native cart functions
With V1 I believe the line you're looking for is 316 in jscript_updater.php... You should be able to customise the string sent to the price element (it's been years since I worked with V1)
Let me know how you get on and good luck :smile:
Dan
I did come up with this! I changed 'Your Price' to 'Sale: ' and added a new definition under it
Then around line 316 I added in the HTML tags:Code:define('UPDATER_PREFIX_TEXT', 'Sale: ');
define('UPDATER_SALEMESSAGE_TEXT', 'Save: 20% off');
The result is something very close to what I have styled BEFORE one selects and attribute. The only thing missing is the price before the discount with the strikethrough.Code:document.getElementById('productPrices').innerHTML = '<span class="priceupdater">'+'<?php echo UPDATER_PREFIX_TEXT; ?>'+ l + addCommas(newPrice) + '<br>' + '<?php echo UPDATER_SALEMESSAGE_TEXT; ?>' + '</span>' + r + (showQuantity ? ' (' + quantity + ')' : '');
I can live with this for now.
BTW, can you point me to the download link for version 2?
Thanks, again for this awesome code!
Hi
The download for V2 is on the same page as V1 and featured in my sig... Installation is a tiny bit more tricky as there are 4 files but they are in the correct structure so essentially just upload them... Like V1 there is nothing to do to get it working as it will fire itself up... To uninstall V1 just prefix jscript_updater.php with an underscore and it won't run but will be there should you need it
Good job with the display :smile:... But if I might offer a suggestion: use <br /> rather than just <br>... The former is XHTML compatible
Dan
Hi Chrome,
Since I installed the mod the product price is shown in its normal place, but also on the bottom. Is this normal behaviour? How can I remove the price at the bottom. Has it something to do with TPP?
Hi
The second price bit was added for pages with a long description... It has a switch in modules/pages/product_info/jscript_ajax_updater.php on line 36 that says:
Change this to:Code:var _secondPrice = 'cartAdd';
HTHCode:var _secondPrice = false;
Dan
thx that did the trick.
I've been trying to make it multi lingual. the easiest way is to remove the defines from dpu_ajax.php , and place them in includes/languages/YOUR_LANGUAGE/YOUR_LANGUAGE.php
that worked for me :yes:
Excellent mod... I installed it in a new 1.39h cart that will be replacing our 1.38a store. It seems to work well... have not added sales yet however...
I do have a question... is there a way for the top price to remain static? We have long descriptions and the only price seen when selecting attributes is the bottom one... I suppose it does not matter much nut was trying to figure that out without any luck.
All in all... very nice thank you.
Hi,
First off, this mod rocks. Top marks to Dan for all the time and effort.
Anyway, I was looking for a solution to a niggling problem with DPU and found a 'fix' on Page 52 (October 2009) of this thread. One user (izar74) posted that he had the problem of DPU adding 1% to the product prices (as displayed on the product information page). I have the exact same problem.
Now, izar74's solution was to make a 'tiny' change which I followed and it worked for me - phew. However, according to Dan, it's not the best solution as it could have unintended consequences as the fix removes the tax.
So my question is, has this bug been looked into further but not incorporated into the latest version of the mod? I've just installed DPUv2 (from august 2009) and since I get the 1% extra on my prices, I'm assuming it hasn't been corrected in the download files. Hopefully there is a fix for it. :smile: I'm pretty certain it has to do with rounding of the decimal places of the product net price.
Cheers
Hi
Thanks for the support :smile: and sorry for not replying sooner
@spirit: The only way I can think of is to change the element the Updater looks for when it changes the price... It will definitely cause Javascript errors and to be honest I don't know if it will halt script execution... If you want to try it, find the line that says:
And change 'productPrices' to an element that doesn't exist... Let me know if that works because if it doesn't I do have another ideaCode:define('DPU_PRICE_ELEMENT_ID', 'productPrices'); // this is the ID of the element where your price is displayed
@manxaura: Unfortunately, things keep preventing me from working on these little niggles with the Updater... I know they're important and I can only promise that as soon as I can I'll get around to fixing them... I really do hope this will be soon
Just as a matter of interest, the date of August 2009 is only when the Updater was first monitored for how many downloads it receives... It's had minor tweaks and fixes since then but it has no official versioning... I might start a system, though
Cheers
Dan
Im having an issue with the cart, just added a new vendor to my cart. The issue only affects new items i recently added that have price attributes. When the quantity goes up, the price remains for 1 item. Previous items ive added with price attributes dont have this isssue. What do i have to change?
I'm still getting this error in my logs constantly:
It doesn't seem to affect the functionality, everything is displaying fine in my shop, but this can't be good, right?Quote:
[10-Mar-2011 09:24:33] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /****/rainestudios.net/includes/classes/dynamic_price_updater.php on line 194
[10-Mar-2011 09:24:33] PHP Warning: Variable passed to each() is not an array or object in /****/rainestudios.net/includes/classes/dynamic_price_updater.php on line 195
thanks,
amy
Hi
@mattieh1: Do you have a link for your site? I don't recall this issue being raised before but go for a hunt through the thread to see if there are any similar reports... Off the top of my head I can't think of any reason that would happen
@amy: You're quite right, that shouldn't be... I'm quite surprised it's actually still working :blink:... I'll check out your site see if I can see any weird data getting thrown about
Cheers
Dan
Hi Dan -
Just a few posts back (#737) I posted a code change I made to v1 of your DPU mod so I could get it to display the way I wanted.
I've just come across an anomaly and wondered if there was an obvious explanation. I add codes in parentheses at the beginning of each attribute. These codes make it easier to fulfill orders. I've discovered that if I have parenthesis containing LETTERS and no spaces, then the price dynamically recalculates placing the text from that code into the price display. So I guess it's interfering with the code.
So (L), (R), (LL) results in the error and but (1), (L L) don't make the error. You can see in the link below where I experimented with lots of variations to figure out the exact ingredients for the error.
http://focalpointhardware.net/index....roducts_id=234
I haven't upgraded to v2 because this was working fine for me up until now. If you tell me there is no fix for this version I may upgrade to V2 and try to recreate my display.
Thanks for your help!
-Andy
Hi
I'm afraid to say that there really isn't a cure for this... Y'see, the original Updater uses a regular expression to 'read' the page and make decisions based on certain patterns it finds... Now, this regex (called seeker) is quite complex and I doubt it would be easy to upgrade
As a workaround you could try using square brackets or even the brace {}
Cheers
Dan
Thanks for your quick reply. I think I will try Brackets instead.
Is regex is the same for V2 also?
Hi
V2 doesn't use the seeker regex, it doesn't use a search regex at all... The new system works by gathering the IDs and values of the form and submitting them to an Ajax script... It makes the front-end more stable and minimises the amount of code delivered to the browser (faster page load)
You don't have to delete V1 to disable it temporarily; you can just prepend an underscore to the filename :smile:
Good luck and let me know if you need any help
Dan
Hi everyone, i have this installed and mostly working, but is it right that on items using the salemaker, it makes the original price and the "Save: 10% off" text vanish , replaced with just the new price?? I would really like it to keep the "Save: 10% off" text showing if possible, not even bothered about the old price with line through though that would be a bonus. Any ideas, I have read through every page of this thread I think :frusty:
Hi
I really don't have a problem - this thread and the amount of effort you put into it have allowed me to sort everything out.
Just wanted to thank you Dan for a fantastic mod
:clap:
Hello,
I have tweak the attributes to do the length * width * material cost (all attributes) and get the final price in the shopping cart and using the custom code found in http://www.zen-cart.com/forum/showth...re+foot&page=2 number 15.
My question is how can i do this in the Dynamic Price updater?
And which code in DPU i have to edit?
Or have someone did this already?
Please can u tell me where do i start and what are the steps?
Any help is much appreciated.
Thanks
Hi, Chrome:
I installed the dynamic Pice updater, and it seems it doesn't work for my ZJ-orange template, how is that, did I missing something? www.flyonwireless.com
thanks.
Hi all
First off, sorry for not being around too much; life just doesn't seem to want to give me any free time
About the salemaker: apologies for this, I know a lot of people need this to work... I'll see if I can find some time to fix it
kbear: Thanks! :smile: it's always nice to know people appreciate the effort (even if I haven't been able to support this the way I would have hoped)
bhadz08: As I don't know what you have tweaked I can't really give you any advice further than check out the Updater file in /classes/... All the code to work out the product price is in there
mgwirelessllc: I don't see the Javascript for the Updater on your site... I think the page may be overridden by the template so you would have to locate the jscript_ajax_updater.php file in the override folder... That should cure it for you
Thanks for all the support, guys
Dan
Hello,
Thanks for the great mod Dan.
I have a slight problem with DPU working with the Attribute image replaces main image mod.
If I enable DPU i can no longer have the picture change when an attribute is selected.
Any help would be greatly appreciated, Again thanks for all the hard work.
Here is a page with said example.
http://begreencanada.ca/index.php?ma...roducts_id=189
hi,
First of all, very nice module... works great.
What i'm trying to is to display a simple table below the attributes, which calculates the quantity price including the attributes.
the quantity discount does this, but only on the base price. I what it to show like DPU.
So actually... my dynamic price is shown below the attributes, can i copy/paste it several times, and multiply it somehow ??
zencart 139h
temp website running here: http://www.arjonoostrom.nl/zen/index...&products_id=2
(i have hidden the attributes prices, but they are calculated)
Thanks
Eelco
Hi
ShockRaver: I think you require a custom solution... The Updater, as it stands, is unable to accommodate your needs... If you like you can PM me about this
moesoap: Glad you found the solution :smile: I was about to post that when I noticed you had found the solution... This thread contains a load of information but it can get tricky to find
I know I've been lamenting my lack of time and promising to return to the Updater and I'm afraid I have to do that now... I want to add features to it and, to be honest, it's time for a refresh... I really hope to get round to this soon
Dan
First of all would like to say thank you so much for creating this mod Chrome you have done a fantastic job with it and your support has been second to none.
I installed version 1 and it seems to be working perfectly.
So thank you!
For anyone else who has this issue with Tab Products Pro the simple fix is to do this:
Admin ---> Configuration ---> TPP - Config: TPP - Global Main Image On Tab
And change option 1 to 0 and DPU will work perfectly for you.
It would be nice if DPU could be modified to work with TPP when this option is set to 1. But I can live with it being set to 0 if I have to.
:bigups:
Hi Dan,
I have just installed version 2 of DPU and I am having the exact same problem as mentioned by izar74 in the first quoted post of this message.
I used his method to correct the issue. But in your reply you mention that by doing this the tax is disabled.... Not to sure what you mean by this. As the tax price doesn't seem to be changed in anyway on the checkout page.
For example. If I remove DPU the tax price on checkout is no different to the tax price shown on checkout when DPU is installed.
So are you referring to the tax being change somewhere else in the store?
So if possible could you please clarify what you meant by this? As I am concerned there may be issues with using izar74's fix.
Although version one seemed to work perfectly in every way as per my previous post. There was one issue I noticed this morning with it disabling my javascript bookmark script that I use on my ZenCart store for some unknown reason. Now when I say it was disabling it. It was stopping the script from displaying the "Bookmark Us" text from being displayed on the page.
So I tried version two in the hope that it would work with my bookmarking script and it seems to work well and doesn't disable it. But then I noticed I am now having the same issue as izar74.
So was wondering do you have any further thoughts on this? Or any idea why version one is disabling my bookmarking script from showing on the page?
If you could provide any additional help on this. It would be very much appreciated.
:smile:
Thanks alot for this but how do i right align the price?
I also wonder how i remove the left price box that is there i only need the bottom price to uppdate
Hey all
CybaGirl: The problem with the tax should always be minimal, if at all... I can't remember the exact details (it has been a while and much code has happened) but I think my main fear was a minor discrepancy on large prices... If I can free up some time today I'll review the forum and re-acquaint myself with the problem
The Updater V1 used a method of starting itself that was non-standard... In V2 a different method is used that adds the Updater to a queue of applications to be initialised... V1 tended to knock every other initialisation registered out
oberheimer: The price displays can be manipulated with normal CSS rules... The second price display has the ID of productPricesSecond... The sidebox can be disabled by opening /includes/modules/pages/product_info/jscript_ajax_updater.php and setting
toCode:define('DPU_SIDEBOX_ELEMENT_ID', 'whatsnew');
HTHCode:define('DPU_SIDEBOX_ELEMENT_ID', false);
Dan
Hello everyone, a huge thanks to Dan for this mod. :bigups: I am having a slight problem that maybe someone could help me out with.
When clicking into a product, I get a popup window with an error message that says "Status Returned - not found". It also occurs when using the previous and next buttons when viewing products.
The error message occurs in cart versions 1.3.8a as well as versions 1.3.9e f and h so it doesn't appear to be a version specific problem. It also happens in both Internet Explorer and Firefox browsers.
I only know some basic coding so I'm at a loss in regards to fixing the issue on my own. If I've missed something in this thread that addresses this issue, please direct me to the page that its on or if someone could help me out it would be greatly appreciated. :smile:
Cheers
Hi rotten (first name Johnny by any chance?)
Sounds like a routing problem to me... Do you have any SEO modules installed or maybe Apache rewrite rules? If you can provide a link (feel free to PM) I'll check it our for you
Dan
Hi Dan and thanks for getting back to me.
If you can double check or even fix this issue when you get a spare moment that would be great! Touch wood I haven't come across any price differences yet. Although I only tested it once and from memory it was on a $300.00 item. So not to sure if you consider that to be a large priced item or not.
Thanks also for taking the time to explain what was going on with version 1. I didn't have any other issues with it and it worked perfectly other than it affecting my bookmarking script. I thought about not using the bookmarking script anymore as your mod certainly had more advantages over the bookmarking script. It was then that I tried version 2 of your mod and noticed that it didn't affect the bookmarking script so it allowed me to use both. Of course other than the small tax hiccup :).
Thanks either way for your reply and help on this. Much appreciated!
:smile:
What version of the mod are you using? As that message came up for me when I installed version 1 of the mod while using a javascript bookmarking script that I use on my site. Although the message was only shown on Internet Explorer and not FireFox. When I switched to version 2 of the mod this message went away.
But I am sure Dan will be able to help you out!
:smile:
I am working with the Dynamic Price Updater. I have been using this for a while and love it! I want to make a slight modification, by which I want the price breakdown to display inside the cartAdd or Add to Cart box so that customer see's the price displayed when entering their quantity or clicking the Add to Cart button...can anyone give me some help on this one?
Thanks!
Goldbuckle
Hi
CybaGurl, $300 shouldn't be an issue... By large price I was thinking more around the $10,000 mark... It might be an idea to create a product around that price to test then delete it
It's very strange that you should have had the 'Status returned' error in V1 as that part of the script was never present in V1; V1 used the client machine to 'read' the page and manipulate the values it found whereas V2 picks up the user choices and sends the data to a server-side routine to take care of the heavy lifting... V2 is much more accurate because it uses the native code in a virtual cart environment... When you get a 'not found' status it means the Ajax request failed as the server returned a 404 error (file not found) when requesting the calculation, which is why for that particular error it's easier to see the site in action
GoldBuckle, if you open up /includes/modules/pages/product_info/jscript_ajax_updater.php and edit line 15 like this:
toCode:define('DPU_SIDEBOX_ELEMENT_ID', 'whatsnew');
That will force the sidebox to render just above the quantity box... There are 2 caveats here:Code:define('DPU_SIDEBOX_ELEMENT_ID', 'cartAdd');
1. This is entirely and completely untested and could cause some entertaining issues (nothing permanent, just reverse the change)
2. This will cause a complete sidebox to be placed in the cart div... The sidebox that is generated can be manipulated by standard CSS, however
HTH
Dan
hello all
im hoping someone here would be able to help me
I would like to not change the price that is on top under item name just to change the price thats next to add to cart. is that easy to do?
and also i would like to remove the (quantity) from the top area
please feel free to check out my site if the "top" and "bottom" confused anyone.
http://www.perfumeandcologne.com/ind...&products_id=5
Hi littlekid440
I've never considered that the top price would need to remain static as it's the first display I got to change... I think you might be able to change the CSS ID of the top price div and fool the Updater, although this may cause it to stop working... Give it a try and let me know what happens (or ask again if you're not sure how to do this)
The quantity is easier as I'd considered that not everyone would want it displayed... Open /dpu_ajax.php and alter line 7 from:
toCode:define('DPU_SHOW_QUANTITY', true);
And that should kill the quantity display... Let me know how you get on :smile:Code:define('DPU_SHOW_QUANTITY', false);
Dan
Hi there.
Is anyone experiencing issue with Dynamic Converter (Free account) today? It was working fine til yesterday (Thank you! I love Dynamic Converter!) but some how it does not work any more.
I have visited the dynamic converter website and I see their examples are not working either at the moment...
I was just wondering if anyone else there experiencing same problem? I have also checked featured client page but their site is working (I assume they are on Gold / Enterprise plan)....
So is this mean free version is no longer available???
I would appreciate if anyone know further info.
Thanks for your time in advance.
Sorry everyone. I have posted on wrong forum / thread. My apologies.
i tried as you suggested
I renamed the top div to something different - script stopped working
I tried deleting "productPrices" from (/includes/modules/pages/product_info/jscript_ajax_updater.php) - script stopped working
im not really a PHP expert as i can only edit some part of the code not write my own so I don't know how to fix this :frusty:
the top div already has a different ID "productPrices" and the bottom is "productPricesSecond"
im sure one of you expert PHP-ers will solve this in matter of minutes
until then thank you for the quantity hide code - worked as described
:bigups:
also I wanted to make sure the developers and all users know that this does not work if your website is down for maintenance
So if anyone here can't figure out why its not working.. make sure its not set under maintenance
:lamo:
Hi
I thought changing the ID of the div would cause it to stop working... Changing anything in the ajax file other than the config settings is likely to cause the script to fail... In fact, incorrect config settings will cause the same issue
Altering the Updater to ignore the main price isn't going to be easy as that's what it was designed to do; everything else should be considered additions... This can be done but it'd be a custom fix for you... I can fix this for you if you'd care to PM me
Incidentally, the fix will be all Javascript; at this point no PHP is in use :smile:
Dan
Hi All,
I recently found your add on and installed and it works great. Thanks Chrome!
I had one question, can I disable a category to not use the DPU?
Thanks,
This helped me alot, thanks.
i added dpu_ajax.php to the exclude list, now it works....
the DPU also gives "Service unavailable" error in the product info page, when the store is "down for maintenance" by the way, but this isnt really an issue, just annoying when testing the site :)
Hey all
The Updater can't block categories currently... It would have to be a custom addition... PM me if you like
I've figured out why the Updater doesn't work when the site is down for maintenance: it's a header that the server issues (302 I think)... Let me look into this
Cheers
Dan
Hi Dan and sorry for the late reply.
I will edit a product and change the price to 10,000 and let you know what happens.
Yes I am not to sure why the error popped up. But when I have more time I will look into this on the test cart setup and see if I can work it out and will report back to you.
DPU works for me when in maintenance mode.
Again I do not get this "Service unavailable" error from DPU when the the store is Down for Maintenance.
How can I delete the text "Your Price:" and how can I delete or turn off the quantity next to my price?
Thanks!
Test site in case you need it.
http://frompropertorocker.com/fptrte...&products_id=2
I can put DPU in a single product?
Hi
CybaGirl, thanks... Let me know how you get on... Feedback is always helpful :smile:
nolsowski, you need to open dpu_ajax.php in the root of your site and on lines 6 and 7 you will see the settings you require... Simply put in the details you want
Lazzo85, sorry, no... For the Updater it's all or nothing (currently)
Cheers
Dan
I just noticed I have some errors in my error log. Could someone tell me what they mean and how to fix them please?
PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 194, referer: http://frompropertorocker.com/surfs-...clip-p-23.html
PHP Warning: Variable passed to each() is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 195, referer: http://frompropertorocker.com/2-scoo...clip-p-15.html
I have these same ones for a lot of my products.
Thanks!
Hi Dan,
Just checked my error logs today and it seems I am getting the exact same error that Amy was getting in her quoted post above and your reply in which you replied with the above.
Like Amy everything seems to be working fine apart from this error appearing in the error log which is as follows:
Now on lines 194 and 195 it states the following.Code:[17-Jul-2011 11:48:27] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/my_site/public_html/includes/classes/dynamic_price_updater.php on line 194
[17-Jul-2011 11:48:27] PHP Warning: Variable passed to each() is not an array or object in /home/my_site/public_html/includes/classes/dynamic_price_updater.php on line 195
So I am wondering if by any chance you have had the time to figure out what is causing this error and how to fix it?Code:reset($this->_shoppingCart->contents[$this->_post['products_id']]['attributes']);
while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {
Thanks.
PS: Still haven't had time to check the tax fix yet but haven't forgotten about it and will look into it very soon :).
Hi Dan,
Do you know if DPU would be affected by a Javascript loader and in particular this version of the loader?
https://github.com/yellow1912/cjload...files/includes
As I was getting the errors mentioned in my previous post every minute in the error directory after upgrading to this version of the loader. I had to upgrade to this version of the loader for the Tab Products Pro mod to work as I was getting errors posted in the error directory relating to this mod and I tracked it down to being caused by an earlier version of this Javascript loader. Then when I upgraded the Javascritp loader the errors for the Tab Products Pro mod went away. But it caused the errors to increase for DPU.
Here is some more information on this Javascript loader.
http://wiki.rubikintegration.com/zen...t_loader/about
So for the time being unfortuantly I had to disable DPU until I can figure out how I can get it to work along side Tab Products Pro and this new version of the Javascript loader.
If you any suggestions or ideas I would greatly appreciate hearing them :).
Thanks.
Hi CybaGirl
Do you have a URL where I can see the conflicting module in action? I should be able to work out a switching method from that
Cheers
Dan
Hi Dan and thanks for getting back to me.
Sorry to read about all this trouble though. I hope something can be worked out and this thread along with DPU is not deleted as I believe it to be a most worthwhile addition to ZenCart and at the very least I would like to say thank you for creating it and giving up what you have in supporting it so that others can use it.
Please give me a day or two to re-enable the mod or install it on my test cart as I have a couple of things I am working on at the moment. So I will get back to you shortly.
Thank you again!
Moderator note: all threads in the last 24 hours related to where this module lives have been deleted.
Fresh start:
Chrome, you are a valued member of the community.
The community has rules. Everyone is subject to them.
One of the rules is that contributions be submitted to the Free Software Add Ons area with a GPL license.
People are allowed to attach zip files to posts, but these are intended to be temporary (to permit beta testing and so forth), not long lasting.
As the moderator of that area, one of the things I do is reject changes that third parties make to mods which are still being actively supported. So when you submit a mod, as long as you support your mod, you will be the only one allowed to change it.
Please go ahead and submit your mod using the "Submit your file" link at the top right of
http://www.zen-cart.com/index.php?ma...index&cPath=40
Once that's done, the zip will be removed from the first entry of this thread and replaced with a link to the Free Software Add Ons area.
No hard feelings. Let's all work together for the good of the community.
Hi CybaGirl
I apologise, because of the other conversation I missed your reply. Thank you for your support :smile:. Please, test in your own time, I really appreciate the feedback; it's because of a lack of time that I'm unable to create these test environments (I tried taking the laptop to bed to see if I could sleep-code but... Well, let's just not speak of it)
As soon as you have time please let me know your findings and I'll get on it
Dan
Dan has agreed to submit his excellent work to the Free Software Add Ons as soon as possible.
Thank you, Dan!
Hi
Thanks! :smile: I'll get it uploaded as soon as I alter some text
I'm going to try and fix the outstanding problems this week; they shouldn't exist
Cheers!
Dan
PHEW!!!
Glad all this trouble is now sorted out :).
Hi Dan, thanks for your reply and no need to apologise ever! I am sure you have a life outside of watching this thread and waiting for peoples comments about DPU :).
Ok I have enabled DPU in the test store and I have doubled checked the error directory to see if the errors returned and they have. Here is what the errors are saying for your reference.
I will send you a PM with the address so you can access this store.Code:[25-Jul-2011 14:29:33] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/my_site/public_html/shop/includes/classes/dynamic_price_updater.php on line 194
[25-Jul-2011 14:29:33] PHP Warning: Variable passed to each() is not an array or object in /home/my_site/public_html/shop/includes/classes/dynamic_price_updater.php on line 195
Thank you once again for your continued support of DPU and I am glad to see that the thread and DPU is still intact :).
I too am glad to see this is all worked out.. (I SILENTLY watch this thread :laugh::laugh:)
I like this mod too and would hate to see Dan and his work go away..