By default the Paypal successful payment url point to %order-history. Instead I'd like to redirect users to "My files". Can it be done? I tried store/myfiles ... no good.

Thanks in advance,

Comments

esadot’s picture

Have looked at the code and the return url is derived from

 $return_url = (variable_get('paypal_return_url', '%order-history') == '%order-history') ?
    url("store/history/$user->uid", NULL, NULL, TRUE):
    url(variable_get('paypal_return_url', '%order-history'), NULL, NULL, TRUE); 

So far so good. To make sure I'm on the right track, I've changed "history" to "myfiles", and nicely it returned to my files.

Now, what I'd like to accomplish is to add a logic for %myfiles, and submit a patch, but since my coding skills are limited at best, I'd appreciate a little help here.

davea’s picture

Status: Active » Closed (fixed)

inactive for 1 year+
Please reopen if needed.

Thanks,
DaveA