[FIX] Book Order fatal bug

parent c8dc6237
......@@ -22,7 +22,7 @@
$str = '<body>
<div class="detail-container add-nunito-font">'.
self::showBookDesc($book_detail, $book_rating).
self::showOrder().
self::showOrder($book_detail['ID']).
self::showReviews($reviews).
'</div>
</body>';
......@@ -83,7 +83,7 @@
}
}
private function showOrder() {
private function showOrder($id) {
$str = '
<div class="book-detail">
<div class="head-title">Order</div>
......@@ -94,7 +94,7 @@
'</select>
</div>
<div align="right">
<button class="order-button c-button light-blue" type="button" onclick="orderBook(1)">Order</button>
<button class="order-button c-button light-blue" type="button" onclick="orderBook('.$id.')">Order</button>
</div>
</div>';
return $str;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment