Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ahoadon
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Quang Huy
ahoadon
Commits
de80bc3c
Commit
de80bc3c
authored
Feb 07, 2020
by
Pham Huy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add register partner tpl
parent
b4f86ab2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
8 deletions
+85
-8
admin-style.css
...nal-fees-on-checkout-wordpress/assets/css/admin-style.css
+1
-1
wps-ext-cst-frontend.php
...es-on-checkout-wordpress/classes/wps-ext-cst-frontend.php
+26
-5
hdv-huypq.css
wp-content/themes/ahoadonviet/css/hdv-huypq.css
+13
-0
hdv.css
wp-content/themes/ahoadonviet/css/hdv.css
+22
-2
register-partner.php
...nt/themes/ahoadonviet/template-parts/register-partner.php
+23
-0
No files found.
wp-content/plugins/woo-additional-fees-on-checkout-wordpress/assets/css/admin-style.css
View file @
de80bc3c
...
...
@@ -38,7 +38,7 @@
font-family
:
raleway
;
letter-spacing
:
1px
;
}
.wps-afoc-main-wrap
input
[
type
=
"text"
],
select
,
input
[
type
=
"number"
]
{
.wps-afoc-main-wrap
input
[
type
=
"text"
],
.wps-afoc-main-wrap
select
,
.wps-afoc-main-wrap
input
[
type
=
"number"
]
{
height
:
34px
!important
;
width
:
99%
!important
;
max-width
:
99%
!important
;
...
...
wp-content/plugins/woo-additional-fees-on-checkout-wordpress/classes/wps-ext-cst-frontend.php
View file @
de80bc3c
...
...
@@ -8,6 +8,8 @@ class WPS_EXT_CST_Frontend
add_action
(
'woocommerce_before_checkout_billing_form'
,
array
(
$this
,
'add_option_to_checkout'
));
add_action
(
'wp_footer'
,
array
(
$this
,
'add_script_on_checkout'
));
add_action
(
'woocommerce_cart_calculate_fees'
,
array
(
$this
,
'calculate_cost'
));
add_action
(
'wp_ajax_woo_get_ajax_data'
,
'bbloomer_checkout_radio_choice_set_session'
);
add_action
(
'wp_ajax_nopriv_woo_get_ajax_data'
,
'bbloomer_checkout_radio_choice_set_session'
);
}
}
...
...
@@ -48,7 +50,18 @@ class WPS_EXT_CST_Frontend
<script
type=
"text/javascript"
>
jQuery
(
document
).
ready
(
function
(
$
)
{
$
(
'#wps_ext_cst_label'
).
click
(
function
(){
jQuery
(
'body'
).
trigger
(
'update_checkout'
);
$
.
ajax
({
type
:
'POST'
,
url
:
wc_checkout_params
.
update_checkout
,
data
:
{
'action'
:
'woo_get_ajax_data'
,
'radio'
:
$
(
this
).
val
(),
},
success
:
function
(
result
)
{
$
(
'body'
).
trigger
(
'update_checkout'
);
}
});
// jQuery('body').trigger('update_checkout');
});
});
</script>
...
...
@@ -61,18 +74,27 @@ class WPS_EXT_CST_Frontend
?>
<script
type=
"text/javascript"
>
jQuery
(
'#wps_ext_cst_label'
).
trigger
(
'click'
);
</script>
<?php
}
}
}
public
static
function
bbloomer_checkout_radio_choice_set_session
()
{
if
(
isset
(
$_POST
[
'radio'
])
){
$radio
=
sanitize_key
(
$_POST
[
'radio'
]
);
WC
()
->
session
->
set
(
'radio_chosen'
,
$radio
);
echo
json_encode
(
$radio
);
}
die
();
}
public
static
function
calculate_cost
(
$cart
){
$ext_cst_label_billing
=
(
get_option
(
'ext_cst_label_billing'
))
?
get_option
(
'ext_cst_label_billing'
)
:
'Phụ phí'
;
$ext_cst_amount_type
=
(
get_option
(
'ext_cst_amount_type'
))
?
get_option
(
'ext_cst_amount_type'
)
:
'fixed'
;
$ext_cst_amount
=
(
get_option
(
'ext_cst_amount'
))
?
get_option
(
'ext_cst_amount'
)
:
1
;
// && ! defined('DOING_AJAX')
if
(
!
$_POST
||
(
is_admin
()
&&
!
is_ajax
()
)
)
{
return
;
}
if
(
isset
(
$_POST
[
'post_data'
]
)
)
{
parse_str
(
$_POST
[
'post_data'
],
$post_data
);
}
else
{
...
...
@@ -96,7 +118,6 @@ class WPS_EXT_CST_Frontend
WC
()
->
cart
->
add_fee
(
$ext_cst_label_billing
,
$extracost
);
}
}
}
new
WPS_EXT_CST_Frontend
();
...
...
wp-content/themes/ahoadonviet/css/hdv-huypq.css
View file @
de80bc3c
...
...
@@ -311,3 +311,16 @@ p.title-item-sidebar {
.woocommerce
a
.remove
{
line-height
:
20px
;
}
.woocommerce
form
.form-row
.optional
{
visibility
:
hidden
;
}
.woocommerce
#mst_checkout_field
{
position
:
relative
;
}
.woocommerce
#search-taxcode
{
position
:
absolute
;
cursor
:
pointer
;
top
:
65%
;
right
:
2%
;
}
wp-content/themes/ahoadonviet/css/hdv.css
View file @
de80bc3c
...
...
@@ -59,11 +59,19 @@ ul#menu-main-menu li:nth-child(1) {
ul
#menu-main-menu
li
:nth-last-child
(
1
)
{
border-radius
:
0px
4px
4px
0px
;
}
ul
#menu-main-menu
li
ul
li
:nth-child
(
1
)
{
border-radius
:
4px
4px
0px
0px
;
}
ul
#menu-main-menu
li
ul
li
:nth-last-child
(
1
)
{
border-radius
:
0px
0px
4px
4px
;
}
ul
#menu-main-menu
li
{
padding
:
10px
0px
;
text-transform
:
uppercase
!important
;
}
ul
#menu-main-menu
li
ul
li
{
padding
:
5px
0px
;
}
ul
#menu-main-menu
li
.current-menu-item
a
{
color
:
#FFFFFF
!important
;
border-right
:
1px
solid
#ED2027
;
...
...
@@ -81,6 +89,15 @@ ul#menu-main-menu li a {
padding
:
5px
35px
;
border-right
:
1px
solid
#dddddd
;
}
ul
#menu-main-menu
li
ul
li
a
{
padding
:
5px
15px
;
text-align
:
center
;
border-right
:
none
;
}
ul
#menu-main-menu
li
ul
.sub-menu
{
border-radius
:
4px
;
}
ul
#menu-main-menu
li
:last-child
a
{
border-right
:
none
;
}
...
...
@@ -505,7 +522,10 @@ ul#menu-main-menu li a:hover {
font-weight
:
bold
;
}
.tpl-hoadon
{
width
:
80%
;
width
:
90%
;
}
#content
.width-100
{
width
:
100%
;
}
#footer-content
{
...
...
wp-content/themes/ahoadonviet/template-parts/register-partner.php
0 → 100644
View file @
de80bc3c
<?php
/**
* Template Name: Đăng ký đại lý
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 2.1
*/
get_header
();
?>
<section
id=
"register-partner"
>
<div
class=
"container"
>
<h2
class=
"register-title"
>
Đăng ký đại lý
</h2>
<div
class=
"row"
>
<div
class=
"col-xs-12 col-sm-12 col-md-12 col-lg-12"
>
<?php
echo
do_shortcode
(
'[contact-form-7 id="174" title="Đăng ký đại lý"]'
);
?>
</div>
</div>
</div>
</section>
<?php
get_footer
();
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment