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
Views: 342,268
New Zenner
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
New Zenner
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.
New Zenner
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?
New Zenner
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?
Zen Follower
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
New Zenner
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
Zen Follower
Hi
That certainly should be the case
Can you provide a link to the page that's failing?
Dan
New Zenner
Zen Follower
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
New Zenner
That didn't work. Just to verify, I changed it to...
var _secondPrice = false;
Zen Follower
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
New Zenner
That didn't work either.
Just for future clarification, I've set them both back to the default, since they didn't work.
New Zenner
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)
New Zenner
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. :)
Zen Follower
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
New Zenner
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
Zen Follower
Hi
Working on it
Dan
New Zenner
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. :)
New Zenner
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
New Zenner
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.
Fields marked required must be completed.
Tell staff why this post should be reviewed.