Skip to content

Commit 7eacef5

Browse files
author
calvinpy
committed
widget data view
1 parent daf09dc commit 7eacef5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/widgets/cart.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<div
1010
data-aplazame-simulator=""
11+
data-view="cart"
1112
data-amount="<?php echo Aplazame_Filters::decimals(WC()->cart->total); ?>"
1213
data-currency="<?php echo get_woocommerce_currency(); ?>">
1314
</div>

templates/widgets/product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<div
1111
data-aplazame-simulator=""
12+
data-view="product"
1213
data-amount="<?php echo Aplazame_Filters::decimals($product->get_price()); ?>"
1314
data-currency="<?php echo get_woocommerce_currency(); ?>"
1415
data-stock="<?php echo $product->is_in_stock()?'true':'false'; ?>">

0 commit comments

Comments
 (0)