I have this same error but I noticed on mine it's only when I add new products. My site is http://www.frompropertorocker.com
Printable View
I have this same error but I noticed on mine it's only when I add new products. My site is http://www.frompropertorocker.com
Hi
Firstly, thank you all for the support. It's nice to know it's there :smile:
The error above is a bit of an anomaly: it's saying that a scalar variable is being applied to a function that is expecting an array. This error doesn't affect anything on the product page (it won't affect the loading of any other mods) and doesn't affect the actual cost calculation. That said, any error/warning/notification from PHP should be investigated and I'll get onto it and get it sorted
Also, I want to finally quash the discount display problem before I submit this to the Contributions section. I also have to sort out the licence. It's going to be a good few days before I'm able to do this as I'm really swamped at the minute. I will get to it as soon as I possibly can
Sorry for the further delay
Dan
Hi Dan thanks for your reply and PM.
No rush and no need to apologise for anything after all you are the one doing us the favor with helping us with our issues with DPU! Whenever you get a chance to look at these issues is perfectly fine as I for one appreicate your real job comes first :).
Thanks again for everything.
Just wanted to thank you for a fabulous mod! I was having a problem with my site being a little jumpy from a different mod that was using ajax and in addition to the prices looking better, installing this fixed 99% of the weird things the other mod seemed to be causing.
You rock!
Hi
Cyba and kamelion0927 thanks for the kind words :smile:... My wages for the Updater are kudos points :lol:
It was my full intention to work on the Updater this evening to bring it up to spec, but unfortunately I've had to devote the time to fulfilling critical work tasks... I do apologise for the delay but it's a little difficult to find time at this moment (as a one man company I have quite a bit on)... I will get to around to this this week (I'm 90% sure)
In the meantime I appreciate and thank you all for your patience
Dan
Where would I find the lasted and greatest version of v2?
Thanks!
Well i tried to change the productPricesSecond float to right but in the product info display.php file there is no such thing as a productPricesSecond i can add one but still cant change the one i.
Do i have to change it in the ajax uppdater file and if how
Hi
KSpencer, the link for the Updater will always be in my link... When I've had a chance to get it submitted I will update this link... Always check there :smile:
oberheimer, you won't find the second price display in any of the template or display files as it's created dynamically... The productPricesSecond reference is the ID of the element... Just create some CSS rules referencing that and you're good to go... Let me know if you get stuck
Cheers
Dan
Thanks for the quick response Dan :-) I actually have a contribution after trying to get this to work for 3 days.
My problem (for keyword searches): continuously spinning ajax logo, not updating dynamic price on product page, not updating sidebox at all, javascript error "object required" error on childnode.
My solution (after 3 days of code hunting): Removed "?>" from end of my custom template english.php Problem solved.
It's working great now. I have the version from your chrome snippet site, last updated in 2009. Btw, there is another version floating around out on the web dated mid-end July 2011 titled Improved Dynamic...it claims to fix the discount problem. I loaded it and get Internal Server Error pop up. I don't have the knowledge to find/fix that, but would be interested to know when there is an updated release. I have subscribed to this thread, and will look for your announcement.
Thanks,
Katherine
Hi Katherine
Please don't use the 'improved' Updater: it's nothing to do with me and it replaces a core file... There was some controversy over that version... I'm in the process of getting the Updater working for discounts but I haven't had any free time just recently
Dan
Hi all
I've finally got around to getting discounts to work with the display... I've also prepared the licence required for submission to the Contribs section so I'll be doing that shortly
For now, the link in my sig still points to my site and although the link says 2009 (that's the date I started counting downloads) it is the latest version
As soon as the Updater is accepted I'll update my sig link and post here
Cheers
Dan
Hi Dan,
This is such a cool Mod!
Thanks!
I had to make the changes suggested by IZAR74. (in 2 places the regular code and the sidebox.
I think the 1 means price excl VAT and the 0 price setup based on price incl. VAT. This incl VAT is the normal setting in the Netherlands.
Can you confirm if this correct thinking of the Limit?
Would it be possible to link it to the product price setup as there we define it the price is in or excl. VAT.
Cheers,
Frans
my testside www.decals4all.eu/test
I love the dpu price updater. I have it on my site and working...www.discountprintingservice.com. Best example of its use is under carbonless forms.
I would like to modify it so that Price Breakdown and Add to Cart boxes are one box instead of two...can anyone help me with this?
Also below that you will see my attribute options which work with the dpu price updater. I have spacing in between my options and would like to decrease the space in between options but I'm not sure what in the tpl or css files to adjust....
Thanks,
John
Hey all
I have news! The Updater is now officially accepted into the Zen Cart repository :D... I will update my sig link shortly to point to that download location (I'm writing this post in between designing a large database)
Frans, thanks! Sorry for not getting back to you sooner... Essentially, I've been working with so many systems that the mechanics you are asking about are in some dark recess of my brain... As there are no lights back there (which makes it a bit scary) I'll have to refresh my knowledge of the code... There are upgrades I would like to make as well and your patience would be greatly appreciated :smile:
John, thanks! Ok, combining the Updater sidebox with another element is very much a custom job... The sidebox is created dynamically using Javascript (which is why it appears in no admin lists yet only appears on the product info page) and the content is truncated and replaced on update... Unless there are enough people requiring this functionality then it has to be regarded as custom... If you like you can PM me
Styling the sidebox is fairly easy: just choose any CSS file that loads with your product info page and add a declaration for the ID 'updaterSB'... For example:
Incidentally, it's worth noting that that CSS rule doesn't work thus proving that CSS3 has some way to goCode:#updaterSB {
personality: be-more-awesome;
}
HTH
Dan
Hey Diva
Thanks for the support :D... Let me know if the new discount bit fails
Dan
Nice, this seems to work great... my only issue is that some products are a min qty of 2 so it pops up with a higher sale price that "regular"
For instance: fabric retails for $100 per yard, sale price is $75 with a minimum qty o 2 yards...
It now shows up automatically with regular price $100 - sale price $150 you save 25%! :shocking:
It only happens on a few products that can only be ordered with a minimum of more than one.
Also if you try to purchase anything in qty's of more than one, the same happens. I wonder if a multiplier could be put in place for the regular price to update to qty's?
This is such a great mod in the wasteland of Zencart sale functions. I would certainly chip in to ad functionality!
I would love a java countdown to sale end date as well.
In any case, thank you Chrome... your are a true gent.
@ John,
Nice site. How did you get that "price breakdown" setup? That is excellent. If I could do something like that and be able to leave the top price static - "starting at" or "Regular Price" with any sale in red. That is really nice.
@Chrome
I will send you a PM... Sadly, I had to take down DPU as it was really not doing well without any price breakdown and especially with the 100 or so products that have min qtys or more than 1.
If I could get this working and figure out how to sort "specials" by categories, I would be set.
Hi Dan!
I'm really happy witht his! I just have 1 question in the way you handle the values..
If you look at http://decals4all.eu/test/index.php?...products_id=25
you will see that in the sideboxes the prices are written like 7 EUR and US$ 9.93 (This is a live exchange rate to give peope an idea about the value n their own currency while the shop remains in EUR. The following question is NOT a fault on your side I was just wondering if you had an idea how to help!
The currency seems to be recalculated based on the source code having like EUR 7,00 while in the code from you eiter in the body or in the breakdown sidebox it is referred to as to the database price elements if I'm not wrong. Would there be a way to transform these to the real value? If not I'll ditch the reference exchange rate and keep your mod :) I love it so much!
Any ideas!
Thanks
Frans
Dan!
I think I have an idea... ;)
Wold it be possible to combine your mode with this mod: http://www.zen-cart.com/forum/showthread.php?t=60112
?
I think the option I'm doing via http://DynamicConverter.com/ wil not work due to the fact that it need the source to contain the real value like EUR 100.00 and not EUR $OrderTotal
What do you think?
Frans
Hi all
Spirit, sorry for taking so long.. I've taken a quick look at your PM and I'm trying to get some time aside to have a crack at it
Frans, I've taken a look at the Dynamic Converter as it is running on your site and there is quite a bit to it... Unfortunately the JS code is minified (or otherwise encoded) so I can't read it directly... I do know that it's using a method to attach remote JS scripts to the page DOM; I don't know what these scripts do but there must be a method somewhere that the Updater can call to get the updated values
While I look into Spirit's issue I'll also put some more research into this and maybe contact the devs of Dynamic Converter as they have some cool stuff going on there and might agree to help me out
Watch this space!
Dan
Hey all
Frans, I have completely misunderstood your post... That'll teach me to reply on the forum after 20 hours of coding o_O
What I shall do now is research the dual pricing instead as that's the one you actually asked me to look at... Sorry about that
Cheers
Dan
hi Dan!
Thanks for doing that! I think dual pricing would be perfect as long as one could change the conversion(aka currency) for the dual pricing ;)
No worries on the replies after 20 hour coding.. you better get a rest and enjoy the summer as well.. Just like me currently doing that in England :)
Cheers,
Frans
Hey Frans
I've had a look through the dual pricing code and to be honest it doesn't look too tricky... I'm just working on some switches and a bit of code design and I'll post an update here for testing before applying it officially
As it's Saturday and pretty much the only time I don't work I'll try to get it done tonight... Bear in mind, though, that it is Saturday and I may get visitors
If I don't get it sorted tonight then it will be over the next couple of days... I've prioritised faults in order of how difficult that are to fix in ascending order so I will get to Spirit's problem next
News as I have it
Dan
P.S. The weather in England and Wales has been pretty bad the past few days and I've been quite glad I've not had the opportunity to venture out :wink:... Enjoy your time in England! :smile:
Thank you Mr Chrome...
let me know if you come up with a solution.
Thank you!
Hello everybody!!! I am new to zen cart. I have installed the dynamic price updater which is a very helpful app but there is a little problem. When it calculates the price it gives a result of 1% more than it should be. Does anybody know what happens? You can see it in the following link: http://www.vapepal.gr/index.php?main...products_id=33
Any help would be appreciated.
Thank you in advance,
George.
Hello and thanks for this great addon! I just updated to the latest version to fix some problems with sales and onetime charges.
Now DPU v2.0a (2.0.1) calculates all prices 1% too high, even the base price. All prices become correct, when added to cart. Do you have any ides how to fix this? I would appreciate your help a lot! :)
With the old version everything worked great, except when there was onetime charges included in the products - the price wasn't calculated at all. I would appreciate your help in this too, if you can help.
Hi Dan!
Not moaning! Just wondering if you have an update on the dual pricing?
Just curious!
Frans
This mod works fabulously on items that are priced by attribute (base prices are all $0) but on my items that are not priced by attribute (they don't even have any attributes), the displayed price is incorrect (it looks like the DPU is pulling prices from the upsell sidebox and recently viewed mod).
To correct this, I have been trying to add an if statement to jscript_ajax_updater.php to keep the DPU from loading on items that have a base price of more than $0, but have thus far been unsuccessful (obviously or I wouldn't be bugging you :smile:).
The most logical if statement for me to use (I think) would be something like
but it isn't working - the script is still loading on my products that have a base price of more than $0.PHP Code:
$pibp = zen_get_products_base_price($pid);
if ($pibp > 0) $load = false;
Help please? Thanks in advance.
Hi all
Sorry it's taken me so long to reply... That old enemy, time, has not been on my side... I have been following the trouble people are experiencing with the display price and believe me I really want to get it sorted... I know I've said this before but I intend to try and fix the problems this week
Frans, I have done some work integrating with the dual pricing mod but it statically returns the display string rather than calculated results so I've been trying to strip them down to something I can work with... I don't want to alter the dual pricing mod's code... I'll get it sorted
kamelion0927, the Updater doesn't pull its prices from anywhere: it calculates them by creating a sandboxed shopping cart object and applying the attributes to it... Heavy-lifting of the price calculations is offloaded to core routines to future-proof against core updates and updated pricing routines... Unfortunately, it appears I'm applying something incorrectly... I need to look into it
Incidentally, have you tried echoing the $pibp var to see what it contains?
Dan
Sorry - I'm not talented enough to be a true coder so I always forget to utilize the echo statement :D (which, incidentally, would save me a lot of time trying to figure out what parts of the code to use on if statements - time for a sticky on the monitor).
Thanks for your time! I'll try echoing the statement and see what I get.
Hi
The little piece of code that I always use is
var_dump() is great because it gives you extended information... Also the variable can be an array, object or pretty much anything really... The <pre> tag makes it nice and readable :smile:PHP Code:
echo '<pre>';
var_dump($theVarWithNoName);
echo '</pre>';
HTH
Dan
LOL thanks but you almost totally lost me - you have to type slowly and clearly so I can keep up. :D
I added
to jscript_ajax_updater right underPHP Code:
$pibp = zen_get_products_base_price($pid);
echo '<pre>';
var_dump($pibp);
echo '</pre>';
and abovePHP Code:
$pidp = zen_get_products_display_price($pid);
if (empty($pidp)) $load = false;
but nothing is showing on my product info pages. Am I putting the code in incorrectly?PHP Code:
if ($load) {
Hi
Crikey, you're right, it's in a javascript file... You should be able to see the results in the source of page, near the top... The echo option would have the same effect... Change the code to:
Refresh the page, view source then hit CTRL+F and search for DEBUG... Convoluted but it should get you to your dataPHP Code:
echo '// DEBUG';
var_dump($pibp);
HTH
Dan
Hi could some one let me know how I stop the price displaying twice with this excellent mod. thanks,
ok thanks Hari changed it and it worked, although mine said var _secondPrice = 'cartAdd'; whioch I changed to false, does this make a differance?
Thanks,
Hi All,
Thanks for taking the time to create this awesome module.
I have uploaded all files from the zip to a website im working on. However, after the upload, I recieve an error in google chrome:
"Status returned - "
On IE, I get a constant loading picture.. circle just keeps circling..
Any ideas on how to fix the issue?
Thanks,
Lee
Convoluted is the only way to go - makes life so much more interesting. :P
When I add the debugging echo, I get // DEBUGstring(7) "15.9500" (and a whole lotta odd W3C errors). But to be honest, have no idea what the debugstring means (or what to do to correct it).
Thanks so much for your time!
Hi
Lee, do you have a link? I'll check it out
kamelion, the //DEBUG bit is just the echo string to find the output in the code... The var_dump() follows straight after and is saying the variable is a string, 7 characters long and it contains "15.9500"... It's odd that the code you have used doesn't work... I'm not firing on all cylinders at the moment but try
That might work; I'm pretty tired so I may be missing something else... Let me know how you get onPHP Code:
if ((float)$pibp > 0) $load = false;
Cheers
Dan
That is so nice of you to help even though you're tired. You have no idea how much I appreciate it!
I would love to put your code to the test but all the sudden this afternoon, the DPU decided to be stubborn and wouldn't work at all - even after I replaced the files with untainted ones. (I haven't made changes to any other files other than the ones specific to DPU.)
I'm getting
Error: this._responseXML.getElementsByTagName("responseType")[0] is undefined
I thought it was because I have the css/js loader installed (don't know if you're familiar with it) which runs a minify script. So to get it to play nice, I did the workaround required if there's a javascript conflict and it's still reading the whole file except for that one line...
I don't suppose you have any ideas of how to fix it?
Hi
Kamelion, The Updater is failing because somehow a blank space is the first character is the returned XML... To be honest I have no idea why that might be happening... Usually this is caused by a blank space after the ?> which ends a PHP file, but the Updater's files are left open to guard against this anomaly... Currently I couldn't say why your site is exhibiting this behaviour but I will have a think about it
Lee, that link doesn't load
Cheers
Dan
Hi Dan,
The link takes a while to load - Cheap hosting, cheap service!
Direct link -
http://choosemypc.com.au//index.php?...&products_id=1
Let me know how you go. Thanks for your help so far..
Lee
I deleted the product as a test and created a new one to make sure i wasnt doing anything wrong. I am still getting the same issue.
Updated link:
http://choosemypc.com.au//index.php?...&products_id=2
Thanks,
Lee
Hi
Lee, for some reason the URL for the Updater's server-side script isn't working properly... Not sure why this would be but try opening includes/modules/pages/product_info/jscript_ajax_updater.php and go to line 35... It should say
Change this toPHP Code:
var theURL = '<?php echo DIR_WS_CATALOG; ?>dpu_ajax.php';
Let me know how you get onPHP Code:
var theURL = 'http://choosemypc.com.au/dpu_ajax.php';
Dan
Hi Dan
Brilliant Mod, I have been searching everywhere for this and could not find anything until one of the moderators pointed me to your add-on, thanks a stack.
Problem though and I know it gets mentioned throughout the thread but can't get answer or make sense of it if I have read it, but anyways I will ask you directly...
The 1% increase on the price? I'm sure I need not say anything more, have you got a fix for me please?
Aswell I have a '1' in brackets next to the price which I'm not sure what it is but need to remove too if you could please help out?
Thanks in advance.
Jay
Number in brackets is the quantity, sorry wasn't paying attention to a few posts, just need to hide that though.
Tx again.
Found it............
define('DPU_SHOW_QUANTITY', true);
define('DPU_SHOW_QUANTITY_FRAME', ' (%s)');
in 'dpu_ajax.php'
Hi Dan,
I am having the same problem as leearmstrong3. The page just keeps loading and loading even though it looks like it's all loaded. I uninstalled this mod to see if it was something else but it worked without this. Reinstalled it and I am having this problem.
You can see it here http://frompropertorocker.com/index....roducts_id=496
I went here includes/modules/pages/product_info/jscript_ajax_updater.php and changed line 35 like you posted for leearmstrong3 (of course with my site instead of his :) ).
Anything else I can try?
Thanks!
Hi all
Firstly, I am working on the 1% issue; it's a tricky little swine and it's proving recalcitrant so I thank you all for your continued patience... I really hope the fix isn't too far away
nolsowski, I've checked out your site and the Updater seems to be working fine... I did notice that there is a JQuery error happening (the Updater doesn't use a Javascript library) and the Updater is having trouble removing a node... Neither of these appear to be affecting perfomance, however... Am I missing something? If I am please let me know
Cheers
Dan
Well that's strange. I cleared out my cookies and it seems to be fine now too. Must have just been me. I was also getting a lot of status returns too but haven't noticed that yet since I cleared my cookies.
How did you figure out that I have a JQuery error? I wonder what it is and how to fix it.
Thanks for all your help! :smile:
Hey Dan
Thanks a stack for your time and effort on this mod, I will sit here patiently waiting for your fix. As far as I know this is the only one out there so you holding my world in your hands.
Just a quick question, do you know if this 1% issue is happening to all installations? I read in much earlier posts that it works fine if products are price per attribute. Is it true? If so there a way that I could apply some sort of 'if' statement prior to execution, like....
Defo not a genius on this, but thought I would throw in my 2 cents, just incase. Maybe it triggers off something thats been filed away in the back of the brain somewhere:)Code:if (product_id == 'product_attributes') { execute dpu_files }
else { ignore dpu_files }
OR......
if (product_id == !'product_attributes') { give it a 1% discount }
else { do nothing}
Anyways, Good Luck and hope you crack it, really want to use the feature.
----------------------------------
Jay
Oh! before I forget, (if it helps) did a fresh installation of zen cart and installed your mod, and it works perfectly, no 1% added on base price, only difference thats immediately noticable is my currency is £ (problem site) and new install is $
Hi Chrome I have a question for you. Is the module just for attributes? If not the problem with MSRP still exits. I Have read a lot of this thread and can not find a solution for it. I know you worked out the sale price to work with it. I never read were you found a solution for lankeeyankee. I know you are a busy person, but if you could find a solution for this I would appreciate it very much.
I have UN-installed the module until it is fixed.
Interesting find. I edited my product and changed it to 'priced by attributes', as well as changing from Taxable Goods to '--none--'.... volia no 1% added to either the product or the attribute. Thought this might be worth a mention in trying to find this fix. Is it something to do with the way the products are taxed?
Hi all
Sorry for the delay in responding... I was also thinking that the problem is with the tax... My problem currently is every time I set about this code I get called onto other work... I know this is important to people and I am going to get it sorted very soon
Cheers
Dan
I keep getting the same problem as post #791.
Do I miss any fix in this thread?Code:PHP Warning: reset() expects parameter 1 to be array, null given in /includes/classes/dynamic_price_updater.php on line 197
PHP Warning: Variable passed to each() is not an array or object in /includes/classes/dynamic_price_updater.php on line 198
Hey Dan
I'VE FIGURED OUT THE PROBLEM.....
Just need you to figure out the solution:)
The 1% is = to the 'Tax Classes' ID number....
If you create another new tax class which creates it with ID 2 it adds 2% and create another new one which creates ID 3...yip, its adds 3%...
Hope this helps
--------------------------
Jay:flex:
Hi Jay
My good sir, you may be a genius... I'm going to get a test site online later to set this up and test... If successsful, I'll update the changelog and readme to reflect that you discovered the problem :smile:
Watch this space for an update over the next day or 2
Cheers
Dan
Cheers and Good Luck.
Lucky I subscribed to this thread so no need to watch it:laugh:
Hi all
I've finally managed to get some time to look into and, taking onboard Jay's discovery, I've reset the tax class ID to zero for all requested products
I have uploaded a new file to my server for testing[1]... I would be really grateful if anyone having the 1% issue would give it a try... Although the test file is complete, you can just replace /includes/classes/dynamic_price_updater.php
Please let me know your findings and, if this has cracked it, I'll resubmit to Zen as an update
[1]DPU Tax Class Test
Cheers!
Dan
Hi Chrome!
Thanks for the update, it works perfectly!
I tested these and it worked:
- products on sale
- products with attributes
- products without attributes
- quantity discounts
- quantity discounts with one time charges applied
I have one question, is there any way to change how I see "users online", because now their url is /dpu_ajax.php and not the real url of the product they are viewing?
Hi Harri
Yay! Good first response... I will, of course, wait for other reports before officially submitting this
Very good point about the 'users online' section... I'm quite surprised no one has mentioned it before, well spotted :smile:... Before I submit this version I will try to add a GET variable of product_id so at least you can know which product they are viewing
Cheers!
Dan
Dan the Man!!!!
Brilliant, nice one. Works perfect on my side. I don't use Harri's function so can't comment there, but well done!
PM me your payment details, you definitely deserve a couple of pints.
Thanks, for the great mod.
Jay.
Hi Jay
Awsome! :D... I'll update a few things, including the vital info you provided and the very handy point by Harri, then I'll repackage and let the Zen Cart team release it
Jay, your offer is awesome :smile:... The Updater is always free (y'know, within limits :lol:) but if you think it's helped you enough then please use the link in my sig: I have a donate button on my Zen Cart page (if you despise Paypal then I'll PM if you insist, hehe)
Thanks to everyone for your patience, assistance, patience and patience (that list is in order)
Dan
Hi all
Just to let you all know that the new Updater has been uploaded to Zen Cart for review... Hopefully it will be available in the next few days
I'll post an update on here as soon as it is released :smile:
Cheers
Dan
Hi Dan!
Looks like you have don tons of work. I have to say sorry but I changed jobs and had to setup my new company before being able to finish my zencart setups :(
Anyway, can you tell me where to get the latest version and I'll give it a rerun..
Frans
Hi Frans
As soon as the Zen Cart team has approved the mod it will be available in the contribs section
When I receieve notification I'll also post the link here :smile:
Dan
Hi all
The new Updater is available at the standard place in the Zen Cart contributions[1]
Please let me know if anything goes wrong :smile:
Dan
[1]http://www.zen-cart.com/index.php?ma...oducts_id=1973
Hi Dan,
thanks for the fixes! It look great to me!
This is a test url:
http://decals4all.eu/test/index.php?...products_id=25
So I have it all working (the totals on the left seem to add the taxes of the attributes into the main item but maybe that is a setup I need to verify)
But total prices are correct.
I was just wondering.. As you can see I'm doing the dynamic conversion of currencies and it works ok for most fields except the fields changed by DPU. Was this something you are interested in looking into adding to DPU or not.. I 'm not sure and Absolutely NOT complaining! :)
Regards,
Frans
Hi Frans
I've taken a look at your site... Interesting that the currency symbols aren't being displayed... The only thing I can think to try at the minute is to open /dpu_ajax.php and navigate to line 7:Make sure that this is set to true and not false... If this is all in order, let me know and I'll look into it :smile:Code:define('DPU_SHOW_CURRENCY_SYMBOLS', true);
Dan
Hi Dan,
Currency symbols are displaying... but look at the attributes and main product prices. They have in the original code the dual pricing (EUR and eg USD) but in the breakdown on the left and the new total prices (the part: Your price: €7,00 (1) ) they only show the correct EUR but not the USD or whatever the box on top right is set to.
you think you can incorporate this in your code? By all means I was not implying your great mod does not work!!!!! I love it!!
Cheers,
Frans
Hi Frans
Oooooohhhhh, I see what you mean... The focus of this update has been the 1% tax issue (as it could lead to really serious problems)
I do admit I forgot about the dual-pricing a little bit, but I have started work on it (the new uploaded package contains some spur code)... This is my new focus and spare time will be devoted to Dual Pricing in V2.03
Sorry for missing that
Dan
dan,
ABSOLUTELY no reason to say sorry!
This was a great update like you said it is fundamental!
You need to get some sleep instead of replying at nearly midnight ;)
How are this in the UK going? I had a great holiday in Colchester last time we posted.
Take care!!
frans
Hi all
countrycharm, I've had to re-appraise myself of the MSRP situation and to be honest the last mention of it was c.2008... That means it was an issue that affected V1... Have you tried V2? If this doesn't work for you please provide complete details to refresh my memory (I do apologise for asking for this, I'm sure you are busy too)
I am dedicated to fixing all of the problems with the Updater
Frans, yes, Colchester is nice... Midnight is early! Besides, I have very little spare time and I like to support the Updater :smile:... Other than that, my part of the UK is as expected: Windy, cloudy and loud :lol:
Give me a list of what needs sorting and I'll get to it
Dan
Thanks a lot for the update, no more 1% error :)
Just wondering how to make the admin "users online" to show what product is viewed and not dpu_ajax.php? I see you've done some code for that, but it's not working in my store. Is there some settings for that?
Yes I have installed the latest version you just release. You can take a look at what it is doing at my product info page here. Watch my MSRP disappear. Thank You in advance for helping.Quote:
countrycharm, I've had to re-appraise myself of the MSRP situation and to be honest the last mention of it was c.2008... That means it was an issue that affected V1... Have you tried V2? If this doesn't work for you please provide complete details to refresh my memory (I do apologise for asking for this, I'm sure you are busy too)
Hi
Ah, yes... I remember the MSRP issue now... Right, as I see it I have 3 definite tasks for v2.03... They are:
- MSRP issue
- Dual-pricing support
- Information for Who's Online
I'll get to work on these ASAP... If there is anything I've missed or if anyone wants to add anything please let me know
I'm going to alter the Zen Cart page on my site to track versions, detail current tasks and provide test versions... I'll post an update here when that is done
Cheers
Dan
Hi
Right, I have the first test install... I've addressed MSRP first as it is the oldest problem... This may have been a mistake because it's a tricky swine! :lol:
This version should
- Update the price and leave the MSRP structure intact
- Update the 'You save' price
- Update the 'You save' percentage
Also this version should be compatible with the normal products and sales etc. and make all the necessary decisions without any other changes or input
I've highlighted the word 'should' because my testing platform is pretty narrow... Also my testing time is quite tight... Add to this that the more complicated the Updater gets the more it seems to be plotting against me
I would be most grateful if anyone could try the new version[1] and let me know what happens
Cheers!
Dan
[1]MSRP-compatible test Updater
Hi
Update: the above download link should also now incorporate the 'Who's Online' feature (to at least show the product the visitor is viewing)
Thanks to everyone that tests! :smile:
Dan
Hi Chrome everything looks good except it has double prices now. You can take a look at it here. Thanks again.
Hi countrycharm
Try this: find line #36 in /includes/modules/pages/product_info/jscript_ajax_updater.phpAnd change it to:Code:var _secondPrice = 'cartAdd';
Let me know how it goes :smile:Code:var _secondPrice = false;
Dan
Dan it works great now. There is just one problem. I'm getting a lot of error myDEBUG in my cache folder. This is what it says.
Quote:
[27-Oct-2011 20:17:10] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/content/x/x/x/xxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 209
[27-Oct-2011 20:17:10] PHP Warning: Variable passed to each() is not an array or object in /home/content/x/x/x/xxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 210
I have no idea what the errors are.Quote:
[27-Oct-2011 20:15:52] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/content/x/x/x/xxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 209
[27-Oct-2011 20:15:52] PHP Warning: Variable passed to each() is not an array or object in /home/content/x/x/x/xxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 210
[27-Oct-2011 20:15:52] PHP Warning: Division by zero in /home/content/x/x/x/xxxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 117
Hi countrycharm
I know what the errors are but I'm working on how to solve them
They should be innocuous, but I will get them sorted
Thanks!
Dan
I don't know what you did to the last version of DPP but it's working again on my site! :clap:
Sorry to add to your workload.
I am still having a problem with items that do not have a base price of $0 generating incorrect prices. I noticed that you tweaked the jscript_ajax_updater.php file to try to stop it from happening and I also tried the suggestion you made a few posts back and changed
toPHP Code:
if (empty($pidp)) $load = false;
(after the first statement didn't work, of course) but the wrong price is still showing.PHP Code:
if ((float)$pibp > 0) $load = false;
I tried turning off the featured products column that's active on the product info pages without attributes and it works perfectly.
If you get around to it, I would really appreciate any suggestions of how to modify the code so I can get this to work on all of my product info pages.
Thanks in advance!
I can answer that one - yes it does. Make sure that you have the two differnet attributes against the product (Light Wood & Dark Wood for instance)
Make sure you add the prices to the attributes page and then DPU will do the rest for you.
Hi
When I installed this mod, it showed 2 prices instead of 1 on my product info display page.
It was displaying:
productPrices
and
productPricesSecond
When I altered the quantity of the product, both of the prices changed.
So, what I did was enter this into my stylesheet.css file:
#productPricesSecond { display: none; }
It has seemed to work, although it is basically just hiding the productPricesSecond, while still updating productPrices.
Is using this method alright? Is there a better way to do it?
I am just making sure. :smile:
Thanks for your feedback.
S
Can this be made to work with the mod "Include and Exclude Tax" price display?:
http://www.zen-cart.com/index.php?ma...roducts_id=848
Hi,
Can anyone suggest a way to get this to work in Product-Music, including product prices second?
Hi all
Schoolboy, I'm not familiar with that module so I'm afraid I couldn't tell you how the Updater would react with it... If you want to try the Updater on your site and if it does blow up then the Updater can easily be disabled by prefixing an underscore before the script filename... Give it a try and let me know how you get on
Gangees, I have updated the Updater to handle some sales, but I'm not certain if the salemaker is covered... Any chance you can give it a try and let me know your findings?
I apologise for once again taking so long to reply; it has been a complicated year... Please provide URLs for failing or broken pages and I'll take a look as soon as I can
I will release the MSRP version over the next day or 2 officially... I'll post on here when it becomes available
Cheers
Dan