doudou8
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Get time before submit the orderI am still trying to code enhancement, but do you know something that could help me?
- This reply was modified 5 years, 7 months ago by doudou8.
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Get time before submit the orderI’m using
$woocommerce->cart->add_fee( ‘Charge supplémentaire du soir’, $spfee, true, ‘standard’ );
And
add_action( ‘woocommerce_cart_calculate_fees’, ‘df_add_ticket_surcharge’ );
I need an if statement that looks if the user selected time is before or after 3:00 PM. If it is after 3 PM, a fee of 1$ is added to the order. I already have the adding I just need a way to get the value the user selected before he submits the order and verify if it’s after or before 3:00 PM.
Thank you!
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Get time before submit the orderBut I don’t need the formatting I just need the code to get the value the user selected.
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Get time before submit the orderPhp
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Get pickup time from meta_dataThank you so much!!!
Thank you!
He re is the end of my code :
add_filter( ‘get_header_image_tag’, ‘store_mall_header_image_tag’, 10, 3 );
if ( ! function_exists( ‘store_mall_exclude_sticky_posts’ ) ) {
function store_mall_exclude_sticky_posts( $query ) {
if ( ! is_admin() && $query->is_main_query() && $query->is_home() ) {
$sticky_posts = get_option( ‘sticky_posts’ );
if ( ! empty( $sticky_posts ) ) {
$query->set(‘post__not_in’, $sticky_posts );
}
$query->set(‘ignore_sticky_posts’, true );
}
}
}
add_action( ‘pre_get_posts’, ‘store_mall_exclude_sticky_posts’ );Where do I put it?
Forum: Themes and Templates
In reply to: [Store Mall] Why does the cart button transfer to the home page?(My website has a problem)