PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How to remove meta.

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hiya! So i figured out how to add a meta field in so i could a a different price, which has been added great to my items

Now how would i remove that price if i wanted to?

All the best

Let me explain a little more

So ive added a meta called ' _start_price '

ive added the price of £5.99 to all 3000 products in bulk..

now how would i now remove that price to all items?

Hello

It is just meta as I undertood, so you can for example by bulk set 0 or -1 and in place where you show it to your customer set in PHP conditions like next example:

if(!$price){

echo 'Out of stock';

}else{

echo $price;

}

Hiya not sure if that will work.... as i just need the filed to be blank...? as it then gets sent to other marketplaces... so it must be blank for it to read correcly.. otherwise it will set the price as zero.. if that makes sense?

All the best

is there no way of removing like you can with taxominies?

Hello

Filter that items by category and do bulk edit OR even filter items in Filter tab from 5 to 6 and then in tab Bulk set -1 https://c2n.me/492ciNq.png and that meta field will be set -1 https://c2n.me/492cpQw.png

Hiya, thanks for the reply. Nope that wont work, as it will show as minus 1,.

I just need to remove whats in the field. by bulk

All the best

Hello

As it number value - number should be transmitted,

One trick:

  1. set meta value type as string https://c2n.me/492u8ak.png
  2. find products string as 5.6 https://c2n.me/492ubrO.png
  3. in Bulk tab set space and select new https://clip2net.com/s/492ui6t

All cells will be empty

Hiya thanks for the reply... That doesn't actually work..

it makes the space read as 0.00 which writes..

Any other ideas?

Hello

Ok!  I understood you.  This requires a separate function to remove metadata completely

We will add this functionality in a new version.

Hiya okay thanks... any way i can remove all this via database or something? for now

Hello

Read  this  please - https://developer.wordpress.org/reference/functions/delete_metadata/

To delete  all meta

EXAMPLE:

$meta_key = '_start_price';

$deleted = delete_metadata( 'product', '', $meta_key, '', true );

Always make a backup before working with the database