Question
I am trying to make my custom cookie to remain on all pages when triggered... add_action('woocommerce_thankyou', 'my_setcookie'); function my_setcookie(){ $path = parse_url(get_option('siteurl'), PHP_URL_PATH); $host = parse_url(get_option('siteurl'), PHP_URL_HOST); $expiry = strtotime('+2 days'); setcookie('madeorder', 'yes', $expiry, $path, $host); } it ...
0
13 hours 0 Answers 3 views

Question
I would like to display additional products on my simple product pages.I am using the shortcode like so in the simple products short description. [products ids="2113"] The problem with this is the layout of the resulting loop. Is there a way to ...
0
, 1 day 0 Answers 6 views