Skip to content

Order overview suggestion #3

@mdnamarie

Description

@mdnamarie

Small suggestion

Image

Small suggestion to also display the Net price in the table, so that if there are discounts, it can be more accurately noticed when looking at the Grand Total. Any thought?

To adjust:

site/modules/ProcessWireCommerce/includes/render/PWCommerceAdminRenderOrders.php

Around line 213:

// NET PRICE
[$this->_('NET Price'), 'pwcommerce_orders_table_order_line_item_net_unit_price'],

Around line 2252:

// NET PRICE AFTER DISCOUNT
$this->pwcommerce->getValueFormattedAsCurrencyForShop($orderLineItem->unitPriceDiscounted),

Around line 2460:

// ---------
// show note in footer
if ($usage === 'orders_single_view') {
	$footerLabels = [
		// @note: forcing empty for columns 1-3
		// using for note for totals
		"<span class='italic'>" . $this->_('Totals include applicable tax') . "</span>",
		'',
		'',
		'',
		'',
	];
	$field->footerRow($footerLabels);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions