Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 343,197

Results 21 to 40 of 1,701
14 Jul 2007, 11:03 PM
#21
chrome avatar

chrome

Zen Follower

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

Dynamic Price Updater

Ajeh:

So far it looks good ... thanks for the effort in getting this on track ... :smile:

Wow that is high praise... Thanks :smile:

If you don't find 101 faults I'll be surprised lol... Please don't BrowserPool me :smile:

Thanks for all the feedback and I'll try to address any faults or additions as quickly as I can

Dan

15 Jul 2007, 3:30 AM
#22
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Dynamic Price Updater

Lucky for you Dan I am very limited these days on my time on the forum due to my mom's health ... but I will get around to breaking ... er ... testing this when I can ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Jul 2007, 4:19 PM
#23
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

I hope your Mum will be ok, Ajeh

I have added what could possibly be a totally pointless addition to the Updater... For this reason I've made it switch off and on-able

When a user selects an attribute a sidebox is created that displays information of all selected attributes including their prices and a total... The sidebox can be placed anywhere in either the left or right column or switched off entirely... At the moment this is purely proof of concept and lives only on my test site... Once I've had a chance to test more thoroughly I'll include it in the downloadable file... Even if it's never used it can still stay there :smile:

To see a working version please visit http://www.studio5.uk.com/index.php?main_page=product_info&cPath=2&products_id=3

When you select an attribute the Price Updater sidebox will apear (in theory :smile:) in the left column above Information... This has been tested in IE7, FF2 and Opera9... It also still works with products from the shopping cart

Installation will remain exactly as before: just upload the file

CSS declarations can be attached to the sidebox in the normal way (base ID is updaterSB)

Please test it if anyone has time and let me know any thoughts or problems

Oh, I haven't forgotten about the radio/check box awareness of Updater; I just haven't got any products that have those particular types of attribute yet... I may well set this up tonight and see if I can get it working

Dan

16 Jul 2007, 4:59 PM
#24
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Dynamic Price Updater

To see a working version please visit **http://www.studio5.uk.com/index.php?...roducts_ id=3**
Visited, tested, working fine using attributes allowed for selection..
Tried several options...
Brilliant idea.. appearance of side box is an excellent addition..
Thanks for sharing..look forward to this new release.
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

16 Jul 2007, 5:30 PM
#25
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Thanks Misty :smile:

Based on your response I've tidied up the code a bit and added to the readme included in the ZIP

The file, as ever, can be found at http://chrome.me.uk/PriceUpdater.zip

As stated installation is as easy as before

Please let me know any problems or thoughts

Dan

16 Jul 2007, 5:50 PM
#26
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Dynamic Price Updater

Thanks Dan..if/when you add radio/checkbox option, could you
announce in this thread please? No rush..any spare few minutes
you may get is fine...

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

17 Jul 2007, 10:07 AM
#27
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Did a lot of work on this last night... While configuring for radio/checkboxes I enountered loads of issues, which I hope are now fixed... Here's a list of changes:

Updater can now identify all (I think) attribute types

As well as being able to add attribute values, Updater can now subtract negative values and alter the base price (if product is priced by attributes)

Subtracted values are shown in red in the sidebox

There is at least one issue that I know of and that is items in a sale don't work (yet)... This is because the updater can't 'read' the price from the header... I'll fix this soon (I hope)

Could I please ask for some testing on this? I've tried as many options as I can but there's no substitute for external input :smile:... I've put up a test shop at http://chrome.me.uk/shopdev/ for the new features (didn't want to risk anything on a live shop)

If there don't appear to be any issues with this current version I will add the feature that links to the Quantity box and release a tentative full version

Thanks all

Dan

17 Jul 2007, 10:52 AM
#29
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

enderandrew:

However, it does not appear to work here:

http://chrome.me.uk/shopdev/index.php?main_page=product_info&products_id=97

Aha... Now you have found the Achilles heel of the Updater... It currently can't read from pages that have a discount on them... In these circumstances the Updater won't load (it will gracefully exit)

This is something I'll (hopefully) get working over the next day or 2

Thanks for the feedback!

Dan

17 Jul 2007, 11:52 AM
#30
enderandrew avatar

enderandrew

New Zenner

Join Date:
Jun 2007
Posts:
46
Plugin Contributions:
0

Re: Dynamic Price Updater

I tested it quite a bit on the demo site, and that seemed to be the only snag. I installed an earlier version of this, and I look forward to the updated version.

