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

Skip navigation

Paypal for Subcriptions

Login / Search

[ Join | More ]
Posted 24 September 2007, 3:23 AM
#35306
Avatar

Hallowed customer

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 24 September 2007, 6:05 PM
#35331
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 24 September 2007, 10:09 PM
#35339
Avatar

Hallowed customer

 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 28 September 2007, 8:43 PM
#35447
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 29 September 2007, 12:12 AM
#35467
Avatar

Hallowed customer

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 29 September 2007, 8:52 AM
#35468
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 29 September 2007, 11:26 AM
#35476
Avatar

Hallowed customer

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 29 September 2007, 11:56 AM
#35481
Avatar

ocStaff (admin)

Bear with me...



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 29 September 2007, 12:21 PM
#35483
Avatar

ocStaff (admin)

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, 381 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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 30 September 2007, 2:57 AM
#35499
Avatar

Hallowed customer

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 30 September 2007, 3:49 AM
#35500
Avatar

Hallowed customer

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 30 September 2007, 9:56 AM
#35502
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 30 September 2007, 11:25 PM
#35518
Avatar

Hallowed customer

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 30 September 2007, 11:26 PM
#35519
Avatar

Hallowed customer

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 01 October 2007, 7:32 PM
#35535
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 04 October 2007, 9:23 AM
#35594
Avatar

Hallowed customer

 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 05 October 2007, 5:34 PM
#35603
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 06 October 2007, 10:13 AM
#35628
Avatar

Hallowed customer

Thanks Chris that worked ok.

Back to the top
 
Posted 08 October 2007, 7:46 AM
#35650
Avatar

Hallowed customer

   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: