/** * Astra Child Theme functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Astra Child * @since 1.0.0 */ /** * Define Constants */ define( 'CHILD_THEME_ASTRA_CHILD_VERSION', '1.0.0' ); /** * Enqueue styles */ function child_enqueue_styles() { wp_enqueue_style( 'astra-child-theme-css', get_stylesheet_directory_uri() . '/style.css', array('astra-theme-css'), CHILD_THEME_ASTRA_CHILD_VERSION, 'all' ); } add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 ); /** * Add custom text to the WooCommerce shop page footer */ add_action( 'woocommerce_after_main_content', 'add_text_to_shop_page' ); function add_text_to_shop_page() { if ( is_shop() ) { echo ''; } } /** * Add Rainwear Details to a WooCommerce page (for example after the main content) */ add_action('woocommerce_after_main_content', 'add_rainwear_details'); function add_rainwear_details() { if ( is_shop() ) { echo '

Why Choose Waterproof Rainwear?

Whether you\'re battling a brewing storm in Cape Town or a blustery day in Johannesburg, our Protective Workwear has got you covered. This rainwear is an essential armour against water, wind, and cold, ensuring productivity isn\'t hampered by Mother Nature\'s whims. Stay on task and protect your health and comfort no matter the weather.

Benefits

Our rainwear excels with its superior Waterproof Material that keeps the rain out while maintaining breathability—so you won\'t feel clammy or overheated. Beyond just waterproofing, the fabric is wind-resistant, offering an extra layer of protection against the relentless South African gales. Designed for durability, this gear is built to withstand the toughest conditions, ensuring you get exceptional longevity and performance.

Customisation Options

Branding Options:

Frequently Asked Questions about Rainwear

Quality rainwear is about more than just keeping dry—it\'s about ensuring that workers remain comfortable and efficient, whatever the weather throws their way. Invest in our Waterproof Jacket and experience the blend of practicality and resilience that will keep you dry and on the move.

'; } } /** * Display VAT-inclusive and VAT-exclusive prices on WooCommerce single product pages */ add_action('woocommerce_single_product_summary', 'display_vat_and_excl_vat_prices', 11); function display_vat_and_excl_vat_prices() { global $product; // Get the price excluding VAT $price_excl_vat = wc_get_price_excluding_tax($product); // Calculate VAT amount at 15% $vat_amount = $price_excl_vat * 0.15; // Calculate inclusive price by adding VAT $price_incl_vat = $price_excl_vat + $vat_amount; // Format prices $formatted_price_incl_vat = wc_price(round($price_incl_vat, 2)); $formatted_price_excl_vat = wc_price(round($price_excl_vat, 2)); // Display formatted prices echo '
'; echo '

Price (excl. VAT): ' . $formatted_price_excl_vat . '

'; echo '

Price (incl. VAT): ' . $formatted_price_incl_vat . '

'; echo '
'; } /** * Display VAT-inclusive and VAT-exclusive prices on WooCommerce archive (category) pages */ add_action('woocommerce_after_shop_loop_item_title', 'display_vat_exclusive_inclusive_prices_on_archive', 9); function display_vat_exclusive_inclusive_prices_on_archive() { global $product; // Get the price excluding VAT $price_excl_vat = wc_get_price_excluding_tax($product); // Calculate VAT amount at 15% $vat_amount = $price_excl_vat * 0.15; // Calculate inclusive price by adding VAT $price_incl_vat = $price_excl_vat + $vat_amount; // Format the prices $formatted_price_incl_vat = wc_price(round($price_incl_vat, 2)); $formatted_price_excl_vat = wc_price(round($price_excl_vat, 2)); // Display the prices on the archive page echo '
'; echo '

Price (excl. VAT): ' . $formatted_price_excl_vat . '

'; echo '

Price (incl. VAT): ' . $formatted_price_incl_vat . '

'; echo '
'; } /** * Remove "Add to Cart" button from WooCommerce completely */ function remove_add_to_cart_buttons() { // Remove from shop/archive pages remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); // Remove from single product pages remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); // Disable AJAX add to cart button for variable products remove_action( 'woocommerce_single_variation', 'woocommerce_single_variation_add_to_cart_button', 20 ); // Filter to remove "Add to Cart" button in quick view add_filter( 'woocommerce_is_purchasable', '__return_false' ); } add_action( 'init', 'remove_add_to_cart_buttons' ); add_action('template_redirect', function () { if (is_author()) { wp_redirect(home_url()); exit; } }); 2 Piece Rain Suit – Rainponcho

2 Piece Rain Suit

When the weather turns unpredictable, a reliable rain suit is essential. At Rain Ponchos South Africa, we offer a wide selection of 2 Piece Rain Suits to keep you dry and comfortable. Whether you’re looking for Two Piece Rain Suits for outdoor work or personal use, our collection of Rain Suits for Sale caters to every need, with options suitable for different environments. Our Rain Suits South Africa provide excellent waterproofing and durability, ensuring that you stay protected from the elements.

Assistant Shopping Assistant
Scroll to Top