Find Jobs
Hire Freelancers

External Product delayed redirect after page load

£10-20 GBP

Completed
Posted about 1 year ago

£10-20 GBP

Paid on delivery
I am looking for a developer who can help me implement a delayed redirect for external products on my Woocommerce WordPress website. The redirect should occur after a specific time of 1-5 seconds after the page loads. The code below correctly triggers the redirect, but I need this amended so the product page loads first, then the redirect takes place after 5 seconds: add_action( 'template_redirect', 'redirect_external_products' ); function redirect_external_products() { global $post; if ( is_singular( 'product' ) && ! empty( $post ) && ( $product = wc_get_product( $post ) ) && $product->is_type( 'external' ) ) { wp_redirect( $product->get_product_url() ); exit; } } Ideal skills and experience: - Proficient in WordPress development - Familiar with JavaScript and jQuery - Experience implementing delayed redirects on websites Please let me know your availability and estimated timeline for completing this project. Thank you!
Project ID: 36593938

About the project

17 proposals
Remote project
Active 1 yr ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi there, Hope you doing great, I can do this job easily. Kindly share the credentials with me then I will do this task ASAP. I am a senior developer with 10+ of years experience in website development. I always try to satisfy my clients as web designing and development is my passion. I have done hundreds of websites that are running successfully now. I have worked with the following frameworks ==> Core PHP ==> Codeigniter ==> Magento ==> Wordpress ==> Laravel Let's come to chat. Regards, Syed F.
£25 GBP in 1 day
5.0 (11 reviews)
3.6
3.6
17 freelancers are bidding on average £26 GBP for this job
User Avatar
Hello, Here's my bid to amend the code so that the redirect happens after 1-5 seconds from page load. We will need to modify the function for this to happen and it will be implemented differently using JS.
£35 GBP in 1 day
5.0 (327 reviews)
8.0
8.0
User Avatar
Hi, I can do this task and start now. Please check my profile and reviews. Ping me for more details. Looking forward to work on this. Thanks
£35 GBP in 1 day
5.0 (84 reviews)
6.8
6.8
User Avatar
I have a few questions in relation to the specs that you have provided. Could we please have a chat? My Skills: PHP, WooCommerce, JavaScript, CSS and HTML
£10 GBP in 10 days
4.8 (154 reviews)
6.9
6.9
User Avatar
Hi There! Thanks for your valuable time After carefully reviewing the requirements for the job description, "External Product delayed redirect after page load".I feel that I'm suitable for the job. It's my honor to work for you. I have done similar websites for my previous clients with 100% satisfaction. I've 8+ years of experience as a Web DEVELOPER. My promise is that bespoke quality work is delivered on time. Your deadlines are Mine to worry about. Thanks! Kind Regards Mohammad Rizwan~
£15 GBP in 2 days
4.9 (217 reviews)
6.6
6.6
User Avatar
I'll share you the code right away, that would redirect from your products page to other page in 3 seconds. Ping me so that I can share the code and you can test it at your end.
£15 GBP in 1 day
5.0 (64 reviews)
5.5
5.5
User Avatar
Hello, Available now for a quick discussion and can start this work "External Product delayed redirect after page load" immediately. Thanks, Ankit
£20 GBP in 1 day
4.8 (58 reviews)
5.2
5.2
User Avatar
Hi There Isaac O., Good afternoon! We have carefully examined your project and its requirements and we believe your best option to realize your project is with our fully qualified and professional team. We are a team of very experienced web developers and software engineers that are perfectly capable to complete your project, with all the required features, within deadline we agree. Our team guarantees that you will receive your External Product delayed redirect after page load in the deadline specified above, which will be built using PHP, WooCommerce, JavaScript, CSS and HTML. You will of course receive daily or weekly reports of our progress and direct communication with any member of our team. Thanks for the opportunity and we hope that we can have a fruitful partnership.
£10 GBP in 3 days
5.0 (15 reviews)
4.0
4.0
User Avatar
Hi, there. Nice to meet you. As a PHP, Woocommerce expert, I'm very interested in this job. I don't understand why you want to delay this. Anyway I can do it within an hour. Looking forward to hearing from you. Regards.
£50 GBP in 7 days
5.0 (3 reviews)
3.0
3.0
User Avatar
Hi there! It sounds like you are looking for a developer who can help you modify your existing code to implement a delayed redirect for external products on your Woocommerce WordPress website. To achieve this, I could use JavaScript/jQuery to delay the redirect. Here is one way to modify your existing code: First, I can add an "id" attribute to the body tag of your product page template Then, I can use jQuery to delay the redirect by waiting for the product page to fully load and then triggering the redirect after 5 seconds. I will check if the current page is a product page (by looking for the "product-page" id attribute), wait for 5 seconds using the setTimeout() function, and then trigger the redirect to the external product URL using window.location.href. Let me know if you have any questions or need further assistance. Warm Regard.
£15 GBP in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Luton, United Kingdom
5.0
8
Payment method verified
Member since Mar 25, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.