Zen Cart Logo
Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 342,267

Results 221 to 240 of 1,701
29 Nov 2008, 4:07 PM
#221
jasonrocket avatar

jasonrocket

New Zenner

Join Date:
Oct 2008
Posts:
59
Plugin Contributions:
0

Dynamic Price Updater

exoticcorpse:

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 :-(

30 Nov 2008, 7:41 PM
#222
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

I have been trying fo a little bit and hopefully someone can answer a couple of questions.

  1. The price updater updates my top price even when I have selected attributes not to be added to the base price. Is there a way I can exclude select attribute prices from the price updater? I have certain items that need an extra handling charge via UPS and there appears no other way to add them to the total.

  2. A smaller problem but if someone has a solution it would be great. On products with no attributes I recieve an error on page in IE. "Error: '1' is null or not an object". Can this be fixed so it does not come up with an error?

Thank You
Paul

1 Dec 2008, 3:16 AM
#223
anna718 avatar

anna718

New Zenner

Join Date:
Dec 2008
Location:
Tasmania. Australia
Posts:
35
Plugin Contributions:
0

Re: Dynamic Price Updater

Thank you thank you and did I mention that i really want to say THANK YOU :clap:

I am setting up a similar store to yours with various sizes of canvas prints and greeting cards and this is the answer to all of my hair pulling over pricing structures.

2 Dec 2008, 1:35 AM
#224
anna718 avatar

anna718

New Zenner

Join Date:
Dec 2008
Location:
Tasmania. Australia
Posts:
35
Plugin Contributions:
0

Re: Dynamic Price Updater

This may have been said before, but I am a bit brain frazzled right now after finally pinning my problem down to this module.

Where I have the base price set to zero, the updater assumes a base price of the lowest value in the dropdown. With a test value of $10 set to lowest it will start out by suggesting that the price starts at $10, but when the $10 option is selected the displayed price becomes $20, and $10 is added to any other value selected as well.

Is there any way around this????

2 Dec 2008, 3:33 AM
#225
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

I don't know if this is what you are looking for but when adding an attribute a "+" or "-" sign will add or subtract from the base price. If you want a seperate price don't put anything in that field and it will see it as a new price by itself. Also, if you want a different attribute selected other than the lowest one I believe you can specify that the attributed is selected. You should also be able to specify the order as well.

2 Dec 2008, 4:06 AM
#226
anna718 avatar

anna718

New Zenner

Join Date:
Dec 2008
Location:
Tasmania. Australia
Posts:
35
Plugin Contributions:
0

Re: Dynamic Price Updater

Thanks Pablo. That sorted it out. Much appreciated. Now to get my head around all the other things I need to set up and figure out. 1 down hundreds to go :frusty:

7 Dec 2008, 5:05 AM
#227
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

I solved the Error on the page. I simply assigned products that are going to use the dynamic price updater a different product type. I used document product and changed the dynamic price updater file. I changed all of the 'productsGeneral' to 'docProductsDisplay' and then put the javascript file in the includes/modules/pages/document_product_info.

23 Dec 2008, 2:58 AM
#228
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome,
As I mentioned in the email. The pricing is not showing up. Receiving the following Debug:

Debug messages
SP Onload: Type: always
updSP: Duplicating price, by jove!
Onload quantity: Cart add INPUT discovered (1)

Would really appreciate any help on this. Did I turn something off in ADMIN?

Help !!

http://div8hardware.com/index.php?main_page=product_info&cPath=209_225_316_317&products_id=564

23 Dec 2008, 11:25 PM
#229
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

On that page I can see the price but I can't see the 'Add to Cart' bit... Is that what you mean?

There isn't anything in the Admin section for the Updater... It's entirely self-contained

If you can provide an image of what you expect to see that would be great

I apologise for being a little bit rubbish but the Xmas spirit may have crept up on me

Oh, also massive apologies to everyone for my terrible response times... I've been quite busy

Cheers

Dan

23 Dec 2008, 11:56 PM
#230
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Dynamic Price Updater

Yes that is correct. there is no pricing on the add to cart. Before it disappeared, the price would change on that page, with the attributes price changes. It doesn't do that now.
The image is whatever was basic loaded.
I just don't know if i turned off something that shows it in the admin.

Chrome:

Hi

On that page I can see the price but I can't see the 'Add to Cart' bit... Is that what you mean?

There isn't anything in the Admin section for the Updater... It's entirely self-contained

If you can provide an image of what you expect to see that would be great

I apologise for being a little bit rubbish but the Xmas spirit may have crept up on me

Oh, also massive apologies to everyone for my terrible response times... I've been quite busy

Cheers

Dan

24 Dec 2008, 1:27 AM
#231
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

That is odd

Um, the best I can say is that I'll have a look tomorrow... I'm possibly wobbly

I apologise once again for my lack-of-being-any-good-icity

Dan

26 Dec 2008, 3:33 PM
#232
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome,
Ok, I noticed THIS. Open up the website: http://div8hardware.com/index.php?main_page=product_info&cPath=209_225_316_317&products_id=566
Open ONE in Firefox, and open it again in Internet Explorer

Firefox shows the "dropdown" Hrz Nav bar, as well as our Logo in the header, but in the ADD TO CART tab, there is no Price Updater showing.

In I.E., the "dropdown" Hrz Nav does NOT drop down, and our LOGO is not showing. However, the good news is the Price Updater is showing and working.

I don't understand why some work in one and not the other

Help, from anyone please!
thanks,

Paul

26 Dec 2008, 7:05 PM
#233
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome,

If you have a moment...do you know how your updater could be modified to update the product listing page. I have another modification that I'm working with that will put the attributes on the product listing page but I wanted to be able to use the dynamic updater as well.

sample http://ameribestfasteners.com/catalog/index.php?main_page=index&cPath=1

thanks
Paul

26 Dec 2008, 8:56 PM
#234
lankeeyankee avatar

lankeeyankee

Totally Zenned

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

Re: Dynamic Price Updater

I have had some usability testers report mild confusion regarding the way the quantity is displayed next to the updated price since it's just (1) or whatever number. I changed it to display (1 item) or (2 items) etc. I added a conditional to display (item) if the quantity is 1 and (items) for all other quantities. Here's what I did:

On line 296 change:

document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ')' : '');

