Skip to main content

All Questions

Tagged with
0 votes
1 answer
191 views

Insert a post meta in the product with variable

I state that I am not an expert! My function modifies the visibility of the product based on the presence of the price. It works well with simple products, but not with products that have variables. ...
Miki Sax's user avatar
0 votes
0 answers
28 views

WooCommerce user email and product meta data issue [duplicate]

with latest woocommerce updates my old code stoped working. Any ideas how to fix it? I need to add download links (from meta fields) to some products, that have that field not empty. ?&...
Dark Wizard's user avatar
3 votes
1 answer
4k views

Get product category and tag terms as meta keyword in WooCommerce

I have been using below code for using Tags & categories as META Keywords for my wordpress posts. function wcs_add_meta_keywords() { global $post; if ( is_single() ) { $cats = ...
kandav's user avatar
  • 85
0 votes
1 answer
689 views

Updating custom product meta box field - WooCommerce

I'm trying to update a custom product meta box field using the updating system from WooCommerce core. Here is my code: The new field Shipping info add_action( 'woocommerce_product_options_shipping', '...
justwebman's user avatar
0 votes
0 answers
31 views

How to store values in database once I created a new metabox in each of my products? How to change these values correctly using a function?

I have created a new meta box in each of my products using the following code (pasted in functions.php): /** * ADD A CUSTOM SECURITY FIELD */ function cfsf_create_custom_field() { $args = array( '...
Zdenda's user avatar
  • 69
0 votes
0 answers
796 views

Prevent save account details from changing billing meta data in woocommerce

I am building my site on woocommerce and by default, when the customer changes his billing information during checkout, this plugin not only saves this new data but also updates the customer USER meta ...
Lcapitao's user avatar
  • 303
1 vote
0 answers
325 views

woocommerce post meta display

In WooCommerce we want to display a notice on the single_product_summary when a custom meta field is true. The application is for disabled users to purchase eligible products without (VAT) tax. The ...
JDP's user avatar
  • 11
0 votes
1 answer
185 views

cant access get_post_meta key value

i make some modifications to a results table with woocomerce products, and i want to add some extra information from post meta key unique_code, but it doesnt work as it should be: $uniquecode = ...
lenaaxe's user avatar
11 votes
2 answers
7k views

Woocommerce REST API extending order response

I'm looking for a way to extend the wc-api/vX/orders/ reponse. I've added multiple custom fields to the checkout (for eg: relation number, delivery date etc). These meta are saved within the order (...
Bas's user avatar
  • 216
1 vote
0 answers
162 views

I'm looking to add a page of order meta before woocommerce cart page

I have set up a function on my billing/shipping page for woocommerce where the user selects a few items based on a custom loop. I was wondering if it is possible to add a page before the cart page ...
MV-123's user avatar
  • 387
2 votes
1 answer
4k views

Showing more Product Meta info on Woocommerce product page

I'm currently working on a woocommerce webshop using 40k+ affiliate products. Below the add to cart button woocommerce automaticly shows SKU, Category and Tags. however i would like to add more info ...
Rudy Dijkstra's user avatar
5 votes
2 answers
10k views

Woocommerce meta data on single-product using function.php

I am struggling with getting the meta data to filter properly through my functions.php. I can get this to work if I edit the meta.php in my child theme with no problem: (short story - but because I ...
JoeDostie's user avatar
  • 197
2 votes
3 answers
625 views

Display wordpress post_meta into other table

I've got a question regarding woocommerce and wordpress itself. Probably my issue is dummy yet current code is not working. What i wanted to achieve is to display my custom field data in the ...
Paweł Skaba's user avatar
0 votes
3 answers
5k views

How to change post meta for all products on product add in WooCommerce?

So I am using woocommerce and am using a plugin called WP-All-Import to import a database of products into my Quickbooks connected e-commerce platform. Now I need to change the meta "_sync_status" to "...
Baneet Grover's user avatar
0 votes
1 answer
594 views

woocommerce: how to modify/extend product/item meta

we are using woocommerce and need to add a field for all products such as future_availabilty_quantity I'm not sure where woocommerce stores all product related attributes/fields.
dave's user avatar
  • 15.3k

15 30 50 per page