cochii
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Change shipping methodHello !
I found how to delete a shipping method
but to add one, I need help and maybe someone could help meI have an instance of WC_Shipping_Free_Shipping that I want to set in WC_Order_Item_Shipping
Can I set only the ID and do something to update all data or I need to set all data (method_title, method_id, total, array of data with order_id, name, instance_id,all meta_data with all articles) ?Forum: Plugins
In reply to: [WooCommerce] Change shipping methodHello @margaretwporg thanks for your response
Excuse me, I forgot to specify that I wanted to do it automatically, in a piece of code that is executed automaticallyI need to observe them. I have a specific workflow and I need to do an action when I saved post (not publish it, just save draft). This action is : get all user who can edit/read/revise post, save something into custom table in database and other thing. And I cannot retrieve this user list during the “save draft”, surely because PublishPress saves the data after the “post_updated” hook
Thanks @kevinb but when I save post for first time, the permissions aren’t saved when I trigger post_updated…
@stevejburge if i bought the plugin, can I add action when I set permission to a post ?
Hi @stevejburge
Before to buy this plugin, i need to know if I can put in place what I need. Once the plugin is bought, can I add an action at this moment?Hello @stevejburge
thank you for your reply.
But the site was developed without the use of reviews and authors as on the documentation
Publishpress permission is used in parallel, the authors are managed like this. Regarding the statutes, the only ones used are Draft and Published
I will need to send a notification each time the article is saved (with Draft status) so for example a user creates and writes the article, he saves as a draft => a notification is sent
He then modifies this article and saves it in draft again => a notification is sentIs it possible ?
I tried to select “All” in Previous Status and Draft for new status but it doesn’t seem to workThanks it’s work
Thanks it works !
Do you have any ideas to do this ? how it is saving in the database ?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] PDF in mailThank you for your answer. However via Woocommerce > PDF Invoices > Documents, I don’t have the Attach to option for packing slip.. How to do this for packing slip ?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] PDF in mailOr how to save file on my server ?
Hi @wpallimport
thank you for the answer
I have a problem on the other hand, because during my import, I edit several taxonomies, one of them is hierarchical and can have several … How can I put the option “Remove existing taxonomies, add new taxonomies” only on a precise taxonomy?Forum: Plugins
In reply to: [WooCommerce] Add to cart wrong quantityHi,
I found a solution
I add this code in functions.phpfunction kia_print_quantity_footer_scripts() { if( did_action( 'woocommerce_after_shop_loop' ) ) { ?> <script type="text/javascript"> jQuery( document ).ready(function($) { $('.product .qty').on('change', function() { $(this).closest( '.quantity' ).next( 'a' ).attr( 'data-quantity', $(this).val() ); console.log( $(this).closest( '.quantity' ).next( 'a' ).attr('data-quantity') ); }); }); </script>