CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Get CartThrob Logo

get_cartthrob_logo is a simple helper tag that outputs a linked “Powered by CartThrob” logo image.

This is an immediate-execution single tag and is typically used in a footer or attribution area.

See also:

Image sample

image

Parameters

This tag has no tag-specific parameters.

Output

Returns HTML like:

  1. an <a> link to https://cartthrob.com
  2. an <img> inside the link using:
    1. src="https://cartthrob.com/images/powered_by_logos/powered_by_cartthrob.png"
    2. alt from language line powered_by_title
  3. link attributes:
    1. title from language line powered_by_title
    2. onclick JavaScript that opens CartThrob in a new window and cancels default navigation

Behavior and Constraints

  1. This is not a form tag and does not accept form/global form parameters.
  2. The older documentation mention of a wrapper <div> and class parameter does not match current implementation.
  3. The image is loaded from a CartThrob-hosted URL.
  4. In current docs history, this helper is marked as deprecated in the changelog, but it is still present in the current codebase.

Examples

Basic usage:

{exp:cartthrob:get_cartthrob_logo}

Optional wrapper for page-level styling/layout:

<div class="powered-by-badge">
    {exp:cartthrob:get_cartthrob_logo}
</div>