Suche erfahrenen Shopware Entwickler zum weiterentwickeln eines Plugins

Hallo Shopware Gemeinde,

Ich möchte gerne per Javascript beim Ausführen einer Funktion durch den User auf der Produkt Detail Seite einen neu berechneten Preis setzen. Zum setzen des Preises benutzte ich einen decorated Service des PriceCalculationInterface geschrieben von Synonymous. Diesem fehlt aber noch die Funktion Daten welche er per Post Anfrage erhält zu verarbeitetn und ich bin das Wochenende einfach nicht weiter gekommen.

 

decoratedService = $service;
    }
    /**
     * @param Struct\ListProduct $product
     * @param Struct\ProductContextInterface $context
     */
    public function calculateProduct(Struct\ListProduct $product, Struct\ProductContextInterface $context) {
        // Get the customergroup of the currently logged in user
        $customerGroup = $context->getCurrentCustomerGroup();
        // Calculate some random price between 90 and 99
        $randomPrice = rand(900, 999);
        $randomPrice = 100;
        // Delete all prices except the first one, cause we don´t have price rules on
        // a self calculated price. Then caluclate the correct price and set it.
        $priceRules = array();
        $unit = new Struct\Product\Unit();
        $priceRule = new Struct\Product\PriceRule();
        $priceRule->setPrice($randomPrice); // @TODO Set newly calculated NET price here
        $priceRule->setPseudoPrice($randomPrice+100); // @TODO Set original price here
        $priceRule->setCustomerGroup($customerGroup);
        $priceRule->setFrom(0);
        $priceRule->setTo(null);
        $priceRule->setUnit($unit);
        // Assign manipulated pricerules to product
        $priceRules[] = $priceRule;
        $product->setPriceRules($priceRules);
        $product->setCheapestPriceRule(clone $priceRules[0]);
        // Call the decorated main service to calculate product prices
        $this->decoratedService->calculateProduct($product,$context);
        //add state to the product which can be used to check if the prices are already calculated.
        $product->addState(Struct\ListProduct::STATE_PRICE_CALCULATED);
    }
}

Source: https://github.com/synonymous1984/SynonymousPriceCalculator/blob/master/Services/Price/PriceCalculationServiceDecorator.php

Hi

I am intered in job.

please add me on SKype, my skype id is cis.lisa

Regards,

Lisa