Notice: Undefined variable: s_offline in /homepages/6/d168803796/htdocs/officetrio.com/o3/o3start.php on line 314
OfficeTrio: Containers - User Manual OfficeTrio: The Integrated ECommerce Solution OfficeTrio: The Integrated ECommerce Solution OfficeTrio: Features OfficeTrio: User Manual OfficeTrio: Testimonials OfficeTrio: The Demo is Offline! OfficeTrio: Order O3 Now
EWS is no longer available


Notice: Undefined variable: us_name in /homepages/6/d168803796/htdocs/officetrio.com/right-menu.php on line 35

Notice: Undefined variable: us_email in /homepages/6/d168803796/htdocs/officetrio.com/right-menu.php on line 35
U:
P:

Login Page

Introduction
Payments
Users
Login
Access
Categories
Products
Downloads
Deliveries
Containers
Catalog
Cart
Search
Orders
Emails
IPN
Stats

Modules
Affiliates
Content
Types
List Items
Image Upload
Scheduler
File Browser
Stock Control

Appendices
Settings
Functions
Actions
Caching



Forums
Members Area
Customers Area
Affiliates

Contribute
Installation
Contact Details
Terms
FAQ
Testimonials

Free Tutorials
Free EBooks
Free Scripts

PayPal - Accept Credit Cards Online

StormPay - Accept Credit Cards Online

PHP: Open-Source Server-Side Scripting Language

MySQL: Fast Relational Database



O3 comes with a full 30-day, no-quibble money back guarantee.



Results! Why, man, I have gotten a lot of results. I know several thousand things that won't work.
    Thomas Alva Edison




Containers

Introduction | Product Macros | Category Macros | Content Macros | Menu Macros | Navigation Macros

Introduction

Containers are HTML snippets or templates which define how to display an O3 object like a product, category, menu or content-item.

They are very simple. If you're building your site from a template - which most people are - you just copy the HTML which displays the product (or whatever) from the template into O3, then replace any specific stuff with O3's container symbols.

Most things in O3 have 2 types of container: a List container - to use when showing a list of things, and a Detail container for sowing all an object's attributes. This applies to Products, Categories, Items, Content and Schedules. Menus & Navigation don't ned this distinction.

The benefit of using containers that it gives you complete control over your site design. Also, if you decide to change how things are displayed, you only have to change it in one place - O3's Containers Manager. Containers are essential if you want to use the Products-Wizard functions and the Catalog Page. The set of default containers is defined in the settings, but you can override the defaults by passing the container name into the function calls.

There are examples of containers in the example data set. Here's a simple product container:

<!-- Product Container - Small -->
<table class='prsmall'>
<tr><th>PR-NAME</th></tr>
<tr><td align='center'><a href='PR-URL' title="Go to the PR-NAME page..."><img src='PR-IMAGE' border='0'></a></td></tr>
<tr><td>PR-DESC</td></tr>
<tr><th>£PR-PRICE</th></tr>
<tr><th>PR-PPBUYhttps://www.paypal.com/en_US/i/btn/x-click-but02.gif#</th></tr>
</table>

...and here is how the container is used:

echo show_product($item, 'Container');


Other Containers

This section lists some of the core containers in O3. The Order Confirmation Email Containers is also part of the core.

Some modules have containers too. There are: Schedule Containers, Content Containers, and Item Containers.


Product Container Macros

Here's a list of all the symbols which can be used in O3's product containers, and what they're replaced with.

MacroIs Replaced By
PR-NAMEProduct Name
PR-DESCProduct (short) description
PR-CATEGORYCategory
PR-FULLDESCFull Description
PR-IMAGESmall Image
PR-LARGEIMAGELarge Image
PR-URLProduct page URL
PR-PRICEPrice (No currency symbol is displayed)
PR-SETUPFEESetup Fee
PR-VALIDFROMDate the product is valid from.
PR-VALIDTODate the product is valid to.
PR-LEV1COMMISSIONCommission for affiliate who made the sale.
PR-LEV2COMMISSIONCommission for affiliate whose referrer made the sale.
PR-LEV3COMMISSIONCommission for affiliate whose referrer's referrer made the sale.
PR-SUBSCRSubscription? Shows 'Yes' or 'No'
PR-RENEWALRenewal period for a subscripption
PR-REPEATSNumber of repeats for a subscription. If blank = forever.
PR-TRIALTrial period.
PR-SHIP1Shipping cost 1 (one price for all)
PR-SHIP2Shipping cost 2 (per additional item)
PR-HANDLINGHandling fee
PR-OPTION1Option 1 (i.e. 'Colour')
PR-OPTION2Option 2
PR-PPBUY#
PR-PPBUYimg/image.gif#
PayPal Buy button. This can have an 'override' image specified - as in the lower example to override the default image set in the Settings. This symbol must have the terminating '#'!
PR-PPCART#
PR-SPBUY#StormPay Buy button. This can also have an 'override' image specified. As above.
PR-SPCART#StormPay 'Add To Cart' button. This can also have an 'override' image specified. As above.
PR-RELATEDPcontainer#Show any Related Products in the (optional) specified container. This symbol must have the terminating '#'!
PR-RELATEDCcontainer#Show any Related Categories in the (optional) specified container. This symbol must have the terminating '#'!
PR-DOWNLOAD-URLThe URL of the download link to the product. Put this in the href attribute of a link. This will be blank if no file is specified for the product!
O3VAR#Any internal value from the item's data or type data (i.e. O3VARsize#)

O3IFa|b|c|dO3ENDIFA simple comparison operator. If a=b then c is output, else d. The contents can contain other macros as all others are parsed first. Note this macro has a different terminator to the others to allow you to embed them within an O3IF.


Category Container Macros

Here's a list of all the symbols which can be used in O3's category containers, and what they're replaced with.

MacroIs Replaced By
CT-NAMEProduct Name
CT-DESCProduct (short) description
CT-FULLDESCFull Description
CT-IMAGESmall Image
CT-PRODUCTScontainer#A list of the category's products in the (optional) container specified.
CT-CATEGORIEScontainer#A list of the category's sub-categories in the (optional) container specified.
O3VAR#Any internal value from the item's data or type data (i.e. O3VARsize#)

O3IFa|b|c|dO3ENDIFA simple comparison operator. If a=b then c is output, else d. The contents can contain other macros as all others are parsed first. Note this macro has a different terminator to the others to allow you to embed them within an O3IF.


Content Container Macros

Here's a list of all the symbols which can be used in O3's content containers, and what they're replaced with.

Hint: If you want a product to appear in the small container, use the CN-PRODUCTS-NAME macro, and specify the products name exactly in the regular expression

MacroIs Replaced By
CN-NAMEContent Name
CN-DESCContent description
CN-TITLEContent Title
CN-UPDATEDUpdated date
CN-CREATEDCreated date
CN-CONTENTContent HTML or Text
CN-PRODUCTproduct#Show the specified product in the Product-Large container.
CN-PRODUCTS-NAMEname like#Show the list of products whose name matches the regular expression in the Product-Small container.
CN-PRODUCTS-CATEGORYname like#Show the list of products whose category matches the regular expression in the Product-Small container.
CN-CATEGORIEScategory#Show the list of categories whose name matches the regular expression in the Category-Small container.
CN-CATEGORYcategory#Show the specified category in the Category-Large container.
O3VAR#Any internal value from the item's data or type data (i.e. O3VARsize#)

O3USR#Any value from the current user's data or type data (i.e. O3USRus_email#)

O3IFa|b|c|dO3ENDIFA simple comparison operator. If a=b then c is output, else d. The contents can contain other macros as all others are parsed first. Note this macro has a different terminator to the others to allow you to embed them within an O3IF.


Menu Container Macros

Here's a list of all the symbols which can be used in O3's menu containers, and what they're replaced with.

MacroIs Replaced By
CT-NAMECategory name.
CT-DESCCategory description
CT-FULLDESCCategory full description
CT-URLCategory URL.. Link to catalog page to show the category in the Category-Large container.
CT-IMAGECategory image. Should reside in the Image Directory specified in the settings
CT-PR-COUNTThe number of products in the category
CT-CN-COUNTThe number of content items (articles) in the category
CT-BOLDThis is set to the following text if the menu item is the current page: " style='font-weight:bold'"
MN-DEPTHhtml#The hierarchy depth indicator html. This is usually just some spaces to indent the menu item, but you can use any HTML (60 chars)
O3VAR#Any internal value from the item's data or type data (i.e. O3VARsize#)

O3USR#Any value from the current user's data or type data (i.e. O3USRus_email#)

O3IFa|b|c|dO3ENDIFA simple comparison operator. If a=b then c is output, else d. The contents can contain other macros as all others are parsed first. Note this macro has a different terminator to the others to allow you to embed them within an O3IF.


Navigation Container Macros

Here's a list of all the symbols which can be used in O3's navigation containers, and what they're replaced with.

MacroIs Replaced By
FIRST-ITEMThe row number of the first item displayed.
LAST-ITEMThe row number of the last item displayed.
ITEM-COUNTThe total number of items.
THIS-PAGEThe page number of the current page.
PAGE-COUNTThe total number of pages.
PREV-URLURL of the previous page.
NEXT-URLURL of the next page.
O3VAR#Any internal value from the item's data or type data (i.e. O3VARsize#)

O3USR#Any value from the current user's data or type data (i.e. O3USRus_email#)

O3IFa|b|c|dO3ENDIFA simple comparison operator. If a=b then c is output, else d. The contents can contain other macros as all others are parsed first. Note this macro has a different terminator to the others to allow you to embed them within an O3IF.




Powered By OfficeTrio