Re: Dynamic Price Updater
Hi
stevenlee: Are you talking about priced by attributes? I was under the impression that the Updater worked for that... If not please enlighten me and it can go in my ever-increasing list for V1 (proper)
spiritcraft: Ah, yes, the old 'headers sent' error... The blank lines at the end of the file may have been causing the session headers to fail... A trick for anyone experiencing a blank page is to add the following line to index.php (before the require for application_top.php)
Code:
define('STRICT_ERROR_REPORTING', true);
This should tell you the error that is occurring
HTH
Dan
Re: Dynamic Price Updater
Quote:
Originally Posted by
devlyn
I had a friend look at the code (this is for V. 98) and he came up with this, which is working and eliminated a few bugs I was having.
I hope it helps others. :)
I might just be stupid but here it goes...
This looks and works great for me in IE.. but in Firefox I get the price showing up twice covering over the product description with one.. I'm using Cherry Zen template...
Any ideas??
www.delmarvatrophy.com
Tom
Re: Dynamic Price Updater
Hi
You might want to try changing this line:
Code:
var _secondPrice = 'cartAdd';
to
Code:
var _secondPrice = false;
That should stop the erroneously located price display from appearing
Dan
Re: Dynamic Price Updater
Quote:
Originally Posted by
Chrome
Hi
You might want to try changing this line:
Code:
var _secondPrice = 'cartAdd';
to
Code:
var _secondPrice = false;
That should stop the erroneously located price display from appearing
Dan
:clap: You my friend are a genius.. worked flawlessly.. thank you!
Re: Dynamic Price Updater
:cool: Happy to help :smile:
Dan
Re: Dynamic Price Updater
Hello-
I uploaded the code to my website but the price updater seems to be working quite sporadically - I had it working once or twice and then it stopped working. Any ideas why it could be messing up?
http://redeyecomputers.com/store/ind...&products_id=1
Thanks
Re: Dynamic Price Updater
I got the price updater to work; however, there is an issue.
when you select an item off the default it correctly subtracts the correct sum of money, however if you switch back to the default selected item the price does not adjust back up accordingly.
http://redeyecomputers.com/safe/inde...&products_id=1
Re: Dynamic Price Updater
Hi,
Thanks so much for the enormous amount of time you've spent on this. I would love to use it, but I'm having a tough time getting it to work for some reason. I've gone back and forth over this forum, and tried a few things, but to no avail.
Here is a link to the site I'm trying to make it work on. http://blackoliveeastnursery.net/zen...oducts_id=2231
I haven't added attributes to other pages, so I know it won't work on them, but I thought I would try it with this page first.
I have my variables set as listed below:
thank you if you are able to help.
var objPrice, origPrice;
var defaultCurrencyLeft, defaultCurrencyRight;
defaultCurrencyLeft = defaultCurrencyRight = '';
var quantity = false; // do not alter this
var showQuantity = true; // show the quantity the customer has requested in the main price header
var showQuantitySB = true; // show the quantity the customer has requested in the sidebox
var prArr = nameArr = new Array(); // holds an array of prices to be adjusted (for multiple price adjustments)
var _oflag = false; // do not alter this
var seeker = new RegExp(/\(\s*([+-]?)([^0-9]*)([0-9,]+\.[0-9]+)([^0-9)]*)\s*\)/);
// Updater sidebox settings
var _sidebox = false; // set this to: false - don't use or the ID of the sidebox you want the display to insert above (must be exact)
var objSB = false; // this holds the sidebox object
// Second price setting
// the following settings allow a second price to be displayed... if a page is very long this allows you to add another price display
// thanks to Ryk on the Zen Cart forums for the idea and pointing out the issue
var _secondPrice = false; // set this to either false for disabled or supply the ID of an element for the price to appear BEFORE... for example, cartAdd
var _SPDisplay = 'always'; // governs the behaviour of the second... 'always' permanently displays and 'update' shows the second price only when an attribute is selected
var objSP = false; // please don't adjust this
// debug settings
var _debug = true; // set to false to disable debug output
var _db = '';
var _dbdiv = false;
Re: Dynamic Price Updater
Hi
@Nlussi219: Sorry for not responding sooner... The issue you are experiencing is a fairly common one... If I'm not mistaken the fix (which was not discovered by me) is to set your 0 cost attributes at 0.0001... This should force the update
@lndlyb4: I'll take a better look at your site later today but on first inspection I can't see that there is anything for the Updater to do on the page you have linked to... I will apply for an account later so I can see if anything changes (the 'login for price' will immediately scupper the Updater)... I also noticed that the dropdown has no prices listed in it but this may be because I need to log in
Watch this space!
Cheers
Dan
Re: Dynamic Price Updater
Thanks Chrome,
Very kind of you to respond.
I'll keep my eyes open for your comments.