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.


Paypal for Subcriptions

Login / Search

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

Community saint

How to use Paypal for subcriptions aand ecommerce


Hi guys, The forums I use is SMF and I have noticed that when I try to use the e-commerce features in OCportal it says it wont work unless using OCF. Is there anyway around this or can I have both forums running from the same portal. eg SMF for the forums and OCF just for e-commerce.

Thanks


Last edit: by OZSlayer

Back to the top
 
Posted
Rating:
#35331
Avatar

Hi,

To be honest, I can't remember why it's tied to OCF! It could actually be a bug.

Try removing line 59 of adminzone/pages/modules/admin_ecommerce.php:

Code

      if (get_forum_type()!='ocf') user_clean_exit(do_lang_tempcode('NO_OCF')); else ocf_require_all_forum_stuff();

Please let us know if you come up against any problems.


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:
#35339
Avatar

Community saint

 Hi Chris, that gave me access to the page, but there is no options at all to set it up with. The e-commerce section is blank.

I read in the docs that the paid subscriptions are only available through OCF, is there any way to run both forums, just the OCF for the paypal side. SMF for the forums.


Last edit: by OZSlayer

Back to the top
 
Posted
Rating:
#35447
Avatar

Hi,

Also replace these strings in the file with blank:

Code

(get_forum_type()!='ocf')?NULL:

Note there are eCommerce icons under both 'Usage' and 'Setup'.

To a certain extend, ocPortal's eCommerce systems are a programming framework. Invoices and Usergroup-Subscriptions are built in, but there's a whole eCommerce system for programming in dynamically delivered products and this is what we use for handling ocPortal registrations over on our own site.


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:
#35467
Avatar

Community saint

Hi Chris, can you please show me as, I am at a loss.

Code

   {
      //removed-assert

      require_code('templates_interfaces');
      return do_next_manager(get_page_title('ECOMMERCE'),comcode_to_tempcode(do_lang('DOC_ECOMMERCE'),NULL,true),
               array(
                  /*    type                       page    params                                        zone     */
                  (get_forum_type()!='ocf')?NULL:array('add_one',array('_SELF',array('type'=>'ad'),'_SELF'),do_lang('ADD_USERGROUP_SUBSCRIPTION')),
                  (get_forum_type()!='ocf')?NULL:array('edit_one',array('_SELF',array('type'=>'ed'),'_SELF'),do_lang('EDIT_USERGROUP_SUBSCRIPTION')),
               ),
               do_lang('ECOMMERCE')
      );
   }
 


Thanks OZ
 

Back to the top
 
Posted
Rating:
#35468
Avatar

Code

{
      //removed-assert

      require_code('templates_interfaces');
      return do_next_manager(get_page_title('ECOMMERCE'),comcode_to_tempcode(do_lang('DOC_ECOMMERCE'),NULL,true),
               array(
                  /*    type                       page    params                                        zone     */
                  array('add_one',array('_SELF',array('type'=>'ad'),'_SELF'),do_lang('ADD_USERGROUP_SUBSCRIPTION')),
                  array('edit_one',array('_SELF',array('type'=>'ed'),'_SELF'),do_lang('EDIT_USERGROUP_SUBSCRIPTION')),
               ),
               do_lang('ECOMMERCE')
      );
   }


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:
#35476
Avatar

Community saint

Thanks Chris, Subscriptions work now.

Not much left to do now. except for this when I tried to.

Edit usergroup subscription  

