When an authenticated user adds an item to the cart and goes to the checkout, tax is appropriately added to the item on my website. However, when using the 'Add an Order' page (admin/commerce/orders/add) tax is no longer being calculated on the same item since I upgraded to 7.x-2.16.

In the past, I had used the Commerce Checkout Admin module to provide checkboxes to fire the pricing rules on a manual order which was really helpful, however the author now states this functionality is part of Commerce core - but the controls are no longer there and it's unclear how to trigger the pricing rules now.

Can anyone help with how to trigger the pricing rules from the 'Add an Order' page? Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

Status: Active » Fixed

There is an action link "Apply Pricing Rules". Isn't that the function you are looking for?

rajmataj’s picture

When I'm using a fresh Kickstart 2.16, I can see the

+ Apply Pricing Rules

button at the top, but when I am using a Kickstart site that was updated, that button is not showing (images attached).

For the test Kickstart site using 7.x-2.16, this appears in the code:

<ul class="action-links">
  <li><a href="/admin/commerce/orders/12/edit/refresh">Apply pricing rules</a></li>
  <li><a href="/admin/commerce/orders/12/edit/checkout">Simulate checkout completion</a></li>
</ul>

..but not in my upgraded site using the same version. I am wondering if there is a submodule or some kind of control I have to activate in order to see this.

rajmataj’s picture

I think I found the source of the problem. On the page, admin/commerce/config/order there is a checkbox to: Enable the local action link on order edit forms to apply pricing rules. which wasn't checked. Now that I have checked it, the Apple Pricing Rules button is showing.

rajmataj’s picture

Status: Fixed » Active

It looks like I spoke too soon. The buttons are now showing (yay!) but the tax is still not being calculated. What is the secret to getting taxes applied to a manual order? Perhaps someone can fill in the procedure below?

  1. Add a taxable product to the Line Item list on the 'Add an Order' page
  2. Set status to 'Shopping Cart: Shopping Cart'
  3. Press the Save Order button
  4. ...?

This is where I'm lost. The page loads but the +Apply Pricing Rules button is now gone, leaving the other action button, Simulate checkout completion. Pressing the latter button or the 'Save Order' button still does not add tax.

Judging from how many others have asked this question on drupal.org and the increasingly spammed commerceguys.com, a working answer here would go a long way. I'd be happy to link similar posts to this issue if anyone can post a working answer that addresses the issue.

Thanks.

rajmataj’s picture

Can nobody chime in about how to complete this task of manually creating an order? If you know how to complete these steps, please let me know as I have tried all possibilities that I can think of.

Thanks.

Jee’s picture

Hi! So, I know this is an old issue but there is no answer published anywhere that I can find.

After some research I figured out the issue and hope to save someone some frustration.

Commerce Tax IS added on the 'Create an Order' form after clicking the 'Apply Pricing Rules' link.
You just can't tell because it is not saved as a standard Line Item.

When you go to View, you will see that the tax has been 'magically' applied.

For research purposes you can find it deep in the order object: $order->commerce_order_total[LANGUAGE_NONE][0]['data']['components']

Good luck!

rszrama’s picture

Status: Active » Closed (outdated)

Commerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.