Comments on: How to add custom cart item data in WooCommerce [2023] https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/ WooCommerce Plugins Mon, 06 Mar 2023 11:02:13 +0000 hourly 1 By: JP https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-192143 Fri, 30 Sep 2022 13:56:46 +0000 https://pluginrepublic.com/?p=77703#comment-192143 M8 not often I find a fully working first time solution all so well documented.
I had these features up and running in 15mins, this has allowed me to pass some browser sourced JSON
into the cart per item and get to it in the back end to modify orders, very well done and many thanks.

]]>
By: AR. Arif https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-167992 Thu, 06 Jan 2022 13:37:31 +0000 https://pluginrepublic.com/?p=77703#comment-167992 Thanks, man you helped me a lot. Really appreciate your help

]]>
By: Gareth https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-155201 Wed, 08 Sep 2021 09:02:16 +0000 https://pluginrepublic.com/?p=77703#comment-155201 In reply to Ased.

Hi – you can set the price per character using this plugin: https://pluginrepublic.com/wordpress-plugins/woocommerce-product-add-ons-ultimate/.

Thanks.

]]>
By: Ased https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-155200 Wed, 08 Sep 2021 08:57:41 +0000 https://pluginrepublic.com/?p=77703#comment-155200 Hi, I haven’t found any article like this, I have a question can we display and increase the price as per character? Thanks

]]>
By: Nazmus Sakib Dhir https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-136990 Sun, 25 Apr 2021 12:09:38 +0000 https://pluginrepublic.com/?p=77703#comment-136990 Thank you. It really helped me . I didn’t want to use any plugin and no plugin was letting me do what I wanted either. So had to go for coding solution and this article helped me specially

]]>
By: Zach https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-104773 Thu, 25 Jun 2020 01:00:20 +0000 https://pluginrepublic.com/?p=77703#comment-104773 How would I use this on the archive page? So I could add items with specific variations to the cart from there, as well as the single product page? I have the the inputs showing up on the listings, but the data isn’t being passed along.

]]>
By: Michael Tsai https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-66525 Mon, 17 Feb 2020 17:59:35 +0000 https://pluginrepublic.com/?p=77703#comment-66525 Thank you so much for taking time to answer my newbie question!
I think I know what to do now.
( I’m totally new to PHP, WordPress, and WooCommerce.)

]]>
By: Gareth https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-65905 Sat, 15 Feb 2020 07:28:12 +0000 https://pluginrepublic.com/?p=77703#comment-65905 In reply to Michael Tsai.

Hi Michael

You’d have to use $_GET['referer'] to check for this parameter.

]]>
By: Michael Tsai https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-65800 Fri, 14 Feb 2020 17:54:21 +0000 https://pluginrepublic.com/?p=77703#comment-65800 Very helpful! Just what I’m looking for.
I have one question: instead of input by users, can I pass custom field value via URL parameters?
For example, some customers may use a specific URL to add a product to the cart, and in the URL there is a parameter ‘referer=John’. Then this referer ‘John’ will be displayed in the custom field shown on the product page.

Is there an action hook that I can extract this ‘referer” parameter from URL and save it to the custom field?

]]>
By: Yann Deo https://pluginrepublic.com/add-custom-cart-item-data-in-woocommerce/#comment-63717 Thu, 06 Feb 2020 11:53:27 +0000 https://pluginrepublic.com/?p=77703#comment-63717 Hello , please , after ta add custom product in cart , how get this metadata where we click on product thumnail of cart .I want get my custom data of product cart ; in single-product page .

]]>