kooliahmd / syliuscatalogpromotionplugin Goto Github PK
View Code? Open in Web Editor NEWSylius plugin for catalog promotion
License: MIT License
Sylius plugin for catalog promotion
License: MIT License
Thanks for this plugin, it's really helpful to show promotions on the catalog.
It might be interesting to display a catalog promotion for a group of users when they are authenticated. In the same way that it is possible to make a promotion on the cart for a user group.
What do you think about this feature?
Symfony\Component\Debug\Exception\FatalThrowableError:
Type error: Return value of SnakeTn\CatalogPromotion\Entity\PromotionRule::getType() must be of the type string, null returned
at vendor/snake-tn/catalog-promotion-plugin/src/Entity/PromotionRule.php:54
at SnakeTn\CatalogPromotion\Entity\PromotionRule->getType()
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:473)
at Symfony\Component\PropertyAccess\PropertyAccessor->readProperty(array(object(PromotionRule)), 'type')
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:396)
at Symfony\Component\PropertyAccess\PropertyAccessor->readPropertiesUntil(array(object(PromotionRule)), object(PropertyPath), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:165)
at Symfony\Component\PropertyAccess\PropertyAccessor->getValue(object(PromotionRule), object(PropertyPath))
(vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:84)
at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapFormsToData(object(RecursiveIteratorIterator), object(PromotionRule))
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:628)
at Symfony\Component\Form\Form->submit(array(), true)
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:572)
at Symfony\Component\Form\Form->submit(array(array('type' => 'has_taxon', 'configuration' => array('taxons' => 'mugs'))), true)
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:572)
at Symfony\Component\Form\Form->submit(array('rules' => array(array('type' => 'has_taxon', 'configuration' => array('taxons' => 'mugs'))), 'actions' => array(array('type' => 'percentage_discount', 'configuration' => array('percentage' => '10')))), true)
(vendor/sylius/sylius/src/Sylius/Bundle/ResourceBundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php:109)
at Sylius\Bundle\ResourceBundle\Form\Extension\HttpFoundation\HttpFoundationRequestHandler->handleRequest(object(Form), object(Request))
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:498)
at Symfony\Component\Form\Form->handleRequest(object(Request))
(vendor/sylius/sylius/src/Sylius/Bundle/ResourceBundle/Controller/ResourceController.php:328)
at Sylius\Bundle\ResourceBundle\Controller\ResourceController->updateAction(object(Request))
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:42)
at require('/home/gabiudrescu/PhpstormProjects/SyliusStandard/web/app_dev.php')
(vendor/symfony/symfony/src/Symfony/Bundle/WebServerBundle/Resources/router.php:42)
how are these promotions interact with the ones from cart?
have you considered creating exclusive catalog promotions, that make products ineligible for cart promotions? and vice-versa: if a product is in a cart promotion, exclude from catalogue promotions?
Initially posted here: Sylius/Sylius#7977 (comment)
If you setup a catalogue campaign for a specific product, if you open the product in two different tabs, one in admin view and one in shop view, you'll see it with two prices.
It is hard to understand why the selling price on the website differs the one in admin, especially for a low experience admin operator.
Hence, I propose that the CatalogPromotionPrice to displayed differently in the admin product view / edit page. So that the operator understands why the price is different.
if this line is commented, when run, the command is doing nothing.
once again, to make sure I understand: the purpose of this command is to precalculate all the prices in a CLI environment?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.