πŸ‡ΊπŸ‡ΈUnited States @mr_byte

Account created on 22 September 2012, almost 12 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States mr_byte

I managed to do this via feeds tamper.

πŸ‡ΊπŸ‡ΈUnited States mr_byte

Closing, s I probably reported it incorrectly, and I'm not using this module anymore.

πŸ‡ΊπŸ‡ΈUnited States mr_byte

Closing this, as I addressed the hook_order in another issue and added a patch there.

πŸ‡ΊπŸ‡ΈUnited States mr_byte

Many Years Later...

In function uc_pma_adjustment_callback($op, &$order), add before the switch($op)

$path = current_path();
if (strstr($path, $order->order_id)) return;

I'm getting the path, and if the order id in part of the path (ie: viewing/managing/editing order) then we really don't need to calculate an adjustment.

There may be a better way to do this, and this might not work for everyone, hell it might not really work for me, I'm still beating this thing to make it store actual line items in uc_order_line_items. I noticed that what is intended to run under hook_order never does. I may or may not add a bug for that specifically, but by changing function uc_pma_order to uc_pma_uc_order, that function now runs as I suspect was intended. Artifact from porting to Drupal 7/UC3?

Production build 0.69.0 2024