Support Forum

Content of the article

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

To Get Bulk Product Name

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 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.

Hi there,

i am trying to show bulked products name in history page, how to get bulked product name?

Thank you.

Hello

Unfortunately, the plugin does not have such a feature.

I think it is difficult to implement because the user can edit 1000 or 3000 products. How to show all these product names

I am asking this code: get_the_title($operation['product_id'])

now i am taking product names no problem but i think woocommerce functions doesnt work in history page. Why?

Also how am i see errors? i am seeing just error message, thats all.

Hello

Please  drop me text  of  the  errors

 but i think woocommerce functions doesnt work in history page - It's impossible

Here is the my code:

 

<?php

$bulk_keyim = $operation['bulk_key'];

global $wpdb;
$result = $wpdb->get_results("SELECT * FROM wp_woobe_history WHERE bulk_key = '$bulk_keyim' ");

foreach ( $result as $print ) {
$id= $print->product_id;
$findID = $wpdb->get_results("SELECT post_author FROM wp_posts WHERE id = '$id'");
$vendorid = $findID[0]->post_author;

$vendorname = $wpdb->get_var("SELECT user_login FROM wp_users WHERE id = '$vendorid' " );?>
<li class="toplu-urun-listeleme">

<div class="col-lg-4"><?php
$urunusec = wc_get_product($id);
echo "Satıcı Adı: <strong>". $vendorname . "</strong><br>";?></div>
<div class="col-lg-3"><?php echo "Ürün Adı: " . $urunusec->get_title() ?></div>
<div class="col-lg-3"><?php
echo"ÖNCEKİ FİYAT: " . $print->prev_val;
?></div>
<div class="col-lg-2"><?php echo "Şu anki regular price:" . $urunusec->get_regular_price() . "<br>Şu anki sale price". $urunusec->get_sale_price();?></div>

</li><?php } ?>

 

i am taking this error: https://monosnap.com/file/irvqxep5SIfhAkXkNUZ3Fs2LFIxbjl

how can i see main error details?

thank you.

Hello

Use https://wordpress.org/plugins/query-monitor/  AND  https://wordpress.org/plugins/error-log-monitor/

Hi again Pablo,

this code block works well in v.2.0.3  after last update doesnt work anymore.

 

<?php

$bulk_keyim = $operation['bulk_key'];

global $wpdb;
$result = $wpdb->get_results("SELECT * FROM wp_woobe_history WHERE bulk_key = '$bulk_keyim' ");
echo "burasu denemedir: ";
foreach ( $result as $print ) {
$findID = $wpdb->get_results("SELECT post_author FROM wp_posts WHERE id = '$id'");
$vendorid = $findID[0]->post_author;

$vendorname = $wpdb->get_var("SELECT user_login FROM wp_users WHERE id = '$vendorid' " );?>

<li class="toplu-urun-listeleme">

<div class="col-lg-4"><?php
$urunusec = wc_get_product($operation['product_id']);

echo "Satıcı Adı: <strong>". $vendorname . "</strong><br>";?></div>
<div class="col-lg-3"><?php echo "Ürün Adı: ". $urunusec->get_title();?></div>
<div class="col-lg-3"><?php
echo"ÖNCEKİ FİYAT: " . $print->prev_val;
?></div>
<div class="col-lg-2"><?php echo "Şu anki regular price:<br>Şu anki sale price"?></div>

</li><?php } ?>
<?php endforeach; ?>

 

i am taking this error in last version: Fatal error: Uncaught Error: Call to a member function get_title() on boolean in /plugins/woocommerce-bulk-editor/ext/history/views/list.php:138

i dont get woocommerce products titles etc in list.php page.

Can you please help me?

Thank You.

Hello

https://c2n.me/43aGCq9.png - incorrect product object.  Possibly invalid ID

You should hire a developer to do this customization.

where is the operation function code ?

Hello

where is the operation function code ? - I did not understand your question

which file did you code $operation variable ?

Hello

In file - wp-content\plugins\woocommerce-bulk-editor\ext\history\history.php