conceptcorenl
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Modal] Call emodal close using jquerydone
Forum: Plugins
In reply to: [WooCommerce] Updare quantity with php not workingThank you very much for helping me that did the job.
And I actually did not see the wc_update_order_item_meta function on :https://docs.woothemes.com/wc-apidocs/.I looked at the classes since that made sense to me.
Forum: Plugins
In reply to: [WooCommerce] Updare quantity with php not workingOk so the update_product function should be written out like :
/** * Verander de order status * @var WC_Order */ // var_dump($data['metaId']); // string(1) “5” // var_dump($orderId); // string(3) “340” $order = wc_get_order($orderId); $order->update_status($data['order_status']); $order->update_product($data['metaId'], $orderId, array('qty' => $data['order_item_qty']));Forum: Plugins
In reply to: [WooCommerce] Updare quantity with php not workingSo the correct code should be :
/** * Verander de order status * @var WC_Order */ $order = wc_get_order($orderId); $order->update_status($data['order_status']); $order->update_product($orderId, $data['metaId'], array('qty' => $data['order_item_qty']));Forum: Plugins
In reply to: [WooCommerce] Updare quantity with php not working$orderId dumps : 340 << which also is shown in admin panel at orders.
$data[‘metaId’] dumps : 5 << which corrospodends with the order_item_idForum: Plugins
In reply to: [WooCommerce] Updare quantity with php not workingThat is strange since it does not update the quantity if I do that.
This is what I have now :/** * Update een order voor een klant * @param int $userId user id * @param int $orderNr order id * @return bool return true or false */ function updateOrder($orderId, $data) { var_dump($orderId); /** * Verander de order status * @var WC_Order */ $order = new WC_Order($orderId); $order->update_status($data['order_status']); $order->update_product($data['metaId'], array('qty' => $data['order_item_qty'])); }Forum: Plugins
In reply to: [WooCommerce] Updare quantity with php not workingand the item id would be : order_item_id, from the wp_woocommerce_order_itemmeta table ?
Forum: Plugins
In reply to: [WooCommerce] Remove shopping cart pricesI have found it, needed to add custom templates to my theme to fix it.
Forum: Plugins
In reply to: [Groups] See if user is in groupThank you Sir that works perfectly.
Best Regards,
Wouter.Forum: Plugins
In reply to: [Groups] add group when user is being createdThanks that will do the job !
Forum: Plugins
In reply to: [WooCommerce] For user order item informationI figured it out already thanks to you documentation website.
I am completely new to wordpress so please don’t mind my questions please.Forum: Plugins
In reply to: [WooCommerce] Edit item in order as admin ?ok, Thank you for your patience.
Have a nice day.
Forum: Plugins
In reply to: [WooCommerce] Edit item in order as admin ?well it does work with woocommerce.
As far as I can see it puts the product ID in _w2p_set_option field in the database.
So I need a way to retrieve that ID I guess.Forum: Plugins
In reply to: [WooCommerce] Edit item in order as admin ?Hello Mike,
We are using https://wordpress.org/plugins/pitchprint/ in out system.
But we need a way so the client can send trough the design and place and order.After that is done we want the funeral employee to be able to succesfully finish the order.
That being said, We need to collect all editable text that the client has inserted and somehow retrieve that when the funeral employee is logged in ?
Forum: Plugins
In reply to: [Groups] show all users of child groupHello Antonio B,
Thank you for the suggestion.
I will take a look at it and see if that is what I need.Best regards,
Wouter van Marrum.