Advertisement:

Author Topic: PayPal Plug In Free vs Paid  (Read 20013 times)

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #30 on: October 04, 2012, 06:41:49 am »
Yeah I'm in the same boat I cannot get any of these posts to work either.  I've had to delete the osclass script and start over about three times just to fix the errors that occur when trying to follow this thread.  Hopefully someone will create a plugin that will work for this request as it seems there is enough interest from the community for it.   :(
« Last Edit: October 04, 2012, 07:19:31 am by nootkan »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: PayPal Plug In Free vs Paid
« Reply #31 on: October 04, 2012, 06:49:17 am »

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #32 on: October 04, 2012, 09:08:32 am »
Okay I tried the zip file again and worked through the other posts in this thread and finally got some progress so I guess I missed something the first three times.  Although I am able to get through to the paypal button for a company user I don't see any options to choose the premium or premium plus listings as per my settings.  Also I cannot get the currency to change to CAD which I have in my settings when I make the changes in the paypal plus config.  I save it and it reverts back to USD.

I also tried to set up a free user account and then posted a new listing which sent me to the paypal button which is what I don't want.  I want the free account users to be free not a paid listing.  What did I do wrong?
« Last Edit: October 04, 2012, 09:59:44 am by nootkan »

scriptoria

  • Newbie
  • *
  • Posts: 3
Re: PayPal Plug In Free vs Paid
« Reply #33 on: October 04, 2012, 03:10:36 pm »
Hi guys,

Try the zip attached at this post.

http://forums.osclass.org/plugins/paypal-plug-in-free-vs-paid/msg29202/#msg29202

jay

Hi! Thank you very much! I use index.php you attached and it works fine.
 8)  :D

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #34 on: October 04, 2012, 08:47:53 pm »
Have walked through the process one more time and still a free user is being sent to the paypal button when trying to post a free listing whether their registered or not.  Here is my link see for yourself:
http://www.comoxvalleyclassifieds.com

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #35 on: October 07, 2012, 05:28:15 am »
you can do this making some changes..

1st you shold know if user is a company or a private, you can do this:

oc-includes\osclass\helpers\hUsers.php line 300
   add
   
Code: [Select]
    function osc_user_is_company() {
                      return (string) osc_user_field("b_company");

2nd on user registration they have to choose from user type:

  on your theme folder \  user-register.php add:
Code: [Select]
<label for="b_company"><?php _e('User type''trovo') ; ?></label>
         <select name="b_company" id="b_company">
         <option value="0" <?php if( !osc_user_field("b_company") ) echo 'selected="selected"'?> ><?php _e('User''trovo') ; ?></option>
         <option value="1" <?php if( osc_user_field("b_company") ) echo 'selected="selected"'?>><?php _e('Company''trovo') ; ?></option>
    </select>       

3rd user can't change this value from control panel!
  on your theme folder \ user-profile.php find the input for the value b_company and change it with:
Code: [Select]
<label for="b_company"><?php _e('User type''trovo') ; ?></label>  : <? if (osc_user_field("b_company")==1) echo _e('Company', 'trovo'); else echo _e('User', 'trovo') ; ?>
<input class="xlarge" type="hidden" value="<?php echo osc_user_field("b_company") ; ?>" name="b_company" id="b_company">
                IMPORTANT!!: the 1st row show the user type, the second row keep the value on submit form!       

Ok, now the changes for paypalplus plugin:
open index.php, find "function paypalplus_publish($item)"
and change
Code: [Select]
if(osc_get_preference('pay_per_post', 'paypalplus')) {with
Code: [Select]
$conn = getConnection();
$usertype = $conn->osc_dbFetchResult("SELECT b_company FROM %st_user WHERE pk_i_id = %d", DB_TABLE_PREFIX, osc_logged_user_id());

          if ($usertype['b_company']=='1') {

that's all!!!
 

Can anyone help me with this I will pay you for your time.  I tried to attach my files but this forum won't allow it. 

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #36 on: October 10, 2012, 08:34:12 pm »
I'm sorry to keep bumping this thread, but is there no one who can help me with this?  I've been trying for over a week now with no luck.  I've gone over my steps a dozen times and cannot seem to find the problem. 

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: PayPal Plug In Free vs Paid
« Reply #37 on: October 10, 2012, 09:07:39 pm »
Hi nootkan,

Did you try the zip on this post?
http://forums.osclass.org/plugins/paypal-plug-in-free-vs-paid/msg29202/#msg29202

As the original code that you quoted had some problems and was fixed in the attached zip at the above link.

Jay

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: PayPal Plug In Free vs Paid
« Reply #38 on: October 11, 2012, 08:46:29 pm »
Thanks trains58554 for replying to my post.  I am beginning to wonder if this project is dying as you seem to be the only one who takes the time to respond other than other users like myself.  I had installed the zip file from the post you mention.

I finally figured out what my problem was.  A previous upgrade to filezilla wiped my auto transfer settings and I was uploading the files in binary instead of ascii.  Once I uploaded the file in ascii everything seems to work. Whew, always looking for the tough solutions I seem to sometimes overlook the simple ones.

Thanks again for your support.  ;)
« Last Edit: October 11, 2012, 08:48:09 pm by nootkan »

serjuc11111

  • Hero Member
  • *****
  • Posts: 814
Re: PayPal Plug In Free vs Paid
« Reply #39 on: September 07, 2014, 06:28:33 pm »
Wondering if there is a way to make free ads for the general public, but make dealers and vendors pay for "featured" or Premium ads.
I absolutely love the idea, just don't want everyone to have to pay to post an ad, just vendors.

Thanks in advance!

let the user to decide if they want to pay or not!
option select in add item page...."free" vs "paid" and easy to make a condition if('yourfiled"=="checked' or selected ....dependind of what your input is!(redirect to payment method)

voyager1

  • Newbie
  • *
  • Posts: 9
Re: PayPal Plug In Free vs Paid
« Reply #40 on: March 09, 2015, 07:17:58 pm »
Hi everyone,
This post is really helpful and informative. I'm new here and noticed the instructions are a bit old (from 2012). Could you kindly advice if the instructions are still valid with the new version of OSclass? I want to make sure before buying payment plugins. I'm using the latest version with modern theme.

Thank you!!!

fre2mansur

  • Hero Member
  • *****
  • Posts: 711
Re: PayPal Plug In Free vs Paid
« Reply #41 on: March 14, 2015, 08:29:59 pm »
if you buying from osclass market it will work well.

voyager1

  • Newbie
  • *
  • Posts: 9
Re: PayPal Plug In Free vs Paid
« Reply #42 on: March 16, 2015, 06:14:25 pm »
if you buying from osclass market it will work well.


Thank you!
Bought the plugin and it works well. The instructions are generic and would apply to any version from what I've found.

Thanks again for your response.

servicesmary

  • Newbie
  • *
  • Posts: 37
Re: PayPal Plug In Free vs Paid
« Reply #43 on: March 18, 2016, 07:38:16 pm »
if you buying from osclass market it will work well.


Thank you!
Bought the plugin and it works well. The instructions are generic and would apply to any version from what I've found.

Thanks again for your response.

What plugin you bought ?