Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 343,202

Results 101 to 120 of 1,701
14 Nov 2007, 1:15 AM
#101
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Dynamic Price Updater

To further my earlier post, here is an error message that Firebug gives me in Firefox 2.0.0.2:

prArr[i].p has no properties
http://www.drumfactorydirect.com/drum-parts-6/hoops-7/triple-flange-8/1410c-9.html
Line 441

and this is the line of code it refers to:

newText += prArr[i]['n'] + (prArr[i]['p'] != 0 ? ' - ' + (showQuantitySB ? quantity + 'x ' : '') + prArr[i]['l'] + prArr[i]['p'].toFixed(2) + prArr[i]['r']: '') + '<br/>';

The PriceUpdater debug has this to say:

SP Onload: Type: always
updSP: Duplicating price, by jove!
Onload quantity: Cart add INPUT discovered (1)
Onload base price: Price found: 12.55
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
updateR: Adj - Radio - Name: id[1] - Price adjust: 12.55 - Mode:
updatePriceNow: Item:
chrome - Mode: Base - Altering base to 12.55
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined -
updatePriceNow: Item: undefined

Hope that helps,

Matt


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

14 Nov 2007, 8:44 PM
#102
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Dynamic Price Updater

[quote=lankeeyankee;459599]http://musicalinstrumentsource.com/index.php?main_page=product_info&cPath=1&products_id=1
quote]

I had to re-install zencart on this domain, it's my live testbed, so here's the new link:

http://musicalinstrumentsource.com/index.php?main_page=product_info&products_id=1

Matt


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

20 Nov 2007, 11:07 PM
#103
xtreme_exhibits avatar

xtreme_exhibits

New Zenner

Join Date:
Nov 2007
Posts:
17
Plugin Contributions:
0

Re: Dynamic Price Updater

Excellent mod!

I have a question, though, can you confirm whether or not the Price Updater is functioning with sale items yet? I know that it was in the works but after installing and messing with this mod, i'm finding its not working for me. It could be me though :) But right now its reverting to the original sales price whenever i select an attribute.

http://extremelytropical.com/index.php?main_page=product_info&cPath=5_2_9_18_24&products_id=62

thanks!
Sarah

26 Nov 2007, 11:30 AM
#104
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

Re: Dynamic Price Updater

Brilliant mod!

Is there a way to add the Price Breakdown to the main page rather than as a sidebox?

Many thanks in advance.

Crazy


3 Dec 2007, 8:11 PM
#105
pinwest avatar

pinwest

New Zenner

Join Date:
Nov 2007
Posts:
20
Plugin Contributions:
0

Re: Dynamic Price Updater

I just wanted to thank you Chrome for this. It was just what I needed and works perfectly. Again, thank you.

David...

4 Dec 2007, 5:17 AM
#106
pinwest avatar

pinwest

New Zenner

Join Date:
Nov 2007
Posts:
20
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello,

I spoke too soon. I am having one problem that I cannot figure out.

All my Attribute Values add up correctly when selected but my base price which is selected under one of the attributes is not carried over to the checkout.

Not sure if this make sense but basically the checkout price is everything selected minus the designated base price.

Any suggestions ?

Thanks,

5 Dec 2007, 10:39 PM
#107
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi all

And firstly I'm really sorry I've been so negligent of the thread... I've been swamped, but I know there's no excuse

Thanks Matt for that excellent piece of information... I've never installed Lightbox nor considered it to be an issue so I'd never have spotted it... Good call

Sarah, I'm sorry the mod still doesn't support sale items

Still Crazy, great idea! I'll try to build that in

Pinwest, can you provide a URL for me to have a look at? You can PM it to me if you prefer

Thanks to all for your support... Over the next few days (honest this time) I'm going to start a redesign, hopefully with the help of Snorkpants

Dan

10 Dec 2007, 4:08 AM
#108
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan,

Does this work with 1.3.8? I have the file uploaded and when I change the attribute I get something like this:
Your price: undefined30.00undefined (1)

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

10 Dec 2007, 4:16 AM
#109
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

BTW, here goes the debug:

