No announcement yet.

Adding "Manufacturer" to the print invoice

  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding "Manufacturer" to the print invoice

    I am trying to add the "manufacturer_name" field to my printed invoices (invoice_print.html) and want to have it just before the itemname, with maybe a dash before the itemname so that it reads:
    NaturVet - Glucosamine for Dogs

    I'm pretty sure the code belongs in this code block, but I can't get the actual Manufacturer's name to appear right before the itemname.
    <!--START: items-->
    <div class="row">
    <div class="invoice-id">[id]</div>
    <div class="invoice-items"> [itemname]</div>
    <div class="invoice-price">[unitprice]</div>
    <div class="invoice-qty">[numitems]</div>
    <div class="invoice-total">[subtotal]</div>
    <div class="clear"></div>

    Any ideas?


  • #2
    JulieAndrus Try this

    Replace this div

    <div class="invoice-items"> [itemname]</div>

    With this div

    <div class="invoice-items"> [manufacturer_name] - [itemname]</div>

    Hope this will help. Good luck.
    Website Design and Development


    • #3
      cartexpert I have to disagree. The [manufacturer_name] tag is not a valid usable tag in invoice_print.html template
      Not 3dcart Owned or Operated
      100% Independent 3dcart Expert

      Follow Us on Twitter


      • #4
        I tried that and it just inserts the text [manufacturer_name]. It doesn't put in the actual name, ie, NaturVet.
        Thanks anyway.


        • #5
          JulieAndrus I tested this out using the extra_fields on my store and it works perfect. Can you use any of the extra fields 1-5? If yes, then import the manufacturer name into one of those fields, then add in the variable like the example below. You'll probably need to hide this field on the listing page, if you don't want this showing. Hide with CSS (if its possible) or maybe remove the code block for whichever extra_field_X is being used? Maybe someone else can advise which is the best option.

          <div class="invoice-id">[id] - [extra_field_2]</div>


          • #6
            Thanks -- I will give it a try.