CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> CC5 Skins
Viola
post Feb 7 2012, 05:04 AM
Post #1


Member
Group Icon

Group: Members
Posts: 11
Joined: 7-December 09
Member No.: 12,907



Hi all,

This is a breakdown of what the SMARTY placeholders in a version 5 template refer to. I posted this over on the official Cubecart forum
(http://forums.cubecart.com/topic/44240-skin-modification/page__view__findpost__p__182222), and it was suggested that I submit it to the documentation project.



SMARTY placeholders in [skin_name]/templates/main.php

{$SHOPPING_CART} = box.basket.php
{$CURRENCY} = box.currency.php
{$SITE_DOCS} = box.documents.php
{include file='templates/box.errors.php'} = box.errors.php (obviously)
{$RANDOM_PROD} = box.featured.php
{$LANGUAGE} = box.language.php
{$CATEGORIES} = box.navigation.php
{$MAIL_LIST} = box.newsletter.php
{if isset($POPULAR_PRODUCTS)}{$POPULAR_PRODUCTS}{/if} = box.popular.php (this one has a condition that checks if "show popular products" has been set in the admin dashboard)
{if isset($CHECKOUT_PROGRESS)}{$CHECKOUT_PROGRESS}{/if} = box.progress.php (shows the checkout steps on checkout pages: 1. Basket - 2.Checkout - 3. Payment - 4. Complete)
{$SALE_ITEMS} = box.sale_items.php
{$SEARCH_FORM} = box.search.php
{$SESSION} = box.session.php
{if isset($SKIN_SELECT)}{$SKIN_SELECT}{/if} = box.skins.php (condition checks if "allow users to change front-end skin" has been set to Yes in the dashboard)

{$COPYRIGHT} = loads the content as entered in the dashboard under Store Settings > Copyright
{$PAGE_CONTENT} = loads the page content based on what URL you are looking at
{$STORE_URL} = the base URL of your store, eg. "http://domain.com" or "http://www.domain.com/shop"
{$SKIN_FOLDER} = the folder name of the skin your store is currently using, eg. "vanilla"
{$SKIN_SUBSET} = the folder name of the skin subset/style your store is currently using; only applicable if your skin has subsets

logo for skins with subsets:
<a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}-{$SKIN_SUBSET}.php" alt="{$META_TITLE}" /></a>

logo for skins without subsets:
<a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}.php" alt="{$META_TITLE}" /></a>


template files for page content ({$PAGE_CONTENT} in the main.php template file) and corresponding URLs

content.category.php = index.php?_a=category&cat_id=1
content.certificates.php = index.php?_a=certificates
content.contact.php = index.php?_a=contact
content.document.php = index.php?_a=document&doc_id=1
content.homepage.php = index.php
content.login.php = index.php?_a=login
content.product.php = index.php?_a=product&product_id=1
content.recover.php = index.php?_a=recover
content.recovery.php = index.php?_a=recovery
content.register.php = index.php?_a=register
content.search.php = index.php?_a=search

checkout pages
content.checkout.php = index.php?_a=basket
content.checkout.confirm.php = index.php?_a=confirm (step 2 of the checkout; for registered users shows a selection of saved addresses, for unregistered users shows a form to enter an address)
content.gateway.php = index.php?_a=gateway

customer account pages
content.addressbook.php = index.php?_a=addressbook
content.downloads.php = index.php?_a=downloads
content.newsletter.php = index.php?_a=newsletter
content.orders.php = index.php?_a=vieworder
content.profile.php = index.php?_a=profile
content.receipt.php = index.php?_a=vieworder&cart_order_id=111111-111111-1111


As a general rule, template files with names that start with "box." are for a box that is shown in the sidebar(s). Template files starting with "content." are for the page content.
An important point to note is that the logo image URL is different depending on whether or not a skin has subsets. So if you modify a stock skin and add/remove subsets, be sure to change the logo URL accordingly.
Go to the top of the page
 
+Quote Post
Robsta
post Feb 7 2012, 09:07 AM
Post #2


Skin Developer
Group Icon

Group: Administrator
Posts: 8,250
Joined: 11-March 07
From: Exmouth, UK
Member No.: 2

Catalogue Listing
About Us
Store Review Here



Many thanks smile.gif

It's now been added, thanks smile.gif

http://www.cubecartforums.org/docs/CubeCar...-breakdown.html


--------------------
Integrated HELPDESK and RMA (Returns Management) - Integrated BLOG / NEWS - Better than using Wordpress!
Add a feature rich Blog/News System and Helpdesk/RMA system to your CubeCart v4 store. Contact us for a demo.
Follow us on Facebook! Get CubeCart!

Search Engine Sitemap Feeds - Merchant Center Product Feeds - Customer Follow-up Email Mod - Essential for every store!
Go to the top of the page
 
+Quote Post
Viola
post Aug 9 2012, 06:15 AM
Post #3


Member
Group Icon

Group: Members
Posts: 11
Joined: 7-December 09
Member No.: 12,907



QUOTE (Viola @ Feb 7 2012, 04:04 PM) *
logo for skins with subsets:
<a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}-{$SKIN_SUBSET}.php" alt="{$META_TITLE}" /></a>

logo for skins without subsets:
<a href="{$STORE_URL}/index.php"><img src="{$STORE_URL}/images/logos/{$SKIN_FOLDER}.php" alt="{$META_TITLE}" /></a>

An important point to note is that the logo image URL is different depending on whether or not a skin has subsets. So if you modify a stock skin and add/remove subsets, be sure to change the logo URL accordingly.


As of version 5.1.2 the code for the logo has been simplified. Whether or not the skin has subsets no longer matters. It is now:
<a href="{$STORE_URL}"><img src="{$STORE_LOGO}" alt="{$META_TITLE}" /></a>
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 1st October 2014 - 04:15 PM
CubeCart Developers Network
Get CubeCart!
© 2007 - 2014  CubeCartForums.org in association with Inspired Solutions. Sponsored by Devellion