manny

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 24 total)
  • Author
    Posts
  • in reply to: Email Template Question #17524
    manny
    Participant

      > the subject line is made up of three parts. all of which are filterable . (and the parameters passed to the filter in the file i mentioned near the beginning of this topic should be self-explanatory)

      I’m not seeing a wppizza.send-emails.inc.php file in the inc directory, though I do see it in the classes directory (wppizza/classes/wppizza.send-emails.inc.php). Is that the same one you’re talking about?

      in reply to: Email Template Question #17522
      manny
      Participant

        I’m just going by what you told me Olly, when you said to “just empty/unset the other two” in reply 17481. Again, what I’m trying to do is:

        Build a new email that gets sent when a user places an order, so that the subject line contains JUST their email address, so Zapier can pull that email address and add it to Mailchimp.

        I’ve checked on the option to add the email to the subject line in the Order From settings page, and you said that that would “add the email to the prefix”, and that I should then “just empty/unset the other two”.

        Can you clarify what this means? I’ve worked with filters and such before, just never with WP Pizza, and I’m not finding any documentation that helps me do what I’m trying to do, which is why I’m asking for your support.

        in reply to: Email Template Question #17520
        manny
        Participant

          Okay, so now that I have the email address from the user added to the email subject line from the Order Form, which gets placed in wppizza_filter_email_subject_prefix, I will need to create a function that filters by template id, to get the email template I created for this, then I unset the other 2 filters within the function?

          in reply to: Email Template Question #17518
          manny
          Participant

            I guess my question is, how would I go about using those filters you mentioned in order to have that email I created to send out JUST the user’s email address either in the subject or the message of the email? I’m not sure what the logic is behind those filters and what I actually need to do.

            in reply to: Email Template Question #17515
            manny
            Participant

              Hey Olly, thanks for the info.

              I’m actually not sure how to go about emptying/unsetting the other 2 filters. In case I wasn’t clear, what I’m trying to do is build a new email that gets sent when a user places an order, so that the subject line contains JUST their email address, so Zapier can pull that email address and add it to Mailchimp.

              So far I have the new email template created, but I’m trying to get the subject line OR the message for that email to be JUST the email address of the user. I’m getting the email to show up in the message of the email, but it contains additional code/text around, which isn’t gonna work.

              How would I go about using these filters to accomplish that, where either the email message or subject line is JUSt the user’s email address?

              in reply to: Email Template Question #17480
              manny
              Participant

                Thanks for the info Olly.

                I’m actually not sure how I’d go about using these filters in order to produce an email subject line that contains JUST the email address of the user. Any ideas as to how I’d go about using those filters to do that?

                in reply to: Order History Updates Taking Too Long #17419
                manny
                Participant

                  Thanks Olly, I’ll give debugging a shot and will let you know.

                  I’ve got another question. Is there a way to set up an email template that either has the Subject line or actual email message be JUST the email address from the order form after a user placing an order? I’m trying to connect mailchimp with emails from orders using Zapier, and I need either the Subject or Message of the email to be JUST the email address, with nothing else, in order for Zapier to process the email correctly.

                  in reply to: Order History Updates Taking Too Long #17412
                  manny
                  Participant

                    Thanks Olly, that makes sense. I completed a test order with the Cash on Delivery option and it is coming through instantly, so it’s definitely something with the Stripe gateway I’m using that’s causing the delay. Any ideas as to a way to receive those Stripe orders in the Order History page instantly, in order to fulfill those orders as soon as they come in, before they are actually fully processed by Stripe?

                    in reply to: Button to trigger Ingredients? #17201
                    manny
                    Participant

                      My bad Olly, I thought that solution was for a different JQuery implementation, not the one I’m using.

                      After taking another look though, it looks like it would work. So for example, one of the menu items that has ingredient options, has an id of wppizza-2035-0-0. I’m guessing I would need to add 2035 to the array of IDs, or can I just target those items using the full ID “wppizza-2035-0-0”?

                      I’m also guessing that I would need a for each loop, something like “if ID matches with ID from array, then go ahead and add the code to the menu item”.

                      in reply to: Button to trigger Ingredients? #17199
                      manny
                      Participant

                        Awesome only, that worked! Only thing is, the View Options button is showing up on every menu item, even those without Ingredient options, which I’d like to remove. I know you mentioned a method on reply #17016, but I don’t think that would work in this case.

                        Any ideas?

                        in reply to: Button to trigger Ingredients? #17194
                        manny
                        Participant

                          Can you see my private reply? There’s a link to the site there. If not, can you send me your email so I can send you that link?

                          Anything else you think I should try?

                          in reply to: Button to trigger Ingredients? #17188
                          manny
                          Participant

                            Hey Olly, can you see my last reply which I set to private? If not, here it is:

                            Hey Olly, I gave it a shot at trying to set up your solution from #17018, but I’m not getting it to work. Here’s what I have so far:

                            <script>
                            jQuery(document).ready(function($) {
                            $('.wppizza-article').append('<a>View Options</a>');
                            $('a#options').click(function() {
                            $(this).parent('.wppizza-article').find('.wppizza-article-price').trigger("click");
                            console.log('clicked');
                            });
                            });
                            </script>
                            

                            I’m getting “clicked” in the console, so it looks like it’s this line that I need to adjust:

                            $(this).parent('.wppizza-article').find('.wppizza-article-price').trigger("click");

                            Any ideas as to what’s wrong with that line? I can send you a link to the site if needed.

                            Cheers,

                            Manny

                            in reply to: Button to trigger Ingredients? #17019
                            manny
                            Participant
                              This reply has been marked as private.
                              in reply to: Button to trigger Ingredients? #17015
                              manny
                              Participant

                                How would I go about adding this View Options button that when click pops open the ingredients box using a filter then? Is there a filter to add an element within .wppizza-article-info?

                                If not I’ll try the JQuery Each method, but that seems like overkill if there’s a filter I can use.

                                in reply to: Button to trigger Ingredients? #17013
                                manny
                                Participant

                                  Its a UX thing. Not all items have ingredients so I’m trying to show that there are ingredient options for specific items. Ideally the Ingredients should show up on page load, but apparently that’s not possible, so I’m looking into adding this View Options button so users know that the menu item has available ingredients to choose from / substitute for, before they try to add the item to the cart, and when they click on View Options, the ingredients box should pop up, THEN they can add the the item to the cart, with the available ingredients. I know a menu item in’t auto added to the cart, first the ingredient box pops up and they need to add it to the cart again, but I think the View Options button route is better for user friendliness.

                                  in reply to: Button to trigger Ingredients? #17012
                                  manny
                                  Participant

                                    What do you mean the filters aren’t tied to anything in particular? Doesn’t the element created within the custom filter show up in different places depending on the filter? So for wppizza_add_ingredients_filter_before_form the element will show before the ingredients, and for wppizza_add_ingredients_filter_after_form, they’ll show up after. I need a filter that adds an element within .wppizza-article-info right on page load.

                                    in reply to: Button to trigger Ingredients? #17008
                                    manny
                                    Participant

                                      I see all the filters on the page I linked are for the Ingredients box. Are there filters for other areas, like to add content within .wppizza-article-info ?

                                      in reply to: Button to trigger Ingredients? #17006
                                      manny
                                      Participant

                                        I’m guessing this is the best route to make this happen?

                                        https://www.wp-pizza.com/topic/addingfiltering-the-output/

                                        in reply to: Button to trigger Ingredients? #17005
                                        manny
                                        Participant

                                          Hmm so with the JQuery method, I would need a script for each menu item? Is there no way to add a generic ID or Class and have the respective ingredients box open?

                                          If not possible, would it be possible via editing the template?

                                          in reply to: Button to trigger Ingredients? #17003
                                          manny
                                          Participant

                                            Hey Olly, I decided to go the JQuery route, but right now only the first View Option button is working properly since I used that ID to test. Here is my JQuery code:

                                            
                                            <script>
                                            jQuery(document).ready(function($) {
                                            $('.wppizza-article').append('<a id="wppizza-article-2035-0-0" class="wppizza-trigger-click">View Options</a>');
                                            })
                                            </script>
                                            

                                            Is there an ID or Class I can use that will trigger each menu items respective Ingredients box?

                                          Viewing 20 posts - 1 through 20 (of 24 total)