Cart Progress Bar Documentation
Installation – top
Uploading
- Download the add-on
- Go to Admin panel > Add-ons > Manage Add-ons
- Click on [+] to open upload modal window
- Please choose whatever is comfortable to you:
– Local: zip archive is saved on your computer
– Server: zip archive is uploaded on your server
– URL: you have a direct link to the zip archive - After you selected the zip archive corresponding to your current version of CS-Cart please click Upload & install
Activation
- Open add-on settings page Admin panel > Add-ons > Manage Add-ons >
Select add-on - In Activation tab insert License key
- Save the settings and go back to Manage Add-ons page
- In same line with the name of the add-on, click Active
- Clear cache, choose Administration > Storage > Clear cache
Make sure that the add-on status is Active
That’s all, the add-on is installed
Settings – top
Block – top
For the checkout page or any other layout locations where you want to display the progress bar, you can add the block
[TH] Cart Upsell Bar
![[TH] Cart Upsell Bar Block](https://themehills.com/wp-content/uploads/2025/08/Screenshot-2025-11-18-at-11.36.16-scaled.png)
Hooks & Extensibility โ top
The Cart Progress Bar add-on provides a hook that allows third-party add-ons or custom code
to modify or add cart promotions dynamically before they are processed and displayed.
This is useful if you want to:
- Add custom or virtual promotions without saving them in the database
- Modify existing promotion conditions or bonuses
- Integrate external logic (custom discounts, loyalty systems, etc.)
Available hook
ath_cart_progress_bar_get_front_promotions
This hook is executed right after promotions are fetched and before any filtering
(date, subtotal, location, vendor, etc.) is applied.
Hook signature
fn_set_hook(
'ath_cart_progress_bar_get_front_promotions',
$promotions,
$params,
$lang_code
);
Parameters
- $promotions โ array of promotions fetched for the cart (passed by reference)
- $params โ parameters used to fetch promotions (zone, active, etc.)
- $lang_code โ current storefront language code
Example: adding a custom promotion
function fn_my_addon_ath_cart_progress_bar_get_front_promotions(
&$promotions,
$params,
$lang_code
) {
$promotions[] = [
'promotion_id' => 0,
'company_id' => 0,
'ath_show_in_cart_bar' => 'Y',
'from_date' => 0,
'to_date' => 0,
'conditions' => [
'conditions' => [
[
'condition' => 'subtotal',
'operator' => 'gte',
'value' => 200
]
]
],
'bonuses' => [
[
'bonus' => 'free_shipping'
]
],
'ath_reward_text' => __('free_shipping'),
'ath_before_goal_text' => __('add_more_for_free_shipping'),
'ath_icon_pair' => []
];
}
This approach allows you to fully control how promotions are calculated and displayed in the progress bar,
while keeping the core add-on logic intact.
Change styles
You can edit/change it in Design tab in add-on settings
or
Style files add-on should not be changed, this can lead to incorrect work of the add-on. If there was a need to redefine or add styles, please use Theme editor for this
- Go to Design > Themes
- Press Visual Editor in front of the currently active layout
- In the new tab, you will see your shop with Theme editor panel
- In CUSTOMIZE selector choose Custom CSS
- In textarea you can add your styles
- After editing save your changes by pressing Save and press [X] to close editor
Add-on Update – top
The update through the Update Center
Changelog
2.02 (22 Dec 2025) Added support for default user group promotion restrictions Added hook ath_cart_progress_bar_get_front_promotions Fixed text placeholders Improved texts CSS fixes 2.01 (18 Nov 2025) Added location support 2.00 (22 Oct 2025) [!] Reinstallation of the add-on is required The add-on functionality is now linked to promotions Supports the Direct Payments add-on 1.01 (01 Sep 2025) Fixed a bug in the display on the detailed product page 1.00 (01 Sep 2025) Release
