View index.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if app.request.get('type') == 'entry' or app.request.method == 'POST' %} | |
{{ include('@CustomerGroupEntry/default/Entry/hidden.twig', ignore_missing=true) }} | |
{% endif %} |
View ShoppingCompleteListener.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View ProductTypeExtension.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View ProductTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View multi_category_search_form_side.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if form.vars.value.category_ids|filter(c => c.id == 1)|length > 0 %} | |
{% set searchItem = repository("Plugin\\MultiCategorySearch4\\Entity\\SearchItem").find(1) %} | |
{% set value = 'search_item_' ~ searchItem.id %} | |
<dl> | |
<dd> | |
<div class="ec-blockCheckbox"> | |
<label class="ec-label">{{ searchItem.name }}</label> | |
{% for i, item in form[value] %} | |
{{ form_widget(item, {'id': value~'_'~i~'_side'}) }} | |
{% endfor %} |
View detail.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if not is_granted('ROLE_USER') %} | |
{% set Groups = repository('Plugin\\CustomerGroup\\Entity\\Group').findAll() %} | |
<div class="ec-productRole__groupPrice"> | |
{% for Group in Groups %} | |
<div class="ec-price"> | |
<span class="">{{ Group.name }}価格:</span> | |
{% set GroupPrices = [] %} | |
{% for ProductClass in Product.getProductClasses %} | |
{% set GroupPrice = repository('Plugin\\CustomerGroupPrice\\Entity\\GroupPrice').findBy({'group': Group, 'ProductClass': ProductClass}) %} | |
{% if GroupPrice and GroupPrice[0].getPriceIncTax %} |
View InstallerCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Customize\Command; | |
use Eccube\Command\PluginCommandTrait; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; |
View services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
Customize\ArgumentResolver\ProductValueResolver: | |
arguments: | |
- '@Eccube\Repository\ProductRepository' | |
tags: | |
- { name: controller.argument_value_resolver, priority: 50 } |
View ProductValueResolver.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Customize\ArgumentResolver; | |
use Eccube\Entity\Product; | |
use Eccube\Repository\ProductRepository; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
NewerOlder