Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorfirejames
    • CommentTimeOct 19th 2009 edited
     

    Admin, I bug you again with an issue. I've activated the affiliates module ( Btw in V3 it should be integrated into the script as feature and not as addon module) and I want to tweak a little bit the script:
    Instead of users to enter their PayPal email address I'd like to offer the the possibility to choose from different ways to get paid. So I will still use the paypal field in db but there I will serialize payment proceesor name and payment processor account.

    So can you paste me here the code to echo a select box with available payment processors ? Just like the one on purchase.php page.

    thank you

    P.S. The Item description field says something like this Buy ..banner on Site Url .. Id like to change it to Buy Banner on SITE NAME. Where I cna edit $item['description']. Thanks

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 19th 2009 edited
     
    Project Admin

    You can just take the php code from a purchase template and re-use it in the affiliate template:

    <?php echo oiopub_dropmenu_kv($oiopub_set->arr_payment, "oio_paymethod", $selected_processor, 200); ?>

    The $selected_processor variable represents the value that has been saved for that particular affiliate.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorfirejames
    • CommentTimeOct 20th 2009
     

    worked like a charm.. Also you do have any clue why the serialise data didnt went through ? (I've used oiopub_serialise) something like this:

    //On insert
    $accounts = array();
    $accounts['paymethod'] = $paymethod;
    $accounts['payaccount'] = $payaccount;
    $paypal = oiopub_serialise($accounts);

    INSERT INTO DB

    ..................
    Retrieve from DB
    ..................

    $accounts = oiopub_unserialise($aff->paypal)

    The result was a cuted serialisation code of $aff->paypal somethinf like a3:s2{.......... but no closing }
    Anyway solved the problem using $paypal = $paymethod."//".$payaccount
    and then explode string at //

    Wondering if I did something wrong or serialisation do not work good with objects rows

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 20th 2009
     
    Project Admin

    I'm not sure why the serialization would fail, although in that scenario you could use plain (un)serialize (rather than the oiopub equivalents, which check to see if the (un)serialization is needed).

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorlepescort
    • CommentTimeJan 20th 2015
     

    Hello, I follow the instructions here and looks great but now when I choose a certain procesor I get the follwing error: PayPal address provided not valid

    What code do I need to change in account.php for this to work?

    Thank you in advance!

    Eugen

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeJan 24th 2015
     
    Project Admin

    What's the email address you are trying to enter?

    The only check done is to validate that the email address looks like an email address - so either you aren't entering an email address or it's an email that causes a false-positive on the validation (which would be useful to know about).

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorlepescort
    • CommentTimeJan 24th 2015
     

    Hi, I simply changed the "Paypal:" to "Payout:" so in this way people will understand that is a payout contact info and not a payment method.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeJan 25th 2015
     
    Project Admin

    Ok, thanks for letting me know.

    Need help?  Quick start guide | Troubleshooting | All help topics