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
6c5b9222
Commit
6c5b9222
authored
Dec 21, 2019
by
Pham Huy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update template
parent
986f4923
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
25 deletions
+23
-25
hdv.css
wp-content/themes/ahoadonviet/css/hdv.css
+1
-1
price-tpl.php
wp-content/themes/ahoadonviet/template-parts/price-tpl.php
+1
-1
archive-product.php
...ontent/themes/ahoadonviet/woocommerce/archive-product.php
+2
-3
cart.php
wp-content/themes/ahoadonviet/woocommerce/cart/cart.php
+16
-17
form-checkout.php
...themes/ahoadonviet/woocommerce/checkout/form-checkout.php
+3
-3
No files found.
wp-content/themes/ahoadonviet/css/hdv.css
View file @
6c5b9222
...
...
@@ -300,7 +300,7 @@ ul#menu-main-menu li a:hover {
/* prices box */
#prices
{
padding
:
7
5px
0px
;
padding
:
3
5px
0px
;
}
#prices
.prices-title
{
color
:
#000000
;
...
...
wp-content/themes/ahoadonviet/template-parts/price-tpl.php
View file @
6c5b9222
...
...
@@ -33,8 +33,8 @@ get_header();
<div
class=
"container"
>
<h2
class=
"prices-title"
>
BẢNG GIÁ PHẦN MỀM A HÓA ĐƠN
</h2>
<div
class=
"row"
>
<?php
echo
do_shortcode
(
'[products limit="12" columns="3" ]'
)
?>
<?php
echo
do_shortcode
(
'[add_to_cart id="99"]'
)
?>
<div
class=
"col-xs-12 col-sm-12 col-md-4 col-lg-4"
>
<div
class=
"card text-center box-price wow flipInY"
>
<h2
class=
"card-header"
>
AHD 100
</h2>
...
...
wp-content/themes/ahoadonviet/woocommerce/archive-product.php
View file @
6c5b9222
<?php
get_header
();
?>
<div
class=
"container"
>
<div
class=
"row"
>
<?php
get_template_part
(
'sidebars/sidebar-left'
);
?>
<main
class=
"col-xs-12 col-sm-9 col-md-9 col-lg-9"
>
<main
class=
"col-xs-12 col-sm-12 col-md-9 col-lg-9"
>
<?php
// Only run on shop archive pages, not single products or other pages
if
(
is_shop
()
||
is_product_category
()
||
is_product_tag
()
)
{
// Products per page
$per_page
=
24
;
$per_page
=
10
;
if
(
get_query_var
(
'taxonomy'
)
)
{
// If on a product taxonomy archive (category or tag)
$args
=
array
(
'post_type'
=>
'product'
,
...
...
wp-content/themes/ahoadonviet/woocommerce/cart/cart.php
View file @
6c5b9222
...
...
@@ -25,12 +25,12 @@ do_action( 'woocommerce_before_cart' ); ?>
<table
class=
"shop_table shop_table_responsive cart woocommerce-cart-form__contents"
cellspacing=
"0"
>
<thead>
<tr>
<th
class=
"product-remove"
>
</th>
<th
class=
"product-thumbnail"
>
</th>
<th
class=
"product-name"
>
<?php
esc_html_e
(
'Product'
,
'woocommerce'
);
?>
</th>
<th
class=
"product-price"
>
<?php
esc_html_e
(
'Price'
,
'woocommerce'
);
?>
</th>
<th
class=
"product-quantity"
>
<?php
esc_html_e
(
'Quantity'
,
'woocommerce'
);
?>
</th>
<th
class=
"product-subtotal"
>
<?php
esc_html_e
(
'Subtotal'
,
'woocommerce'
);
?>
</th>
<th
class=
"product-remove"
>
</th>
</tr>
</thead>
<tbody>
...
...
@@ -46,22 +46,6 @@ do_action( 'woocommerce_before_cart' ); ?>
?>
<tr
class=
"woocommerce-cart-form__cart-item
<?php
echo
esc_attr
(
apply_filters
(
'woocommerce_cart_item_class'
,
'cart_item'
,
$cart_item
,
$cart_item_key
)
);
?>
"
>
<td
class=
"product-remove"
>
<?php
echo
apply_filters
(
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'woocommerce_cart_item_remove_link'
,
sprintf
(
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>'
,
esc_url
(
wc_get_cart_remove_url
(
$cart_item_key
)
),
esc_html__
(
'Remove this item'
,
'woocommerce'
),
esc_attr
(
$product_id
),
esc_attr
(
$_product
->
get_sku
()
)
),
$cart_item_key
);
?>
</td>
<td
class=
"product-thumbnail"
>
<?php
$thumbnail
=
apply_filters
(
'woocommerce_cart_item_thumbnail'
,
$_product
->
get_image
(),
$cart_item
,
$cart_item_key
);
...
...
@@ -127,6 +111,21 @@ do_action( 'woocommerce_before_cart' ); ?>
echo
apply_filters
(
'woocommerce_cart_item_subtotal'
,
WC
()
->
cart
->
get_product_subtotal
(
$_product
,
$cart_item
[
'quantity'
]
),
$cart_item
,
$cart_item_key
);
// PHPCS: XSS ok.
?>
</td>
<td
class=
"product-remove"
>
<?php
echo
apply_filters
(
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'woocommerce_cart_item_remove_link'
,
sprintf
(
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>'
,
esc_url
(
wc_get_cart_remove_url
(
$cart_item_key
)
),
esc_html__
(
'Remove this item'
,
'woocommerce'
),
esc_attr
(
$product_id
),
esc_attr
(
$_product
->
get_sku
()
)
),
$cart_item_key
);
?>
</td>
</tr>
<?php
}
...
...
wp-content/themes/ahoadonviet/woocommerce/checkout/form-checkout.php
View file @
6c5b9222
...
...
@@ -35,12 +35,12 @@ if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_requir
<?php
do_action
(
'woocommerce_checkout_before_customer_details'
);
?>
<div
class=
"
col2-set
"
id=
"customer_details"
>
<div
class=
"col-
1
"
>
<div
class=
"
row
"
id=
"customer_details"
>
<div
class=
"col-
9
"
>
<?php
do_action
(
'woocommerce_checkout_billing'
);
?>
</div>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<?php
do_action
(
'woocommerce_checkout_shipping'
);
?>
</div>
</div>
...
...
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