Find Jobs
Hire Freelancers

Woocommerce PHP Custom Script - Add Subscription Product to Any Product on Checkout

$30-250 USD

Suoritettu
Julkaistu lähes 5 vuotta sitten

$30-250 USD

Maksettu toimituksen yhteydessä
Currently we are forcing Subscription but it seems very complicated so I want to make a change - I want to make very EASY for customer - Steps: Customer clicks buy now Shopping cart add product + subscription product ------------------- I Found this Code that you may find helpful ------------------------------------ PHP Snippet: Add “Product Gift” to Cart if SKU is Added to WooCommerce Cart /** * @snippet Buy 1, Get Free Product as a Gift - WooCommerce * @how-to Watch tutorial @ [login to view URL] * @sourcecode [login to view URL] * @author Rodolfo Melogli * @compatible Woo 3.5.3 * @donate $9 [login to view URL] */ add_filter( 'woocommerce_add_to_cart_validation', 'bbloomer_add_gift_if_sku_added_cart', 10, 3 ); function bbloomer_add_gift_if_sku_added_cart( $passed, $product_id, $quantity ) { global $woocommerce; /* enter array of SKUs that give gift */ $skuswithgift = array('armpar','armsup'); /* enter SKU of product gift */ $giftsku = 'starter'; /* enter name of coupon that gives 100% discount for specific product gift */ $coupon_code = 'xxxyyyzzz'; $product = wc_get_product( $product_id ); if ( $product->get_sku() && in_array( $product->get_sku(), $skuswithgift ) ) { WC()->cart->add_to_cart( wc_get_product_id_by_sku($giftsku) ); wc_add_notice( __( 'Hey, Supporter! As promised, I added #CustomizeWoo Video Lessons for Free - you will be able to access them in a single place (~ My Courses ~) and get premium support.', 'woocommerce' ), 'success' ); $woocommerce->cart->add_discount( $coupon_code ); } return $passed; }
Projektin tunnus (ID): 20010221

Tietoa projektista

13 ehdotukset
Etäprojekti
Aktiivinen 5 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
Hello, I read your requirements and understand very-well and ready to start work from now. Thank you
$150 USD 2 päivässä
4,8 (200 arvostelua)
7,3
7,3
13 freelancers are bidding on average $189 USD for this job
Käyttäjän avatar
//** EXPERT IN WORDPRESS WOOCOMMERCE CUSTOM WORK **// More then 7+ years of experience in Development . Also kindly check our profile we have done over 350 project here on freelancer so very much reliable & fit for your project . Kindly initiate chat.
$250 USD 2 päivässä
4,9 (427 arvostelua)
8,2
8,2
Käyttäjän avatar
Hi, Recently, we completed a project for the client, which is completed in the WordPress. In this field, I am 5 years experienced in PHP, CakePHP, Wordpress, Wordpress Theme Integration, Woocommerce/E-commerce, Responsive Design. I would also mention my working with 100% result. Please have a look at my recent work: - [portfolio cat="Wordpress Development"] In any case, you need any type of help to solve your problem, I am always ready to solve your problem. Thank you for taking the time to read my application. Kind wishes Navneet
$50 USD 5 päivässä
4,9 (91 arvostelua)
6,5
6,5
Käyttäjän avatar
Nice to meet you. I've read the task description and can develop definitely. I'll provide you with the highly skill to complete this task in time. I'll also do my best for you. Please contact with me. Thank you very much.
$100 USD 3 päivässä
4,9 (105 arvostelua)
6,5
6,5
Käyttäjän avatar
Hello! I am a web developer.(WORDPRESS expert) I have checked your project description. I can help you with customizing woocommerce I guarantee the good result. I will wait for your reply. Thank you.
$155 USD 3 päivässä
4,9 (35 arvostelua)
5,7
5,7
Käyttäjän avatar
Hello, I am expert web developer and I can help you right now with the subscription function on your Woocommerce website. Let's discuss more. Thank you
$100 USD 1 päivässä
5,0 (22 arvostelua)
5,6
5,6
Käyttäjän avatar
hello sir , i have ready this kind of project i can show you demo also i can do this work please inbox me i have 10 years experience in software and web development in asp.net c# mvc technology , i can do your work as per your requirement. let me know if my profile suitable for your project. thanks
$277 USD 3 päivässä
4,9 (16 arvostelua)
4,9
4,9
Käyttäjän avatar
I read job description and I can do your project.I can even work on urgent basis and complete your project soon..contact me for more information
$166 USD 5 päivässä
5,0 (3 arvostelua)
1,8
1,8

Tietoja asiakkaasta

Maan UNITED STATES lippu
Houston, United States
4,8
100
Maksutapa vahvistettu
Liittynyt maalisk. 5, 2010

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.