Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cart order url #14

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the rewrite rule for url


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