How Do I Locate the Order Confirmation Email Item Renderer?

I’m having difficulty updating the order confirmation emails that our site is sending. I can find and modify the template in the admin interface and I can find the corresponding items.phtml file in on the server, but I can’t seem to figure out where the individual items in the order are being rendered.

The items.phtml file contains the line:

$  this->getItemHtml($  _item) 

which, as I understand things, must be calling a function to render the item’s HTML for display. I’ve looked everywhere I can think of, but none of the files I try are resulting in any changes in the resulting emails.

Location of the aformentioned items.phtml file:

app/design/frontend/base/default/template/email/order/items.phtml 

A Few of the Files I’ve tried:

app/design/frontend/base/default/template/email/order/items/order/default.phtml  app/design/frontend/default/myCompany/template/email/order/items/order/default.phtml  app/design/frontend/base/default/template/sales/order/items/renderer/default.phtml  app/design/frontend/default/myCompany/template/sales/order/items/renderer/default.phtml 

access denied when add new item in chrome browser sharepoint 2010

I use Chrome browser, When i add new item, i get informed Access denied:

Access Denied

An access request has been blocked due to one of the following reasons: You do not have sufficient privileges to access this destination Your corporate IT policies prohibit access to this content or application McAfee Global Threat Intelligence has determined this destination to have a suspicious or malicious reputation at this time something in the connection that matches a threat defense signature malware, spyware or other content should be blocked Please contact your administrator if you feel this is incorrect.

When i use Firefox browser, with the same account, i can add new item sucessfull. Please help me. Thanks you very much!

How do caster level prerequisites for item creation work for multiclassed characters?

In order to qualify for certain item creation feats you have to have a certain caster level. For example:

Forge Ring [Item Creation]

Prerequisite:

Caster level 12th.

Benefit

You can create any ring whose prerequisites you meet. Crafting a ring takes one day for each 1,000 gp in its base price. To craft a ring, you must spend 1/25 of its base price in XP and use up raw materials costing one-half of its base price.

You can also mend a broken ring if it is one that you could make. Doing so costs half the XP, half the raw materials, and half the time it would take to forge that ring in the first place.

Some magic rings incur extra costs in material components or XP, as noted in their descriptions. You must pay such a cost to forge such a ring or to mend a broken one.

How does this work with multi class characters with caster levels from different sources?

For example a 12th level wizard would be able to take Forge Ring , but what about a wizard 9/sorcerer 3?

Create List item Sharepoint 2010 REST with Choice column

I am trying to create one new list item in Sharepoint 2010 using REST.

Coding

