WordPress.org

Ready to get started?Download WordPress

Forums

WPPizza
[resolved] How to remove the duplicated price from the email? (6 posts)

  1. ladober
    Member
    Posted 8 months ago #

    Hi
    When I send an email the email shows the price twice like that:
    1x Pizza large £ 10.99 £ 10.99
    1x Drink 0.33l £ 1.25 £ 1.25

    how can I remove the first price and keep the second one in both html and plain text template?

    Thanks

    http://wordpress.org/plugins/wppizza/

  2. ollybach
    Member
    Plugin Author

    Posted 8 months ago #

    its duplicated for a reason of course, so if the order were

    "3x Pizza large"

    it would say

    "3x Pizza large £ 10.99 £ 32.97"

    however - just thought i'd mention it - if you want to remove it from the template, you can do exactly that. i.e remove it from the template

    http://wordpress.org/plugins/wppizza/faq/
    -> Can I edit the templates ?

  3. ladober
    Member
    Posted 8 months ago #

    Hi Olly

    I'm not complaining for the duplicated price :)

    Your plugin is perfect and doesn't need discuss about it. The problem is with my tiny printer (58mm width) if you see how the order looks on it you would laugh.

    I just want to ask you: is it ok if I delete all the variables in the email_html page and use my own style? Does that cause any problem for the plugin or the orders?

    Thanks for your quick respond.

  4. ollybach
    Member
    Plugin Author

    Posted 8 months ago #

    printer: you could set/change your wppizza->settings->Select Type of Mail Delivery

    and see if you get better sizing for your printer with either the html email or the plaintext(mail/wp_mail) email settings

    ie.the other ones form the one you are using.

    re variables: you should be able to do what you want with the email templates (might want to read the comments in them though)

    they are just that. email templates and have no bearing on anything else than what the emails look like (mind you , there's a comment in wppizza-order-email-plaintext.php regarding using this to store in the db order history if you want to pay with that template specifically - again - read the comments)

    generally, in your scenario, i would probably set Select Type of Mail Delivery: to html and play with the html template . you'd have to try pretty hard to screw things up (and you can always restore the original anyway)

    all in all, the templates are there for editing if you feel so inclined / the need (and know a bit of php at least and read the comments)

    either way, although it should be all fine no matter what you do in those email templates, it's never a bad idea to have backups though :)

    (i wasn't thinking you were complaining btw)

  5. ollybach
    Member
    Plugin Author

    Posted 8 months ago #

    ps: how can you even read things on a 58mm printer ? the mind boggles...

  6. ladober
    Member
    Posted 8 months ago #

    Thanks Olly for your kind quick support. I just made some changing in the width and the margin in the template and now it's working the way I want.
    58mm printers is too small but cheap and reliable :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.