fg

<!-- Template Version 3 -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>{{page.title}}</title>
    <meta name="keywords" content="{{page.keywords}}" />
    <meta name="description" content="{{page.description}}" />

    <script src="/template/scripts/jquery-1.7.2.min.js"></script>
    <link href="/template/styles/font-awesome.min.css?ver=3.0.1" rel="stylesheet" type="text/css"  media="all">
    <link href="/template/styles/site.css?ver=3.0.1" rel="stylesheet" />
    <section profishop-item="product" profishop-render="inner">
      <link href="/template/styles/jquery.fancybox.css?ver=3.0.1" rel="stylesheet" media="screen" />
    </section>

    <!-- #main-menu config - instance specific stuff not covered in the theme -->
    <!-- Put this in an external stylesheet if you want the media query to work in IE8 (e.g. where the rest of your page styles are) -->
    <style type="text/css">
      @media (min-width: 768px) {
        #main-menu {
          float: left;
          position: relative;
          z-index: 9999;
          width: 12em;
        }

        #main-menu ul {
          width: 12em; /* fixed width only please - you can use the "subMenusMinWidth"/"subMenusMaxWidth" script options to override this if you like */
        }
      }
      .catText { padding:15px;}
    </style>

  </head>
  <body ng-app="app">
    {{
    function getImageAddress(attachment, width, height, quality) {
    var address = "/attachments/" + attachment.id + "/" + width + "x" + height + "/";

    if (quality)
    address += quality + "/";

    address += encodeURI(attachment.fullName);

    return address;

    }
    }}
    <a href="#0" class="cd-top">Top</a>

    <header id="ps-header">
      <div class="header container">
        <div class="inner-wraper">
          <div class="runit rf">
            <div class="topbar">
              <ul class="tbar">
                <span id="udpUserInfo">
                  <li id="welcometxt">
                    <span class="home-icon"></span>
                    <h1  id="shopname">
                      <a href="/" title="فروشگاه اینترنتی {{properties.shopName}}">فروشگاه اینترنتی {{properties.shopName}}</a>
                    </h1>
                  </li>
                  <li class="sep"><span class="line"></span></li>
                  <li>
                    <a href="/tracking">پیگیری سفارش<span class="shopping-icon"></span></a>
                  </li>
                  <li class="sep"><span class="line"></span></li>
                  <li>
                    <a href="/about">درباره ما<span class="user-icon"></span></a>
                  </li>
                  <li class="sep"><span class="line"></span></li>
                  <li>
                    <a href="/contact-us">تماس با ما<span class="profile-icon"></span></a>
                  </li>
                </span>
              </ul>
            </div>

            <div class="cart-box">
              <div class="ps-button-container hasIcon">
                <a href="/cart" class="ps-button green">
                  <span id="udpCartItemCounter">
                    <i class="ps-button-icon ps-button-icon-cart"></i>
                    <div class="ps-button-label clearfix" profishop-item="cart">
                      <div class="ps-button-labelname">سبد خرید</div>
                      <span class="order-count">{{cart.count}}</span>
                    </div>
                  </span>
                </a>
              </div>
            </div>

            <div class="search-box">
              <form class="form-inline" role="form" action="/">
                <button type="submit" id="btnSearch"></button>
                <input id="SearchBox" type="text" name="key" value="{{search.key}}">
                <div class="spacer"></div>
              </form>
            </div>
          </div>
          <div class="logo-box lf">
            <a href="/">
              <img src="/template/images/logo.png" alt="فروشگاه اینترنتی {{properties.shopName}}" title="فروشگاه اینترنتی{{properties.shopName}}">
            </a>
          </div>
        </div>
      </div>
    </header>

    <div id="menubar">
      <div class="container">
        <ul id="menu" profishop-item="categories" profishop-type="product">
          <li profishop-repeat="cat1 in categories">
            <a href="javascript:void(0)">{{cat1.name}}</a>
            <span class="arrow"></span>
            <ul profishop-item="cat1.categories">
              <li profishop-repeat="cat2 in categories">
                <a href="{{cat2.address}}">{{cat2.name}}</a>
                <ul profishop-item="cat2.categories">
                  <li profishop-repeat="cat3 in categories">
                    <a href="{{cat3.address}}">{{cat3.name}}</a>
                    <ul profishop-item="cat3.categories">
                      <li profishop-repeat="cat4 in categories">
                        <a href="{{cat4.address}}">{{cat4.name}}</a>
                      </li>
                    </ul>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </div>
    <div class="container" profishop-location="/order;/payment;payment;/tracking;home;/products;search;category;sidepage;/contact-us;/complaint;404">
      <div id="sidebar">
        <div class="box nemad">
          {{properties.enamadCode}}
        </div>

        <div class="box">
          <h2 class="title">
            <span class="blue">پرفروشترین کالاها</span>
          </h2>
          <ul class="product-list" profishop-item="products" profishop-status="available" profishop-number="5" profishop-sort="sales" profishop-order="desc">
            <li profishop-repeat="product in products">
              <a href="{{product.address}}" title="{{product.name}}" profishop-item="product.attachments" profishop-name="image">
                <section profishop-repeat="attachment in attachments" profishop-render="inner">
                  <img src="{{ getImageAddress(attachment, 110, 110) }}" alt="{{ product.name }}" />
                </section>
                <h3>{{product.heading}}</h3>
              </a>
            </li>
          </ul>
        </div>
        <div class="box sidebarcode">
          {{properties.sidebarCode}}
        </div>
