You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I didn't find this code:
<script type="text/javascript"> updatePrice(); </SCRIPT>
in your source code anywhere. Check step 3 of the instructions and make sure you add the above code block to your product detail display element, right before the closing form tag. The above bit of code executes the price updating javascript when the page loads and will take care of your problem.
On a side note, while I was in there, I found this error:
<!-- DISPLAY ERROR: SUBROUTINE ste_prod_options_onload") <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="1" COLOR="0"><font color="#999999" face="Helvetica, Arial, Geneva, Verdana"><font size="2"><font color="#000000" size="1">(CGIGET TYPE="SUB" VALUE="ste_prod_show_price GENERATED MESSAGE: Undefined subroutine &main::ste_prod_options_onload") <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="1" COLOR="0"><font color="#999999" face="Helvetica, Arial, Geneva, Verdana"><font size="2"><font color="#000000" size="1">(CGIGET TYPE="SUB" VALUE="ste_prod_show_price called at /***/*****/****/*****/**********/*******/store/library/common/display.pl line 503.
-->
It looks like it is related to something in the product detail display element, so maybe it is related to your problem. It could also be related to some custom mods I've not seen, so I can't really say for sure what is causing it. Anyway, that's what I'm seeing.
Rachael
Offline
You star! Thankyou
PS, I'll investigate that error
Offline
You're welcome - glad you got it sorted. Good luck with the error.
Offline
ARGH!!!
Rachel! Don't you understand you make the rest of us look stupid when you post such complete and utterly awesome mods to ClickCartPro?
-- Todd throws a tantrum --
Offline
Todd, don't talk to my hero liike that. pbtt!!
Offline
Golly... didn't mean to make anyone look stupid... if it's any consolation, other than changing the logo, I'm still using the stock skin *blush* My CSS and graphics arts skills leave something to be desired. But now when it comes to hacking... just give me a hatchet In all fairness though, I must point out that I actually forgot a minor piece of the mod; some options will change the recurring price as well as the base price and I totally didn't support the change to the recurring price. Wouldn't be hard to add, but I just didn't feel like doing it. So there
Offline
Hi.
I'm receiving the javascript error:
Error: document.forms[f].origregprice has no properties
Source File: https://store.davediamondprovo.com/medi … eupdate.js
Line: 12
when my pages load in both IE and FF. Any ideas? I'm not that versed in JS.
Thanks in advance.
URL to store (not live) https://store.davediamondprovo.com/cgi- … mp;catstr=
P.S. Using Tiki 5.1
Last edited by davediamond (11-28-2006 14:51:59)
Offline
Take a look at step 4 and make sure you've implemented it correctly. You're not getting the hidden field origregprice, which is what's crashing the javascript. Either you didn't implement step 4 correctly or there is something with your skin/price display that is keeping the PERL from putting in that hidden field. Make sure you have the following price call somewhere in your display:
(CGIGET TYPE="SUB" VALUE="ste_prod_show_price" PARAMS="(CGIVAR)product_pricestatus(/CGIVAR)|(CGIVAR)product_regprice(/CGIVAR)|(CGIVAR)product_saleprice(/CGIVAR)|(CGIVAR)product_volprice(/CGIVAR)|(CGIVAR)product_voltext(/CGIVAR)|(CGIVAR)product_usecatdisc(/CGIVAR)|(CGIVAR)product_useinv(/CGIVAR)|(CGIVAR)product_inv(/CGIVAR)|(CGIVAR)product_recurprice(/CGIVAR)|(CGIVAR)product_recurstatus(/CGIVAR)
Given the layout of your page, I'm guessing it would have to be ste_prodlg_xxxx.txt element, but I don't know for sure. Your skin may be over-riding that call somehow, since the hidden price field does not appear in the regular way.
Offline
Rachael,
I missed the section following:
Ooops.
Works great! Thanks so much for your time.
Dave
Last edited by davediamond (11-28-2006 16:41:56)
Offline
Hi Dave,
Glad you found the problem. You're most welcome.
Rachael
Offline
Hi Rachael,
Is there a CCP6 version of your dynamic price hack? I really want the customers to see the price change as they add more options.
cheers
Steve
Offline
Hi Steve,
I haven't ported the mod to CCP6 , as I haven't moved to the new version yet. Afaik, no one else has ported the hack, but the code is freely available for use, should someone decide to do so.
Offline
Hi Rachael
That's a shame, thanks for letting me know.
Steve
Offline