Thank you for the work!

17 Jul 2007, 2:04 PM
#31
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Updated file for download at http://chrome.me.uk/PriceUpdater.zip

There are 2 files included (/includes/modules/pages/product_info/)... jscript_updater.php and jscript_updater_new.php

The _new file includes the radio/checkbox capabilities and is currently very much in test mode... Delete the file you do not want to use then upload the one you do want to use and that's all

If you have downloaded a previous version and have it in place I recommend renaming the original file (j_script_updater.php is a good choice) then uploading the new file... This means if any issues arise restoring the original configuration should be easy

For clarification, at this point there are 2 known issues: Doesn't work for items on sale; Doesn't identify multiple cart additions... These are in the pipeline

Any feedback or bug reports would be greatly appreciated

Dan

18 Jul 2007, 11:49 AM
#32
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

I've posted (yet another) update for this mod (http://chrome.me.uk/PriceUpdater.zip) which can be seen working at http://chrome.me.uk/shopdev/

Hopefully I've fixed a few problems (most likely created a few more)... The Updater can now work with [some] sales and is quantity-aware

Prices will take into account the quantity the user has specified and adjust themselves accordingly... The quantities can be displayed in the main price header and the sidebox (these can be switched on or off independently)... Read the included readme for more information or post here if what I've written doesn't make sense :smile:

The Updater should now be aware of all radio/checkboxes

Also I've updated so that, hopefully, the currency shouldn't be an issue

Yet again, all feedback and bug reports are very much appreciated and I thank you all for your patience

Dan

18 Jul 2007, 1:55 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Dynamic Price Updater

Not keen on Priced by Attribute ... :cry:

The Gift Certificates with attributes is a good example ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2007, 2:07 PM
#34
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Ajeh:

Not keen on Priced by Attribute ... :cry:

The Gift Certificates with attributes is a good example ...

Interesting point there because the product is listed as starting at 5 then the 1st attribute says 5 (+5)

To my mind the first attribute should be 5 (+0) as nothing is being added to the base price... Second attrib would then be 10 (+5), 15 (+10) etc.

That's how I coded Updater to function (technically, the Updater finds 2 values but offers precedence to the value in parantheses for the above reason)

at http://chrome.me.uk/shopdev/index.php?main_page=product_info&cPath=25&products_id=36 the base price is adjusted but no price adjustment (from base) is listed

I have to admit I'm hazy on the attributes and GVs so I've based the logic model on what I've seen

If I've got it a bit wrong I will recheck my regex's and release a new version :smile:

Cheers for the feedback!

Dan

18 Jul 2007, 2:16 PM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Dynamic Price Updater

The Priced by Attribute is usually products_price 0.00 where the lowest price of each Option Name(s) Option Value is used to make the base price ...

Probably that product should be done without the prefixes on the attributes to avoid visual confusion ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2007, 2:47 PM
#36
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Ajeh:

The Priced by Attribute is usually products_price 0.00 where the lowest price of each Option Name(s) Option Value is used to make the base price ...

Probably that product should be done without the prefixes on the attributes to avoid visual confusion ... :smile:

Incidentally, the removal of visual confusion would also fix the Updater... It uses the +, - or lack of prefix as the definitions of how the value should be handled

I just threw the default products included with the installation in there so I had something to work with

I'll do some more investigating and strengthen some of the routines

Thanks!

Dan

18 Jul 2007, 2:50 PM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Dynamic Price Updater

That could run into issues ...

Some sites use the + or blank for add and the only guarantee on a prefix is where - means subtract ...

Again we run into the visual issue here ... :blink:

This is one of the reasons the IF on attributes was switched way back in v1.x to be if negative do this otherwise do that ... so the default would be add ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2007, 3:23 PM
#38
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Ah

So it seems the Updater is doomed to only work with some installations

Without being able to rely on the prefix, and owing to the way it works, the Updater can never be guaranteed to be stable

Oh well, it was a nice idea... I'll leave the file in place so people can try it to see if it works for them... I'll continue to offer support here and additions if anyone wants them

Dan

18 Jul 2007, 3:58 PM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Dynamic Price Updater

Bet this means you don't want me to even mention TEXT attributes charged by letter or word, eh? :lamo:

Ain't if fun to be a coder?! :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2007, 4:01 PM
#40
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Aha! I'd spotted the text attributes and was scratching my head for a theory... I had half of one but hey lol

Yep coding is ace :smile: lol

Dan