listing_x.html

Purpose: This HTML template defines the layout of the Product Listing pages. The 3dcart store has four separate Product Listing templates created by default, but more can be created as needed. Product Listing templates can be selected in the "Advanced" tab of each product you create. Each style corresponds to an individual listing_x.html template.

  • Style 1 – listing_0.html (also "default")
  • Style 2 - listing_1.html
  • Style 3 – listing_2.html
  • Style 4 – listing_3.html

To add additional product listing styles to your store, simply name your additional templates with the appropriate "_x.html" naming convention. (i.e. listing_4.html > Style 5 | listing_5.html > Style 6 | etc)

Code Blocks

Note: It is important to preserve the commented tags to ensure the software performs correctly.

<!--START: CATEGORY_FULLINE-->
    [CATEGORY_FULLLINE]
    [breadcrumb_name]
<!--END: CATEGORY_FULLINE-->
<!--START: CATEGORY_HEADER-->
    [CONTENT]
<!--END: CATEGORY_HEADER-->
  
<!--START: PREV_PROD-->  
        [prevprodlink]  
        [prevprodthumb]  
    <!--END: PREV_PROD-->  
    <!--START: NEXT_PROD-->  
        [nextprodlink]  
        [nextprodthumb]  
    <!--END: NEXT_PROD-->  
    [catalogid]  
    <!--START: image#-->  
        [image#]  
        [image_medium_w]  
    <!--END: image#-->  
    <!--START: realmediaBlock-->
    <!--END: realmediaBlock-->
    <!--START: id-->  
        [product_id]  
        [id]  
    <!--END: id-->  
    <!--START: totalrating-->  
        [totalrating]  
        [review_count]  
        [review_average]  
    <!--END: totalrating-->  
    [name]  
    [catid]  
    [stock]  
    [manufacturer_name]  
    [description]  
    [imagecaption#]  
    [product_imagegallery]  
    [product_Header-price]  
    <!--START: pricing-->  
        [product_retailprice]  
        [price2]  
        <!--START: SAVINGS-->  
            [product_savings]  
            [savings]  
        <!--END: SAVINGS-->  
        [product_yourprice]  
        <!--START: ITEMPRICE-->  
            [price]  
        <!--END: ITEMPRICE-->  
        <!--START: SALEPRICE-->  
            [price]  
            [saleprice]  
        <!--END: SALEPRICE-->  
    <!--END: pricing-->  
    <!--START: qaLinkFirst-->
           [productqa_firstquestion]
    <!--END: qaLinkFirst-->
    <!--START: qaLinkNew-->
          [productqa_newquestion]
    <!--END: qaLinkNew-->
    <!--START: productQaModal-->
	   [productQa_modal]
    <!--END: productQaModal-->
    <!--START: giftcertificate_block-->  
    <!--END: giftcertificate_block-->  
    <!--START: product_availability-->  
        [product_Header-availability]  
        [availability]  
        [availability_itemprop]  
        <!--START: waitinglist-->  
            [catalogid]  
        <!--END: waitinglist--> 
        <!--START: waitinglist_advancedoptions--> 
        <!--END: waitinglist_advancedoptions-->
    <!--END: product_availability-->  
    <!--START: freeshippingblock-->  
        [freeshipping]  
    <!--END: freeshippingblock-->  
    <!--START: LOGIN_REQUIRED-->  
        [product_login-message]  
    <!--END: LOGIN_REQUIRED-->  
    <!--START: product_social-bookmarking-->  
        [product_social-bookmarking]  
    <!--END: product_social-bookmarking-->  
    <!--START: frame_likebutton-->  
        [frame_likebutton]  
    <!--END: frame_likebutton-->  
    <!--START: dailydeal-->
    <!--END: dailydeal-->
    <!--START: groupdeal-->
          <!--START: gdItemsSold-->
                [gd_itemssold]
                [gd_itemstosell]
          <!--END: gdItemsSold-->
          <!--START: savings_percentage-->
                [savings_percentage]
          <!--END: savings_percentage-->
    <!--END: groupdeal-->
    <!--START: PRODUCT_OPTIONS_BLOCK-->  
        <!--START: divOptionsBlock-->  
            [product_optionheader]  
            <!--START: optionstemplate-->  
                <!--START: textarea-format-->  
                    [value]  
                    [oprice]  
                    [oname]  
                <!--END: textarea-format-->  
                <!--START: text-format-->  
                    [value]  
                    [oprice]  
                    [oname]  
                <!--START: textlimit_display_validation[oname]-->
		       [option_textlimit]
                       [product_charsleft]
		<!--END: textlimit_display_validation[oname]-->
                <!--END: text-format-->  
                <!--START: qty-format-->
		       [value] [oprice]
		<!--END: qty-format-->
                <!--START: file-format-->  
                    [value]  
                    [oprice]  
                    [oname]  
                <!--END: file-format-->  
                <!--START: title-format-->  
                    [feature]  
                <!--END: title-format-->  
                <!--START: checkbox-format-->  
                    [oname]  
                    [value]  
                    [selected]  
                    [feature]  
                    [oprice]  
                <!--END: checkbox-format-->  
                <!--START: radio-format-->  
                    [oname]  
                    [value]  
                    [selected]  
                    [feature]  
                    [oprice]  
                <!--END: radio-format-->  
                <!--START: dropdown-format-->  
                    [oname]  
                    <!--START: option-->  
                        [value]  
                        [selected]  
                        [feature]  
                        [oprice]  
                    <!--END: option-->  
                <!--END: dropdown-format-->  
                <!--START: dropdownimage-format-->  
                    [oname]  
                    <!--START: option-->  
                        [value]  
                        [selected]  
                        [feature]  
                        [oprice]  
                    <!--END: option-->  
                    [oname]  
                <!--END: dropdownimage-format-->  
            <!--END: optionstemplate-->  
            <!--START: options-->  
                <!--START: opt-title-->  
                    [OPTIONLABEL]  
                <!--END: opt-title-->  
                <!--START: opt-regular-->  
                    [OPTIONLABEL]  
                    [OPTIONFIELD]  
                    <!--START: help-->  
                        [optid]  
                    <!--END: help-->  
                <!--END: opt-regular-->  
            <!--END: options-->  
        <!--END: divOptionsBlock-->  
    <!--END: PRODUCT_OPTIONS_BLOCK-->  
    <!--START: RECURRINGORDER-->  
        [recurringorders_addcart-question]  
        [recurringorders_select-frequency]  
        [recurring_frequency]  
        [recurringorders_addcart-bottom-message]  
    <!--END: RECURRINGORDER-->  
    <!--START: addtocart-->  
        <!--START: MULTIPLESHIPTO-->  
            [product_multiple-send-to]  
            [product_multiple-select-name]  
            [product_multiple-myself]  
            [shiptolist]  
            [product_multiple-other]  
            [product_multiple-add-name]  
            [product_multiple-note]  
        <!--END: MULTIPLESHIPTO-->  
        <!--START: quantity-->  
            [product_Header-quantitypricing]  
            [product_quantitypricing-quantity]  
            [product_quantitypricing-price]  
            <!--START: quantity_items-->  
                [lowbound]
                [highbound]
                [PRICE]  
            <!--END: quantity_items-->  
        <!--END: quantity-->  
        [product_quantity]  
        <!--START: qtybox-->  
        <!--END: qtybox-->  
        <!--START: reward_redeem-->
              [product_redeem-item]
        <!--END: reward_redeem-->
        <!--START: reminders_block-->  
            [product_reminder]  
            <!--START: reminders_frequency_option-->  
                [optionvalue]  
                [selected]  
                [optiontext]  
            <!--END: reminders_frequency_option-->  
        <!--END: reminders_block-->  
        <!--START: make_an_offer-->  
            [catalogid]  
            [product_make-an-offer]  
        <!--END: make_an_offer-->  
        <!--START: addcartbutton-->
        [product_addtocart]  
        <!--END: addcartbutton-->
        <!--START: samplerequest-->
        [product_sample-request]
        [currency]
        [sample_price]
        <!--END: samplerequest-->
        <!--START: stripe_applepay_button-->
	       [stripeApplePay]
	<!--END: stripe_applepay_button-->
    <!--END: addtocart-->  
    <!--START: extended_description-->  
        [product_Header-description]  
        [extended_description]  
    <!--END: extended_description-->  
    <!--START: realmedia-->  
        [product_Header-video]  
        [realmedia]  
    <!--END: realmedia-->  
    <!--START: rewardsPoints-->  
        [product_Header-rewards]  
        [product_rewardsDescription]  
    <!--END: rewardsPoints-->  
    <!--START: extrafields-->  
        <!--START: extra_field_#-->  
            [product_extrafield#]  
        <!--END: extra_field_#-->  
    <!--END: extrafields-->  
    <!--START: PRODUCT_FEATURES_BLOCK-->  
        <!--START: PRODUCT_FEATURES-->  
            [product_feature_title]
            [product_feature_name]  
        <!--END: PRODUCT_FEATURES-->  
    <!--END: PRODUCT_FEATURES_BLOCK-->  
    <!--START: related_#-->  
        [product_Header-relateditems]  
        <!--START: related_items#-->  
            [catalogid]  
            [THUMBNAIL]  
            [name]  
            <!--START: product_review-->  
                <!--START: product_review_average-->  
                    [review_average]  
                    [review_count]  
                <!--END: product_review_average-->  
            <!--END: product_review-->  
            <!--START: ITEMPRICE-->  
                [ITEMPRICE]  
            <!--END: ITEMPRICE-->  
            <!--START: SALEPRICE-->  
                [ITEMPRICE]  
                [ITEMSALEPRICE]  
            <!--END: SALEPRICE-->  
            [catalogid]  
            [category_buyitlink]  
            [counter]  
        <!--END: related_items#-->  
    <!--END: related_#-->  
    <!--START: accessories_#-->  
        [product_Header-accessories]  
        <!--START: accessories_items#-->  
            [catalogid]  
            [THUMBNAIL]  
            [name]  
            <!--START: product_review-->  
                <!--START: product_review_average-->  
                    [review_average]  
                    [review_count]  
                <!--END: product_review_average-->  
            <!--END: product_review-->  
            <!--START: ITEMPRICE-->  
                [ITEMPRICE]  
            <!--END: ITEMPRICE-->  
            <!--START: SALEPRICE-->  
                [ITEMPRICE]  
                [ITEMSALEPRICE]  
            <!--END: SALEPRICE-->  
            [catalogid]  
            [category_buyitlink]  
            [counter]  
        <!--END: accessories_items#-->  
    <!--END: accessories_#-->  
    <!--START: reviews-->  
        [reviews_total]  
        [totalrating]  
        [review_link]  
        [reviews_header]  
        <!--START: user_reviews-->  
            [rating]  
            [short_review]  
            [review_date]  
            [user_name]  
            [user_city]  
            <!--START: user_email-->  
                [user_email]  
            <!--END: user_email-->  
            [long_review]  
        <!--END: user_reviews-->  
        <!--START: create_review_link-->  
            [itemid]  
            [reviews_new]  
        <!--END: create_review_link-->  
    <!--END: reviews-->  
    <!--START: create_first_review-->  
        [itemid]  
        [reviews_first]  
    <!--END: create_first_review-->  
    <!--START: create_review-->  
        [catalogid]  
        [reviews_add]  
    <!--END: create_review-->  
    <!--START: email_friend-->  
        [friendurl]  
        [product_emailtofriend]  
    <!--END: email_friend-->  
    <!--START: get_quote-->
    <!--END: get_quote-->
    <!--START: addGiftRegistry-->  
        [product_addtogiftregistry]  
    <!--END: addGiftRegistry-->  
    <!--START: addWishlist-->  
        [wishlist_multiple-addtolist-title]
        [product_addtowishlist]  
        <!--START: wishListCustom-->
               <!--START: wishListCustomDetails-->
                      [wishListName]
               <!--END: wishListCustomDetails-->
        <!--END: wishListCustom-->
    <!--END: addWishlist-->  
    <!--START: browsing_history-->  
        [product_browsing-history-header]  
        [catalogid]  
        <!--START: browsing_history_enable-->  
            [product_browsing-history-disable]  
        <!--END: browsing_history_enable-->  
        <!--START: browsing_history_items-->  
            [catalogid]  
            [THUMBNAIL]  
            [name]  
            <!--START: ITEMPRICE-->  
                [ITEMPRICE]  
            <!--END: ITEMPRICE-->  
            <!--START: SALEPRICE-->  
                [ITEMPRICE]  
                [ITEMSALEPRICE]  
            <!--END: SALEPRICE-->  
            [item_id]  
        <!--END: browsing_history_items-->  
    <!--END: browsing_history-->
    <!--START: requestsampleform-->  
    <!--END: requestsampleform-->
    <!--START: template_scripts-->
    <!--END: template_scripts-->
    <!--START: template_styles-->
    <!--END: template_styles-->
    [allowbackorder]  
    [productAvailability-Instock]  
    [productAvailability-Outofstock]  
    [productAvailability-Backorder]  
    [currency]  
    [prod_decimal_places]  
    [allowbackorder]

Note: Code blocks and their respective variables will only work with specific template pages.

Variables

Note: Many of the following variables are dynamically inserted from your cart’s Settings ->Design ->Store Language section.

    • [CATEGORY_FULLLINE] – Displays the product listing’s Breadcrumb information
    • [name] – Displays the name of the product.
    • [prevprodthumb] – If feature is enabled in Store Settings, this variable will include a small thumbnail of the preceding product when viewing the product from its respective category.
    • [nextprodthumb] – If feature is enabled in Store Settings, this variable will include a small thumbnail of the preceding product when viewing the product from its respective category.
    • [product_id] – Displays the Title of the Product’s ID/SKU heading. (See Settings ->Design ->Store Language)
    • [id] – Displays the product’s ID/SKU.
    • [totalrating] – Displays the average review rating of the item.
    • [review_count] – Displays the number of reviews left for the item.
    • [image1] – Inserts the product’s main image via the thumbnail.asp script.
    • [imagecaption1] – Inserts the product’s main image caption.
    • [image2] – Displays a small version of the product’s second image and a larger version when the image is selected. (also serves the image via thumbnail.asp)
    • [image3] – Displays a small version of the product’s third image and a larger version when the image is selected. (also serves the image via thumbnail.asp)
    • [image4] – Displays a small version of the product’s fourth image and a larger version when the image is selected. (also serves the image via thumbnail.asp)
    • [imagecaption2] – When second image is selected, its respective caption is displayed by this variable.
    • [imagecaption3] – When third image is selected, its respective caption is displayed by this variable.
    • [imagecaption4] – When fourth image is selected, its respective caption is displayed by this variable.
    • [product_imagegallery] – When applicable, this variable inserts the product’s image gallery button/link for additional images.
    • [product_emailtofriend] – When enabled, this variable displays the Title of the Email a Friend feature. (See Settings ->Design ->Store Language)
    • [reviews_first] – This variable inserts the product review link Title if the product has never been reviewed.

(See Settings ->Design ->Store Language)

  • [reviews_new] – This variable inserts the product review link Title to allow further reviews. (See Settings ->Design ->Store Language)
  • [product_Header-price] – Displays the Title of the product’s pricing information section. (See Settings ->Design ->Store Language)
  • [product_retailprice] – Displays the Title of the product’s Retail Price label. (See Settings ->Design ->Store Language)
  • [price2] – Inserts the product’s Retail Price.
  • [product_savings] – Displays the Title of the product’s Savings label. (See Settings ->Design ->Store Language)
  • [savings] – Inserts the difference of the product’s price minus the retail price.
  • [product_yourprice] – Displays the Title of the product’s Price label. (See Settings ->Design ->Store Language)
  • [price] – Inserts the product’s price.
  • [product_onsale] – Displays the Title of the product’s On Sale label. (See Settings ->Design ->Store Language)
  • [saleprice] – Inserts the product’s Sale price.
  • [product_Header-availability] – Displays the Title of the product’s availability. (See Settings ->Design ->Store Language)
  • [availability_itemprop] – Inserts the product’s applicable availability taken from Global or Product’s inventory control.
  • [freeshipping] – Inserts “Free Shipping” icon when item is marked for Free Shipping. Note: Image path can be edited in Store Language. (See Settings ->Design ->Store Language)
  • [product_social-bookmarking] – Inserts product’s Social Bookmarking function if enabled on the store. (See SocialCommerce ->Social Bookmarking)
  • [frame_likebutton] – Inserts product’s Facebook Like button function if enabled on the store. (See SocialCommerce ->Like Button)
  • [product_login-message] – If store or product is set to require login before viewing, this variable will insert the login message. Message can be edited in Store Language. (See Settings ->Design ->Store Language)
  • [product_optionheader] – Displays the Title of the product’s Options Section. (See Settings ->Design ->Store Language)
  • [OPTIONLABEL] – Inserts the name of the main option headings.
  • [OPTIONFIELD] – Used for the placement of the option sets created on the product.
  • [value] – Option Set Label. (Used for Text, TextArea, File and Qty option types.)
  • [feature] – Option Set Label. (Used for Drop Down, Drop Image, Radio and Checkbox option types.)
  • [oprice] – Inserts Option’s Additional Value if applicable.
  • [option_value] – Used to denote entered values for input option types (e.g. Text, TextArea, Qty).
  • [product_multiple-send-to] – Displays the Title of the Multiple Ship To function if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_multiple-select-name] – Displays the Title of the Multiple Ship To name selection drop down if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_multiple-add-name] – Displays the Title of the Multiple Ship To “add a name” field if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_multiple-note] – Displays the text of the Multiple Ship To legend if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_Header-quantitypricing] – If product is using Qty Discount Pricing, this variable displays the Title of the product listing section. (See Settings ->Design ->Store Language)
  • [product_quantitypricing-quantity] – Displays the Title of the Qty Discount Pricing “Quantity” legend. (See Settings ->Design ->Store Language)
  • [lowbound] – Inserts the low-end range points of the Qty field for Quantity Discount Pricing.
  • [highbound] – Inserts the high-end range points of the Qty field for Quantity Discount Pricing.
  • [product_quantitypricing-price] – Displays the Title of the Quantity Discount Pricing “Price” legend. (See Settings ->Design ->Store Language)
  • [PRICE] – Inserts the applicable range pricing for Quantity Discount Pricing.
  • [product_quantity] – Displays the Title of the Add to Cart Quantity label. (See Settings ->Design ->Store Language)
  • [product_addtocart] – Displays the Title of the Add to Cart Button. (See Settings ->Design ->Store Language)
  • [product_make-an-offer] – Displays the Title of the Make-an-Offer button if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_addtogiftregistry] – Displays the Title of the Gift Registry button if enabled in Store Modules. (See Settings ->Design ->Store Language)
    • [wishlist_multiple-addtolist-title] –  Displays Wish list modal heading. (See Settings ->Design ->Store Language)
  • [product_addtowishlist] – Displays the Title of the Wishlist function if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [wishListCustom] – Displays wish list names.
  • [product_Header-description] – Displays the Title of the Product’s Extended Description area. (See Settings ->Design ->Store Language)
  • [extended_description] – Inserts the Product’s Extended Description.
  • [product_Header-video] – Displays the Title of the Product’s Video section if applicable. (See Settings ->Design ->Store Language)
  • [realmedia] – Inserts the product’s Browse YouTube video.
  • [product_Header-rewards] – Displays the Title of the product’s Rewards section if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_rewardsDescription] – Displays the text of the Rewards Description area if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [product_extrafieldx] – Displays the Title of the product’s Extra Field sections 1 through 13. (See Settings ->Design ->Store Language)
  • [extra_field_x] – Inserts the product’s Extra Field 1 through 13 information. (Note: Extra Fields 6 through 13 will have HTML available to them)
  • [product_feature_name] – Inserts each applicable Product Feature if used on the product’s Information Tab.
  • [reviews_header] – Displays the Title of the product’s Review Section if enabled in Store Modules. (See Settings ->Design ->Store Language)
  • [rating] – Inserts each review’s respective rating score. (Note: Star Rating is also based upon the variable by inserting a star image via star[rating].png)
  • [short_review] – Inserts the review’s Title as left by the reviewer.
  • [long_review] – Inserts the review’s full review as left by the reviewer.
  • [user_name] – Inserts the reviewer’s name as entered during the review.
  • [user_city] – Inserts the reviewer’s location as entered during the review.
  • [review_date] – Inserts the date that the review was left.
  • [product_Header-accessories] – Displays the Title of the product’s Upsell Items section. (See Settings ->Design ->Store Language)
  • [THUMBNAIL] – Inserts related and upsell item thumbnail images.
  • [ITEMPRICE] – Inserts related and upsell item pricing information.
  • [ITEMSALEPRICE] – Inserts related and upsell item Sale price information.
  • [category_buyitlink] – Inserts related and upsell item buy links. (See Settings ->Design ->Store Language)
  • [product_Header-relateditems] – Displays the Title of the product’s Related Items section. (See Settings ->Design ->Store Language)
  • [product_browsing-history-header] – Displays the Title of the product’s Browsing History if enabled in Store Settings. (See Settings ->Design ->Store Language)
  • [product_browsing-history-disable] – Displays the Title of the product’s “Disable Browsing History” function if enabled in Store Settings. (See Settings ->Design ->Store Language)
  • [product_Header-breadcrumbs] – Displays the Title of the product’s Browse Similar Items section. (See Settings ->Design ->Store Language)
  • [CATEGORY_BREADCRUMBS] – Displays the product’s Category Breadcrumb which allows the shopper to browse “similar items” based on residing category.

