Relocate position of ingredients in cart table

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Extensions Add Ingredients Support Relocate position of ingredients in cart table

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38149
    Gary Cekus
    Participant

      Thanks so much for your plugin. I just need a little help. In the cart table the “ingredients” are inserted into a separate row. Which makes sense, but I’d rate these display directly under the title.

      Images here:

      Default output
      default

      Desired Output
      desired

      If you can point me in the right direction on how this can be accomplished, I would be grateful.

      Thanks!

      #38159
      Olly
      Admin & Mod

        ingredients span the whole row because in many (i dare say most) cases they need as much space as possible. however with some simple css (“padding-left” i would think) you can align it as it works for you)

        #38187
        Gary Cekus
        Participant

          If you can just let me know which of the files contains the code that injects the row, I can do the rest.

          Thanks!

          #38189
          Olly
          Admin & Mod

            there is no single file as such.
            this is all dynamically generated via filters etc and if you were to simply edit rows/colspans/td etc directly you will most likely break things elsewhere sooner or later
            honestly, use css to change/tweak layouts. after all, that’s what it’s for

            #38199
            Gary Cekus
            Participant

              This is not the answer I am looking for, and in this case it is important that I have the ability to relocate that particular injection.

              Css only will not satisfy my needs. I also want to add identifiers to the injected code as outlined above. Examples being “TOPPINGS:” and “SPECIAL REQUESTS:”.

              I could understand that if this was a free plugin support being minimal, but I paid for this and will continue to pay for add-ons if I know that I can have the plugin fit my needs.

              If not, please tell me now and I will look into additional solutions. Thank you.

              #38200
              Olly
              Admin & Mod

                >it is important that I have the ability to relocate that particular injection.
                you could try to change
                $markup_item['tr_add_ingredients'] .='<td colspan="'.($colspan).'">';
                to
                $markup_item['tr_add_ingredients'] .='<td></td><td colspan="'.($colspan-1).'">';
                in wppizza-addingredients.php approx line 1684

                though that’s at your own risk of course (and i still cannot see how this could not be accomplished with css, but i dont know every little detail of your setup of course)

                > I also want to add identifiers to the injected code as outlined above. Examples being “TOPPINGS:” and “SPECIAL REQUESTS:”.
                which you can if enable “Display ingredient groups in emails (sort and display ingredients by (custom)groups in emails, thank you page, admin history print)”

                >support being minimal,
                how is that “minimal” ?
                generally support (free plugins or not) is for plugins as they are and not for making them do something they don’t or re-writing them for a particular scenario. that’s not support, that’s customisation.

                even so , wherever practical/possible I’ll try to point people in the right direction even if it’s not inbuilt or at least leave some filters action hooks in them (i am also always more then happy to add some filters on request) (and see above of course)

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Relocate position of ingredients in cart table’ is closed to new replies.