|
|
|
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
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:How to present a different price... 3 Months, 3 Weeks ago
|
|
|
I'm not sure I understand what you require ...
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
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
|
|
|
The administrator has disabled public write access.
|
|
|
|
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
|
|
|
The administrator has disabled public write access.
|
|
|
|
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
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:How to present a different price... 3 Months, 3 Weeks ago
|
|
I would say its cool 
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|