Set Pricing in TTG CE2 Cart

Price profiles establish pricing for your products. You may create as many or as few price profiles as you like, though every cart needs at least one price profile to be used as a default. Each profile represents pricing and options for a group of identically priced products, and each product offered for sale needs to be assigned a profile. A single profile may be assigned globally to an entire gallery of products, or profiles may be assigned to products individually, allowing items in a single gallery to be priced separately.

If what I’ve just told you sounds confusing, don’t worry. The price profile system is actually quite simple in practice, and is also extremely flexible. Let’s first walk through the process of building a price profile, and afterward will explain how to apply profiles to products in your galleries.

A price profile is a plain text file, and may be created using any plain text-editor. Profile file names should be in the format [name].txt, where [name] is a single word (no spaces, no punctuation) that identifies the profile. Hyphens and underscores may be used, but no other punctuation is allowed. Example file names might be:

headshots.txt
european-architecture.txt
italia_firenze.txt

It’s a good idea to use descriptive file names to help you more easily identify and keep track of your profiles.

Price profiles should be saved to the location /config/pricing/ within your exported cart.

The contents of each profile define purchase options in the format:

Title|type|option|option|option|etc.

Title will be used as the name/label for the set of options.

type may be either base, fixed or percentage and defines how the price should be calculated.

For each option, you define a purchase option and corresponding price. There is no limit to the number of options you may define.

Each value should be separated using the ‘'|'’ character (SHIFT-Backslash).

Now, let’s write a profile for pricing prints of portraits. Create a new text file named portraits.txt.

Every profile requires a ‘base’ which should be set first. We will use print size as our base for pricing:

Size|base|4 x 6" print=10|5 x 7" print=15|8 x 10" print=25

This rule creates an array of options labeled “Size” and establishes this as our base for pricing. We then offer three size options: 4 x 6″ prints for $10, 5 x 7″ prints for $15, and 8 x 10″ prints for $25. Note the format in which we write each option:

[Option name]=[price]

[Option name] may be written in any format; quotation marks are allowed. [price] must be a numeric value; decimals are allowed, but you may not use any non-numeric characters such as currency symbols (currency is defined elsewhere in the cart).

The first option in an array will always be selected as the default. The default value for Size is therefore 4 x 6″ print.

Now, let’s add more purchase options. “Add-on” purchase options may be defined as “base”, “fixed” or “percentage”. We’ll add a paper choice for prints, with price calculated as a percent increase:

Size|base|4 x 6" print=10|5 x 7" print=15|8 x 10" print=25
Paper|percentage|Glossy|Matte=10|Natural fiber=20

We have now added a purchase option for Paper type, with pricing being calculated as a percentage of the item’s base price.

The default option for all prints is “Glossy”. Note that I have not specified a price; options without a price will be calculated as zero (0). In this example, Glossy and Glossy=0 are the same.

Instead of the default glossy, customers may opt to have their prints on Matte paper for a 10% increase in print cost, or on Natural Fiber paper for a 20% increase in print cost. Percentages are always calculated from the base price. Using the rules above, a 4 x 6-inch print on natural fiber paper would cost:

4 x 6″ print ($10) + Natural Fiber paper ( 20% of our base cost $10 is $2 ) = $12

An 8 x 10-inch print on Natural Fiber paper would cost:

8 x 10″ print ($25) + Natural Fiber paper ( 20% of our base cost $25 is $5 ) = $30

Let’s create a fixed-type of add-on:

Size|base|4 x 6" print=10|5 x 7" print=15|8 x 10" print=25
Paper|percentage|Glossy|Matte=10|Natural fiber=20
Treatment|fixed|Real Colors|Black & White=5|Sepia-tone=5|Creative Color=7.50

We have now added an add-on option for Treatment, with pricing being calculated as a fixed increase to the item subtotal. The default option selected for Treatment is “Real Colors” with no additional charge. Black & White processing is available as a $5 add-on for the image, Sepia-toning as a $5 add-on, and Creative Color (use your imagination) for $7.50. These costs are added to the item subtotal as a flat increase, independent of other options.

The sequence of add-on options is unimportant. For example:

Size|base|4 x 6" print=10|5 x 7" print=15|8 x 10" print=25
Treatment|fixed|Real Colors|Black & White=5|Sepia-tone=5|Creative Color=7.50
Paper|percentage|Glossy|Matte=10|Natural fiber=20

… is exactly the same as above.

In both cases, the price of a 4 x 6-inch ($10) black & white (+$5) print on matte paper (+10% of base) would be calculated as:

$10 + $5 + ( 0.10 * $10 ) = $16

There is no limit to the number of add-on options you may define, so feel free to offer as many options as you like:

Size|base|4 x 6" print=10|5 x 7" print=15|8 x 10" print=25
Treatment|fixed|Real Colors|Black & White=5|Sepia-tone=5|Creative Color=7.50
Paper|percentage|Glossy|Matte=10|Natural fiber=20
Framing|percentage|Metal=50|Wood=65|Ornate wood=110
Gift-wrapping|fixed|No|Yes=5
Shipping|fixed|Pickup|Standard USPS=10|Priority=25|Overnight=54.95
Tip|percentage||10%=10|20%=20

Notice I have created a blank option for “Tip” — || is an empty option, and will be calculated as zero. Because it is the first option in my array, Tip will be empty by default.

That’s all there is to creating a price profile. This has been a long explanation, but I hope that the many examples serve to show you just how easy it is to create your profiles. As I have already said, you may create as many or as few profiles as you need, and you may apply those profiles to as many or as few items as you wish. Profiles should have unique file names, and should be stored in the /config/pricing/ folder of your cart installation.

Price profiles may be expanded further with shipping options. See the section Manage Shipping .

Print/export