Note: For listing page product images, there is a script named thumbnail.asp which controls how the images are shown on the page within different areas. The purpose of this script is to resize and conform your images to a set dimension dictated within the coding. For example, the previous product/next product images are resized dynamically by thumbnail.asp to be about 20px in size. The script comes into play for most images shown on the listing template (including main images and thumbnails), so you may see certain areas where the image paths are written as:

<img src=”thumbnail.asp?file=[image1]&maxx=150&amp;maxy=0

The thumbnail.asp script will also use two additional variables which will resize the main product images according to their resolutions set in the Store Settings section. These are:

  • [image_medium_h] – The medium image size’s set dimension for height.
  • [image_medium_w] – The medium image size’s set dimension for width.

These next few Variables will be present on the template as part of the listing page’s functionality and scripting. Typically you’ll want to keep the scripting for these variables intact.

  • [3dzoom_class] – Used by the product’s 3dZoom capabilities.
  • [3dzoom_enabled] – Used by the product’s 3dZoom capabilities.
  • [allowbackorder] – Used for scripting product’s inventory control options.
  • [availability] – Used for scripting product’s inventory control options.
  • [catalogid] – Inserts the product’s database ID within necessary scripting.
  • [catid] – Inserts the product’s category ID within necessary scripting.
  • [counter]
  • [currency] – Used by scripting to insert store’s global currency display.
  • [friendurl] – Used by scripting to insert the “email a friend” URL.
  • [item_id] – Used by scripting to insert product’s ID/SKU information.
  • [nextprodlink] – Used by scripting to insert next product link.
  • [oname] – Used within options to insert option field denotations.
  • [optid] – Used by scripting to insert option selection IDs.
  • [prevprodlink] – Used by scripting to insert previous product link.
  • [prod_decimal_places] – Used by scripting to display store’s global decimal placing.
  • [product_multiple-myself] – Used by scripting to insert shopper’s address for Multiple Ship To feature.
  • [product_multiple-other] – Used by scripting to insert additional addresses for Multiple Ship To feature.
  • [productAvailability-Backorder] – Used for scripting product’s inventory control options.
  • [productAvailability-Instock] – Used for scripting product’s inventory control options.
  • [productAvailability-Outofstock] – Used for scripting product’s inventory control options.
  • [selected]
  • [shiptolist] – Displays Multiple Ship To addresses saved for customer record.

These next variables will be used by 3dcart Add-Ons available for purchase. (Click each link for more details)

Used for 3dReminders:

  • [optionvalue]
  • [product_reminder]
  • [optiontext]

Used for Autoship:

  • [recurringorders_addcart-question]
  • [recurringorders_addcart-question]
  • [recurringorders_select-frequency]
  • [recurringorders_addcart-bottom-message]
  • [recurring_frequency]

Used for Options Rules:

  • [has_rules]
X