Page 17 of 169 FirstFirst ... 715161718192767117 ... LastLast
Results 161 to 170 of 1681
  1. #161
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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.
    Zack Coffman
    Producer/Director of Choppertown and Brittown

  2. #162
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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.

  3. #163
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    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

    Zen Cart and it's community are the best!!

  4. #164
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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.

  5. #165
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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

  6. #166
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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

  7. #167
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    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!

    Zen Cart and it's community are the best!!

  8. #168
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Thanks, I got the attribute discounts working now. Just need to get the product discounts working now!

  9. #169
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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:
    Code:
    var seeker = new RegExp(/\(\s*([+-]?)([^0-9]*)([0-9,]+\.[0-9]+)([^0-9)]*)\s*\)/);
    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.

    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.

  10. #170
    Join Date
    Jan 2008
    Posts
    35
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    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.

 

 

Similar Threads

  1. v151 Help with dynamic price updater
    By anderson6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jul 2014, 08:52 AM
  2. v139h Dynamic Price Updater 3.0 Help!
    By Newbie 2011 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Mar 2014, 06:46 AM
  3. Dynamic Price Updater Error
    By Inxie in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Oct 2012, 06:19 PM
  4. Alternative to Dynamic Price Updater?
    By thebigkick in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2012, 11:41 PM
  5. Dynamic Price Updater with href
    By maxell6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2012, 12:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR