diff --git a/smartylint/checkout.tpl b/smartylint/checkout.tpl new file mode 100644 index 0000000..ee010e9 --- /dev/null +++ b/smartylint/checkout.tpl @@ -0,0 +1,58 @@ +{include file="header.tpl" page_title="Checkout"} + +
+

Review your order

+ + {if $cart.items} + + + + + + {foreach $cart.items as $line} + + + + + + {/foreach} + +
ItemQtyPrice
{$line.name}{$line.quantity}{$line.subtotal|string_format:"%.2f"}
+ +
+
+ Shipping + + + + + + + {if $shipping_method == "express"} +

Express delivery adds {$express_fee|string_format:"%.2f"}.

+ + {if $promo_code == "WELCOME10"} +

Promo applied: 10% off.

+ {/if} +
+ +
+ Payment + + +
+ + +
+ {else} +

Your cart is empty. Browse products.

+ {/if} +
+ +{include file="footer.tpl"} diff --git a/smartylint/email_order.tpl b/smartylint/email_order.tpl new file mode 100644 index 0000000..2d9a531 --- /dev/null +++ b/smartylint/email_order.tpl @@ -0,0 +1,34 @@ +{* order confirmation email — plain text + html sections *} + +Subject: Your Demoapp order #{$order.id} is confirmed + +Hi {$buyer.name}, + +Thanks for your order! Here's a summary: + +Order #{$order.id} +Placed: {$order.placed_at} +Total: {$order.total|string_format:"%.2f"} + +Items: +{foreach $order.items as $line} +- {$line.name} x {$line.quantity} = {$line.subtotal|string_format:"%.2f"} +{/foreach} + +Shipping to: +{$buyer.address} +{$buyer.city}, {$buyer.region} {$buyer.postal_code} + +{php} + $tracking = isset($order['tracking_number']) ? $order['tracking_number'] : 'pending'; + echo "Tracking: " . $tracking . "\n"; +{/php} + +Track your order: +https://demoapp.example.com/orders/{$order.id}/track + +Questions? Reply to this email or visit https://demoapp.example.com/help. + +— The Demoapp team + +{* *} diff --git a/smartylint/footer.tpl b/smartylint/footer.tpl new file mode 100644 index 0000000..54b8ee8 --- /dev/null +++ b/smartylint/footer.tpl @@ -0,0 +1,35 @@ + + + + + {include file=tracking.tpl} + {include file="scripts.tpl"} + + diff --git a/smartylint/header.tpl b/smartylint/header.tpl new file mode 100644 index 0000000..2d872eb --- /dev/null +++ b/smartylint/header.tpl @@ -0,0 +1,38 @@ +{* *} + + + + + {$page_title} - Demoapp Store + + + {include file=meta.tpl} + {include file="styles.tpl" theme=$current_theme} + + + + + +
diff --git a/smartylint/product_detail.tpl b/smartylint/product_detail.tpl new file mode 100644 index 0000000..fe95f1b --- /dev/null +++ b/smartylint/product_detail.tpl @@ -0,0 +1,54 @@ +{include file="header.tpl" page_title=$Product.name} + +
+ + +
+

{$Product.name}

+

SKU: {$Product.sku|@default:"n/a"}

+

{$Product.price|string_format:"%.2f"}

+ +
+ {$Product.long_description} +
+ + {if $Product.in_stock} +
+ + + +
+ {/if} +
+ +
+

Customer reviews

+ {foreach $Reviews as $Review} +
+
+ {$Review.author_name} + +
+

{$Review.body}

+
+ {/foreach} +
+ + {if $RelatedProducts} + + {/if} +
+ +{include file="footer.tpl"} diff --git a/smartylint/product_list.tpl b/smartylint/product_list.tpl new file mode 100644 index 0000000..84cc436 --- /dev/null +++ b/smartylint/product_list.tpl @@ -0,0 +1,41 @@ +{include file=header.tpl page_title="All Products"} + +
+

{$category_name}

+ +

+ Showing {$result_count} results for "{$search_query}" +

+ + {if $products} + + {else} +

No products matched your filters.

+ {/if} + + +
+ +{include file="footer.tpl"}