raulinovum
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Filter for the orders list in My account section (frontend)I couldn’t find any solution too, so I had to build it by myself ??
Forum: Plugins
In reply to: [WooCommerce] Filter for the orders list in My account section (frontend)Hi,
not really.
In the end, I created a whole new section in My account page, called ‘Search orders’, and there, I built a table where I load all the orders, and then, I filter it through javascript.Cheers
Forum: Plugins
In reply to: [WooCommerce] Filter for the orders list in My account section (frontend)Any idea to solve it?
Forum: Plugins
In reply to: [WooCommerce] Filter for the orders list in My account section (frontend)I think the best way to do it is modifying the list of the orders passed to that page and then, I’m assuming that the pagination would work properly, but I cannot find the correct hook to modify it. I’ve tried the ‘woocommerce_my_account_my_orders_query’ but I don’t know if it’s the correct one or if I’m managing it properly.
Forum: Plugins
In reply to: [WooCommerce] Filter for the orders list in My account section (frontend)If I filter the orders in the orders.php manually doing something like this:
if ( $order->billing_company == "bcompany2" ) :
It simply filters the table, but it keeps the original pagination, showing only each register that matches with the company in every page, not putting all of them together and recalculating the pagination.
There’s any place to do the filtering and make it all work properly?
Thanks!
P.S.: I’m using a new version of woocommerce, that one that’s not using the my-orders.php file but the orders.php.
Problem discarded.
Forum: Plugins
In reply to: [WooCommerce] Show fields in product page depending on user roleHello!
Thanks for your answer!
This links had been so useful, but finally, to get the role, I used the next code:global $current_user; wp_get_current_user(); $loggedUserRole = array_values($current_user->roles)[0];
Thanks again for your help ??
Cheers
Hello again,
Thanks for your quick answer.
The thing is that I’ve checked the permissions of the directory and are the following ones:wpcontent – 755
themes – 755
shophistic -775
less – 775
font-ecommerce – 775
fonts – 775ecommerce.eot, ecommerce.svg, ecommerce.ttf and ecommerce.woff – 775
These permissions are ok?
Should I reset the permissions? How can I do it?
Thank you very much ??