Uploaded image for project: 'In-Commerce'
  1. In-Commerce
  2. MINC-6

Unify "Price" virtual field processing

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.2
    • Component/s: General
    • Labels:
      None

      Description

      For now, when user enters price in product editing general tab it is set to primary price bracket for "Everyone" group. This is good of course. I've expected, that such type of processing will also happen, when I manually load product object and try to set price like this:

      $product =& $this->Application->recallObject('p', null, Array ('skip_autoload' => true));
      /* @var $product kCatDBItem */

      $product->Load(55);
      $product->SetDBField('Price', 77.55);
      $product->Update();

      Unfortunately this doesn't work, because price processing code is located inside OnPreSave event only, and not in OnBeforeItemCreate/OnBeforeItemUpdate event pair.

      I propose to change that to expected behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: