1. Go to this page and download the library: Download kbcart/zf3-kbcart library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kbcart / zf3-kbcart example snippets
In cart view template page, when you assign the session array to the form(s) route there, token will be assigned
as a param or query and could be obtained from route.
$token : '4b848870240fd2e976ee59831b34314f7cfbb05b';
$this->kbcart()->remove($token);
In cart view template page, when you assign the session array to the form(s) route there, token will be assigned
as a param or query and could be obtained from route.
$token : '4b848870240fd2e976ee59831b34314f7cfbb05b';
$this->kbcart()->update($token, $amount);
$this->kbcart()->destroy();
$this->kbcart()->cart();
In each update, insert or delete of an item shall be calculated automatically,
to view it: $kbcart = $this->kbcart()->cart();
echo $kbcart['cartval'];
return new ViewModel(['cart'=>$this->kbcart()->cart()]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.