Skip to content

Commit

Permalink
Merge pull request #14 from tanhongit/maintain
Browse files Browse the repository at this point in the history
fix cart order url
  • Loading branch information
tanhongit authored Apr 17, 2023
2 parents 70cc7a5 + e396bf8 commit e637117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Developed by: TanHongIT
# Website: https://tanhongit.com - https://tanhongit.net
# Github: https://github.com/TanHongIT

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteBase /

RewriteRule ^([^/]+)/?$ index.php?controller=$1 [QSA,L]
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?controller=$1&id=$2 [QSA,L]
RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controller=$1&action=$2&id=$3 [NC,L]
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?controller=$1&id=$2 [QSA,L]

ErrorDocument 404 /
7 changes: 1 addition & 6 deletions content/views/cart/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<!--
Developed by: TanHongIT
Website: https://tanhongit.com - https://tanhongit.net
Github: https://github.com/TanHongIT
-->
<?php
require('content/views/shared/header.php'); ?>
<div role="main" class="main shop">
Expand Down Expand Up @@ -55,7 +50,7 @@
<div class="row featured-boxes">
<div class="col-md-12">
<div class="actions-continue">
<form action="cart/order/checkout" method="post">
<form action="cart/order" method="post">
<input type="submit" value="Tiếp tục thanh toán →" name="proceed" class="btn btn-lg btn-primary"></form>
</div>
</div>
Expand Down

0 comments on commit e637117

Please sign in to comment.