CubeCartForums.org Documentation Area

CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services
Permanent Link   Print This Page
Introduction CubeCart v3 CubeCart v4 Appendix Search

CubeCart Version 4 Documentation - viewProd.tpl

Google Translate:

viewProd.tpl

Description

Product details template. Updated to CubeCart v4.2.0.

Template file location

/skins/YOUR_SKIN/styleTemplates/content/viewProd.tpl

Control file location

/includes/content/viewProd.inc.php

Classic skin template output screenshot

Main product details:


Submit a review section of the template:


Review submitted:


Review list:

Basic template structure

<!-- BEGIN: view_prod -->

<!-- BEGIN: prod_true -->
          If the product exists.

     <!-- BEGIN: opts_notice -->
              Options notice.
     <!-- END: opts_notice -->

     <!-- BEGIN: popup_gallery -->
              Additional images popup.
     <!-- END: popup_gallery -->

     <!-- BEGIN: image_gallery -->
              Image gallery.
        <!-- BEGIN: img_repeat -->
                  Images repeating.
        <!-- END: img_repeat -->
    <!-- END: image_gallery -->

    <!-- BEGIN: reviews_true -->
              Product reviews.
        <!-- BEGIN: review_stars -->
                  Star ratings.
        <!-- END: review_stars -->
    <!-- END: reviews_true -->

    <!-- BEGIN: reviews_false -->
              No reviews.
    <!-- END: reviews_false -->

    <!-- BEGIN: prod_opts -->
              Product options.
        <!-- BEGIN: repeat_options -->
                  Product option items.
            <!-- BEGIN: repeat_values -->
                <!-- BEGIN: repeat_price -->
                          Prices.
                <!-- END: repeat_price -->
            <!-- END: repeat_values -->
        <!-- END: repeat_options -->
         <!-- BEGIN: text_opts -->
             <!-- BEGIN: textbox -->

             <!-- END: textbox -->
             <!-- BEGIN: textarea -->
             <!-- END: textarea -->
        <!-- END: text_opts -->
    <!-- END: prod_opts -->

     <!-- BEGIN: buy_btn -->
              If product is instock and available to buy.
     <!-- END: buy_btn -->

     <!-- BEGIN: write_review -->
              Write a review.
         <!-- BEGIN: error -->
                  Error in the entry form.
         <!-- END: error -->

         <!-- BEGIN: success -->
                  Successful review entry.
         <!-- END: success -->

         <!-- BEGIN: form -->
             <!-- BEGIN: review_stars -->
                      Star review.
             <!-- END: review_stars -->

             <!-- BEGIN: spambot -->
                      Security code entry.
             <!-- END: spambot -->
         <!-- END: form -->
     <!-- END: write_review -->

     <!-- BEGIN: read_review -->
          Submitted reviews.
         <!-- BEGIN: reviews_true -->
                  Review list.
             <!-- BEGIN: review_stars -->
                      Star review.
             <!-- END: review_stars -->
         <!-- END: reviews_true -->

         <!-- BEGIN: reviews_false -->
                  Currently no reviews.
         <!-- END: reviews_false -->
     <!-- END: read_review -->

     <!-- BEGIN: related_products -->
              Related products.
         <!-- BEGIN: repeat_prods -->
                  Products repeated.
         <!-- END: repeat_prods -->
     <!-- END: related_products -->
<!-- END: prod_true -->

<!-- BEGIN: prod_false -->
          Product does not exist.
<!-- END: prod_false -->

<!-- END: view_prod -->




Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum.