source/Application/Controller/Admin/ArticleStock.php
public function deleteprice()
    {
        $this->resetContentCache();

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sPriceId = $oDb->quote(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("priceid"));
        $articleId = $this->getEditObjectId();
        $sId = $oDb->quote($articleId);
        $oDb->execute("delete from oxprice2article where oxid = {$sPriceId} and oxartid = {$sId}");

        $this->onArticleAmountPriceChange($articleId);
    }
public function deleteprice()
    {
        $this->resetContentCache();

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sPriceId = $oDb->quote(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("priceid"));
        $articleId = $this->getEditObjectId();
        $sId = $oDb->quote($articleId);
        $oDb->execute("delete from oxprice2article where oxid = {$sPriceId} and oxartid = {$sId}");

        $this->onArticleAmountPriceChange($articleId);
    }
public function deleteprice ( ) { $ this -> resetContentCache ( ) ; $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sPriceId = $ oDb -> quote ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "priceid" ) ) ; $ articleId = $ this -> getEditObjectId ( ) ; $ sId = $ oDb -> quote ( $ articleId ) ; $ oDb -> execute ( "delete from oxprice2article where oxid = {$sPriceId} and oxartid = {$sId}" ) ; $ this -> onArticleAmountPriceChange ( $ articleId ) ; }
Adds amount price to article
Adds amount price to article