<!-- Begin WebGozar.com Counter code -->
<script type="text/javascript" language="javascript" src="http://www.webgozar.ir/c.aspx?Code=3712012&amp;t=counter" ></script>
<noscript><a href="http://www.webgozar.com/counter/stats.aspx?code=3712012" target="_blank">&#1570;&#1605;&#1575;&#1585;</a></noscript>
<!-- End WebGozar.com Counter code -->
      </div>
      <div id="content">

        <div class="box" profishop-item="search">
          <h2 class="title">
            <a href="#" title="{{search.key}}" class="pvred">{{search.key}}</a>
          </h2>
          <div profishop-item="search.products" profishop-number="66" profishop-sort="id" profishop-order="desc" profishop-status="available">
            <form profishop-action="changepage" action="{{page.address +'?key='+search.key}}">
              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <button type="submit" name="action" value="page:{{prev.number}}">قبلی</button>
                </li>
                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <button type="{{ page.isCurrentPage ? 'button' : 'submit' }}" name="action" value="page:{{ page.number }}">{{ page.number }}</button>
                </li>
                <li profishop-item="pager.next">
                  <button type="submit" name="action" value="page:{{next.number}}">بعدی</button>
                </li>
              </ul>
            </form>

            <div id="products" class="grid">
              <section profishop-repeat="product in products" profishop-render="inner">
                <div data-id="{{product.serial}}" class="item">
                  <div class="gallery">
                    <div class="pimg">
                      <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                        <section profishop-repeat="attachment in attachments" profishop-render="inner">
                          <a title="{{product.title}}" href="{{product.address}}" profishop-visible="{{attachment.index == 0 }}">
                            <img alt="{{product.heading}}" src="{{ getImageAddress(attachment, 180, 180) }}" width="auto" height="180">
                            <img class="offers specialoffer" src="/template/images/SpecialOffer.png" alt="پیشنهاد ویژه" width="110" height="110" profishop-visible="{{product.hasSpecialOffer}}">
                          </a>
                        </section>
                      </section>
                    </div>
                    <div class="colors hidden">
                      <span class="color" style="background-color: #2b2b2b" title="مشکي"></span>
                      <span class="color" style="background-color: Gold" title="طلايي"></span>
                    </div>
                    <div class="rating" profishop-item="product.rating">
                      <div class="txt">
                        <span>امتیاز کاربران ( از {{rating.voters}} رای ) </span>
                        <label class="boldtext">{{ rating.score}}</label>
                      </div>
                      <div class="gray">
                        <div style="width: {{ rating.score * 20}}%" class="red"></div>
                      </div>
                    </div>
                  </div>
                  <div class="description ">
                    <h2 class="fatitle">
                      <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                    </h2>
                    <h3>
                      <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                    </h3>
                    <div class="otherspec">
                      <table>
                        <tbody>
                          <tr profishop-visible="{{ product.statusName == 'available' }}">
                            <td class="productdetail">
                              <a title="{{product.title}}" href="{{product.address}}" class="available"></a>
                            </td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="oldprice red"></p>
                                <p class="newprice">{{ product.price }}  تومان</p>
                              </div>

                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'unavailable' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">ناموجود</p>
                              </div>
                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'callus' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">تماس بگیرید</p>
                              </div>
                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'comingsoon' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">بزودی </p>
                              </div>
                            </td>
                          </tr>

                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </section>
            </div>
            <div class="clearfix"></div>

            <form profishop-action="changepage" action="{{page.address +'?key='+search.key}}">
              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <button type="submit" name="action" value="page:{{prev.number}}">قبلی</button>
                </li>

                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <button type="{{ page.isCurrentPage ? 'button' : 'submit' }}" name="action" value="page:{{ page.number }}">{{ page.number }}</button>
                </li>

                <li profishop-item="pager.next">
                  <button type="submit" name="action" value="page:{{next.number}}">بعدی</button>
                </li>
              </ul>
            </form>
          </div>
        </div>


        <div profishop-location="home">
          <div id="slider" profishop-item="slides">
            <div class="slides center">
              <section profishop-repeat="slide in slides" profishop-render="inner">
                <a href="{{slide.address}}">
                  <img src="{{slide.image}}" alt="{{slide.title}}" class="slideItem" />
                </a>
              </section>

              <div class="footer">
                <ul class="tabs">
                  <section profishop-repeat="slide in slides" profishop-render="inner">
                    <li class="tabItem">
                      <a href="{{slide.address}}" title="{{slide.title}}">{{slide.description}}</a>
                    </li>
                    <li class="sep"><span></span></li>
                  </section>
                </ul>
              </div>
            </div>
            <a href='#' class="backward hidden"></a>
            <a href='#' class="forward hidden"></a>
          </div>

          <div class="box">
            <h2 class="title">
              <span class="pvred">جدیدترین کالاها</span>
            </h2>
            <div profishop-item="products" profishop-number="50" profishop-sort="id" profishop-order="desc">
              <div class="jcarousel-wrapper gallery-wrapper">
                <div class="jcarousel">
                  <ul class="products">
                    <section profishop-repeat="product in products" profishop-render="inner">
                      <li class="productItem">
                        <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                          <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                            <section profishop-repeat="attachment in attachments" profishop-render="inner">
                              <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                            </section>
                          </section>
                          <h5 class="fatitle">{{ product.name }}</h5>
                          <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                            <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                            <span class="final-price">ناموجود</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                            <span class="final-price">تماس بگیرید</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                            <span class="final-price">بزودی</span>
                          </section>
                        </a>
                      </li>
                    </section>
                  </ul>
                </div>
                <a href="#" class="jcarousel-control-prev"></a>
                <a href="#" class="jcarousel-control-next"></a>
              </div>
            </div>
          </div>
          <div class="box">
            <h2 class="title">
              <span class="pvred">پرفروشترین ها</span>
            </h2>
            <div profishop-item="products" profishop-number="50" profishop-sort="sales" profishop-order="desc">
              <div class="jcarousel-wrapper gallery-wrapper">
                <div class="jcarousel">
                  <ul class="products">
                    <section profishop-repeat="product in products" profishop-render="inner">
                      <li class="productItem">
                        <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                          <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                            <section profishop-repeat="attachment in attachments" profishop-render="inner">
                              <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                            </section>
                          </section>
                          <h5 class="fatitle">{{ product.name }}</h5>
                          <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                            <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                            <span class="final-price">ناموجود</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                            <span class="final-price">تماس بگیرید</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                            <span class="final-price">بزودی</span>
                          </section>
                        </a>
                      </li>
                    </section>
                  </ul>
                </div>
                <a href="#" class="jcarousel-control-prev"></a>
                <a href="#" class="jcarousel-control-next"></a>
              </div>
            </div>
          </div>

          <div class="box">
            <h2 class="title">
              <span class="pvred">پربازدیدترین ها</span>
            </h2>
            <section profishop-item="products" profishop-number="50" profishop-sort="views" profishop-order="desc" profishop-render="inner">
              <div class="jcarousel-wrapper gallery-wrapper">
                <div class="jcarousel">
                  <ul class="products">
                    <section profishop-repeat="product in products" profishop-render="inner">
                      <li class="productItem">
                        <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                          <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                            <section profishop-repeat="attachment in attachments" profishop-render="inner">
                              <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                            </section>
                          </section>
                          <h5 class="fatitle">{{ product.name }}</h5>
                          <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                            <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                            <span class="final-price">ناموجود</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                            <span class="final-price">تماس بگیرید</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                            <span class="final-price">بزودی</span>
                          </section>
                        </a>
                      </li>
                    </section>
                  </ul>
                </div>
                <a href="#" class="jcarousel-control-prev"></a>
                <a href="#" class="jcarousel-control-next"></a>
              </div>
            </section>
          </div>
        </div>

        <div class="box" profishop-location="404">
          <h2 class="title">
            <span class="pvred">سبد خرید</span>
          </h2>
          <div class="product">
            <div class="padd10">
              متاسفانه صفحه مورد نظر وجود ندارد.
            </div>
          </div>
        </div>



        <section profishop-item="products" profishop-location="/products" profishop-number="80" profishop-sort="id" profishop-order="desc" profishop-render="inner">
          <div class="box">
            <h2 class="title">
              <span class="pvred">لیست محصولات</span>
            </h2>

            <form profishop-action="changepage" action="{{page.address}}">
              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <button type="submit" name="action" value="page:{{prev.number}}">قبلی</button>
                </li>

                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <button type="{{ page.isCurrentPage ? 'button' : 'submit' }}" name="action" value="page:{{ page.number }}">{{ page.number }}</button>
                </li>

                <li profishop-item="pager.next">
                  <button type="submit" name="action" value="page:{{next.number}}">بعدی</button>
                </li>
              </ul>
            </form>
            <div id="products" class="grid">
              <section profishop-repeat="product in products" profishop-render="inner">
                <div data-id="{{product.serial}}" class="item">
                  <div class="gallery">
                    <div class="pimg">
                      <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                        <section profishop-repeat="attachment in attachments" profishop-render="inner">
                          <a title="{{product.title}}" href="{{product.address}}" profishop-visible="{{attachment.index == 0 }}">
                            <img alt="{{product.heading}}" src="{{ getImageAddress(attachment, 180, 180) }}" width="auto" height="180">
                          </a>
                        </section>
                      </section>
                    </div>
                  </div>
                  <div class="description ">
                    <h2 class="fatitle">
                      <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                    </h2>
                    <h3>
                      <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                    </h3>
                    <div class="otherspec">
                      <table>
                        <tbody>
                          <tr profishop-visible="{{ product.statusName == 'available' }}">
                            <td class="productdetail">
                              <a title="{{product.title}}" href="{{product.address}}" class="available"></a>
                            </td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="oldprice red"></p>
                                <p class="newprice">{{ product.price }}  تومان</p>
                              </div>
                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'unavailable' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">ناموجود</p>
                              </div>
                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'callus' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">تماس بگیرید</p>
                              </div>
                            </td>
                          </tr>

                          <tr profishop-visible="{{ product.statusName == 'comingsoon' }}">
                            <td class="productdetail"></td>
                            <td class="rightspec">
                              <div class="rtl green">
                                <p class="newprice gray">بزودی </p>
                              </div>
                            </td>
                          </tr>

                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </section>
            </div>
            <div class="clearfix"></div>
            <form profishop-action="changepage" action="{{page.address}}">
              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <button type="submit" name="action" value="page:{{prev.number}}">قبلی</button>
                </li>

                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <button type="{{ page.isCurrentPage ? 'button' : 'submit' }}" name="action" value="page:{{ page.number }}">{{ page.number }}</button>
                </li>

                <li profishop-item="pager.next">
                  <button type="submit" name="action" value="page:{{next.number}}">بعدی</button>
                </li>
              </ul>
            </form>
          </div>
        </section>

        <div class="box" profishop-item="sidePage">
          <h2 class="title">
            <a href="{{sidePage.address}}" class="pvred">{{sidePage.name}}</a>
          </h2>
          <div class="product">
            <div class="padd10">
              {{sidePage.text}}
            </div>
          </div>
        </div>

        <section profishop-item="category" profishop-visible="{{ category.type == 'product' }}" profishop-render="inner">
          <div class="box">
            <h2 class="title">
              <a href="{{category.address}}" title="{{category.name}}" class="pvred">{{category.name}}</a>
            </h2>
            <div class="catText">
              {{category.text}}
            </div>
            <div profishop-item="category.products" profishop-number="80" profishop-sort="id" profishop-order="desc">

              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <a href="{{page.address}}?page={{prev.number}}">قبلی</a>
                </li>
                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <a profishop-visible="{{ !page.isCurrentPage}}" href="{{page.address}}?page={{page.number}}">{{page.number}}</a>
                  <span profishop-visible="{{ page.isCurrentPage}}">{{page.number}}</span>
                </li>

                <li profishop-item="pager.next">
                  <a href="{{page.address}}?page={{next.number}}">بعدی</a>
                </li>
              </ul>

              <div id="products" class="grid">
                <section profishop-repeat="product in products" profishop-render="inner">
                  <div data-id="{{product.serial}}" class="item">
                    <div class="gallery">
                      <div class="pimg">
                        <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                          <section profishop-repeat="attachment in attachments" profishop-render="inner">
                            <a title="{{product.title}}" href="{{product.address}}" profishop-visible="{{attachment.index == 0 }}">
                              <img alt="{{product.heading}}" src="{{ getImageAddress(attachment, 180, 180) }}" width="auto" height="180">
                              <img class="offers specialoffer" src="/template/images/SpecialOffer.png" alt="پیشنهاد ویژه" width="110" height="110" profishop-visible="{{product.hasSpecialOffer}}">
                            </a>
                          </section>
                        </section>
                      </div>
                    </div>
                    <div class="description ">
                      <h2 class="fatitle">
                        <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                      </h2>
                      <h3>
                        <a title="{{product.title}}" href="{{product.address}}">{{product.title}}</a>
                      </h3>
                      <div class="otherspec">
                        <table>
                          <tbody>
                            <tr profishop-visible="{{ product.statusName == 'available' }}">
                              <td class="productdetail">
                                <a title="{{product.title}}" href="{{product.address}}" class="available"></a>
                              </td>
                              <td class="rightspec">
                                <div class="rtl green">
                                  <p class="oldprice red"></p>
                                  <p class="newprice">{{ product.price }}  تومان</p>
                                </div>
                              </td>
                            </tr>

                            <tr profishop-visible="{{ product.statusName == 'unavailable' }}">
                              <td class="productdetail"></td>
                              <td class="rightspec">
                                <div class="rtl green">
                                  <p class="newprice gray">ناموجود</p>
                                </div>
                              </td>
                            </tr>

                            <tr profishop-visible="{{ product.statusName == 'callus' }}">
                              <td class="productdetail"></td>
                              <td class="rightspec">
                                <div class="rtl green">
                                  <p class="newprice gray">تماس بگیرید</p>
                                </div>
                              </td>
                            </tr>

                            <tr profishop-visible="{{ product.statusName == 'comingsoon' }}">
                              <td class="productdetail"></td>
                              <td class="rightspec">
                                <div class="rtl green">
                                  <p class="newprice gray">بزودی </p>
                                </div>
                              </td>
                            </tr>

                          </tbody>
                        </table>
                      </div>
                    </div>
                  </div>
                </section>
              </div>
              <div class="clearfix"></div>

              <ul profishop-item="products.pager" profishop-number="10" class="pager">
                <li profishop-item="pager.prev">
                  <a href="{{page.address}}?page={{prev.number}}">قبلی</a>
                </li>
                <li class="{{ page.isCurrentPage ? 'active' : '' }}" profishop-repeat="page in pager">
                  <a profishop-visible="{{ !page.isCurrentPage}}" href="{{page.address}}?page={{page.number}}">{{page.number}}</a>
                  <span profishop-visible="{{ page.isCurrentPage}}">{{page.number}}</span>
                </li>

                <li profishop-item="pager.next">
                  <a href="{{page.address}}?page={{next.number}}">بعدی</a>
                </li>
              </ul>
            </div>
          </div>
          <div class="box">
            <h2 class="title">
              <span class="pvred">پرفروش ترین ها</span>
            </h2>
            <div profishop-item="products" profishop-number="50" profishop-sort="id" profishop-order="desc">
              <div class="jcarousel-wrapper gallery-wrapper">
                <div class="jcarousel">
                  <ul class="products">
                    <section profishop-repeat="product in products" profishop-render="inner">
                      <li class="productItem">
                        <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                          <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                            <section profishop-repeat="attachment in attachments" profishop-render="inner">
                              <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                            </section>
                          </section>
                          <h5 class="fatitle">{{ product.name }}</h5>
                          <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                            <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                            <span class="final-price">ناموجود</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                            <span class="final-price">تماس بگیرید</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                            <span class="final-price">بزودی</span>
                          </section>
                        </a>
                      </li>
                    </section>
                  </ul>
                </div>
                <a href="#" class="jcarousel-control-prev"></a>
                <a href="#" class="jcarousel-control-next"></a>
              </div>
            </div>
          </div>
          <div class="box">
            <h2 class="title">
              <span class="pvred">پربازدیدترین ها</span>
            </h2>
            <div profishop-item="products" profishop-number="50" profishop-sort="id" profishop-order="desc">
              <div class="jcarousel-wrapper gallery-wrapper">
                <div class="jcarousel">
                  <ul class="products">
                    <section profishop-repeat="product in products" profishop-render="inner">
                      <li class="productItem">
                        <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                          <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                            <section profishop-repeat="attachment in attachments" profishop-render="inner">
                              <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                            </section>
                          </section>
                          <h5 class="fatitle">{{ product.name }}</h5>
                          <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                            <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                            <span class="final-price">ناموجود</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                            <span class="final-price">تماس بگیرید</span>
                          </section>
                          <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                            <span class="final-price">بزودی</span>
                          </section>
                        </a>
                      </li>
                    </section>
                  </ul>
                </div>
                <a href="#" class="jcarousel-control-prev"></a>
                <a href="#" class="jcarousel-control-next"></a>
              </div>
            </div>
          </div>
        </section>



        <form class="box" role="form" profishop-action="order" profishop-location="/order" profishop-default-state="0" profishop-loadprofile="true" action="{{page.address}}">
          <h2 class="title">
            <a href="/order" title="تکمیل سفارش" class="pvred">تکمیل سفارش</a>
          </h2>

          <div profishop-item="form.message">
            <div class="message {{message.type}}">
              {{message.text}}
            </div>
          </div>

          <div profishop-view="default" class="contact-form">
            <div class="fieldbox">
              <span class="title">نام</span>
              <input type="text" name="firstName" value="{{form.firstName}}" />
            </div>
            <div class="fieldbox">
              <span class="title">نام خانوادگی</span>
              <input type="text" name="lastName" value="{{form.lastName}}" />
            </div>
            <div class="fieldbox">
              <span class="title">تلفن محل تحویل مرسوله</span>
              <input type="text" name="phone" value="{{form.phone}}" />
            </div>
            <div class="fieldbox">
              <span class="title">تلفن همراه</span>
              <input type="text" name="mobile" value="{{form.mobile}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس ایمیل</span>
              <input type="text" name="email" value="{{form.email}}" />
            </div>
            <div class="fieldbox">
              <span class="title">استان</span>
              <select name="stateId" profishop-item="states" onchange="setScrollCoordinates($(this.form));this.form.submit();">
                <option value="0">انتخاب استان</option>
                <option profishop-repeat="state in states" value="{{state.id}}" profishop-selected="{{form.stateId}}">{{state.name}}</option>
              </select>
              <input type="hidden" name="scrollx" value="0" />
              <input type="hidden" name="scrolly" value="0" />
            </div>
            <div class="fieldbox" profishop-item="form.state">
              <span class="title">شهر</span>
              <select name="cityId" profishop-item="state.cities">
                <option profishop-repeat="city in cities" value="{{city.id}}" profishop-selected="{{form.cityId}}">{{city.name}}</option>
              </select>
            </div>
            <div class="fieldbox">
              <span class="title">کد پستی</span>
              <input type="text" name="postalCode" value="{{form.postalCode}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس</span>
              <textarea name="address">{{form.address}}</textarea>
            </div>
            <div class="fieldbox">
              <span class="title">پیام شما</span>
              <textarea name="message">{{form.message}}</textarea>
            </div>

            <div class="bbox">
              <button type="submit" name="action" value="view:shippingMethods;check:firstName,lastName,phone,email,stateId,cityId,postalCode,address" class="nextbtn">انتخاب شیوه ی ارسال</button>
            </div>
          </div>

          <div profishop-view="shippingMethods" profishop-item="form.city">
            <div profishop-item="city.shippingMethods">
              <span class="methods-title">
                <a href="#" title="انتخاب شیوه ی ارسال" class="blue">انتخاب شیوه ی ارسال</a>
              </span>
              <section profishop-visible="{{shippingMethods.count == 0}}" profishop-render="inner">
                <p class="ca">
                  <b>امکان ارسال به شهر مورد نظر نمی باشد.</b>
                </p>
              </section>
              <section profishop-visible="{{shippingMethods.count != 0}}" profishop-render="inner">
                <div class="shipping" profishop-repeat="shippingMethod in shippingMethods">
                  <div class="radio">
                    <input type="radio" name="shippingMethodId" value="{{shippingMethod.id}}" profishop-checked="{{form.shippingMethodId}}" />

                  </div>
                  <div class="name">
                    <div>{{shippingMethod.title}}</div>
                    <div class="description">{{shippingMethod.description}}</div>
                    <div class="{{shippingMethod.name}} icon"></div>
                  </div>
                  <div class="cost">{{shippingMethod.cost}}</div>
                </div>
                <div class="bbox">
                  <button type="submit" name="action" value="view:paymentMethods;check:shippingMethodId" class="nextbtn">انتخاب شیوه ی پرداخت</button>
                </div>
              </section>
            </div>

          </div>


          <div profishop-view="paymentMethods" profishop-item="form.shippingMethod">
            <div profishop-item="shippingMethod.paymentMethods">
              <span class="methods-title">
                <a href="#" title="انتخاب شیوه ی انتخاب" class="blue">انتخاب شیوه ی انتخاب</a>
              </span>
              <div class="payment" profishop-repeat="paymentMethod in paymentMethods">
                <div class="radio">
                  <input type="radio" name="paymentMethodName" value="{{paymentMethod.name}}" profishop-checked="{{form.paymentMethodName}}" />
                </div>
                <div class="{{paymentMethod.name}} name">
                  <div>{{paymentMethod.title}}</div>
                  <div class="description">{{paymentMethod.description}}</div>
                </div>
              </div>

            </div>
            <div class="bbox">
              <button type="submit" name="action" value="view:invoice;check:paymentMethodName" class="nextbtn">مشاهده پیش فاکتور</button>
            </div>
          </div>




          <div profishop-item="form.invoice" profishop-view="invoice">
            <span class="methods-title">
              <a href="#" title="مشخصات کاربر" class="pvred">مشخصات کاربر</a>
            </span>
            <table class="basic margtb10">
              <tr>
                <td class="wid150p bg-gray-color"><span>نام</span></td>
                <td class="wid250p">{{invoice.firstName}}</td>
                <td class="wid150p bg-gray-color">تلفن محل تحویل مرسوله</td>
                <td class="wid250p">{{invoice.phone}}</td>
              </tr>
              <tr>
                <td class="bg-gray-color">نام خانوادگی</td>
                <td>{{invoice.lastName}}</td>
                <td class="bg-gray-color"><span>تلفن همراه</span></td>
                <td>{{invoice.mobile}}</td>
              </tr>
              <tr>
                <td class="bg-gray-color">استان</td>
                <td>{{invoice.stateName}}</td>
                <td class="bg-gray-color">ایمیل</td>
                <td>{{invoice.email}}</td>
              </tr>
              <tr>
                <td class="bg-gray-color">شهر</td>
                <td>{{invoice.cityName}}</td>
                <td class="bg-gray-color">کد پستی</td>
                <td>{{invoice.postalCode}}</td>
              </tr>
              <tr>
                <td class="bg-gray-color"><span>آدرس</span></td>
                <td colspan="3">{{invoice.address}}</td>
              </tr>
            </table>

            <table class="basic margtb10">
              <tr>
                <th>شرح محصول</th>
                <th>تعداد</th>
                <th>قیمت واحد</th>
                <th>قیمت کل</th>
              </tr>


              <tr profishop-repeat="invoiceItem in invoice">
                <td><span>{{invoiceItem.name}}</span></td>
                <td class="ca">{{invoiceItem.quantity}}</td>
                <td class="ca">{{invoiceItem.price}}</td>
                <td class="ca">{{invoiceItem.total}}</td>
              </tr>

            </table>


            <table class="basic green order margtb10">
              <tr>
                <td>
                  جمع کل
                </td>
                <td class="ca">{{invoice.total}}</td>
              </tr>
              <tr>
                <td>
                  هزینه ارسال
                </td>
                <td class="ca">{{invoice.shippingMethodCost}}</td>
              </tr>
              <tr class="alt">
                <td>
                  مبلغ قابل پرداخت
                </td>
                <td class="ca">{{invoice.final}}</td>
              </tr>
            </table>

            <div class="bbox">
              <button type="submit" name="action" value="view:default" class="backbtn">بازگشت و تصحیح اطلاعات</button>
              <button type="submit" name="action" value="submit;payment" class="green nextbtn">تایید و ثبت نهایی</button>
            </div>
          </div>


          <div class="marg20" profishop-view="success">
            <div class="thanks">از خرید شما سپاسگزاریم.</div>
            <div profishop-item="form.order">
              <table class="half basic">
                <tr>
                  <th colspan="2" class="ra">
                    اطلاعات ارسالی سفارش:
                  </th>
                </tr>
                <tr>
                  <td class="ra">
                    شناسه سفارش
                  </td>
                  <td class="ltr">{{order.number}}</td>
                </tr>
                <tr>
                  <td class="ra">
                    مبلغ قابل پرداخت
                  </td>
                  <td class="ltr">{{order.final}}</td>
                </tr>
                <tr class="ra">
                  <td>
                    وضعیت پرداخت
                  </td>
                  <td class="la" profishop-visible="{{ order.paymentStatus == 'paid' }}">پرداخت شده</td>
                  <td class="la" profishop-visible="{{ order.paymentStatus == 'unpaid' }}">پرداخت نشده</td>
                </tr>
                <tr>
                  <td class="ra">
                    وضعیت سفارش
                  </td>
                  <td class="la">{{order.status}}</td>
                </tr>
              </table>

              <table class="half basic margr5">
                <tr>
                  <th colspan="2" class="ra">
                    خلاصه وضعیت سفارش:
                  </th>
                </tr>
                <tr>
                  <td class="ra">
                    تحویل گیرنده:
                  </td>
                  <td class="la">{{order.name}}</td>
                </tr>
                <tr>
                  <td colspan="2" class="ra">
                    {{order.address}}
                  </td>
                </tr>
                <tr>
                  <td colspan="2" class="ltr">
                    {{order.phone}}, {{order.mobile}}
                  </td>
                </tr>
                <tr>
                  <td class="ra">
                    شیوه ارسال:
                  </td>
                  <td class="la">{{order.shippingMethodTitle}}</td>
                </tr>
              </table>
              <br /><br /><br />

              <div class="red-color">نکات مهم:</div>
              <ul>
                <li>
                  در صورتی که شیوه ی خرید پستی را انتخاب نموده اید برای رهگیری پستی مرسوله خود از بخش رهگیری استفاده نمایید.
                </li>
                <li profishop-visible="{{ order.paymentMethodName == 'settle'}}">
                  لطفا هزینه ی سفارش را به شماره حساب &nbsp;&nbsp;{{properties.bankAccountNumber}}&nbsp;&nbsp; به نام &nbsp;&nbsp;{{properties.bankAccountName}}&nbsp;&nbsp; واریز و اطلاعات واریز
                  را از قسمت <b>ثبت اطلاعات پرداخت</b> ارسال نمایید.
                </li>
                <li class="hdg hdg2 red" profishop-visible="{{ order.paymentMethodName == 'creditcard'}}">
                  لطفا هزینه ی سفارش را به شماره کارت &nbsp;&nbsp;{{properties.bankCardNumber}}&nbsp;&nbsp; به نام&nbsp;&nbsp; {{properties.bankAccountName}}&nbsp;&nbsp; واریز و اطلاعات واریز
                  را از قسمت <b>ثبت اطلاعات پرداخت</b> ارسال نمایید.

                </li>
              </ul>
              <div class="padd10 spacer"></div>
              <div class="onlinebox" profishop-visible="{{ order.paymentMethodName == 'online'}}">
                برای تکمیل سفارش خود لطفا نسبت به پرداخت سفارش اقدام نمایید
                <button type="submit" name="action" value="payment" class="green button">پرداخت آنلاین</button>

              </div>
            </div>
          </div>

        </form>

        <form class="box" role="form" profishop-action="contactus" profishop-location="/complaint" action="{{page.address}}">
          <h2 class="title">
            <a href="/complaint" title="ثبت شکایت" class="pvred">ثبت شکایت</a>
          </h2>

          <div profishop-item="form.message">
            <div class="{{message.type}} message">
              {{message.text}}
            </div>
          </div>
          <div class="contact-form">
            <div class="fieldbox contact-text">
              {{properties.complaintText}}
            </div>
            <div class="fieldbox">
              <span class="title">نام</span>
              <input type="text" name="name" value="{{form.name}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس ایمیل</span>
              <input type="text" class="ltr" name="email" value="{{form.email}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس وب سایت</span>
              <input type="text" class="ltr" name="website" value="{{form.website}}" />
            </div>
            <div class="fieldbox">
              <span class="title">تلفن تماس</span>
              <input type="text" class="ltr" name="phone" value="{{form.phone}}" />
            </div>
            <div class="fieldbox">
              <span class="title">موضوع</span>
              <input type="text" name="subject" value="{{form.subject}}" />
            </div>
            <div class="fieldbox">
              <span class="title">متن پیام</span>
              <textarea class="fulltextbox" name="text">{{form.text}}</textarea>
            </div>
            <div class="bbox">
              <button type="submit" name="action" value="submit" class="nextbtn">ارسال شکایت</button>
            </div>
          </div>
        </form>

        <form class="box" role="form" profishop-action="contactus" profishop-location="/contact-us" action="{{page.address}}">
          <h2 class="title">
            <a href="/contact-us" title="تماس با ما" class="pvred">تماس با ما</a>
          </h2>

          <div profishop-item="form.message">
            <div class="{{message.type}} message">
              {{message.text}}
            </div>
          </div>


          <div class="contact-form">

            <div class="fieldbox contact-text">
              {{properties.contactUsText}}
            </div>
            <div class="fieldbox">
              <span class="title">نام</span>
              <input type="text" name="name" value="{{form.name}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس ایمیل</span>
              <input type="text" class="ltr" name="email" value="{{form.email}}" />
            </div>
            <div class="fieldbox">
              <span class="title">آدرس وب سایت</span>
              <input type="text" class="ltr" name="website" value="{{form.website}}" />
            </div>
            <div class="fieldbox">
              <span class="title">تلفن تماس</span>
              <input type="text" class="ltr" name="phone" value="{{form.phone}}" />
            </div>
            <div class="fieldbox">
              <span class="title">موضوع</span>
              <input type="text" name="subject" value="{{form.subject}}" />
            </div>
            <div class="fieldbox">
              <span class="title">متن پیام</span>
              <textarea class="fulltextbox" name="text">{{form.text}}</textarea>
            </div>
            <div class="bbox">
              <button type="submit" name="action" value="submit" class="nextbtn">ارسال پیام</button>
            </div>
          </div>
        </form>




        <form class="box" role="form" profishop-action="showorder" profishop-location="/tracking" action="{{page.address}}">
          <h2 class="title">
            <a href="/order" title="رهگیری سفارش" class="pvred">رهگیری سفارش</a>
          </h2>
          <div profishop-item="form.message">
            <div class="message {{message.type}}">
              {{message.text}}
            </div>
          </div>
          <div class="marg20 ca">
            <div class="fieldbox dis-in-block">
              <span class="title wid75p">شناسه سفارش</span>
              <input type="text" class="ltr" name="orderNumber" value="{{form.orderNumber}}" />
            </div>
            <button type="submit" name="action" value="submit" class="blue button ltr wid220p">دریافت وضعیت سفارش</button>
          </div>
          <div class="marg20" profishop-item="form.order">
            <table class="half basic">
              <tr>
                <th colspan="2" class="ra">
                  اطلاعات ارسالی سفارش:
                </th>
              </tr>
              <tr>
                <td class="ra">
                  شناسه سفارش
                </td>
                <td class="ltr">{{order.number}}</td>
              </tr>
              <tr>
                <td class="ra">
                  مبلغ قابل پرداخت
                </td>
                <td class="ltr">{{order.final}}</td>
              </tr>
              <tr class="ra">
                <td>
                  وضعیت پرداخت
                </td>
                <td class="la" profishop-visible="{{ order.paymentStatus == 'paid' }}">پرداخت شده</td>
                <td class="la" profishop-visible="{{ order.paymentStatus == 'unpaid' }}">پرداخت نشده</td>
              </tr>
              <tr>
                <td class="ra">
                  وضعیت سفارش
                </td>
                <td class="la">{{order.status}}</td>
              </tr>
            </table>
            <table class="half basic margr5">
              <tr>
                <th colspan="2" class="ra">
                  خلاصه وضعیت سفارش:
                </th>
              </tr>
              <tr>
                <td class="ra">
                  تحویل گیرنده:
                </td>
                <td class="la">{{order.name}}</td>
              </tr>
              <tr>
                <td colspan="2" class="ra">
                  {{order.address}}
                </td>
              </tr>
              <tr>
                <td colspan="2" class="ltr">
                  {{order.phone}}, {{order.mobile}}
                </td>
              </tr>
              <tr>
                <td class="ra">
                  شیوه ارسال:
                </td>
                <td class="la">{{order.shippingMethod}}</td>
              </tr>
            </table>
            <br /><br /><br />

            <div class="red-color">نکات مهم:</div>
            <ul>
              <li>
                در صورتی که شیوه ی پرداخت کارت به کارت یا واریز نقدی را انتخاب نموده اید، برای ثبت اطلاعات واریز خود از بخش ثبت اطلاعات واریز اقدام نمایید.
              </li>
              <li>
                در صورتی که شیوه ی خرید پستی را انتخاب نموده اید برای رهگیری پستی مرسوله خود از بخش رهگیری استفاده نمایید.
              </li>
            </ul>
          </div>
        </form>

        <section profishop-item="payment" profishop-render="inner">
          <div class="box">
            <h2 class="title">
              <a href="#">اطلاعات پرداخت</a>
            </h2>
            <hr />
            <div profishop-item="payment.message">
              <div class="message {{message.type}}">
                <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                {{message.text}}
              </div>
            </div>
            <div profishop-item="payment.order" class="row">
              <table class="half basic">
                <tbody>
                  <tr>
                    <td class="ra">شناسه سفارش</td>
                    <td class="ltr">{{order.number}}</td>
                  </tr>
                  <tr>
                    <td class="ra">مبلغ قابل پرداخت</td>
                    <td class="ltr">{{order.final}}</td>
                  </tr>
                  <tr>
                    <td class="ra">وضعیت پرداخت</td>
                    <td class="la" profishop-visible="{{ order.paymentStatus == 'paid' }}">پرداخت شده</td>
                    <td class="la" profishop-visible="{{ order.paymentStatus == 'unpaid' }}">پرداخت نشده</td>
                  </tr>
                  <tr>
                    <td class="ra">وضعیت سفارش</td>
                    <td class="la">{{order.status}}</td>
                  </tr>
                </tbody>
              </table>

              <table class="half basic margr5">
                <tbody>
                  <tr>
                    <td class="ra">تحویل گیرنده</td>
                    <td class="la">{{order.name}}</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="ra">{{order.address}}</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="la">{{order.phone}}, {{order.mobile}}</td>
                  </tr>
                  <tr>
                    <td class="ra">شیوه ارسال</td>
                    <td class="ra">{{order.shippingMethodTitle}}</td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </section>


        <form class="box" role="form" profishop-action="submitpayment" profishop-location="/payment" action="{{page.address}}">
          <h2 class="title">
            <a href="/payment" title="ثبت اطلاعات پرداخت" class="pvred">ثبت اطلاعات پرداخت</a>
          </h2>

          <div profishop-item="form.message">
            <div class="message {{message.type}}">
              {{message.text}}
            </div>
           
          </div>

          <div class="contact-form">

            <div class="fieldbox">
              <span class="title">شناسه سفارش</span>
              <input type="text" class="ltr" name="orderNumber" value="{{form.orderNumber}}" />
            </div>
            <div class="fieldbox">
              <span class="title">نوع واریز</span>
              <select class="fldipt" name="paymentMethodName" profishop-item="form.paymentMethods">
                <option value="creditcard">کارت به کارت</option>
                <option value="settle">واریز نقدی</option>
              </select>
            </div>
            <div class="fieldbox">
              <span class="title">شماره پیگیری</span>
              <input type="text" class="ltr" name="refId" value="{{form.refId}}" />
            </div>
            <div class="fieldbox">
              <span class="title">مبلغ واریزی</span>
              <input type="text" class="ltr" name="amount" value="{{form.amount}}" />
              <span class="description">تومان</span>
            </div>
            <div class="fieldbox">
              <span class="title">چهار رقم پایانی کارت</span>
              <input type="text" class="ltr" name="more" value="{{form.more}}" />
              <span class="description">اختیاری</span>
            </div>
            <div class="fieldbox">
              <span class="title">تاریخ</span>
              <input class="day" name="day" value="{{form.day}}" maxlength="2" type="number" min="1" max="31" />
              /
              <input class="month" name="month" value="{{form.month}}" type="number" min="1" max="12" />
              /
              <input class="year" name="year" value="{{form.year}}" maxlength="4" type="number" min="1390" max="1400" />
            </div>
            <div class="fieldbox">
              <span class="title">ساعت</span>
              <input class="ltr minute" name="minute" value="{{form.minute}}" maxlength="2" type="number" min="0" max="59" />
              :
              <input class="ltr hour" name="hour" value="{{form.hour}}" maxlength="2" type="number" min="0" max="23" />
            </div>
            <div class="bbox">
              <button type="submit" name="action" value="submit" class="blue button">ثبت اطلاعات</button>
            </div>
            <input type="hidden" name="scrollx" value="0" />
            <input type="hidden" name="scrolly" value="0" />
          </div>
        </form>

      </div>
    </div>

    <div class="container" profishop-location="/cart;product;">
      <div id="content" class="w100" profishop-item="cart" profishop-location="/cart">
        <div class="box">
          <h2 class="title">
            <span class="pvred">سبد خرید</span>
          </h2>
          <div class="addtocart" profishop-visible="{{ cart.count == 0 }}">
            <div class="ca marg20">سبد خرید شما خالی می باشد</div>
          </div>
          <div class="addtocart" profishop-visible="{{ cart.count != 0 }}">

            <div class="ps-button-container hasIcon step_forward lf">
              <a id="ctl34_lkstepShipping" class="ps-button green" href="/order">
                <i class="ps-button-icon ps-button-icon-caretLeft"></i>
                <span class="ps-button-label clearfix">
                  <span class="ps-button-labelname">ادامه ثبت سفارش</span>
                </span>
              </a>
            </div>
            <div class="clearfix"></div>
            <div class="container">
              <table>
                <colgroup>
                  <col class="w560">
                  <col>
                  <col>
                  <col class="w290">
                  <col class="w35">
                </colgroup>
                <thead>
                  <tr>
                    <td class="first">شرح محصول</td>
                    <td>تعداد</td>
                    <td>قیمت واحد</td>
                    <td style="border-left: 0">قیمت کل</td>
                    <td class="last"></td>
                  </tr>
                </thead>
                <tbody>
                  <tr class="last " profishop-repeat="cartItem in cart">
                    <td style="padding-left: 10px; padding-right: 10px;">

                      <div class="pd">
                        <div class="pic">
                          <a href="{{cartItem.address}}" target="_blank">
                            <img src="{{cartItem.image}}" alt="{{cartItem.name}}" title="{{cartItem.title}}" width="110">
                          </a>
                        </div>
                        <div class="desc">
                          <h2><a href="{{cartItem.address}}" target="_blank">{{cartItem.name}}</a></h2>
                          <h3><a href="{{cartItem.address}}" target="_blank">{{cartItem.title}}</a></h3>

                        </div>
                      </div>
                    </td>
                    <td class="unitnumber" style="padding-left: 10px; padding-right: 10px;">
                      <div class="unitnumber-container">
                        <div class="styled-select">
                          <input id="qty-{{cartItem.id}}" type="text" value="{{cartItem.quantity}}" class="ca cart_qty" onchange="updateCartItemQuantity({{cartItem.id}}, {{cartItem.price}}, this.value)" />
                        </div>

                      </div>

                    </td>
                    <td class="unitprice" style="padding-left: 10px; padding-right: 10px;">
                      <span class="al">{{cartItem.price}}</span><span class="toman">تومان</span>
                    </td>
                    <td class="unitprice">
                      <span id="price-{{cartItem.id}}">{{cartItem.total}}</span><span class="toman">تومان</span>
                    </td>
                    <td class="last">
                      <a class="delete click-handler" href='{{cartItem.deleteAddress}}' style="height: 162px;">
                        <i class="tooltip" title="حذف محصول"></i>
                      </a>
                      <span style="position: relative; width: 35px; display: inline-block; right: 16px;">
                        <span style="color: #ff6b6b; font-size: 17px"></span>
                      </span>
                    </td>
                  </tr>

                </tbody>
              </table>
            </div>

            <div class="finalprice lf">
              <div class="sep"></div>
              <div class="payable clearfix">
                <span class="label green">مبلغ قابل پرداخت :</span>
                <span class="label-price green">
                  <span id="cart-total">{{cart.total}}</span>
                  <span class="toman green">تومان</span>
                </span>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="addtocart lf">
              <div class="foot">
                <div class="btn">
                  <div class="ps-button-container hasIcon step_forward">
                    <a id="ctl34_lkstepShipping" class="ps-button green" href="/order">
                      <i class="ps-button-icon ps-button-icon-caretLeft"></i>
                      <span class="ps-button-label clearfix">
                        <span class="ps-button-labelname">ادامه ثبت سفارش</span>
                      </span>
                    </a>
                  </div>
                </div>
              </div>
            </div>
            <div class="clearfix"></div>

            <div class="spacer hei10"></div>
          </div>
        </div>
      </div>

      <div id="content" class="w100" profishop-item="product">
        <div class="box">
          <div class="prod-title">
            <div class="ptitle">
              <h2>
                <a href="{{product.address}}" class="pvred">{{product.name}}</a>
              </h2>
            </div>
            <div class="spacer"></div>
          </div>
          <div class="product">
            <div class="right {{ product.statusName}}">
              <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                <section profishop-repeat="attachment in attachments" profishop-render="inner">
                  <img src="{{ getImageAddress(attachment, 320, 320) }}" alt="{{ product.name }}" />
                </section>
              </section>

              <div class="spacer"></div>
              <div class="sharing">

                <!-- Place this tag where you want the +1 button to render -->
                <g:plusone size="medium" class="gplus"></g:plusone>

                <!-- Place this tag after the last plusone tag -->
                <script type="text/javascript">
                  window.___gcfg = { lang: 'fa' };

                  (function () {
                    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                    po.src = 'https://apis.google.com/js/plusone.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                  })();
                </script>
              </div>
              <section profishop-item="product.attachments" profishop-name="gallery">
                <div class="jcarousel-wrapper gallery-wrapper">
                  <div class="jcarousel">
                    <ul class="pdcglry">
                      <li profishop-repeat="attachment in attachments">
                        <a href="{{attachment.address}}" title="{{product.name}}" class="gallery" rel="gallery1">
                          <img src="{{attachment.address}}" alt="{{attachment.address}}" />
                        </a>
                      </li>
                    </ul>
                  </div>

                  <a href="#" class="jcarousel-control-prev jcarousel-control-prev-3"></a>
                  <a href="#" class="jcarousel-control-next jcarousel-control-next-3"></a>
                </div>
              </section>


            </div>
            <div class="left">
              <h3>{{product.heading}}</h3>
              {{product.shortText}}
              <br>
              <div class="clearfix"></div>
              <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">

                <div id="products-price-status" class="clearfix available">
                  <div id="frmPnlPayablePrice" class="products-price-finalprice right">
                    <span class="label">
                      قیمت:
                    </span>
                    <span id="frmLblPayablePriceAmount" class="price">{{ product.price }}</span>
                    <span id="frmLblPayablePriceCurrency">تومان</span>
                  </div>
                </div>

                <div id="frmPnlAddToCart" class="ps-button-container hasIcon">
                  <a id="frmLbtnAddToCart" class="ps-button green" href="{{product.addToCartAddress}}">
                    <i class="ps-button-icon ps-button-icon-addToCart"></i>
                    <div class="ps-button-label">
                      <div class="ps-button-labelname">افزودن به سبد خرید</div>
                    </div>
                  </a>
                </div>
              </section>
              <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                <div class="price unavailable">
                  ناموجود
                </div>
              </section>
              <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                <div class="price unavailable">
                  تماس بگیرید
                </div>
              </section>
              <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                <div class="price unavailable">
                  بزودی
                </div>
              </section>
            </div>
          </div>
        </div>

        <div class="box" profishop-item="product.similarProducts" profishop-number="25" profishop-order="desc" profishop-visible="{{similarProducts.count > 0}}">
          <h2 class="title">
            <span class="pvred">محصولات مشابه </span>
          </h2>
          <div class="jcarousel-wrapper gallery-wrapper">
            <div class="jcarousel">
              <ul class="products">
                <section profishop-repeat="product in similarProducts" profishop-render="inner">
                  <li class="productItem">
                    <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                      <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                        <section profishop-repeat="attachment in attachments" profishop-render="inner">
                          <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                        </section>
                      </section>
                      <h5 class="fatitle">{{ product.name }}</h5>
                      <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                        <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                        <span class="final-price">ناموجود</span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                        <span class="final-price">تماس بگیرید</span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                        <span class="final-price">بزودی</span>
                      </section>
                    </a>
                  </li>
                </section>
              </ul>
            </div>
            <a href="#" class="jcarousel-control-prev"></a>
            <a href="#" class="jcarousel-control-next"></a>
          </div>
        </div>
        <div class="box" profishop-item="product.relatedProducts" profishop-number="25" profishop-order="desc" profishop-visible="{{relatedProducts.count > 0}}">
          <h2 class="title">
            <span class="pvred">محصولات مرتبط </span>
          </h2>
          <div class="jcarousel-wrapper gallery-wrapper">
            <div class="jcarousel">
              <ul class="products">
                <section profishop-repeat="product in relatedProducts" profishop-render="inner">
                  <li class="productItem">
                    <a title="{{ product.title }}" href="{{product.address}}" style="position: absolute; right: 0%;">
                      <section profishop-item="product.attachments" profishop-name="image" profishop-render="inner">
                        <section profishop-repeat="attachment in attachments" profishop-render="inner">
                          <img src="{{ getImageAddress(attachment, 150, 150) }}" alt="{{ product.name }}" />
                        </section>
                      </section>
                      <h5 class="fatitle">{{ product.name }}</h5>
                      <section profishop-visible="{{ product.statusName == 'available' }}" profishop-render="inner">
                        <span class="final-price">{{ product.price }}  <span class="currency">تومان</span></span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'unavailable' }}" profishop-render="inner">
                        <span class="final-price">ناموجود</span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'callus' }}" profishop-render="inner">
                        <span class="final-price">تماس بگیرید</span>
                      </section>
                      <section profishop-visible="{{ product.statusName == 'comingsoon' }}" profishop-render="inner">
                        <span class="final-price">بزودی</span>
                      </section>
                    </a>
                  </li>
                </section>
              </ul>
            </div>
            <a href="#" class="jcarousel-control-prev"></a>
            <a href="#" class="jcarousel-control-next"></a>
          </div>
        </div>
        <div class="box" id="description" profishop-item="product.similarProducts" profishop-number="25" profishop-order="desc" profishop-visible="{{similarProducts.count > 0}}">
          <h2 class="title">
            <span class="pvred">توضیحات </span>
          </h2>
          <div class="padd15">
            {{product.longText}}
          </div>
          <div class="spacer"></div>
        </div>
     
      </div>

    </div>
    
    <div id="footer">
      <div class="contact">
        <div class="container">
          <div class="rf">چطور می توانیم کمک‌تان کنیم؟ با ما تماس بگیرید</div>
          <a href="mailto:{{properties.email}}?Subject=تماس: " class="email">{{properties.email}}</a>
          <span class="separator"></span>
          <a href="/faq" class="faq">سوالات متداول</a>
          <span class="separator"></span>
          <a href="/contact-us" class="phone">{{properties.phone}}</a>
        </div>
      </div>
      <div class="links">
        <div class="container">
        </div>
      </div>
      <div class="terms">
        <div class="container">
          <ul class="menu">
            <li>
              <a href="/home">خانه</a>
            </li>
            <li>
              <a href="/products">محصولات</a>
            </li>
            <li>
              <a href="/about">درباره ما</a>
            </li>
            <li>
              <a href="/contact-us">تماس با ما</a>
            </li>
            <li>
              <a href="/rules">قوانین و مقررات</a>
            </li>
            <li>
              <a href="/complaint">ثبت شکایت</a>
            </li>
            <li>
              <a href="/tracking">پیگیری سفارش</a>
            </li>
            <li>
              <a href="/payment">ثبت اطلاعات پرداخت</a>
            </li>
          </ul>
          <div class="pcopyright">طراحی و اجرا: <a href="http://profishop.ir/" title="فروشگاه ساز" target="_blank">فروشگاه ساز پروفی</a></div>
          <div class="copyright">&copy; 2017, All rights reserved.</div>
          <div class="renderTime">{{profishop.renderTime}}</div>
        </div>
      </div>
      


      
    </div>

    <section profishop-location="home" profishop-render="inner">
      <script src="/template/scripts/slider.js"></script>
    </section>
    <script src="/template/scripts/jquery.jcarousel.min.js"></script>

    <section profishop-location="product" profishop-render="inner">
      <script src="/template/scripts/jquery.fancybox.pack.js"></script>
      <script src="https://apis.google.com/js/platform.js" async defer></script>

      <script type="text/javascript">
        function addAlert(message, type, $form) {
          /*$form.find('.alert').remove();*/
          var msg ="";
          msg='<div class="alert-' + type + '" style="display:block;margin-top:10px;margin-bottom:10px;padding:10px;"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + message +'</div>';
          $(msg).prependTo($form);
        }

        (function ($) {
          $(function () {
            $(".gallery").fancybox({
              'transitionIn': 'none',
              'transitionOut': 'none',
              'titlePosition': 'over',
              'titleFormat': function (title, currentArray, currentIndex, currentOpts) {
                return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
              }
            });
          });
        })(jQuery);
      </script>
    </section>

    <script>
      $(document).ready(function () {
        var x = {{ page. scrollx }};
                        var y = {{ page. scrolly }};

                        if (x != 0)
      $(window).scrollLeft(x);

      if (y != 0)
        $(window).scrollTop(y);
      });

      function setScrollCoordinates(form) {
        form.find("input[name=scrollx]").val($(window).scrollLeft());
        form.find("input[name=scrolly]").val($(window).scrollTop());
      }
    </script>
    <script profishop-location="home">
      $(document).ready(function () {
        $("#slider").slider({
          autoplay: !0,
          event: "hover"
        });
        $("#slider").mouseenter(function () {
          $("#slider .backward").show();
          $("#slider .forward").show()
        }).mouseleave(function () {
          $("#slider .backward").hide();
          $("#slider .forward").hide()
        });
      });
    </script>
    <script>
      (function ($) {
        $(function () {
          /*
                  Carousel initialization
                  */
          $('.jcarousel')
          .jcarousel({
            rtl: true
          });

          /*
                   Prev control initialization
                   */
          $('.jcarousel-control-prev')
          .on('jcarouselcontrol:active', function () {
            $(this).removeClass('inactive');
          })
          .on('jcarouselcontrol:inactive', function () {
            $(this).addClass('inactive');
          })
          .jcarouselControl({
            // Options go here
            target: '-=1'
          });

          /*
                   Next control initialization
                   */
          $('.jcarousel-control-next')
          .on('jcarouselcontrol:active', function () {
            $(this).removeClass('inactive');
          })
          .on('jcarouselcontrol:inactive', function () {
            $(this).addClass('inactive');
          })
          .jcarouselControl({
            // Options go here
            target: '+=1'
          });

          /*
                   Pagination initialization
                   */
          $('.jcarousel-pagination')
          .on('jcarouselpagination:active', 'a', function () {
            $(this).addClass('active');
          })
          .on('jcarouselpagination:inactive', 'a', function () {
            $(this).removeClass('active');
          })
          .jcarouselPagination({
            // Options go here
          });
        });
      })(jQuery);





      $(document).ready(function(){
        $('a[href^="#"]').on('click', function(event) {
          var target = $(this.getAttribute('href'));
          if( target.length ) {
            event.preventDefault();
            $('html, body').stop().animate({
              scrollTop: target.offset().top
            }, 1000);
          }
        });
      });
      jQuery(document).ready(function($){
        // browser window scroll (in pixels) after which the "back to top" link is shown
        var offset = 300,
            //browser window scroll (in pixels) after which the "back to top" link opacity is reduced
            offset_opacity = 1200,
            //duration of the top scrolling animation (in ms)
            scroll_top_duration = 700,
            //grab the "back to top" link
            $back_to_top = $('.cd-top');

        //hide or show the "back to top" link
        $(window).scroll(function(){
          ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
          if( $(this).scrollTop() > offset_opacity ) {
            $back_to_top.addClass('cd-fade-out');
          }
        });

        //smooth scroll to top
        $back_to_top.on('click', function(event){
          event.preventDefault();
          $('body,html').animate({
            scrollTop: 0 ,
          }, scroll_top_duration
                                );
        });

      });

    </script>

    <script profishop-location="/cart">
      function updateCartItemQuantity(id, prc, qty) {
        $.ajax({
          url: "/cart/edit?id=" + id + "&quantity=" + qty,
          type: "GET",
          processData: false,
          contentType: false,
          success: function (operation) {
            var oldPrice = $("#price-" + id).text();
            var newPrice = prc * qty;
            var total = $("#cart-total").text();

            total = total - oldPrice + newPrice;

            $("#price-" + id).text(newPrice);
            $("#cart-total").text(total);
          },
          error: function (jqXHR, textStatus, errorMessage) {
            alert("خطایی در تغییر تعداد کالاها رخ داده است، لطفا مقادیر ورودی را بررسی نمایید");
          }
        });
      }
    </script>
  </body>
 
 
 
 
 
