Jump to content

Is there a way to make order attachments more visible or highlighted?


Recommended Posts

Sometimes we don't check it, so it would be nice if there was something that would notify me when something has been attached to an order.

You can handle this with a little snippet of code integrated in to your system:
Go to Settings -> Connections -> Integrations and add this to the plugin scripts box.

<script>replace this with the snippet below</script>

Then, paste this snippet between the two script tags.

//custom script to add styling to attachments box on orders

//only run on pages with path of orders otherwise it runs on all pages with attachments

if(document.URL.indexOf("/orders/") >= 0){

   //variable 'list' will count the amount of attachments - if it's greater than zero, it will highlight the box with the styles listed below

   var list = document.getElementById("att_box").getElementsByClassName("attachment");
      if (list && list.length > 0) {
         document.getElementById("attachments").style.borderLeft="5px solid #C6D880";
         document.getElementById("attachments").style.background="#f1f5e1";
         document.getElementById("attachments").style.borderRadius = '2px';
         document.getElementById("attachments").style.padding = '2px';
   }
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms and conditions of this site