Closed

Modify PHP Code Woocommerce

I would like to change this code so it automatically shows in the same position regardless of stock management settings in the backend

add_filter('woocommerce_get_availability_text', 'customizing_stock_availability_text', 1, 2);

function customizing_stock_availability_text($availability, $product) {

if (!$product->is_in_stock()) {

$availability = __('Sold Out: Back in stock August 2021. Enter your email to be notified', 'woocommerce');

} elseif ($product->managing_stock() && $product->is_on_backorder(1)) {

$availability = $product->backorders_require_notification() ? __('Available on backorder', 'woocommerce') : '';

} elseif ($product->managing_stock()) {

$availability = __('<a style="text-decoration: none;" href="delivery-and-returns/"><b>FREE</b> Delivery in 2 - 4 bus. days if you spend $85 (otherwise just $9) </a><div style="clear:both;"></div><hr>', 'woocommerce');

$stock_amount = $product->get_stock_quantity();

switch (get_option('woocommerce_stock_format')) {

case 'low_amount' :

if ($stock_amount <= get_option('woocommerce_notify_low_stock_amount')) {

/* translators: %s: stock amount */

$availability = sprintf(__('Only %s Available!', 'woocommerce'), wc_format_stock_quantity_for_display($stock_amount, $product));

}

break;

case '' :

/* translators: %s: stock amount */

$availability = sprintf(__('%s Available!', 'woocommerce'), wc_format_stock_quantity_for_display($stock_amount, $product));

break;

}

if ($product->backorders_allowed() && $product->backorders_require_notification()) {

$availability .= ' ' . __('(can be backordered)', 'woocommerce');

}

} else {

$availability = '';

}

return $availability;

}

Skills: PHP, WordPress, WooCommerce, CSS, MySQL

See more: joomla change code, php dropdown menu select table update code, auto change code routers, php extract image url img src code, change code, google apps password change code, php mysql instant message open source code, change code php, change code menu joomla, change code php aspx, php change code easy, change code php jsp, i get a programmer to code my site like zazzles, like unlike code in php, php contact form returning the php code when i press the submit button

About the Employer:
( 41 reviews ) two, Australia

Project ID: #31013771

30 freelancers are bidding on average $164 for this job

phpMaestro

Hi there, I can do this task to Modify PHP Code Woocommerce being an expert Web deveper. Please initiate a chat to discuss further details and I can then provide you with a final Quote for this project. Look forward More

$250 AUD in 7 days
(384 Reviews)
10.0
AltiuseCreaton

Hi, I can help you in changing the code on woocommerce .. Let me know when you here to discuss more in detailed about Job. I am having 10 years experience on woocommerce development. You can check my profile : http More

$300 AUD in 2 days
(132 Reviews)
7.5
MikeAscendancy

Hope you are doing good! I am an experienced Web Developer having 7 years experience with WordPress/PHP. I have awarded many times for delivering best quality work. Please have a look on my expertise: # WordPress, T More

$160 AUD in 7 days
(181 Reviews)
6.8
(146 Reviews)
6.7
maxtechsl

Hello, I am PHP expert with 12+ years experience and ready to help you make changes to the stock management settings as per your need and provide you fast, efficient and quality, long term work support. I have good More

$60 AUD in 2 days
(111 Reviews)
6.7
vashishtrupinder

Hi I AM READY TO START NOW I read through the job details carefully and I am absolutely sure that we can do the project very well. In a nutshell, I'm a freelancer with more than 7 years of work experience. Expert More

$250 AUD in 7 days
(116 Reviews)
6.8
imTuyen

Hello Sir. I read your project description. I can do this project right now. I am a professional Linux and developer in PHP, Wordpress, Laravel, Magento, Joomla, Prestashop, OpenCart, Yii, NodeJS, Angular, Vue.js, HTML More

$150 AUD in 1 day
(120 Reviews)
6.6
aswebsmart

Hi, I will modify custom woo-commerce code on your website according to your job requirement. I have been working on WordPress since last 8+ years. I have worked on several similar projects. You can see an example of o More

$150 AUD in 2 days
(71 Reviews)
5.9
rainsys

--------- PLEASE GIVE ME A CHANCE TO WORK ON YOUR PROJECT --------- Dear Sir / Madam, I am Moffazzal from Rainsys. Rainsys is a Web & Software Development Company with 12 persons working together. We have 9+ years of More

$30 AUD in 1 day
(69 Reviews)
5.5
jayprakashyadav

Hello, I want to introduce myself about the woo-commerce experience using wordpress , I have created addons for several features like course creations with woo-commerce, Review and rating for products ( custom addons) More

$140 AUD in 7 days
(23 Reviews)
5.7
saaz109

Hello, how are you doing today? I have read your serious suggestion carefully. I am an expert in PHP, MySQL, WordPress, Custom WordPress Plugins and Themes Development, Modifying WordPress Core, WordPress Hooks, Short More

$140 AUD in 2 days
(53 Reviews)
5.8
mannaranjit756

Sir , I have read your project details( Modify PHP Code Woocommerce ). I have good knowledge in ( PHP WordPress CSS MySQL WooCommerce ) . I have 7+ years Experience in Web-Design and Web-Development.I b More

$140 AUD in 7 days
(16 Reviews)
5.2
NextYoo

⭐️Hi There⭐️ I am confident for the project ⭐️GUARANTEE:- WORK DONE OR FULL REFUND ⭐️WHY ME :- I have 100% complete rate because I have good Respect for clients and i always try to make good communication to clear th More

$140 AUD in 7 days
(12 Reviews)
5.2
jameskaydev

for customizing your ~Website~ you need a >>Professional Web Developer<<. I'm here to help you to customize your Woocommerce PHP Code. I have more than 6 yrs of exp in "HTML, CSS, JS, JQUERY, PHP and WordPress". Cou More

$230 AUD in 6 days
(23 Reviews)
5.2
ssumitkumar7800

Hello, Gretting of the day!! I have gone through your requirements that you need to Modify PHP Code Woocommerce I am an expert on WordPress Design & Development. I have done more projects on time. I have knowledge o More

$140 AUD in 3 days
(5 Reviews)
4.2
mihagorr

Hi! If you want to show content in the same position regardless of the stock management settings, I can do it with an eye for detail by the time you want. I’ve a very good proficiency in WordPress and Woocommerce. Exam More

$140 AUD in 7 days
(3 Reviews)
4.4
(188 Reviews)
4.9
mehulsolanki

Hello sir, As you mention you need a WordPress developer/designer for your change code project. Yes, I have a piece of good knowledge on it and I already did similar jobs before. I was checking the job post and found More

$200 AUD in 7 days
(10 Reviews)
4.8
creativegraaphic

Hello, Greetings of the day!!!!! I have 7+ years Experience in Web Designing/Development ,Bootstrap, HTML5, PHP, Wordpress, Angular,laravel WooCommerce, E-commerce, Shopify, JavaScript, Jquery etc. As I understand that More

$250 AUD in 8 days
(5 Reviews)
4.1
bruicanlas

Hello, client. Hope you to be in good health. As a superb developer with 5+ years of experience in fullstack development, now I feel really confident to finish your job with best quality. Particularly, I have rich exp More

$140 AUD in 2 days
(7 Reviews)
4.0