Results 1 to 3 of 3

PayPal Website Payments Pro (WPP) Orders Screen buttons "Issue Refund" and "Add Charge" not working

This is a discussion on PayPal Website Payments Pro (WPP) Orders Screen buttons "Issue Refund" and "Add Charge" not working within the Installation/Setup forums, part of the osCmax V2.5 Forums category; I just got WPP up and running and its looking great. There are a couple features I'd like to take ...

      
  1. #1
    Member llamma's Avatar
    Join Date
    Feb 2011
    Posts
    37
    Rep Power
    0


    Default PayPal Website Payments Pro (WPP) Orders Screen buttons "Issue Refund" and "Add Charge" not working

    I just got WPP up and running and its looking great. There are a couple features I'd like to take advantage of, namely the "Issue Refund" and "Add Charge" buttons located on orders.php (order detail screen) but when I click one of them I get the a popup window "Access Denied, no write permission access" this loads the page forbidden.php and I never see the page that was attempted so I'm at a loss.

    I look at orders.php and find $paypal_wpp->display_buttons($oID); this seems to be the snip of code that displays the buttons but its unclear to me how/what the buttons are actually linking to.

    I'm familiar with the process to add access via Administrator/file access but its unclear to me what I need to grant permission to, and how to get it to show up as an option to grant. When I go to Administrator/file access I don't see anything in the drop down of add permissions, that seems to apply to WPP

    Any help would be appreciated.

  2. #2
    Member llamma's Avatar
    Join Date
    Feb 2011
    Posts
    37
    Rep Power
    0


    Default Re: PayPal Website Payments Pro (WPP) Orders Screen buttons "Issue Refund" and "Add Charge" not working

    I did some poking around in the database and found the table admin_files this seems to be what controls the display in Administrator/Files

    This table consists of records in the following format
    Code:
    admin_files_id......admin_files_name.........admin_display_name...................admin_files_is_boxes.......admin_files_to_boxes.....admin_groups_id..admin_sort_order
    1.........................administrator.php...........BOX_HEADING_ADMINISTRATOR....1................................0................................1......................1
    215....................check_permissions.php...$NULL$....................................0................................9................................1......................0
    ..
    I suspect these are the flies lacking permission. If I add records for them in Admin_Files I think the buttons will begin working
    catalog/admin/includes/paypal_wpp/paypal_wpp_capture.php
    catalog/admin/includes/paypal_wpp/paypal_wpp_charge.php
    catalog/admin/includes/paypal_wpp/paypal_wpp_include.php
    catalog/admin/includes/paypal_wpp/paypal_wpp_refund.php

    Admin files ID is an auto incrementing number - no problem
    Admin files name is the name of the file - no problem
    Admin Display Name seems to be the variable name from the language file -
    Admin files is boxes (nope that "is" isn't a typo!) - All the boxes listed in administrator are 1 all others are zero so I'd say this should be a zero
    Admin files to boxes - *shrug* numbers range from 0-81 I dont know what this one should be
    Admin groups ID - most all of them are "1" some are "1,2" so maybe 1?
    Admin sort order - entries range from 1-99, i figure this one shouldn't matter what I put since the display order doesnt really apply since I'm going to be adding them directly to the database.


    Anyway if anyone can comment on my logic I would appreciate it.

  3. #3
    Member llamma's Avatar
    Join Date
    Feb 2011
    Posts
    37
    Rep Power
    0


    Default Re: PayPal Website Payments Pro (WPP) Orders Screen buttons "Issue Refund" and "Add Charge" not working

    Fixed, thanks to PGmarshall!

    http://bugtrack.oscmax.com/view.php?id=1097

    The answer was to insert into the database the following values to give the buttons proper file permissions.

    INSERT INTO admin_files VALUES(null, 'paypal_wpp_capture.php', 'FILE_PAYPAL', 0, 5, '1,2', 99);
    INSERT INTO admin_files VALUES(null, 'paypal_wpp_charge.php', 'FILE_PAYPAL', 0, 5, '1,2', 99);
    INSERT INTO admin_files VALUES(null, 'paypal_wpp_include.php', 'FILE_PAYPAL', 0, 5, '1,2', 99);
    INSERT INTO admin_files VALUES(null, 'paypal_wpp_refund.php', 'FILE_PAYPAL', 0, 5, '1,2', 99);

Similar Threads

  1. [osCmax V2.0.25] "Click to Enlarge" for image popup not working on website
    By johnnyjo in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 05-11-2011, 01:02 AM
  2. I Need "Add to Cart" or "Buy Now" Buttons on Main Home Page?
    By lithband in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 05-27-2010, 05:20 AM
  3. "wishlist" and "shopping cart" not working
    By ural in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 03-05-2010, 12:49 AM
  4. Replies: 0
    Last Post: 11-09-2009, 09:15 AM
  5. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 10:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •