Viewing 9 replies - 1 through 9 (of 9 total)
  • Yep, I have almost the same problem.

    My problem is (or at least, I think so) that a user can buy a subscription pack. Then he pays at Paypal, but when returning to my “create-post” page in order to write the post, the page says “You must buy a subscription pack” (or something similar). And the problem is that it has been already bought!

    Moreover, when I go to the “Transactions” admin panel, there are no transactions, althoug above of the transactions table says “Total income: 380” (so the transactions have been done).

    Any one that can solve this?

    Thanks in advance for your support.

    Thread Starter my-web

    (@my-web)

    mine proble is the same, it’s a plugin bug, transaction activation not work

    Hi to all,

    I have found that the transactions ARE stored. If you look at the Data Base they are there.

    In order to show the transactions in the admin section, you have to change this code from “wpuf-admin-transaction.php” and “transaction.php”:

    <?php
                if ( $wpdb->num_rows > 0 ) {
                    $count = 0;
                    foreach ($fields as $row) {
                        //var_dump( $row );
                        ?>
                        <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
                            <td><?php echo stripslashes( htmlspecialchars( $row->id ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->user_id ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->status ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->cost ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->post_id ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->pack_id ) ); ?></td>
                            <td><?php echo $row->payer_first_name . ' ' . $row->payer_last_name; ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->payer_email ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->payment_type ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->transaction_id ) ); ?></td>
                            <td><?php echo stripslashes( htmlspecialchars( $row->created ) ); ?></td>
    
                        </tr>
                        <?php $count++;
                    } ?>
                <?php } else { ?>
                    <tr>
                        <td colspan="5">Nothing Found</td>
                    </tr>
                <?php } ?>

    For this code:

    <?php
    
                   foreach ($fields as $row) {
    
                        //var_dump( $row );
    
                        ?>
    
                        <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->id ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->user_id ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->status ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->cost ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->post_id ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->pack_id ) ); ?></td>
    
                            <td><?php echo $row->payer_first_name . ' ' . $row->payer_last_name; ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->payer_email ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->payment_type ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->transaction_id ) ); ?></td>
    
                            <td><?php echo stripslashes( htmlspecialchars( $row->created ) ); ?></td>
    
                        </tr>
    
                        <?php $count++;
    
                    } ?>

    And the transactions will be shown.

    The thing is that the subscriptions do not work, so I am going to open a new post for that issue.

    Thread Starter my-web

    (@my-web)

    yes i’ve test with default plugin ( not with your fix ) and the transaction store, but only with Paypal SandBox mode, but user aren’t able to write any post.

    I am having the same problem , testing in sandbox mode payment goes well , redirect to thank you page but user is unable to post as the credit’s purchased are not accredited to his account.

    As mentioned by martinjesus the total income is updated after every transaction but that’s about it.

    Thread Starter my-web

    (@my-web)

    yes it’s true, the pluging need fix, but author is go away!!
    lol

    The problem is here , the user_id is passed as 0
    i should have a fixed version of the plugin soon.

    if ( $verified || $this->test_mode ) {
                    $data = array(
                        'user_id' => get_current_user_id(),
                        'status' => 'completed',
                        'cost' => $postdata['mc_gross'],
                        'post_id' => $post_id,
                        'pack_id' => $pack_id,
                        'payer_first_name' => $postdata['first_name'],
                        'payer_last_name' => $postdata['last_name'],
                        'payer_email' => $postdata['payer_email'],
                        'payment_type' => 'Paypal',
                        'payer_address' => $postdata['residence_country'],
                        'transaction_id' => $postdata['txn_id'],
                        'created' => current_time( 'mysql' )
                    );

    Oh boy , sooo many things i had to fix in this plugin….
    Too many to list here , if you want it mail me at alex at qwebmaster.com replace the at with @

    Thread Starter my-web

    (@my-web)

    ok

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP User Frontend] Not payments stored’ is closed to new replies.