Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
Hi guys,Try the zip attached at this post.http://forums.osclass.org/plugins/paypal-plug-in-free-vs-paid/msg29202/#msg29202jay
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')) {withCode: [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!!!
function osc_user_is_company() { return (string) osc_user_field("b_company");
<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>
<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">
if(osc_get_preference('pay_per_post', 'paypalplus')) {
$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') {
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!
if you buying from osclass market it will work well.
Quote from: fre2mansur on March 14, 2015, 08:29:59 pmif 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.