[B]SP Onload:[/B] Type: always
[B]updSP:[/B] Price node cloned!
[B]updSP:[/B] Node inserted successfully
[B]updSP:[/B] Duplicating price, by jove!
[B]Onload quantity:[/B] Cart add INPUT discovered (1)
[B]Onload base price:[/B] Price found: 95
[B]Onload SELECT:[/B] Name - id[14] : ID - attrib-14
[B]Onload SELECT:[/B] Name - id[15] : ID - attrib-15
[B]Onload SELECT:[/B] Name - id[20] : ID - attrib-20
[B]Onload SELECT:[/B] Name - id[12] : ID - attrib-12
[B]Onload SELECT:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]Onload RAD/CH:[/B] Name - id[10] : ID - attrib-10
[B]updatePrice:[/B] SELECT ID attrib-15 is now NULL
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updatePriceNow:[/B] Item: undefined - 
[B]updSP:[/B] Duplicating price, by jove!

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Dec 2007, 4:29 PM
#110
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Yellow

I haven't had a chance yet to even find a place on the server for 1.3.8 lol

Can you post a link to the site where the Updater is? I know I always ask for this, but it can be much easier to observe the behaviour in situ

Cheers

Dan

12 Dec 2007, 8:21 PM
#111
clarkjarvis avatar

clarkjarvis

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

Re: Dynamic Price Updater

Dan, Matt,

To correct the issue with Lightbox (assuming that is the issue) I modified the jscript_updater.php as follows:
There are two places in the code that check if: (prArr[i] !== null)
I changed these two instances to: (prArr[i] == '')

This seems to work. I have not fully tested all use cases, but so far so good.
Dan, do you foresee any issues with using (prArr[i]=='') in place of (prArr[i]!==null)?

Thanks,
Clark

12 Dec 2007, 8:23 PM
#112
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

The site:
Edited: PM sent

I wonder if this has anything to do with lightbox.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Dec 2007, 8:39 PM
#113
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi

Clark, time will tell on that... The Updater checks for a explicit NULL value and Lightbox could be affecting that... I'm genuinely not sure how (I thought it may be an event registration problem)... Please keep me updated as to how it goes; it may well work for other people

Feedback would be much appreciated :smile:

Yellow, I'm going to have a look at the site now... I'll let you know if I find anything... You might want to try Clark's solution to see if it works for you

News as I have it

Cheers

Dan

12 Dec 2007, 8:54 PM
#114
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

I tried the changes suggested by Clark but it doesnt seem to fix the error. I turned off lightbox for now, Price Updater is still not working however. But it may make things easier to debug.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Dec 2007, 9:12 PM
#115
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Dynamic Price Updater

clarkjarvis:

Dan, Matt,

To correct the issue with Lightbox (assuming that is the issue) I modified the jscript_updater.php as follows:
There are two places in the code that check if: (prArr[i] !== null)
I changed these two instances to: (prArr[i] == '')

This seems to work. I have not fully tested all use cases, but so far so good.
Dan, do you foresee any issues with using (prArr[i]=='') in place of (prArr[i]!==null)?

Thanks,
Clark

YES!!!!!! Thank you soooo much Clark!! That did it and now Lightbox and Updater are playing nicely together!:clap::clap::clap:

Matt


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

12 Dec 2007, 9:17 PM
#116
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Nice one Clark! Looks like you may have fixed that one :smile:... I have no idea at all why that is :lol:

Yellow, I do have one idea for the moment... It may not work, but try finding the line that says

var seeker = new RegExp(/(([+-]?)([^0-9])([0-9,]+.[0-9]+)([^0-9)]))/);

and change it to:

var seeker = new RegExp(/\(\s*([+-]?)([^0-9])([0-9,]+.[0-9]+)([^0-9)])\s*)/);

Let me know what happens

Dan

12 Dec 2007, 9:29 PM
#117
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome: I applied your change your change and it price doesnt get updated anymore.
So I reverted it back, re-apply Clark's fix and it's partially working right now. Say if you add an attribute that costs 30 you will get:
Your price: +$30.00 (1)

Weird.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Dec 2007, 9:38 PM
#118
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Yellow

I think I might have had an idea... This does mean altering your attributes slightly, but try removing the brackets from around the text in the Extra Fabric attribute

Sorry this is being such a pain

Dan

12 Dec 2007, 9:47 PM
#119
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

No, I must thank you for taking your precious time to help me here.

"try removing the brackets from around the text in the Extra Fabric attribute"
If the brackets are causing the error, wouldn't the one for Custom Topper, which does not have the brackets should work fine?

BTW, you can visit the store before upgrading to 1.3.8 and adding several features by removing the "testsite" part from the link and you will see the Price Updater is working nicely.

The only possible problem I can think of now is the Lightbox.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

12 Dec 2007, 9:56 PM
#120
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Dynamic Price Updater

One of the changes I made was to remove some sideboxes, and on the PU debug I saw:
createSB: Sidebox could not be created!

Can this be a problem?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me