After re-reading the entire thread I re-tried the "Lightbox fix" seems to have worked.
prArr[i] == ''
This has to be inserted exactly for it to work.
After re-reading the entire thread I re-tried the "Lightbox fix" seems to have worked.
prArr[i] == ''
This has to be inserted exactly for it to work.
Hi there,
Thank you for making this great code, I have been really stumped by a problem though...
My radio buttons don't cause the sidebox to change at all - not even the total changes. Only the quantity works. The Products are Priced by Attributes. There are 2 attributes, off 0 and on +8. Everything else is working, I just can't get the attributes to show up in the price.
debug:
Onload quantity: Cart add INPUT discovered (25)
Onload base price: Price found: 50
Onload RAD/CH: Price found: 50
Onload RAD/CH: Price found: 50
Onload RAD/CH: Price found: 50
Onload RAD/CH: Name - id[2] : ID - attrib-2-1
Onload RAD/CH: Name - id[2] : ID - attrib-2-6
Onload RAD/CH: Name - id[3] : ID - attrib-3-2
Onload RAD/CH: Name - id[3] : ID - attrib-3-5
Onload RAD/CH:
Onload RAD/CH:
Onload RAD/CH:
Onload RAD/CH: Name - id[2] : ID - attrib-2-1
Onload RAD/CH: Name - id[2] : ID - attrib-2-6
Onload RAD/CH: Name - id[3] : ID - attrib-3-2
Onload RAD/CH: Name - id[3] : ID - attrib-3-5
Onload: --- End of loading procedures ---
Please note, I have tried select boxes and checkboxes, none of them have an effect. Any help would be great.
Are you using the latest version? Are you using lightbox or IH2?
I have found, at least with my heavily modified cart, that I have to have an attribute image for each attribute to get the updater to work. Give it a try. If you don't want to have images, I use a 1x1 px transparent gif image for those attributes without pics.
Another thing to try, is have +0 instead of 0, and on my cart I have to use +.0001 and then it all works fine.
Let me know if that works.
Matt
Thanks for your reply!
Well, I tried both but it didn't resolve the issue. I think I know what it is, this code is matching text on the page, but my text is in Japanese, this code isn't going to allow for Japanese:
var seeker = new RegExp(/\(\s*([+-]?)([^0-9]*)([0-9,]+\.[0-9]+)([^0-9)]*)\s*\)/);
I will try to figure it out, if anyone has a suggestion, please help.
Well, I changed all the attribute text to Englsh and I'm using drop downs instead. Have images on the attributes and used +0.0001 for the 0 attributes.
Now I am getting closer, but...
Onload quantity: Cart add INPUT discovered (50)
Onload base price: Price found: 50
Onload SELECT: Name - id[2] : ID - attrib-2
Onload SELECT: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload SELECT: Name - id[2] : ID - attrib-2
Onload SELECT: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload RAD/CH: Name - id[3] : ID - attrib-3
Onload: --- End of loading procedures ---
updatePrice: SELECT ID attrib-2 is now NULL
createSB: Sidebox created!
updSP: Cancelled
updatePrice: SELECT ID attrib-2 is now NULL
updSP: Cancelled
updatePrice: SELECT ID attrib-3 is now NULL
updSP: Cancelled
The NULL error occurs when I toggle the drop down between values. Any ideas? My version is 1.3.0.2
Finally got it working. Just in case anybody else is trying to do it, to handle the yen currency, I changed the RegExp to:
new RegExp(/\(\s*([+-])([0-9]+)([^0-9)?]*)\s*\)/);
Removed the 'r' value after the currency, it doesn't exist for the yen currency.
Changed:
prArr[objSel[i].id]['p'] = Number(matches[3].replace(/,/, ''));
to
prArr[objSel[i].id]['p'] = Number(matches[2].replace(/,/, ''));
and priceAdj = Number(matches[3].replace(/,/g, ''));
to
priceAdj = Number(matches[2].replace(/,/g, ''));
Anybody know how I can edit this code to recognize quantity discounts on one of the attributes?
http://www.sixcentpress.jp/stage/ind...&products_id=1
I'm happy to hear that you got it working with the yen!
I think that there has always been an issue with sales and discounts. I know that the author was looking into working out those bugs but he hasn't been around much lately.
If there is any other javascript wizard that can take up the job of finishing this fantastic mod, please help us out!![]()
Thanks, I got the attribute discounts working now. Just need to get the product discounts working now!
Hello,
I'm working on a realization of a german shop with zencart. There we change the signs for the Decimal Point and the Thousands Point at the currencies configuration. That means our Decimal Point ist "," an our Thousands Point is ".".
If I adjust this in the admin menu the dynamic price updater gives me wrong results. I've tried to edit the jscript_updater.php but without success.
from:
to:Code:var seeker = new RegExp(/\(\s*([+-]?)([^0-9]*)([0-9,]+\.[0-9]+)([^0-9)]*)\s*\)/);
It would be nice if anyone can help me. What changes I have to realise to get the right result.Code:var seeker = new RegExp(/\(\s*([+-]?)([^0-9]*)([0-9\.]+,[0-9]+)([^0-9)]*)\s*\)/);
By the way, I'm very pleased about that the download works again. Thanks to Chrome.
Curiosus
Last edited by Curiosus; 26 Apr 2008 at 07:24 PM.
First of all, thanks to Chrome for the fantastic mod.
I am, however, having a few small problems with it, and after reading through the entire thread, I have not been able to find a solution. The relevant URLS are pasted below and I have switched the debugger back on.
http://buildingbadges.com/shop/100-x...ges-p-567.html
1) The main problem is that if any attribute is selected that has no price attached to it, the $ sign is dropped from the price. I saw this mentioned earlier in the thread (here), but it seemed to get lost amongst a myriad of requests.
http://buildingbadges.com/shop/25-x-...dges-p-30.html
2) On products that have no priced attributes, changing the "Add to Cart" quantity causes the price to disappear completely. It still appears in the SideBox correctly, although with no $ sign.
Debugger says the following:
Quantity change: 2
updSP: Cancelled
If anyone could offer any advice that would be most appreciated.
The mod is a great idea and I really want to put it to use on my future Zen Stores as it does exactly what I need... it's just that these little things are currently making it unusable in a live environment.
Thanks in advance.
Last edited by exoticcorpse; 21 May 2008 at 07:57 AM.
Bookmarks