Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ianhoughton 281 posts 605 karma points c-trib
    Apr 11, 2023 @ 08:40
    ianhoughton
    0

    Order editor config

    We're using Umbraco 10.4.2 & Vendr 3.0.5

    I've created a custom order.editor.config.js file so that I can show some custom fields in the additionalInfo section.

    I've added it to a custom plugin:

    • VendrCustomOrderEditor
    • config\xxxxxxx.order.editor.config.js
    • package.manifest

    with a link to the config.js in the javascript list

    xxxxxx is the alias of the vendr shop

    I've made sure that the config.js is set to Copy Local in VS and can see the config.js file in the sources developer tab.

    I still can't see the custom property (alias: healthTrust) for an order that I know has it set.

    Any ideas??

    {
    orderLine: {
        properties: [
            { alias: "color", label: "Color", isReadOnly: true },
            { alias: "size", label: "Size", isReadOnly: true }
        ]
    },
    customer: {
        // Firstname, Lastname and Email are already known
        company: { alias: "company", label: "Company Name" },
        taxCode: { alias: "taxCode", label: "Tax Code" },
        telephone: { alias: "telephone", label: "Telephone" },
    },
    billing: {
        addressLine1: { alias: "billingAddressLine1", label: "Street Address Line 1" },
        addressLine2: { alias: "billingAddressLine2", label: "Street Address Line 2" },
        city: { alias: "billingCity", label: "City" },
        zipCode: { alias: "billingZipCode", label: "Zip Code" },
        // Country and Region are already known
    },
    shipping: {
        sameAsBilling: { alias: "shippingSameAsBilling", label: "Same as billing", trueValue: "1", falseValue: "0" },
        firstName: { alias: "shippingFirstName", label: "First Name" },
        lastName: { alias: "shippingLastName", label: "Last Name" },
        addressLine1: { alias: "shippingAddressLine1", label: "Street Address Line 1" },
        addressLine2: { alias: "shippingAddressLine2", label: "Street Address Line 2" },
        city: { alias: "shippingCity", label: "City" },
        zipCode: { alias: "shippingZipCode", label: "Zip Code" },
        // Country and Region are already known
    },
    notes: {
        customerNotes: { alias: "comments", label: "Customer Comments" },
        internalNotes: { alias: "notes", label: "Internal Notes" }
    },
    additionalInfo: [
      { alias: "ipAddress", label: "IP Address", isReadOnly: true },
      { alias: "healthTrust", label: "Health Trust", isReadOnly: true }
    ]
    

    }

  • Puck Holshuijsen 184 posts 727 karma points
    Apr 11, 2023 @ 09:04
    Puck Holshuijsen
    101

    Hi Ian,

    You shouldn't have to create a custom plugin to show/use the config.

    Just adding xxxx.order.editor.condig.js in App_Plugins/Vendr/config should be enough.

  • ianhoughton 281 posts 605 karma points c-trib
    Apr 11, 2023 @ 09:11
    ianhoughton
    1

    Thanks, that's worked a treat !!

  • Nidhi 32 posts 154 karma points
    1 week ago
    Nidhi
    0

    Hi I want to add a custom link to the Order Edit page in Umbraco Commerce 12.1. how can i do it . Please guide. Below is the Vendr version and I want to implement similar link on Umbraco Commerece version

    Vendr version

    Umbraco commerece version

    Can anyone guide how can we achieve this?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft