Results 1 to 10 of 1684

Hybrid View

  1. #1

    Default Re: Dynamic Price Updater

    Thanks for your great add-on

    Is there a way for the Dynamic price updater to include the quantity discounts? I can't seem to be able to do this.

    Thanks.

  2. #2
    Join Date
    Jul 2005
    Location
    Wales, UK
    Posts
    382
    Plugin Contributions
    1

    Default Re: Dynamic Price Updater

    Hi Jason

    The discounts are still being worked on when I can find time

    I'll update the thread as soon as I have some news

    Sorry this is taking so long

    Dan

  3. #3

    Default Re: Dynamic Price Updater

    Hi Dan Thanks for the response.

    For now I'm going to try and add the discount amount to the end of the price with the javascript below.
    -------------------------------------------------
    function makeChange() {
    var addDiscountHere = document.getElementById("addDiscountHere"); //get place to add discount amount

    var quantity02 = quantity;
    if (quantity02 > 9) {
    var discountAdded = "-10%";
    } else {
    var discountAdded = "no quantity discount";
    }
    addDiscountHere.firstChild.nodeValue = discountAdded;
    }
    -----------------------------------------------------

    I've used your quantity variable which works fine. I'm not sure how you get the change to update as well as it does after quantity amount is altered. Is there any chance that you could tell me so I could use that on my baby function.

    Thanks Jason

  4. #4

    Default Re: Dynamic Price Updater

    I'm now updating it with setTimeout function to get it to update.

    setTimeout("makeChange()", 500);
    function makeChange() {
    var addDiscountHere = document.getElementById("addDiscountHere"); //get place to add discount amount

    var quantity02 = quantity;
    if (quantity02 > 9) {
    var discountAdded = "-10%";
    } else {
    var discountAdded = "no quantity discount";
    }
    addDiscountHere.firstChild.nodeValue = discountAdded;
    setTimeout("makeChange()", 500);

    }

  5. #5

    Default Re: Dynamic Price Updater

    When I remove the code in attributes.php to take off the prices after attributes, the dynamic price updater stops working. Is there a way around this. I'm currently trying to get tags to wrap the prices and then change the colour to white so the text is not visible.

  6. #6
    Join Date
    Jul 2005
    Location
    Wales, UK
    Posts
    382
    Plugin Contributions
    1

    Default Re: Dynamic Price Updater

    Hi

    Any chance you can provide a link to non-working code? I might be able to figure out what's going wrong

    Dan

  7. #7
    Join Date
    Jan 2008
    Posts
    35
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Quote Originally Posted by JasonRocket View Post
    When I remove the code in attributes.php to take off the prices after attributes, the dynamic price updater stops working. Is there a way around this. I'm currently trying to get tags to wrap the prices and then change the colour to white so the text is not visible.
    Not sure what you're trying to do exactly, but it might be an idea to put div tags around the price and then set the CSS to display:none to stop the price from displaying but still allow the calculations to work correctly...?

  8. #8

    Default Re: Dynamic Price Updater

    Quote Originally Posted by exoticcorpse View Post
    Not sure what you're trying to do exactly, but it might be an idea to put div tags around the price and then set the CSS to display:none to stop the price from displaying but still allow the calculations to work correctly...?
    Hi exoticcorpse

    I spent ages trying to add a tag around the price. I finally did (i used an em tag), but then realised that css has no affect on tags inside the option tag.

    The below css has no affect

    #productinfoBody #productAttributes select option em {
    display: none;
    background-color: white;
    }

    I didn't know that before :-(

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

    Default Re: Dynamic Price Updater

    Quote Originally Posted by JasonRocket View Post
    I'm now updating it with setTimeout function to get it to update.

    setTimeout("makeChange()", 500);
    function makeChange() {
    var addDiscountHere = document.getElementById("addDiscountHere"); //get place to add discount amount

    var quantity02 = quantity;
    if (quantity02 > 9) {
    var discountAdded = "-10%";
    } else {
    var discountAdded = "no quantity discount";
    }
    addDiscountHere.firstChild.nodeValue = discountAdded;
    setTimeout("makeChange()", 500);

    }
    Where did you assign "addDiscountHere"? I would like to get this to work with quantity discounts, too. I see that your function has hardcoded values so I would have to clone the function using a different element ID and set different discount values for the different quantity discounts we offer.

    Thanks!

    Matt

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

 

 

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

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