Find Jobs
Hire Freelancers

Change item name dynamically in woocommerce checkout with PHP

€8-30 EUR

Completed
Posted over 3 years ago

€8-30 EUR

Paid on delivery
I need a very small php function, I have the following code that change the item name in carte and checkout page, the only thing that is missing is that after the order is complete, the order is recorded with the original name, not the modified one: function customizing_item_name( $item_name, $item ) { if ( ! method_exists($item, 'get_product_id') && isset($item['product_id']) ) // For cart item $product = wc_get_product( $item['product_id'] ); else // For order item $product = wc_get_product( $item->get_product_id() ); $attributes = (object) $product->get_attributes(); if ( isset( $attributes->my_custom_item_attribute) ) return __("Super produit !"); return $item_name; } add_filter( 'woocommerce_cart_item_name', 'customizing_item_name', 10, 2 ); add_filter( 'woocommerce_order_item_name', 'customizing_item_name', 10, 2 ); I need the order to be saved in db with the modified name using wordpress filters.
Project ID: 27856992

About the project

17 proposals
Remote project
Active 3 yrs 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, I've already done product name and image manipulation and dynamic price calculation at woocommerce for a product. I can achieve this and I can also make the dynamic name to order. Thanks
€20 EUR in 1 day
4.9 (33 reviews)
5.6
5.6
17 freelancers are bidding on average €44 EUR for this job
User Avatar
Hi, I have read your job description carefully as i can save modified value in db. I have fantastic experience in this fields such as WordPress, Magento 1 & 2 , Shopify, codeigniter, HTML, CSS, Javascript, PHP and other related tasks. You can get hold of me instantly to discuss this position further. Thanks.
€20 EUR in 1 day
5.0 (143 reviews)
6.0
6.0
User Avatar
Hi, based on your description, I see you are looking for a developer who can start your project immediately. I am a senior web developer with extensive development background. I have more than 10 years of development experience and in-depth skills in Website Design development and scripting languages such as PHP, MySQL, HTML, CSS, JavaScript, jQuery, WordPress, Woo-commerce and WordPress plugins and search engine optimization (SEO). Please contact me to discuss more regarding this project. I would be happy to work with you on this project "Change item name dynamically in woocommerce checkout with PHP" and in future ones. :) Kind Regards
€30 EUR in 1 day
5.0 (43 reviews)
5.1
5.1
User Avatar
Hi, I have been working on WordPress since last 8+ years. I have worked on several similar projects. You can see an example of one of those projects in my portfolio here: https://www.freelancer.com/u/aswebsmart I'm interested to hear more about the project. If you award me the project I'd be very happy to discuss this further and get started for you as soon as possible. Thanks! Arun
€30 EUR in 1 day
4.8 (52 reviews)
5.4
5.4
User Avatar
Dear Client, I can save updated item name in db using filter. Please come on chat and share details. I have 12 years of experience in Wordpress and other Php related technologies. Thanks, Sanjeev
€30 EUR in 1 day
4.9 (18 reviews)
3.8
3.8
User Avatar
Hi, dear! I have read your description carefully and I am sure what you mean. I have expertise in Wordpress, Laravel framework, Html, CSS, PHP, Javascript, Ajax and Mysql for 3 years. I have done many projects in these fields, so I can provide you the perfect result for you and I am confident to deliver 100% total satisfaction to you. Please invite me so that we can discuss more details over chat. Looking forward to hearing from you. Thanks, best regards.
€50 EUR in 7 days
5.0 (6 reviews)
3.3
3.3
User Avatar
Hello, I am an experienced WordPress and woocommerce developer with 10+ years of experience working on WordPress plugin and theme development and modifications. I have worked on websites from design to completion, worked on enhancing functionality and design, worked on fixing problems in themes and plugins. I can customize plugins and themes using filters and actions keeping them updatable. Regards Mahboob
€30 EUR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I have gone through your full description.I have 5+ years experience in PHP.I would like to know more about the projects If you have any query I will be always happy to answer. I know well about PHP, CodeIgniter, CakePHP and MySQL. If you award me the project I'd be very happy to discuss this further and get started for you as soon as possible. Thanks! Prabitha
€20 EUR in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of FRANCE
Bourg de peage, France
5.0
52
Payment method verified
Member since Dec 23, 2003

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.