Unfortunately a query has failed [SELECT id,s_title FROM smf_f_usergroup_subs ] [Table 'db_rand_random2.smf_f_usergroup_subs' doesn't exist] (ocPortal version: 3.2.2, PHP version: 4.4.4, URL: /ocportal/adminzone/index.php?page=admin_ecommerce&type=ed)

Here is the stack trace:

File'/s101-2/home6/randomas/ocportal/sources/global2.php'
Line'725'
Function'get_html_trace'
Args

File'/s101-2/home6/randomas/ocportal/sources/database/mysql.php'
Line'171'
Function'clean_exit'
Argsobject


File'/s101-2/home6/randomas/ocportal/sources/database.php'
Line'627'
Function'_db_query'
Args'SELECT id,s_title FROM smf_f_usergroup_subs '

array

NULL

NULL

false

false


File'/s101-2/home6/randomas/ocportal/sources/database.php'
Line'562'
Function'_query'
Class'database_driver'
Type'->'
Args'SELECT id,s_title FROM smf_f_usergroup_subs '

NULL

NULL

false


File'/s101-2/home6/randomas/ocportal/adminzone/pages/modules/admin_ecommerce.php'
Line'491'
Function'query_select'
Class'database_driver'
Type'->'
Args'f_usergroup_subs'

array


File'/s101-2/home6/randomas/ocportal/sources/aed_module.php'
Line'542'
Function'nice_get_entries'
Class'module_admin_ecommerce'
Type'->'
Args

File'/s101-2/home6/randomas/ocportal/sources/aed_module.php'
Line'158'
Function'ed'
Class'module_admin_ecommerce'
Type'->'
Args

File'/s101-2/home6/randomas/ocportal/sources/zones.php'
Line'323'
Function'run'
Class'module_admin_ecommerce'
Type'->'
Args

File'/s101-2/home6/randomas/ocportal/sources/site.php'
Line'640'
Function'load_module_page'
Args'adminzone/pages/modules/admin_ecommerce.php'

'admin_ecommerce'


File'/s101-2/home6/randomas/ocportal/sources/site.php'
Line'514'
Function'request_page'
Args'admin_ecommerce'

true


File'/s101-2/home6/randomas/ocportal/adminzone/index.php'
Line'42'
Function'do_site'
Args

, Back to the top, The Random As Web Site,   Keyboard map, Site map,    Bookmarks,   OcCLE,   Help Wizard,    Menu,  
Community message: Random As rules



Last edit: by OZSlayer

Back to the top
 
Posted
Rating:
#35481
Avatar

Bear with me...


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:
#35483
Avatar

Ok, this is why we said eCommerce was OCF-only now – because what would be the most popular feature couldn't be supported by our forum-driver system, and also because we hadn't tested without OCF.

I've decided I'll help you get this working for SMF though, as you've gone this far. Attached are some replacement files. Basically it allows subscriptions to work with SMF as well as OCF… and for any other forum driver that someone writes an extension for. (Please note that I do not want to open the flood gates for requests here – it'd still take me a few hours to add support to every forum driver we have, and I don't have that time available to me).

Attachment
» Download: Desktop.zip (22 Kb, 474 downloads so far)


Please note that I haven't tested any of this. To get it working you also need to type the following into OcCLE:

Code

:set_value('unofficial_ecommerce','1');
(this will do the equivalent of the code modifications I mentioned earlier in this topic – just now I have automated it via this hidden option)


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:
#35499
Avatar

Community saint

That's great Chris, I will have to get over to SMF and tell them the good news.

The only change I had to make was the above pre mentioned changes to adminzone/pages/modules/admin_ecommerce.php to make it work.
Have to test it out more thoroughly still. Will do soon. The new subscription in the ecommerce went ok.
 

Back to the top
 
Posted
Rating:
#35500
Avatar

Community saint

Might be a silly question Chris.

Where do the members access the paid subscriptions form, I found a thread where you said "site:purchase"
It only comes up with There are no categories at this time. How do I add a categories in there for the sub.

Thanks OZ

Back to the top
 
Posted
Rating:
#35502
Avatar

Hi,

You'll need to add the usergroup subscription in the Admin module first.


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:
#35518
Avatar

Community saint

Hi Chris I have already added the user group subscription under set up e-commerce. the site:pirchase is still blank, is there sine where else to add it.

Lost OZ

Back to the top
 
Posted
Rating:
#35519
Avatar

Community saint

Hi Chris I have already added the user group subscription under set up e-commerce. the site:purchase is still blank, is there sine where else to add it.

Lost OZ

Back to the top
 
Posted
Rating:
#35535
Avatar

Hi,

I'd forgotten a change in sources/hooks/systems/ecommerce/usergroups.php
  • change made and uploaded the file for you


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:
#35594
Avatar

Community saint

 Hi Chris, Works good, I have tested it through to the paypal email is reported as invalid. have to add our paypal email and all should be good.

One small issue is on smaller screens the text runs over the side panel. ok on larger wide screens. If you run through the sub you will see what I mean. You might have to contract your browser if you have a large screen. Ok on my 22" CRT but on the Director 19 wide it run over.

Back to the top
 
Posted
Rating:
#35603
Avatar

The quickest way to resolve this is to rip most of the code out of the PURCHASE_WIZARD template.
Just leaving the following is sufficient:

Code

            {TITLE}

            {+START,IF_NON_EMPTY,{URL}}
            <form action="{URL*}" method="post">
            {+END}
            {CONTENT}
            {+START,IF_NON_EMPTY,{URL}}
               <br />
               <div class="proceed_button">
                  <input type="submit" value="{!PROCEED}" />
               </div>
            </form>
            {+END}


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:
#35628
Avatar

Community saint

Thanks Chris that worked ok.

Back to the top
 
Posted
Rating:
#35650
Avatar

Community saint

   Hi Chris, The url for the purchase would be site:purchase for use with the left panel menu. works fine.

Now to add url to a image, I have tried the full location link that the new menu link points to but get page doesn't exist.

This is the link that it tries to go to. For some reason it adds another address to it.

http://www.randomas.co...ndex.php?page=purchase%3E

If I shorten it to Site I get http://www.randomas.com/ocportal/%3C/site/index.php?page=purchase%3E

lol. I worked it out, the <> had to be removed and use the short version. site/index.php?page=purchase



Thanks

OZ


Last edit: by OZSlayer

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: