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

Dynamic Price Updater

Views: 342,268

Results 321 to 340 of 1,701
15 May 2009, 6:57 PM
#321
ghurty avatar

ghurty

New Zenner

Join Date:
Apr 2009
Posts:
16
Plugin Contributions:
0

Dynamic Price Updater

Thank you.

In the meantime is there a way of maybe pressing a button to get it to update without adding it to the cart?

Thanks

26 May 2009, 4:59 PM
#322
pink avatar

pink

New Zenner

Join Date:
May 2009
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

What ist the meaning of:

Onload quantity: Cart add INPUT discovered (1)
Initial phase failure: Price not found!

The jscript_updater.php I got from DynamicPriceUpdater_en_v092.

My System is zc 1.3.8a on Apache/1.3.34 (Unix) PHP/5.2.6.

26 May 2009, 8:22 PM
#323
pink avatar

pink

New Zenner

Join Date:
May 2009
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

ok. The "Initial phase failure: Price not found!"-failure I got. There are no SPAN-Tags nor classNames "productSpecialPrice", "normalprice" or "productPriceDiscount".

But why? The tpl_product_info_display.php has this in:

<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
  if ($show_onetime_charges_description == 'true') {
    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
  } else {
    $one_time = '';
  }
  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->

Any ideas?

27 May 2009, 12:58 PM
#324
pink avatar

pink

New Zenner

Join Date:
May 2009
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

No, it wasn't the span-tag. The problem is, that I use:

Currency: SFr. 
defaultThousands_Point: '

This looks for example like: SFr. 1'500.00 (or in HTML SFr. 1'500.00)

One pageload, the debug-msg is:

Onload quantity: Cart add INPUT discovered (1)
Onload base price: 500.00
Currencies Format: SFr. 1'000.00
Onload default currency locator: Left: SFr.  - Right: 1'000.00
Price Format: .
defaultDecimal_Point: .
Price Format: .
defaultThousands_Point: '
Onload SELECT: Name - id[3] : ID - attrib-3
Onload: --- End of loading procedures ---

But, if I click on the first select-option, the price ist calculated wrong!!!

Ex: On a product with price: SFr. 500.00 should be added just SFr. 1.29 to result in SFr. 501.29, but I do get fantastic SFr. 5.001'000.00!

The debug-log grows with:

updatePrice: SELECT ID attrib-3 is now NULL
updSP: Cancelled

Any hints?

29 May 2009, 3:44 PM
#325
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Unfortunately there isn't a workaround currently for this... The problem is being caused by the currency format... It's going to be one of the issues addressed in the upcoming release

Incidentally the last debug messages you have provided are standard:

updatePrice: SELECT ID attrib-3 is now NULL

This is assigning internal values to the attributes

updSP: Cancelled

This is saying that the 'second price' feature (used for displaying a price next to the add cart button) is not in use

Apologies for not having an immediate solution for this

Dan

29 May 2009, 4:12 PM
#326
garyh357 avatar

garyh357

New Zenner

Join Date:
May 2006
Posts:
20
Plugin Contributions:
0

Re: Dynamic Price Updater

I added the file in the correct folder, refreshed a product page, started choosing attributes, and I don't see any changes in price. Am I missing something? From the readme, it looked like all you had to do was install the file.

ZC: 1.3.8

29 May 2009, 9:12 PM
#327
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

That certainly should be the case

Can you provide a link to the page that's failing?

Dan

29 May 2009, 9:52 PM
#329
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Try this: there is a line in the Updater file that starts with

var _secondPrice = 'cartAdd';

Change 'cartAdd' to false

Don't use quotes or remove the semicolon (;)

Let me know if this works

Dan

30 May 2009, 3:15 AM
#330
garyh357 avatar

garyh357

New Zenner

Join Date:
May 2006
Posts:
20
Plugin Contributions:
0

Re: Dynamic Price Updater

That didn't work. Just to verify, I changed it to...

var _secondPrice = false;
30 May 2009, 10:49 AM
#331
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Sorry, I'm an idiot... I meant this line:

var _sidebox = 'manufacturers';

Set this to false as you did with the second price bit

Let me know how it goes

Cheers

Dan

30 May 2009, 2:52 PM
#332
garyh357 avatar

garyh357

New Zenner

Join Date:
May 2006
Posts:
20
Plugin Contributions:
0

Re: Dynamic Price Updater

That didn't work either.

Just for future clarification, I've set them both back to the default, since they didn't work.

31 May 2009, 10:05 AM
#333
byoriginaldesign avatar

byoriginaldesign

New Zenner

Join Date:
Apr 2009
Posts:
84
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan,

I was ignoring a script error, because I'm fairly sure I know the cause of it...

The line is: ```
while (objlab.nodeName != "LABEL" && Zaehler <= 3) {


I don't need the add-on to pull the attribute option name at all and am leaving the sidebox off due to the error being obvious there, but I'd love to get rid of the error altogether.  

Any thoughts?
The best example product page is: [http://www.wholesale4realtors.com/cart/index.php?main\_page=product\_info&cPath=65\_66\_81&products\_id=193](http://www.wholesale4realtors.com/cart/index.php?main_page=product_info&cPath=65_66_81&products_id=193)
2 Jun 2009, 3:18 PM
#334
devlyn avatar

devlyn

New Zenner

Join Date:
Jan 2006
Location:
Texas
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

I have just installed the Dynamic Price Updater v. 98 and it's working great as far as dynamically updating the price both at the top and bottom of the page. Awesome! Love it!

One problem. In the side box it is changing all the prices by two decimal points. A $45.00 shirt is showing up as $4500 in the side box. Any suggestions for fixing that?

http://www.oddbodkin.com/shop/index.php?main_page=product_info&cPath=4&products_id=402

Thanks for any help you can offer. :)

2 Jun 2009, 5:51 PM
#335
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi all

I wonder, could I ask a favour? For experimental purposes could you try replacing v0.98 with the older version in my signature? I'm unfamiliar with the specific issues and a comparison may well help

byoriginaldesign: I'm disinclined to think it's any HTML code you may have in a Javascript tooltip (it may be possible) but I'm thinking something else may be afoot (I still haven't had proper time to scan the code additions that have been made by web28 so who knows what I'm missing :smile:)

devlyn: Never seen that before! Try changing out the script to see what happens; if something else breaks at least I can narrow down the solution

Changing the file should be easy: rename the original file you uploaded to include an underscore (_) at the beginning then upload my slightly older file

Drop me a line here if this is possible

Apologies for the inconvenience

Dan

2 Jun 2009, 8:07 PM
#336
devlyn avatar

devlyn

New Zenner

Join Date:
Jan 2006
Location:
Texas
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

I have installed your older version and the price is fine, but doesn't work with the other types of attributes like the 98 version does. I believe it has something to do with how the 98 script calls up the decimal places which is different than yours. I've been comparing the two with winmerge but haven't really had much luck with it. I have no real knowledge of PHP except really basic stuff.

Any suggestions?

Chrome:

Hi all

I wonder, could I ask a favour? For experimental purposes could you try replacing v0.98 with the older version in my signature? I'm unfamiliar with the specific issues and a comparison may well help

byoriginaldesign: I'm disinclined to think it's any HTML code you may have in a Javascript tooltip (it may be possible) but I'm thinking something else may be afoot (I still haven't had proper time to scan the code additions that have been made by web28 so who knows what I'm missing :smile:)

devlyn: Never seen that before! Try changing out the script to see what happens; if something else breaks at least I can narrow down the solution

Changing the file should be easy: rename the original file you uploaded to include an underscore (_) at the beginning then upload my slightly older file

Drop me a line here if this is possible

Apologies for the inconvenience

Dan

2 Jun 2009, 9:35 PM
#337
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Working on it

Dan

2 Jun 2009, 11:43 PM
#338
devlyn avatar

devlyn

New Zenner

Join Date:
Jan 2006
Location:
Texas
Posts:
64
Plugin Contributions:
0

Re: Dynamic Price Updater

I had a friend look at the code (this is for V. 98) and he came up with this, which is working and eliminated a few bugs I was having.

I hope it helps others. :)

5 Jun 2009, 12:05 AM
#339
stevenlee avatar

stevenlee

New Zenner

Join Date:
Jun 2008
Posts:
85
Plugin Contributions:
0

Re: Dynamic Price Updater

Is there a way to make the prices adjust and calculate how much more or less a different option would be?

example:
Option A which costs $10 (shows -$10)
Option B is Selected which costs $20
Option C which costs $30 (shows +10)

thank you,
Steve

10 Jun 2009, 2:29 PM
#340
spiritcraft avatar

spiritcraft

New Zenner

Join Date:
May 2009
Posts:
34
Plugin Contributions:
0

Re: Dynamic Price Updater

I had blank page issues with the cart but fixed it... it was caused by extra lines at the end of rl.vat_info.php after installing the multilingual version... now working great, thank you for the great mod.