how does this work? i want to calculate my products based on length, but how do i go about to do this?
Printable View
how does this work? i want to calculate my products based on length, but how do i go about to do this?
I installed this it on a fresh install of 1.5.1, and when I click on any product on I get the rotating gif both under price and in the side box.
I installed:
dpu_ajax.php (installed at root)
includes/classes/dynamic_price_updater.php
includes/modules/pages/product_info/jscript_ajax_updater.php
And per readme.txt no other modification is necessary. What is wrong
As I click on options i get the "Status returned - Not Found" error.
After using this module for a long time I challenged myself in updating this module.
The changes so far:
- moved all the defines to a language file
- moved all configurable defines to an admin configuration
- Added a proper side-box, this one can be switched on and of using the normal side-box configuration. The contents is still dynamically created.
- changed the code to call the database
any ideas are welcome
Here is a link to the beta version.
Use at own risk
Documentation is incomplete, but is you upload the files according to the file-structure all should be fine. The admin is registered automaticcaly
It would be great to have Quantity variable available for attributes (priced by attributes) before adding to cart!
Attachment 12459
ps. Made a mistake and did not include prices in the image.
Wow! Thanks to everyone who worked on updating this mod. The "Your Price: 0.00" was driving me up a wall but I don't know enough AJAX or Jquery to fix it. I really appreciate all the time and effort.
I noted this same "Your Price: 0.00" and tried several changes for the product data. I noted that when I put stock saldo for the product, it started calculating it correctly. Still need to check if the taxes are correct though but that is more to do with ZC standard functions, I assume.
Hi,
Your mod is working with a customized site, however I would like to know how to set something :
when page loads, the price is shown as "Starting at:" then, a few seconds after it becomes "Your Price :".
Is tere anywhere we can set a delay for this change, even better, it would be very nice that "Your price" appears only after the customer changes something. I mean that the page stays still with "Starting at:" at the begining, and, as soon as the customer changes an attribute value, the price becomes "Your Price :".
Is there any setting to do that ?
Thanks for your help.
Regards
Hubert
Right now that possibility is not build in, not in the current version or the planned update, but it is a good idea imo.
I was planning on releasing the update around the weekend (all there is left to do is write the updated readme).
I do not think it is very hard to add the functionality, so I will look in to it, and let you know.
Version 3.0 has been submitted to the downloads
Does this have the ability to calculate percentage pricing on attributes? And please can you post a link as its not available in downloads yet.
Thanks
Nick
Hi
It's good to see that someone has picked up development for the Updater. Unfortunately, time is never kind to me and I've not been able to offer the support I should
Sorry for the lack of support and hopefully the Updater will live on for some time longer!
Dan
I spoke with Chris Eden about a month ago on a dynamic pricing solution and he stated that they were working on a solution that would be a true dynamic pricing calculator that would draw the price and change options based on the product selected. Since, however, we have not been able to connect with him/Absolute Solutions in the UK. Has anyone heard any other updates to this or have any additional information?
after opening the product, I added this product to the cart without I click add to cart. How to fix it?
I don't think it has anything to do with DPU, but am not sure.
You have a lot of errors on your pages, including loading multiple instances of Jquery.You are also loading things between the head and the body tags.
Could you help me with tis errors please , if i give you ftp pass? Or want you something for that?
Installed and it worked fine first go.
Thank you for an excellent add-on and thank you for continuing development of it.
I do have one question is it possible to have the price be dynamic based on attributes but not based on quantity?
I'd like to have the per unit price be dynamic but the price to remain per unit even when the person changes the Quantity.
I suspect that should be something I could change by editing the code but was curious if there was a way to do it out of the box?
I discovered a small bug, on my behalf. :blush:
In the file \includes\classes\dynamic_price_updater.php on line 43 there is
this should be (as it was originally)PHP Code:
$this->shoppingCart = $_SESSION['cart']();
A new version is now submitted to the downloads section, and waiting to be approved.PHP Code:
$this->shoppingCart = new shoppingCart();
I have been using ZenCart for years and Google has always indexed my product pages with no problem and no real seo efforts on my part, but for some reason now NONE of my product pages or category pages are showing up when I search Google with "site:discountprintingservice.com"...I have been using DPU on my site for a long time but I have to ask can DPU interfere with Google indexing my pages? Or has the code of ZenCart changed with v1.5.1 that would cause Google not to index these pages??? And before any one replies "you need meta tags" I know all about using the Meta Tags and what good titles, keywords, & descriptions are and yes some of my products have them and some don't but previously all pages were getting indexed regardless of whether I defined meta tags or not....:no:
Hi
The Updater doesn't interfere with Google SE results; its actions are ignored by robots. Unfortunately I can't say what may have caused your problem but I doubt it's the Updater
Good luck
Dan
Ok I just wanted to be sure...
Also while I am thinking about it, I love the update to DPU, great work Design75 on the update, and good to see you back on here too Dan....Dan you probably remember this but I had an issue with DPU not working on my site and you helped me fix it and I have a question about it for both you and Design75...
In the file jscript_dynamic_price_updater.php, Dan you had me change line 35 to:
var theURL = 'http://www.discountprintingservice.com/dpu_ajax.php';
I forgot about this when I upgraded last night and the newer version stalled and I remembered it and changed the same file newer version on line 33 to the same and it started working again...my question is why do I have to do this and shouldn't it work as is with out having to add the code specifically with my site?
Is there something about my site or my DIY template that is causing an issue?
Anyway thanks guys!
Hi John
Thanks :smile:
If I remember right, it was a cross-domain security issue that was preventing the Updater from working. The 'hard-coding' of the URL was a bit of a workaround for your host
I'm not sure what setting caused this
Dan
Is this issue something I should address with my host?
Hi John
If all it means is changing a line of code then not at all. It seems more like a good thing than bad (your host appears to be blocking XSS attacks)
Dan
I managed to get a weird bug with DPU v3.0 on ZC 1.5.1.
Installed without issue, configs fine, and functions.
When a product, in any configuration, is "added to cart" for the first time in a session, it's added in duplicate (2 identical items are added, both at the proper cost). Items added after the first item are added are single, and proper cost. However, the displayed price (in product info, dynamicPrice field) is reflective of the current shopping cart total (i.e., even if no product or attributes are selected, the price displayed is the total in-cart. If something is chosen, it updates properly, but adds the price to the total cart price.)
This causes some issues for me, obviously. No error logs are generated, no pop-ups, etc. It appears to work fine other than adding the first product twice and calculating price based on cart total+attribute prices.
Any suggestions? I've uninstalled/re installed, tried version 2 and 3, and read through almost every page in this thread.
Any help would be greatly appreciated.
Hi, Got the plugin working straight away on 1.3.8 and love it. Really makes a difference. Once this I did notice is that when teh feature is turned on the "Add this" plugin icons disappear and erappear when you turn the feature off. Any ideas on how to get them to stay?
Hi corseter
Do you have a link so I can take a quick look?
Dan
Hi Chrome, Don't worry about it. For some reason they came back by themselves. What I do have an issue with is that when you are logged in as a wholesale customer the main product price still displays the retail price until an attribute is changed and the attributes themselves still display the retail price despite doing the correct calculation whosen chosen. EG attribute displays 180 buts adds 100 to the wholesale price.
Hi
The Updater doesn't know about wholesale prices I'm afraid; it merely makes a request for the selected product/attribute from the Cart object. I'm not sure quite how Zen handles this as it's been a while since I worked with that part of the system. If you don't mind giving me a couple of weeks I'll be working with the Cart (and core Updater code) and I'll have a look into it for you
Cheers
Dan
Hi Chrome,
That would be awesome. Thanks so much.
Just wanted to say thanks for a great little plugin!
When my customers are looking at products, after I implemented this mod, I see dpu_ajax.php as the url they are browsing in the who's online part of the admin. How do I fix this?
Hi
The reason this happens is because the Updater is Ajax-based and browsers request the dpu_ajax.php file. As far as I'm aware there's no way round this. It has been mentioned earlier in the thread if I'm not mistaken, but I don't believe a solution was found
Dan
Congratulations...worked first time.
Some observations on this version 3.1.1.
1) FFox with Web Developer flagged up a js error.
referrring to its first use hereQuote:
Warning: ReferenceError: assignment to undeclared variable updateSidebox
So I declared it at the start:Code:var sbContent = '';
updateSidebox = true; HERE
} else {
updateSidebox = false;
2) Chrome flagged another errorCode:var psp = false;
var updateSidebox;
Referring to:Quote:
Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist.
Changed this toCode:objXHR.prototype.handlePrice = function () {
var thePrice = document.getElementById('productPrices');
thePrice.removeChild(loadImg); HERE
3) I noted that the method of switching off of the sidebox code generation is not implemented. ie it still fires when the sidebox is not enabled in the Admin asCode:if (thePrice.loadImg) {
thePrice.removeChild(loadImg);
}
is set manually in three places.PHP Code:
$show_dynamic_price_updater_sidebox = true;
I did make some effort to make it work but lost interest when passing a variable into the class method, so just disabled the code in the three relevant places as I don't use the sidebox.
This is easier if superglobals is used to show the session variable only.
Scenario
Not logged in.
Go to a product and add it to the cart.
Go to another category and then a product.
The session, navigation object will contain two or three entries, but the last one has the current product_info page and id, and the second-to-last entry the category path as shown below.
Attachment 13287
Now go to the shopping cart.
The “Back to Shopping” button is not linking to the last product but to the index page and the navigation object shows why: the information is gone.
This is what is in the object.
Attachment 13288
This is what should be in the object.
Attachment 13289
What wipes it is the call to application_top.php made in dpu_ajax.php
As I have already spent a phenomenal amount of time tracking this down and there are a few things in this addon's code that I don't get, …I’m handing this over...good luck!
zencart 1.3.9h
display price twice as shown below
Price: $5.99
Price: $5.99
how I can make it once?
Hi guys,
i have installed this addon but unable to get it working.
I am using a template downloaded from template monster
http://homestore.co.in/ is the site.
am i doing something wrong..
plz help
Attachment 13581
See attached file. How to fix price issue? It is appearing twice. Thanks
You can switch it off in configuration/dynamic price updater/where to display the second price . Just leave that box blank.
I don't see configuration/dynamic price updater in admin.
I've got the latest version of dynamic price updater 3_0_1 installed on zencart 1.5.1.In your admin panel,right over to the left ,there is a column called configuration.That produces a drop down menu,at the bottom of which you should see a box titled dynamic price updater,where you can change the settings.
If you don't see that,you haven't installed it correctly,so check your install.
Thanks. One more question. I have dynamic price updater, facebook pop up and fec checkout installed. All 3 of these have jscript files and all 3 files try to load when site is opened which make site speed slow, I was told I should have only 1 jscript file and other two I should rename so only one version load but when I do that module for which I rename file, it does not work. Do you know how I can make it to load one file and work for all so site speed does not slow?
Hi,
I install DPU on fresh Zencart with one theme that i buy. But on the firefox i see my ID of the element and on the place of my price the ID is #productPrices.productGeneral, i want to put the DPU work on here, i try to put on configuration "where to display the price" this= productPrices.productGeneral and #productPrices.productGeneral but nothing...on my theme i don't have the defult cartAdd...
Anyone help fix this?
Regards.
You should look for answers to this in a different thread.It's not really a question about this module.But have a look here.http://www.zen-cart.com/wiki/index.p...es_-_Javascrip
Not strictly true.Quote:
was told I should have only 1 jscript file and other two I should rename
If any of these mods require the same code/library, ie a copy of jquery, then you should be loading only one instance of that.
If the code in the other javascript files uses the same variable names outside functions then they should be changed to avoid conflicts.
So to start, load the jquery with one jscript file, then add the second jscript file and fix any problems, then add the the third and fix the problems.
When all works you can combine the three into one file if you wish but not the jquery one, leave that loading separately and first.
torvista
Thanks for input. Can I send you file and you merge them for me as I am not good combining them?
Its working ok only for one time. Once that it stops working, i go into the admin console and the dynamic price updater status returns to false by itself. Any idea whats going on?
My site: www.kite-addic***tion.es/tienda (delete the *)
Hello all.
First post, just fired up my first zencart web store. I installed Dynamic Price Updater so that when options were selected they would reflect in the price right away.
I'm just curious if anyone else has noticed a significant loss in speed to their site when they install this plugin? After I installed it, it went from near instantaneous, to some times as much as 3-4 seconds for the site to load.
See my posts on top. I am having same issue. because multiple jquery files are trying to upload which slows site speed. I have not come up with solution. If you do please let m
Are you sure its jquery? I just did a file search for jquery and the only return I got was a template I'm not even using.
May I have your site?
yeah, its www.lqskins.com/zencart (till I get the redirect going anyway)
I have 2 plugins, ezpopulate and the dynamic price updater. That's it.
I see only 1 jquery file so it must be somethingelse. Check with your hosting may be they have some issue causing slow loading. I think its on their end as I tried to run a test and it took forever.
Yeah, I have no idea. It could be the ezpopulate module, but it just seems less likely.
All I know is, it wasn't this slow when I first installed it.
its not ezpopulate . check with hosting.
Hi
I was just wondering if this thread worked for multiple attributes? For example, our desk units vary in price so if you order 6 instead of 1, the unit price is less. The dimension price (LxW) is determined by attribute and an option depending on a certain type of feet.
I just thought I would ask as this would save a lot of headaches! Also the demo link on the first page links to a 404 page.
Many thanks in advance for your reply.
I have it working for multiple attributes
http://www.motorvista.es/tienda/manu...ro-gpds-custom
It is not surprising the link isn't working any more, since it is 9 years old ;)
Here is a new demo site
I am testing this on my XAMPP server. So far so good, but how can I get the unit price to display instead of the actual total cart quantity.
A support guide for these settings would be brilliant. :laugh:
Hi
I have got this working ok on my test server, but when I uploaded to a web folder, I get the following window. Saying Status returned with nothing happening.
Attachment 13722
Please could anyone advise where I have gone wrong? The actual page can be viewed at: http://www.dvhdesign.co.uk/sdtest/in...&products_id=1
Thanks in advance.
Hi
I have uploaded it into the /sdtest/ folder which is the root of my shop.
There is another issue where I can't log into Admin, so will try to install site on actual server
Oh I am silly. :blush: I forgot to add non www and www urls in my config file. re-installed and everything works as it should now.
Is there a way @Design75 that the coding can be tweaked to include the individual unit price as well as the total product?
I am good with basic PHP so long as I can be shown what needs to be added to where.
Please advise.
Hello. I have problem with DPU on Google Chrome browser.
Everything works great with Firefox, but unfortunately on google chrome my responseXML is null :( (same on safari, and IE)?
Does someone have any idea why it could be null ?
Thanks a lot for your tip! I removed recurring scripts, but DPU still doesn't work. However i noticed that head tags was in <body> section ( like here http://www.zen-cart.com/showthread.p...-gt-lt-head-gt ) so i reupload language pack files, and now everything working great. :smile:
Sorry to have to ask again, but is there a way that the coding can be tweaked to include the individual unit price as well as the total product?
Basically where the unit price is listed in the shopping cart page, I would like it to sync with the options to give a unit price.
I am good with basic PHP so long as I can be shown what needs to be added to where. All I seek is good guidance. Please could anyone help?
Thanks in Advance
Hi
I have upgraded our current site from 1.3.9h to 1.5.1 on our test server followed by a fresh install of Dynamic Price Updater (this is the first time we have added DNU)
however, now I am getting the Status returned - Not found window as attached
Attachment 13767
I have read past threads that suggest a SEO redirect might be an issue, however, this particular add-on was removed during the upgrade - we have checked and there are no files remaining from this add-on.
I am running Stock By Attributes: Are there any known conflicts with this Add-on? Please could anyone advise.
OK There are two threads running for support on Dynamic Price Updater. Please could someone enlighten me if I am on the right on or not? Then at least I don't get into trouble for duplicating posts.
Ok, I have restored my website to how it was after I upgraded form 1.3.9h to 1.5.1. I have added the Dynamic Price Updater add-on again and this time, instead of the Status - Not found window popping up as soon as I visit the page, now it at least waits for me to select an attribute before coming up with the same.
The way these tests are going, it's looking like I am having to download and install 1.5.1 add the Dynamic Price Updater and then build the site around that. Not ideal but I may not have a choice. :no:
If anyone on the forum could help me out then I will make a generous donation. Good to my word. :please:
PM'd to you. it's not my actual site but a test one that should demonstrate the issue
Thanks so much ;)
And I got it working on my local XAMPP server, came to upload it and it doesn't work on my normal server (http://212.113.133.235/~shaftltd/)
:cry: Please could anyone help or offer some advice?
That was exactly the problem. I have loaded it onto a folder off the live server and both DPU and SBA works works works! :jump:Attachment 13811
One trivial thing: the top attribute is selected as default (attached) is there a way we can change this so the user has to select an option? Eg the top field reading Please select or something? Please advise.
All works fine. One last thing: I have the total show up twice on the page, is there a way I can change this so the Unit price for the product shows up as well as the total?
If that means extra development, then please do quote me on PM what it would cost or if it's something I can do myself (with instructions!).
Many thanks for your help Erik. :laugh:
Hi
Is it possible to get this plugin to change the pre-sale price as well as the discounted price?
We discount prices via the Specials feature. So we have the RRP with a line through it then the discounted price. I'm looking to have the pre-sale price change as well as the discounted price.
Many thanks
Warren
what would you say is the way around this:
http://cchairandbeauty.com/shop/inde...oducts_id=1374
if you choose 2 lengths the total should be nearly double however it's only adding the price difference.
Design75: i saw on your demo site that it is working with checkboxes and radios, where can i download that version cause mine is not working and i download the latest 3.0.1
but not with attributes with images i think, take a look at http://floreriabriceida.com/floreria...roducts_id=255