WooCommerce extra status toevoegen
// New order status AFTER woo 2.2 add_action( 'init', 'register_my_new_order_statuses' ); function register_my_new_order_statuses() { register_post_status( 'wc-invoiced', array( 'label' => _x( 'In productie', 'Order status', 'woocommerce' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'In productie <span class="count">(%s)</span>', 'In productie<span class="count">(%s)</span>', 'woocommerce' )...
Bekijk alle artikelenSorteervolgorde WooCommerce eigenschappen / attributes
Sorteervolgorde WooCommerce eigenschappen aanpassen https://devanswers.co/change-woocommerce-variations-attributes-custom-sort-order/
Bekijk alle artikelenACF veld tonen op Single Product
Advanced Custom Field tonen WooCommerce Voeg deze code toe aan de functions.php van je thema of in bijv. Code Snippets plugin.
Bekijk alle artikelenNog x euro voor gratis verzending
1.Plaats het PHP bestand uit deze zip in je child-theme folder Download file (wel eerst uitpakken!) 2. Activeer gratis verzending binnen de verzendmethodes 3. Voeg toe aan functions.php van je child-theme // shipping notification require_once('shipping-notification.php'); 4. Voeg toe aan style.css .delivery-schedule { display: block; background: rgb(38, 47, 51); padding: 15px 0;...
Bekijk alle artikelenBespaar % in de sale badge WooCommerce
Kortingspercentage tonen in sale badge WooCommerce De standaard sale badge van WooCommerce toont alleen -x%. Met deze snippet in je functions.php van je thema of in de Code Snippets plugin kun je hier een tekst aan toevoegen als 'bespaar' of 'korting'. /** show saved % in sale badge */ add_filter(...
Bekijk alle artikelenIn winkelmand / Add to cart tekst WooCommerce wijzigen
Tekst in winkelmand / add to cart knop in WooCommerce wijzigen Veel zaken in WooCommerce kun je vertalen in WooCommerce met bijv. de Loco Translate plugin. Dit zal vaak zonder problemen werken. De in winkelmand knop kun je ook vertalen. Een andere optie is om de onderstaande code in je...
Bekijk alle artikelenEuro teken weghalen in WooCommerce behalve in checkout
Conversie optimalisatie WooCommerce webshop Veel grote webshops tonen in de shop geen euro teken bij de prijzen, alleen in de checkout wel. Dit is niet standaard in te stellen in WooCommerce, met deze snippet in de functions.php of in Code Snippets plugin los je dit op. function avia_remove_wc_currency_symbol( $currency_symbol, $currency...
Bekijk alle artikelenHuisnummer verplicht in WooCommerce
Huisnummer check in webshop WooCommerce Heb je regelmatig dat bezoekers van je webshop vergeten hun huisnummer achter het adres te plaatsen? Met deze code in je functions.php van je thema of de plugin Code Snippets is dit verleden tijd, je bouwt een check in op huisnummer. add_action('woocommerce_checkout_process', 'custom_validation_process'); function custom_validation_process()...
Bekijk alle artikelenMinimum orderbedrag in WooCommerce
Minimum orderbedrag in WooCommerce Wil je in jouw WooCommerce webshop instellen dat er besteld kan worden vanaf een minimum bedrag? Dan kun je deze snippet plaatsen in je functions.php of inladen via een plugin als bijvoorbeeld Code Snippets. function lamper_minimum_order() { $minimum = 14.99; // Pas hier het minimum bedrag...
Bekijk alle artikelenNul (,00) weghalen bij prijs in WooCommerce
Nul weghalen in prijs WooCommerce Als je ronde prijzen in je webshop invoert dan zal deze getoond worden als 8,00 bijvoorbeeld. Deze snippet in je functions.php van je thema of in bijvoorbeeld Code Snippets zal de 00 vervangen voor ,- function remove_zeroes_from_price($price) { $price = str_replace(',00', ',-', $price); return $price;...
Bekijk alle artikelen