Kryptronic Software Support Forum

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.

#26 10-25-2006 06:55:23

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

I didn't find this code:

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


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#27 10-25-2006 07:29:31

osussat
Member
Registered: 04-16-2005
Posts: 128

Re: New Dynamic Price Change Hack

You star! Thankyou smile
PS, I'll investigate that error

Offline

 

#28 10-25-2006 08:12:11

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

You're welcome - glad you got it sorted.  Good luck with the error.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#29 10-25-2006 13:52:24

Todd
Member
From: Kitty Hawk, NC
Registered: 04-01-2003
Posts: 553
Website

Re: New Dynamic Price Change Hack

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


there's more than one way to...



Offline

 

#30 10-25-2006 14:51:11

Big Dave
Member
Registered: 10-24-2003
Posts: 742

Re: New Dynamic Price Change Hack

Todd, don't talk to my hero liike that. pbtt!!

Offline

 

#31 10-25-2006 15:03:48

Todd
Member
From: Kitty Hawk, NC
Registered: 04-01-2003
Posts: 553
Website

Re: New Dynamic Price Change Hack

smile


there's more than one way to...



Offline

 

#32 10-25-2006 15:15:51

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

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 smile  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 tongue


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#33 11-28-2006 14:51:30

davediamond
Member
Registered: 07-16-2003
Posts: 87

Re: New Dynamic Price Change Hack

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

 

#34 11-28-2006 15:51:00

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

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:

Code:

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


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#35 11-28-2006 16:22:42

davediamond
Member
Registered: 07-16-2003
Posts: 87

Re: New Dynamic Price Change Hack

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

 

#36 11-28-2006 16:40:35

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

Hi Dave,

Glad you found the problem.  You're most welcome.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#37 04-01-2008 10:10:16

Nasher
Member
Registered: 02-17-2008
Posts: 17

Re: New Dynamic Price Change Hack

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

 

#38 04-01-2008 12:53:13

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: New Dynamic Price Change Hack

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.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#39 04-01-2008 16:45:51

Nasher
Member
Registered: 02-17-2008
Posts: 17

Re: New Dynamic Price Change Hack

Hi Rachael

That's a shame, thanks for letting me know.

Steve

Offline

 

Board footer