Timeline for How do I update product shipping using PHP in WooCommerce?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 8:21 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 11, 2015 at 18:50 | comment | added | rex a.k. | Modifying the shipping options is done on the cart object. You may be able to copy the template and the checkout template, but it would be easier to add the functions in a custom plugin or your functions.php file. Functions.php is located in your theme folder. You should probably investigate how to make a child theme, that way your custom code does not get overwritten when your theme updates. | |
Dec 11, 2015 at 15:45 | comment | added | Krista Lynn Kelly | So I am re-evaluating my plan on how to get this to work... where do I find this functions.php? Is it inside the WooCommerce plugin or is it part of the theme? I'm not sure which one to edit. | |
Dec 10, 2015 at 17:25 | comment | added | Krista Lynn Kelly | Thank you for taking the time to reply. I don't really want to edit the functions.php area. I just need to somehow update the product with the shipping info using the Force Shipping plugin I have already. So it needs to be in the custom calculator form I have on my website in php- I think it has to be something like: update_post_meta( $post_id, 'wfp_ship', $insert_shipping_method_here? ); The syntax is just throwing me... I don't know what to put there. I posted the full plugin code on twowaymirrors.com/experiment-page under my calculator. | |
Dec 10, 2015 at 0:04 | history | answered | rex a.k. | CC BY-SA 3.0 |