Advertisement
breakoutcoder

Woocommerce Cart table after before

Feb 4th, 2023
1,085
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 1 0
  1.  
  2. /**
  3.  * Before cart table
  4.  */
  5. add_action('woocommerce_before_cart', function () {
  6.     /**
  7.      * Your notice text
  8.      */
  9.     $notice = 'Lorem ipsum dolor sit amet consectetur adipisicing elit.';
  10.     ?>
  11.         <div style="width:100%;padding:10px;margin-bottom:10px;border-left:4px solid #f0b849;background-color:#fef8ee;">
  12.             <?php echo $notice?>
  13.         </div>
  14.     <?php
  15. });
  16.  
  17.  
  18. /**
  19.  * After cart table
  20.  */
  21. add_action('woocommerce_before_cart_collaterals', function () {
  22.     /**
  23.      * Your notice text
  24.      */
  25.     $notice = 'Lorem ipsum dolor sit amet consectetur adipisicing elit.';
  26.     ?>
  27.         <div style="width:100%;padding:10px;margin-bottom:10px;border-left:4px solid #f0b849;background-color:#fef8ee;">
  28.             <?php echo $notice?>
  29.         </div>
  30.     <?php
  31. });
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement