add order route

This commit is contained in:
Your Name
2021-06-19 23:26:37 +03:00
parent fe4db1b3e0
commit d328ffa7b0
9 changed files with 144 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ function product_kuri($slug){
$book = bookid_kuri($slug);
$breadcrumbs = [
$book['categoryname'] => SITE.'category/'.$book['categoryslug'],
'page' => $book['pricename']
@@ -25,6 +24,11 @@ function product_kuri($slug){
# купил ли эту книжку
$buy_status = client_status_book($books['book_id'], CLIENT_ID);
}
# линки на оформление заказа
$link_online = SITE.'checkout/'.$book['priceslug'].'/1';
$link_offline = SITE.'checkout/'.$book['priceslug'].'/2';
$link_subscript = SITE.'checkout/podpiska-na-elektronnuyu-versiyu-gazety-argumenty-nedeli-na-god/1';
$tempcontent = VIEWPATH.'book.phtml';
include VIEWPATH.'layout.phtml';