Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forums
Welcome, Guest
Please Login or Register.    Lost Password?
How to present a different price...
(1 viewing) 1 Guest
Go to bottom
TOPIC: How to present a different price...
#844
How to present a different price... 3 Months, 3 Weeks ago  
Hi There, I hope this is a simple question. My use of this module will present the user with a different price based on the current month (so, the price is different in Jan...Feb... etc).

So what I need to do (as I'm not allowing the user to enter the price) is change the line...

input type="hidden" value="10" name="paypalamount"

So that value is coded in each time I present the link.

Any ideas how I do this? I wondered if it might be possible to just "write" the entire PayPal module form in the code myself rather than by including the module, that way I can change the values?

Thanks!
 
Logged Logged  
  The administrator has disabled public write access.
#847
DART ()
User Offline Click here to see the profile of this user
Re:How to present a different price... 3 Months, 3 Weeks ago  
I'm not sure I understand what you require ...
 
Logged Logged  
  The administrator has disabled public write access.
#848
Re:How to present a different price... 3 Months, 3 Weeks ago  
I'd like to present a paypal button on a joomla page where I can program in the purchase value (the value=xxx field) of the button at run time when the user loads the page.

For example in August the price might be 20euros, in September it might be 15euros. I can't create hundreds of buttons with different prices in each one.

Hope that makes more sense.
 
Logged Logged  
  The administrator has disabled public write access.
#851
DART ()
User Offline Click here to see the profile of this user
Re:How to present a different price... 3 Months, 3 Weeks ago  
Well I do understand, however the module does quite a different thing to do that. You'll have to rewrite a good part of it to do what you want.
 
Logged Logged  
  The administrator has disabled public write access.
#852
Re:How to present a different price... 3 Months, 3 Weeks ago  
Actually, I've just solved this myself and it was pretty easy!

I extracted the paypal form and /form content that the paypal module includes in my joomla page and put it into my PHP code with a variable for the price... that way I get a different price based on my application each time.

Then I included the paypal module on the page (using loadposition) but placed it inside an invisible div! That way you can only see my own pay now button and it all seems to work fine!

Let me know if this approach might have any dubious side effects but it seems to be working OK so far (-:
 
Logged Logged  
  The administrator has disabled public write access.
#853
DART ()
User Offline Click here to see the profile of this user
Re:How to present a different price... 3 Months, 3 Weeks ago  
I would say its cool
 
Logged Logged  
  The administrator has disabled public write access.
Go to top

Sponsors

Login Form






Lost Password?
No account yet? Register

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!


Generated in 0.48684 Seconds