var itemProperties = { 'Title': ;Raja;, //Single line String 'Expiry_x0020‌​_Date': "02/02/2016", //Date 'Permission_x0020‌​_Type': 'Add' //Choice Column };  createListItemREST('http://xyz:5000/sites/n/', 'L2', itemProperties, function(task){  console.log('Task' + task.TaskName + ' has been created');}, function(error){ console.log(JSON.stringify(error)); });  function createListItemREST(webUrl,listName, itemProperties, success, failure) {     $  .ajax({         url: webUrl + "/_vti_bin/listdata.svc/" + listName,         type: "POST",         processData: false,         contentType: "application/json;odata=verbose",         data: JSON.stringify(itemProperties),         headers: {             "Accept": "application/json;odata=verbose"         },         success: function (data) {             success(data.d);         },         error: function (data) {             failure(data.responseJSON.error);         }     }); } 

i am getting following error.

400 Bad request

{“code”:””,”message”:{“lang”:”en-US”,”value”:”Error processing request stream. The property name ‘Expiry_x0020‌​_Date’ specified for type ‘Microsoft.SharePoint.DataService.L2Item’ is not valid.”}}

Note: When trying with only Title column this coding is working.

Column Details

Title – Single Line Text

Business Justification for Access – Choice Column

Expiry Date – Date and Time

Permission Type – Choice Column

 <ViewFields xmlns="http://schemas.microsoft.com/sharepoint/soap/">       <FieldRef Name="Attachments" />       <FieldRef Name="LinkTitle" />       <FieldRef Name="Business_x0020_Justification_x00" />       <FieldRef Name="Expiry_x0020_Date" />       <FieldRef Name="Permission_x0020_Type" />  </ViewFields> 

add different color to each choice item

I’m having a Survey List, the question is a Choice with the three items, Excellent, Good , and Poor. using the Radio Button option, can we have different color to each item label? for example, Green for Excellent, Yellow for Good, and Red for poor.

i tried in the inspection to change the inherited color to any color, but it affect all the items and all the answers for the whole survey. any way i can achieve this?

add different color to each choice item

I’m having a Survey List, the question is a Choice with the three items, Excellent, Good , and Poor. using the Radio Button option, can we have different color to each item label? for example, Green for Excellent, Yellow for Good, and Red for poor.

i tried in the inspection to change the inherited color to any color, but it affect all the items and all the answers for the whole survey. any way i can achieve this?

Magento 2 : Add product to cart programmatically does not populate quote item id in validate method

How to add product to cart programmatically in Magento 2.2.0 ?

I have tried below code but when I do not get Quote item id in Validate method of below file.

\Magento\AdvancedSalesRule\Model\Rule\Condition\Product.php 

Code:

protected $  formKey;    protected $  cart; protected $  product;  public function __construct( \Magento\Framework\App\Action\Context $  context, \Magento\Framework\Data\Form\FormKey $  formKey, \Magento\Checkout\Model\Cart $  cart, \Magento\Catalog\Model\Product $  product, array $  data = []) {     $  this->formKey = $  formKey;     $  this->cart = $  cart;     $  this->product = $  product;           parent::__construct($  context); }  public function execute()  {    $  productId = 32;   $  params = array(                 'form_key' => $  this->formKey->getFormKey(),                 'product' => $  productId,                  'qty'   => 2                             );                    $  _product = $  this->product->load($  productId);        $  this->cart->addProduct($  _product, $  params);      $  this->cart->save();  } 

Sales Rule Validate Method Code:

File: \Magento\AdvancedSalesRule\Model\Rule\Condition\Product.php

Method:

public function validate(\Magento\Framework\Model\AbstractModel $  model)     {         //@todo reimplement this method when is fixed MAGETWO-5713         /** @var \Magento\Catalog\Model\Product $  product */         $  product = $  model->getProduct();         if (!$  product instanceof \Magento\Catalog\Model\Product) {             $  product = $  this->productRepository->getById($  model->getProductId());         }          if ($  model instanceof \Magento\Quote\Model\Quote\Item) {             die($  model->getItemId()); //NULL 

Thanks

Find SharePoint Item to display on HTML page

I have an HTML page that acts as a phone directory for departments. I want users to be able to click on a department button and the script looks for that department in a SharePoint list to display each column.

This is what my list (TransferGuide) looks like: enter image description here

This is what the HTML page (still needs somemore CSS) looks like (or rather what I want it to look like: enter image description here

So far what I have I can’t seem to pull the correct data. I think I’m having trouble with the GetListItems section. The side buttons are a simple CSS ‘tabs’ hidden/unhide IDs. I don’t think they’re affecting the script.

Here is the page code:

<body> <div class="tabs">   <input type="radio" name="tabs" id="tab1" checked>     <label for="tab1">ASC</label>   <input type="radio" name="tabs" id="tab2">     <label for="tab2">CSS</label>   <input type="radio" name="tabs" id="tab3">     <label for="tab3">CSG</label>   <input type="radio" name="tabs" id="tab4">     <label for="tab4">CRT</label>    // repeat with the other departments, just skipping to the one displayed on the 2nd image   <div id="tab-content4" class="tab-content">     <div id="displayTitle"></div>     <div id="dTitle"></div>      // repeat with each column id   </div> </div>  <script language="javascript" type"text/javascript">    $  (document).ready(function() {       $  ().SPServices ({          operation: "GetListItems",          async: false,          listName: "TransferGuide",          CAMLViewFields:"<ViewFields><FieldRef Name="Title" /><FieldRef Name="HoursDate" /><FieldRef Name="HoursTime" /><FieldRef Name="Extension" /><FieldRef Name="Email" /><FieldRef Name="PhoneNumber" /><Field Name="FaxNumber" /><FieldRef Name="ReasonForTransfer" />          completefunc: function (xData, Status) {            $  (xData.responseXML).find("z\:row, row").each(function() {              var dTitle = $  (this).attr("ows_Title");              var dHoursDate = $  (this).attr("ows_HoursDate");              //...repeat with the other columns.            });        });    });      document.getElementById("dTitle").innerHTML = dTitle      // ... so on repeat with the other list columns. </script> </body> 

I know the script works because I’ve used it for another application, I just can’t figure out the part to display it in the section. I’m pretty sure my issue has something to do with the way it’s stored in the variables, but also the way it uses IDs, since I believe you can only have one ID (right?), this won’t work because each department uses the same ID.

Also, more obviously, I’m missing the crucial part where it knows which item to pull the rest of the columns from. I don’t even know where to start searching for this information. Something like:

if title = label then ...get the rest of the columns 

just before it runs the SPServices part.

I’m sorry I know I’m a bit over my head here and I’m not giving you much to work on, but any help or tips would be great.

Do caster level prereqs work differently for magic item creation than for construct creation?

Pathfinder rules on magic item crafting:

Note that all items have prerequisites in their descriptions. These prerequisites must be met for the item to be created. Most of the time, they take the form of spells that must be known by the item’s creator (although access through another magic item or spellcaster is allowed). The DC to create a magic item increases by +5 for each prerequisite the caster does not meet. The only exception to this is the requisite item creation feat, which is mandatory. In addition, you cannot create potions, spell-trigger, or spell-completion magic items without meeting their spell prerequisites.

Caster level is included in item creation prereqs. It is not mentioned in the list of mandatory prereqs, so I take it that this is a “soft prereq” that can be ignored by anybody who has enough craft skill to eat the +5 DC.

Construct rules:

The DC to craft a construct is 5 + the default caster level of the construct, just like for a magic item. Like when crafting magic items, a creator with a sufficiently high skill bonus may ignore these requirements. Each missing requirement increases the Craft DC by 5. Regardless, the creator must meet all item creation feats and minimum caster level requirements.

Am I right in understanding this to mean that caster level is a “soft” prereq for item creation but “hard” for construct creation? This seems oddly inconsistent but I’m not sure how else to read those rules.