Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Affiliate login redirection
Tagged: affiliate login redirect
- This topic has 10 replies, 2 voices, and was last updated 13 years, 7 months ago by amin007.
-
AuthorPosts
-
March 31, 2011 at 2:49 am #3083olvidaMember
I am using the affiliate platform 4.4.7 integrated with WPeC 3.7.8 at olvidacookware.com. I have made no changes to the affiliate platform files. Affiliates access the platform via the Affiliates page in the navigation. When an affiliate logs in, he is taken back to the home page of the blog; I wish the affiliate to remain on the affiliate page and be able to access his stats, ads, etc. Everything else is working as desired.
March 31, 2011 at 3:50 am #30887amin007ParticipantIt is suppose to go to the “Affiliates home” page after the login so they can check their stats and details. Please post a link to the affiliate signup page so I can see what might be causing this to not work.
March 31, 2011 at 4:28 am #30888olvidaMemberLink to login page is http://www.olvidacookware.com/?page_id=160. Use pixels/pixels to login.
March 31, 2011 at 5:13 am #30889olvidaMemberAdded note: I am hoping you can identify the issue so I will not need to dig into your php files.
I believe the issue is in the Affiliate View Option 2 POST Data Processing section of wp_affiliate_platform1.php, specifically line 168 of that file. When my affiliate logs in, he is redirected to the home page with “?wp_affiliate_view=members_only” appended to the homepage URL. Line 168 of your php file reads: “$target_url= wp_aff_view_get_url_with_separator(“members_only”);”. I haven’t read through your code, but a quick text search through all the files in the plug-in took me there.
March 31, 2011 at 10:55 pm #30890amin007ParticipantFor some reason the “get_permalink” function is not returning the affiliate’s page URL at login time on your server. It is probably getting called before init. I have added a constraint in the plugin that should fix it. Please get a new build from here:
March 31, 2011 at 11:59 pm #30891olvidaMemberGrabbed 4.4.8 of the plug-in. Issue remains unchanged. Login redirects to the home page, “?wp_affiliate_view=members_only” appended to the homepage URL.
April 1, 2011 at 2:41 am #30892amin007ParticipantOkay lets handle it differently for your server. Open the “wp_affiliate_platform1.php” file and search for the following line:
$target_url= wp_aff_view_get_url_with_separator("members_only");
Once you find it change it to the following:
$target_url = "http://www.olvidacookware.com/?page_id=160&wp_affiliate_view=members_only";
That should do the job.
April 1, 2011 at 2:56 am #30893olvidaMemberThat works. Thanks for your prompt responses.
I posted this under the WPeC Intergration post, but I will ask here: compatibility and integration with WPeC 3.8? The old method is no longer applicable with their code pruning.
April 1, 2011 at 11:13 pm #30894amin007ParticipantLooks like they have changed the file structure in WPeC3.8 but that shouldn’t be a big problem. I think in 3.8 or above you will have to modify the following file:
wpsc-theme/wpsc-transaction_results.php
I just need to test it out but when I upgraded to WPeC3.8 on my test site none of my WPeCommerce products are displaying anymore! Does the products show fine on your site? If it does then do you ming giving me access to your test site so I can do some quick testing?
April 2, 2011 at 4:04 am #30895olvidaMemberHope you backed up the test server first. I had the same issue with it not showing products on my first attempt during which I deactivated all WPeC associated plugins before updating to 3.8. I then reactivated all plugins. WPeC 3.8 did not notify me it needed to update the database, which I had expected. The products were not in the store.
I reloaded the backup to revert to 3.7.8, then to install 3.8 I deleted the WPeC plugin without deactivating any plugins. This time when I logged into WP-Admin, WPeC alerted me it needed to update the databases. I followed that link and all the products were in the store. It has broken a couple of things in the theme, so I need to clean those up and get your affiliate platform working before I can take it live.
Hope that helps. If not, I will set up my test version so you can access it.
April 2, 2011 at 8:48 am #30896amin007ParticipantUpdated the documentation with the integration steps for WPeCv3.8
I was able to make the integration simpler than before so this should be good
-
AuthorPosts
- You must be logged in to reply to this topic.