</html>
<input profishop-type="page"
       profishop-address="/contact-us"
       profishop-title="تماس با ما"
       profishop-description="تماس با مدیر فروشگاه"
       profishop-keywords="تماس با ما,ارسال پیام" />

<input profishop-type="page"
       profishop-address="/complaint"
       profishop-title="ثبت شکایت"
       profishop-description="ثبت شکایت"
       profishop-keywords="ثبت شکایت" />

<input profishop-type="page"
       profishop-address="/products"
       profishop-title="لیست محصولات"
       profishop-description=" "
       profishop-keywords=" " />

<input profishop-type="page"
       profishop-address="/cart"
       profishop-title="سبد خرید"
       profishop-description="سبد خرید"
       profishop-keywords="سبد خرید" />

<input profishop-type="page"
       profishop-address="/order"
       profishop-title="تکمیل سفارش"
       profishop-description="تکمیل سفارش"
       profishop-keywords="تکمیل سفارش" />

<input profishop-type="page"
       profishop-address="/payment"
       profishop-title="ثبت اطلاعات پرداخت"
       profishop-description="ثبت اطلاعات پرداخت"
       profishop-keywords="ثبت اطلاعات پرداخت" />

<input profishop-type="page"
       profishop-address="/tracking"
       profishop-title="رهگیری سفارش"
       profishop-description="رهگیری سفارش"
       profishop-keywords="رهگیری سفارش" />

<input profishop-type="property"
       profishop-name="shopName"
       profishop-title="نام فروشگاه"
       profishop-format="text"
       profishop-value="پروفی شاپ" />

<input profishop-type="property"
       profishop-name="email"
       profishop-title="ایمیل"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="phone"
       profishop-title="تلفن"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="bankAccountName"
       profishop-title="نام دارنده ی حساب"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="bankAccountNumber"
       profishop-title="شماره حساب بانکی"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="bankCardNumber"
       profishop-title="شماره کارت بانکی"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="enamadCode"
       profishop-title="کد اینماد"
       profishop-format="text"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="contactUsText"
       profishop-title="متن صفحه ی تماس با ما"
       profishop-format="richtext"
       profishop-value="آدرس:" />

<input profishop-type="property"
       profishop-name="complaintText"
       profishop-title="متن صفحه ی شکایات"
       profishop-format="richtext"
       profishop-value=" " />

<input profishop-type="property"
       profishop-name="sidebarCode"
       profishop-title="کد سایدبار"
       profishop-format="richtext"
       profishop-value=" " />