Recettes : on attaque le Controller

This commit is contained in:
2021-05-05 13:00:29 +02:00
parent 59e926d86d
commit a34b17a47c
3 changed files with 8 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Thelia\Controller\Admin\BaseAdminController;
use Thelia\Core\Event\Content\ContentUpdateEvent;
use Thelia\Core\HttpFoundation\Request;
use Thelia\Form\BaseForm;
use Thelia\Model\ContentI18nQuery;
use Thelia\Model\ContentQuery;
use Thelia\Tools\URL;
@@ -98,4 +99,9 @@ class MainController extends BaseAdminController
return new RedirectResponse(URL::getInstance()->absoluteUrl("/admin/content"));
}
public function addToCart(Request $request)
{
$order = $request->getSession()->getOrder();
}
}

View File

@@ -76,8 +76,6 @@ div.entete span b {
margin: auto;
}
.table-steps td.number{
background-color: #95c11e;
border-radius: 30px;
color: white;
padding-left: 30px;
font-weight: bold;
}

View File

@@ -67,7 +67,7 @@
<tr>
<td class="cellule-large">{$PRODUCT_LABEL}</td>
<td class="cellule-etroite">{$QUANTITY_NEEDED}</td>
<td class="cellule-etroite">{$QUANTITY_PROPOSED}</td>
<td class="cellule-etroite">{$QUANTITY_PROPOSED}<input type="hidden" id="quantity-{$PSE_ID}" value="{$QUANTITY_PROPOSED}"></td>
<td class="cellule-etroite"><input type="checkbox" id="product-{$PSE_ID}" name="selected-product" class="cellule-checkbox"></td>
</tr>
{/loop}