How to write a function
-
Hi There,
My experience isn’t quite advanced enough to entirely understand how functions work so I’ve had no success in changing this WooCommerce message as I’d like to.
$message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', get_permalink( wc_get_page_id( 'cart' ) ), __( 'View Cart', 'woocommerce' ), $added_text );For the Added To Cart message I would like the “View Cart” link to come AFTER the “*Product* successfully added to your cart.” text. But moving $added_text before the View Cart stuff just wouldn’t work.
Can someone please tell me how to arrange the terms correctly?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to write a function’ is closed to new replies.