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.

#1 08-29-2004 13:34:02

mdelaflor
Member
From: Texas
Registered: 01-28-2003
Posts: 65
Website

Item With Many Prices?

Hi

I have an item that is a membership purchase to a club. The entire price is $600 for the year, that is $50 a month. However, the $600 only applies if you buy in January. If you buy in June you would only have to pay $350 and if you buy in September you would only have to pay $200.

In other words the purchase price is prorated per month. The closer to December you purchase the less you have to pay. Then it would start all over the next January.

How would I implement such a pricing schem with CCP5?

Any help would be appreciated.

Thanks

Mike de la Flor


Mike de la Flor
wwwgodsword.net
Collectible Sculptures

Offline

 

#2 09-05-2004 22:58:51

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Item With Many Prices?

There are probably several ways to implement this under CCP 5.1.  But first, are you actually using CCP 5.0 instead of 5.1?


Regards,
Eric

Offline

 

#3 09-06-2004 09:05:06

mdelaflor
Member
From: Texas
Registered: 01-28-2003
Posts: 65
Website

Re: Item With Many Prices?

I am using CCP5.

Thanks,

Mike


Mike de la Flor
wwwgodsword.net
Collectible Sculptures

Offline

 

#4 09-06-2004 13:06:53

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Item With Many Prices?

Sorry Mike.  I only have experience using CCP 5.1.  So my below comments are based on 5.1 being similar to 5.0, in other words, I'm guessing!  <grin>

I did something very similar in CCP 5.1.

Here's how I would approach this: add a little extra logic to the PERL source code in the display price function so that the function looks up the current date, and then determines how many months would remain on the membership between now and December, and then removes the months that have already elapsed.  Then, it would simply calculate the pro rated price based the above, and display that in the various shopping screens.  When the end-user adds the item, the dynamically calculated price would be added instead of the price in the products table (I've already used this "feature" of CCP for another project so I know it works in 5.1).


Regards,
Eric

Offline

 

#5 09-08-2004 10:15:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19512
Website

Re: Item With Many Prices?

The code would be similar in 5.0.  In 5.1 the price routine is much longer, but the logic would be the same.


Nick Hendler

Offline

 

#6 09-08-2004 11:12:19

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Item With Many Prices?

Mike,

Did you get this working on your site?


Regards,
Eric

Offline

 

#7 09-17-2004 11:43:06

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19512
Website

Re: Item With Many Prices?

I think the examples on the 5.1 support forum probably helped out.


Nick Hendler

Offline

 

#8 09-17-2004 13:59:13

mdelaflor
Member
From: Texas
Registered: 01-28-2003
Posts: 65
Website

Re: Item With Many Prices?

I am not a programmer. So no, your reply did not help. But thanks.

Mike


Mike de la Flor
wwwgodsword.net
Collectible Sculptures

Offline

 

Board footer