HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Linking to a purchase page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#91853 (In Topic #18449)
Avatar

Community saint

Hi,

I have successfully created a user group that can be subscribed to and setup the PayPal side using two test (sandbox) accounts - all works sweetly.

I used the link off the Login Details to initialise the process.

I would like this to be driven off a membership graphic off the front page and another page on my site.
So I can create a page link to site:purchase module, this works but takes me to a choice list of things to purchase, I would rather just go to the actual purchase page as per the login block link - can it be done?

I looked at the site tree and see that there is an extra parameter that always seems to be set to misc. I did try and set that to the name of the Subscription purchase, but it just gave me a language error.

Any ideas ?

Cheers,
Ade
Back to the top
 
Posted
Rating:
#91855
Avatar

The choice form is a GET form, meaning once you pass through it the URL fully represents the screen you are on -- so just use that as a reference to find the URL parameters needed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91856
Avatar

Community saint

Cheers Chris,

I think some of my questions are just about having the confidence that doing something will not break it in the future !

I added Buy Some Membership

To the page link and it worked a treat.

Is there anywhere that documents this structure? Or is it something that you just have to pick up as you go ?

Cheers,
Ade
Back to the top
 
Posted
Rating:
#91858
Avatar

This is a bit of a special case, the page-link finder thingy in the menu editor usually is fine, although one thing we'd like to do in the future is extend that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91861
Avatar

Community saint

Tried to follow your link, Ade. It takes me to http://ocportal.com/purchase/message/-1.htm?product=USERGROUP1, but I then get:


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#91866
Avatar

He likely entered the relative URL in plain text not expecting ocP here to parse it as a link.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91882
Avatar

Community saint

Yea, I did not expect the OCP site to parse it !!

The link I created is:

Code

[page=":purchase:type=message:id=-1:product=USERGROUP1"]Buy
Some Membership[/page]

I just inspected the browser URL once I had reached the purchase front page.

Is that the best way to avoid parsing ?

Cheers,
Ade
Back to the top
 
Posted
Rating:
#91888
Avatar

Community saint

it works
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: