Add to cart button

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30078
    laurent
    Participant

      Hi Olly,

      Before Upgrade to WP Pizza 3, I made to last update for the Add Ingredient Extension.

      I had a Filter to add a “add to cart” button at the bottom of the Pop Up.

      add_filter(‘wppizza_add_ingredients_filter_after_groups’, ‘my_custom_filter’,12,2);
      function my_custom_filter($str,$lbl){
      $str.='<div style=”margin:0 0 30px 0;padding:2px 2px 10px 10px;”><input id=”wppizza-diy-to-cart” class=”btn btn-primary” type=”button” value=”‘.$lbl[‘add_to_cart’].'”></div>’;
      return $str;
      }

      Unfortunately with the last update of the extension, this filter is not working anymore. The button is still here but the click doesn’t work anymore.

      Could you help me please.

      Thank you.

      #30088
      Olly
      Admin & Mod
        #30090
        laurent
        Participant

          Ok perfect !

          Thank you very much.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Add to cart button’ is closed to new replies.