Jigoshop Support - Marcin on "[Plugin: Jigoshop] Order history only showing last 5 items"

ساخت وبلاگ

embroideryallsorts
Member
Posted 6 days ago #

My customers are unable to access more than 5 of their orders in their order history. I would like them to be able to access all of their orders. up to 90 if need be. How do I change this?

https://wordpress.org/plugins/jigoshop/

Create a 'jigoshop/shortcode' directory in your theme's directory
Copy
'wp-content/plugins/jigoshop/templates/shotcode/my_account.php'
and change

$orders->get_customer_orders(get_current_user_id(), $recent_orders);

to

$orders->get_customer_orders(get_current_user_id(), 90);

embroideryallsorts
Member
Posted 2 days ago #

Thank you for that, I was able to get all of the previous orders to show bu not the downloads associated with them. It is still only showing the last 5 downloads.

Oh, downloads!
add_filter('jigoshop_downloadable_products_orders_limit', function(){retu 90;});
to your theme's functions.php :)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 174 تاريخ : دوشنبه 24 خرداد 1395 ساعت: 16:00