View Issue Details

IDProjectCategoryView StatusLast Update
0005331OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2015-12-01 09:14
ReporterFibreFoX 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version4.7.6 / 5.0.6 
Target VersionFixed in Version 
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
MySQL 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.