Product Promotions Menu
Purpose
Product Promotions lists products that are currently (or previously) under promotions. Each item may include:
- Product image
- Product name
- Promotion period (start–end)
- Stock (if available)
- Promotion price list (can be more than one)
You can open a product from this list to edit it (usually goes directly to Edit Product), so promotions and pricing can be reviewed or updated.
Requirements
This page loads promotion data from the server via your session. Make sure:
- You are logged in (valid session).
- The server hostname is configured.
If you are not logged in, the app may show “Please login first.” If the hostname is missing, you may see “Hostname not set.”
Sticky Header
At the top (sticky while scrolling), you may see:
- Title: Product Promotions
- Active server subtitle (example:
Server: https://toko.maxsi.id) - Total badge (example: “Total X”)
- Refresh (↻)
Refresh
Reload by:
- tapping ↻, or
- pull-to-refresh.
Promotion List
Each promotion card typically shows:
- Image (or “No Image” placeholder)
- Product name
- Optional stock badge (if provided by server)
- Period text (example: “Period: 01 Jan 2026 — 07 Jan 2026”)
- Price chips, or “Price not available”
Open a Product
Tapping the price area usually opens:
- Edit Product
Note: if productId is missing in the server response, the item may not be clickable.
Period Meaning (Active / Upcoming / Expired)
Promotions have a start and end date:
- Upcoming: before start date
- Active: within the range (or no clear end)
- Expired: past end date
The simplest way is to check the period shown on each item.
Empty State / Errors
- If there are no promotions: “No promotions available yet.”
- If loading fails: verify session and hostname, then refresh.
Tips
- Use this page to quickly confirm whether promotions are active and prices are correct.
- If something is wrong, open the product and adjust it in Edit Product.