to:

if (quantity == 1) {
    document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' item)' : '');
    } else {
    document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' items)' : '');
    }

You can change the text to anything that you want. For instance, you could change it to display (Quantity x) by changing line 296 to:

document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (Quantity ' + quantity + ')' : '');

Thanks again to Dan the Man for this most excellent of mods!!!

Cheers, Happy Christmas and Merry New Year!!:laugh:

30 Dec 2008, 12:20 AM
#235
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

I was able to get the attributes to work on the product listing page but I am still stuck on getting it to work with the dynamic updater. Anyone have any ideas?

Here's the attribute/product listing modification
http://www.zen-cart.com/forum/showthread.php?t=98641&page=2

Thanks,
Paul

30 Dec 2008, 1:07 AM
#236
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Dynamic Price Updater

pacdad:

Chrome,
Ok, I noticed THIS. Open up the website: http://div8hardware.com/index.php?main_page=product_info&cPath=209_225_316_317&products_id=566
Open ONE in Firefox, and open it again in Internet Explorer

Firefox shows the "dropdown" Hrz Nav bar, as well as our Logo in the header, but in the ADD TO CART tab, there is no Price Updater showing.

In I.E., the "dropdown" Hrz Nav does NOT drop down, and our LOGO is not showing. However, the good news is the Price Updater is showing and working.

I don't understand why some work in one and not the other

Help, from anyone please!
thanks,

Paul

HELP !!! PLEASE

:censored:

30 Dec 2008, 3:20 AM
#237
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

Ok I have gotten a little further but it still doesn't change yet. I have gotten it to the point of return the debugging messages and it says it is updating but it isn't actually effecting anything.

Paul

30 Dec 2008, 9:52 PM
#238
misscotton avatar

misscotton

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi - I am trying to use the price updater with the stock by attributes dynamic drop down menus..here is the example page:
http://www.coyuchi.com/shop/index.php?main_page=product_info&products_id=12

The price updater is working, but it is somehow interferring with the dynamic drop downs from updating in sequencial order to reveal the attributes for color and size. I have set the product to have no base price and the lowest attribute to $.001.

Below are warning messages I got from Firefox 3.0.5 error console on Mac. (I don't necessarily think these warning are breaking the other script, but thought I'd include them just in case).

I will message the other mod author too, just thought I would try to see if there was anyone here that might have some advice.

Warning: reference to undefined property stk[frm['id[6]'].value]
Line: 623

Warning: assignment to undeclared variable nameArr
Line: 52

Warning: test for equality (==) mistyped as assignment (=)?
Line: 123, Column: 50
Source code:
if (temp[i].className = 'productSpecialPrice') {

If I can figure out how to do an example without the updatrer blocking the dynamic drop downs I will post link...sorry, fairly new to zen cart..thanks for your help...

31 Dec 2008, 7:39 AM
#240
ltcreations avatar

ltcreations

New Zenner

Join Date:
Apr 2008
Location:
Bellingham, WA
Posts:
10
Plugin Contributions:
0

Re: Dynamic Price Updater

I've read all of the posts regarding the price updater and even installed the script. Although it's something long overdue in the cart, and something wonderfully oversimplified, there is a HUGE problem that is intrinsic with Zen-Cart that is still not addressed.

The obnoxious "+" accompanied with the dollar figure is absolutely 'in the way' of the pricing. If there were a method to simply 'hide' the plus sign and the accompanying dollar amount that would make developers "and" customers happy.

Here's the problem. Customer, like it or not, are not as computer savvy as we would like. They look at the numbers and the plus sign and get confused. Look at http://www.peninsulaoutfitters.com/store/index.php?main_page=product_info&cPath=66_67_93&products_id=183 . The "Product Priced by Attributes:" is of no value. If it's off, the "price updater" script won't work. If the plus sign is eliminated and the price in the attribute is entered in place of the 'additional' sum, the "price updater" won't work.
Bottom line, unless the plus sign, additional sum 'and' the "Product Priced by Attributes:" are all working in tandem the "price updater" script won't work.

The easy solution, although I'm not saying I have figured out how to make the alteration, is to simply 'hide' the plus sign and accompanying dollar increase so that the pull-down menu only has the item displayed like http://www.peninsulaoutfitters.com/flyfishingproducts/simmsfreestone.html . It's basically the same JavaScript that is used, but the option value is not revealed. Can't Zen-Cart hide the option value somehow?