PHP code example of bozboz / orders
1. Go to this page and download the library: Download bozboz/orders 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/ */
bozboz / orders example snippets
[
'orderable_factory' => '[Fully qualified class name or alias of the class
responsible for looking up the orderable items. Must implement
`Bozboz\Ecommerce\Orders\OrderableFactory`]',
'orderable' => '[Whatever information is needed to find the orderable item]',
'quantity' => '[Defaults to 1 if left blank]',
]