WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Add Ingredients › Support › Relocate position of ingredients in cart table
- AuthorPosts
- 22 June, 2018 at 9:07 am #38149
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
Desired Output
If you can point me in the right direction on how this can be accomplished, I would be grateful.
Thanks!
23 June, 2018 at 1:49 am #38159ingredients 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)
25 June, 2018 at 4:43 pm #38187If you can just let me know which of the files contains the code that injects the row, I can do the rest.
Thanks!
25 June, 2018 at 5:44 pm #38189there 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 for26 June, 2018 at 4:04 pm #38199This 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.
26 June, 2018 at 6:21 pm #38200>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 1684though 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)
- AuthorPosts
- The topic ‘Relocate position of ingredients in cart table’ is closed to new replies.