Closed

Add Free Shipping Threshold to Header

Hi Dev

I want to add a message to the top bar of each page (through admin > theme settings) that will dynamically change based on cart subtotal.

Something like this:

<?php

add_action( 'woocommerce_before_cart', 'bbloomer_free_shipping_cart_notice' );

function bbloomer_free_shipping_cart_notice() {

$threshold = 80;

$current = WC()->cart->get_subtotal();

if ( $current < $threshold ) {

wc_print_notice( 'Get free shipping if you order ' . wc_price( $threshold - $current ) . ' more!', 'notice' );

}

} ?>

but when I add this code in admin > theme settings > header it just shows code

Skills: CSS, HTML, PHP, WooCommerce, WordPress

See more: does free shipping increase sales ebay, free shipping statistics, free shipping bar woocommerce, free shipping conversion rate, free shipping banner, free shipping threshold calculator, oscommerce free shipping item, oscommerce free shipping united states, oscommerce fix free shipping, oscommerce free shipping selected products, add free url list, volusion free shipping gift certificates, free shipping graphics websites, osc free shipping zone, add free article home improvement, oscommerce free shipping icon product info, add free article shopping, add free article fashion, virtuemart free shipping, add free webmaster messenger script

About the Employer:
( 29 reviews ) two, Australia

Project ID: #20049708

26 freelancers are bidding on average $31 for this job

Speedycom

Hi there. I'm Alex. I can help you with this and I'm ready to start anytime. Please don't hesitate to check my feedback page and see what other clients are writing about me. Thank you. Cheers. Alex

$30 AUD in 1 day
(225 Reviews)
7.4
nddungha

Hello, I can modify your code to show the Free Shipping in Header. Could we discuss further in private conversation? Thanks and regards, Ha Nguyen

$30 AUD in 1 day
(261 Reviews)
7.5
jagjeetkmr90

Hi I checked the code and i can add this in [login to view URL] . Can we have a discusison ? I am ready to start the work right now . Thanks

$25 AUD in 1 day
(165 Reviews)
7.2
shayona163

hello sir i am expert in wordpress and woocommerce i have 6 year experience in this field you will satisfy with my work i can start work right now see below i did work with that [login to view URL] https://wo More

$25 AUD in 0 days
(195 Reviews)
6.9
gaurav

✅Hello, Nice to meet you. ✅I can start work immediately, click on chat button for further discussing.. Why You consider Me? ✮✮✮✮✮ 7+ years of experience in developing websites ✮✮✮✮✮ Portfolio in more than 30 fi More

$25 AUD in 1 day
(57 Reviews)
7.0
zyeloncomputech

Hi sir, Thank you for giving opportunity for biding... I have gone through your requirements and I can do your task according to your exact requirements. I have 7+ Experience in Magneto , PHP, Symfony, Shopify , More

$25 AUD in 1 day
(153 Reviews)
6.7
ykarora26

Hello, I have great experience working with Shopify, big commerce, WordPress, Joomla, Magento, open cart, drupal ,Prestashop. I have knowledge of HTML, CSS, jQuery, AJAX, PHP etc. Based on my expertise and long-te More

$17 AUD in 1 day
(213 Reviews)
7.0
smilemittal181

Hi there, I can easily add Free Shipping Threshold to Header. I'm a WordPress expert and FULL-Time Developer. I have rich experience in WordPress, PHP, Website design, CSS, Javascript, etc. I can start work immediatel More

$60 AUD in 3 days
(143 Reviews)
6.8
youdefinewesolve

Hi sir i am a wordpress and woo expert and i will do that job for you will you share the login detail and i will do that for you thanks.. Regards

$35 AUD in 1 day
(154 Reviews)
6.2
sevenstarservice

Hello, I'm a full time freelancer and am free now. I have read your project description I can complete this project in 10 min I have a lot of experience in this type of work. I'm sure I can complete it on time with h More

$30 AUD in 1 day
(16 Reviews)
5.1
imranulhasn

Yes, I have read your project and I can do your project “Add Free Shipping Threshold to Header“with the high-end output. My team is 21 years combined experience in Web Development, Graphics Design and Web Application d More

$50 AUD in 4 days
(35 Reviews)
5.1
vladzolotukhin

Hi, client I am a master of your project. I think you just found your appropriated component. I am ready to serve you. I truely had a lot of experieced so that I noticed your main meaning after checking your project. More

$20 AUD in 1 day
(7 Reviews)
4.6
kdwebsolution9

Hello sir, Hope you are doing well. i have 6+ years of experience in WordPress php codeigniter woocommrece html css mysql javascript bootstrap etc. these job suitable for me Looking for your positive reply, More

$15 AUD in 1 day
(23 Reviews)
4.7
dev152

Hi, I have reviewed your job post and understand that you need a developer who can create website register and login system. I am having 5+ year experiences in php and working on CMS and framework like wordPress, Joo More

$30 AUD in 1 day
(22 Reviews)
4.5
thirdessential

From the job description,it is clear about the motive to add Free Shipping Threshold to Header.I understood your issue that it is taking code as a text so showing you just code.I am capable to do this task in couple of More

$30 AUD in 1 day
(5 Reviews)
2.8
$25 AUD in 1 day
(5 Reviews)
2.6
strictdeveloper

Dear Client, Nice to meet you. i read your description and i can help your with your issue. I am a full stack web development having an extremely wonderful experience in Web development. I have been working as web deve More

$30 AUD in 1 day
(5 Reviews)
2.1
Rinaweb

Hello, I am new to here this platform freelancer.com but developed number of website and mobile apps in last 9 years. I can add Free Shipping Threshold to your website Header. Thank you Altius

$35 AUD in 1 day
(1 Review)
1.8
abhimadankr

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

$55 AUD in 5 days
(3 Reviews)
1.8
AliTulip

Dear Client ; I read your Project post and Can do this Header job for you . I am a Professional Wordpress Engineer having more then 7 years of experience . can we discus your Project r More

$50 AUD in 2 days
(1 Review)
0.9