in functions // get from session your URL variable and add it to item add_filter(‘woocommerce_get_cart_item_from_session’, ‘cart_item_from_session’, 10, 3); function cart_item_from_session( $data, $values, $key ) { $data[‘text’] = isset( $values[‘text’] ) ? $values[‘text’] : ”; return $data; } // this one does the same as woocommerce_update_cart_action() in plugins\woocommerce\woocommerce-functions.php // but with your URL variable // this… Read more »
WP Onderwerp: woocommerce
woo aanpassen
Woocommerce toegang tot admin dashboard
Woocommerce sluit de admin af voor alle gebruikers die geen posts kunnen bewerken. Als zij naar wp-admin gaan worden ze omgeleid naar /my-account/. Dit is handig in 90% van de gevallen maar een probleem als sommigen gebruikers bij /wp-admin/ moeten kunnen. /* ALLOW REDACTEUR (EDITOR) TO ACCESS DASHBOARD AND ADMIN BAR*/ add_filter(‘woocommerce_disable_admin_bar’, ‘functie_disable_admin_bar’, 10, 1);… Read more »