View Issue Details

IDProjectCategoryView StatusLast Update
0005331OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2022-02-01 11:51
ReporterFibreFoX Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Product Version4.7.6 / 5.0.6 
Summary0005331: If variant has 0 as price, the shop uses the parent-article-price
DescriptionI generated md-variants via shell-access and have the situation, that some variants end up having price equals 0. I do want having variants that price.

When article is loaded and the price is get via magic "__get", 0 is loaded from database and overwritten via _assignParentFieldValue.

Whould it be wise to add it to $_aNonCopyParentFields or having it changeable via shop-config-parmeter!?
Steps To Reproduce* create article
* create variants
* make any variant having price 0
Additional InformationMy current workaround for my module overloading oxarticle:

  protected function _assignParentFieldValue($sFieldName)
  {
    if (!($oParentArticle = $this->getParentArticle())) {
        return;
    }
    
    $sCopyFieldName = $this->_getFieldLongName($sFieldName);
    if ($sCopyFieldName == "oxarticles__oxprice")
    {
      return;
    }
    
    return parent::_assignParentFieldValue($sFieldName);
  }
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

svetlana

2013-08-20 16:10

reporter   ~0008973

Reminder sent to: FibreFoX

Hi, thanks a lot for the bug entry, It was confirmed as feature request.
Also we suggesting to overwrite parameter _aNonCopyParentFields instead of changing method as a module.

svetlana

2014-03-28 10:01

reporter   ~0009716

waiting for the PO decision.

SvenBrunk

2022-01-31 14:35

administrator   ~0013606

Last edited: 2022-01-31 14:35

Looks like a custom requirement to me. Please re-open with additional information if you disagree