• Resolved schnippo

    (@schnippo)


    I’m searching for a way to disable the variable product information from invoice and packing slip.

    How it should be and how it was before: there was just the product name + 1 Liter (or whatever attribute)

    Now it shows the product name + attribute, then a title and the same attribute again. See the screenshot.

    I’d like to hide the title and second attribute.

    Thanks for any kind of help.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter schnippo

    (@schnippo)

    Sorry for that

    Please try again

    https://filebin.net/j59sbsk8hywavzyj

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks! That is indeed the HTML output of your invoice 🙂

    Please try adding this extra CSS rule within your code snippet:

    table.order-data-addresses {
        display: block;
        float: right;
        width: auto;
    }
    Thread Starter schnippo

    (@schnippo)

    Something went wrong. See here what happened when I tried to generate an invoice to check the modification.

    I placed the css code like this.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Oh, sorry for that!

    Please replace my last CSS rule with these, and try again:

    .order-data-addresses,
    .order-data-addresses > tr,
    .order-data-addresses > tr > td,
    .order-data-addresses > tbody,
    .order-data-addresses > tbody > tr,
    .order-data-addresses > tbody > tr > td {
    	display: block;
    }
    table.order-data-addresses td.order-data {
        float: right;
    }
    Thread Starter schnippo

    (@schnippo)

    Almost. Now something got mixed up. See here

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Oh, I think I was confused about your request!

    Please remove the last CSS rules and add this instead:

    .topaddress {
        float: right;
        margin-bottom: -2cm;
    }
    .topaddress div {
        margin: 2mm 0;
    }
    Thread Starter schnippo

    (@schnippo)

    Almost there. I replaced the css but there needs to be more spacing in between.
    I tried myself by putting some margin-top but that did not affect what I wanted.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Try adding more space below the logo:

    table.head {
        margin-bottom: 2cm;
    }

    Please note that all these CSS rules that I’m sharing with you, are ‘tricks’ to try to achieve what you want without the need to editing the PDF template layout directly. Hopefully, the latest would the missing change that would be needed to adapt the design, but if you think this is too much trouble, you could try applying the changes in the template code instead 🙂

    Thread Starter schnippo

    (@schnippo)

    Hi

    Now its perfectly resolved. Thank you very much!!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for confirm this, @schnippo!

    I’m glad to hear that it finally looks tidy 💪

    Let me know if you need anything else 😉

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘How can I disable product variation on Invoices?’ is closed to new replies.