function populate

فهرست مطالب
function populate

راه حل رفع ارور Call to a member function populate() ووکامرس

.

متن زیر هرچند به زبان انگلیسی می باشد ولی کاملا گویاست :

 

In order to fix this follow steps:

In your wordpress install Go to ‘../wp-content/plugins/woocommerce-upload-my-file/templates/myaccount/my-orders.php’

یا

In your wordpress install Go to ‘../wp-content/plugins/woocommerce/templates/myaccount/my-orders.php’

 

ویرایش لاین زیر :

Edit and go to line 65

یا

line 43

replace: $order->populate( $customer_order );
with: $order = new WC_Order( $order_id );

save file

—————

i solved this issue

you can go to that line and add

$order->populate( $customer_order );
$order = new WC_Order( $customer_order );

thats it

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *