Your cart
  • IMG
    {{cart_item.name}}
    {{cart_item.variation_attribute_name}}: {{cart_item.variation_attribute_label}}
    {{cart_item.item_unit}}: {{ setCurrency(cart_item.price)}}
    {{ setCurrency(cart_item.price*cart_item.quantity)}}
    Invalid quantity more than stock
Total :
{{setCurrency(cart.sub_total)}}

There is no item in the cart. If you want to buy, Please click here.

Step 4: Theme/Layout apply

Complete Application using Grails 3

Created by :
Grails
tutorial
Programming, Software and application
1090
2020-10-14 16:12:27

To apply this theme in the specific page, you have to add following line at that page

<!doctype html>

<html>

<head>
    <meta name="layout" content="main"/>
    <title>Welcome to Grails</title>
    <asset:link rel="icon" href="favicon.ico" type="image/x-ico" />
</head>

<body>

// content

</body>
</html>



Suppose we have site/index page and when we apply theme design in this page, page content will be as bellows

<!doctype html>
<html>
<head>

    <meta name="layout" content="main"/>
    <title>Welcome to Grails</title>
    <asset:link rel="icon" href="favicon.ico" type="image/x-ico" />

</head>
<body>

<div class="jumbotron">

   <h1> {{$page_title}}</h1>

   <p> {{$page_description}}</p>

   <h4>About Page : <a href="{{ url('/site/about') }}">Go To About Page</a> </h4>

</div>

</body>
</html>



....