A phone accessories brand

Client identity withheld

Collection merchandising and gift-with-purchase logic

Custom logic pins selected products for campaign traffic and automatically applies eligible gifts in the cart.

Learn about our work
Industry
Phone cases and accessories
Project type
Custom features for an existing store
Service scope
Custom development
Technical implementation
Shopify collection & cart customization
Project homepage with brand identifiers redacted
Brand homepage · Client details anonymized

Background and requirements

The brand sells phone cases and accessories through collections that serve both everyday browsing and advertising campaigns. Campaign visitors arrive with a particular promoted product in mind, while other shoppers browse the collection in its usual order. The same page therefore needs to support two different routes into the store.

The customization connects campaign entry conditions with product placement. Agreed URL parameters identify the relevant visit and bring the designated product to the front of the collection. Regular visits retain the default sort order, allowing campaign merchandising and everyday browsing to run alongside each other.

The project also includes gift-with-purchase logic in the cart. Qualifying products, gifts and promotion conditions need to work together within the purchase journey. Our team developed and tested these targeted features within the existing store, covering entry detection, collection sorting and cart promotion handling.

The challenges

One collection, different entry points

Visitors arriving from ads need to see promoted products first, while organic visitors should retain the collection's default sort order.

Gifts must meet promotion criteria

Gift-with-purchase is a cart-level workflow. The main product, gift and eligibility conditions need to be tested together.

Our scope of work

Define the rules

Map campaign entry parameters to the products that should appear first, and clarify the relationship between qualifying items, gifts and promotion conditions. Define collection presentation and cart handling as separate, testable rules before implementation.

Deliverable Entry conditions and promotion rules

Collection sorting logic

Implement campaign-parameter detection and conditional product prioritization within the collection. Check the displayed order and product links for campaign visits, while preserving the default order for regular browsing.

Deliverable Product order tailored to the entry route

Gift-with-purchase logic

Implement cart promotion handling around the approved qualifying-product and gift relationships. Connect the rules to product selection and add-to-cart activity, then test how eligible gifts are handled within the existing purchase journey.

Deliverable Cart promotion handling

Scenario-based integration testing

Test the collection through campaign links and regular entry points, checking product order and onward browsing. Verify eligible cart scenarios, refine the integration based on feedback, and demonstrate the agreed rules for acceptance.

Deliverable Rule-based functional validation

Pages, features and journeys

Connect campaign visits with promoted products

The collection links product placement to campaign entry conditions. Visitors can continue from the product list to individual styles and details, while regular visits retain the collection’s usual sort order.

  • Prioritize the relevant product for campaign traffic.
  • Preserve the standard browsing order for other visitors.

Connect promoted products with purchase decisions

The product page presents color, device model, quantity and add-to-cart controls after shoppers arrive from a collection. The custom work focused on promoted-product placement and gift rules, with landing parameters and promotional scenarios tested around the purchase journey.

  • Collection and detail pages form a connected shopping path.
  • Gift-rule testing was tied to eligible products and purchase scenarios.
WORKFLOW ILLUSTRATION
  1. Campaign entry

    Landing parameters

    Identify the product specified for the campaign

  2. Collection display

    Promoted placement

    Prioritize the product associated with the advertisement

  3. Purchase scenario

    Agreed gift rules

    Apply the gift rule to the eligible product and conditions

Connect campaign entry with promotional rules

The two custom features serve different stages of the shopping journey: campaign parameters prioritize a specified product in the collection, while eligible purchases follow the agreed gift rules. Testing connected landing parameters, product placement and promotional conditions.

From campaign visit to cart promotion

The two features help visitors find promoted products and apply gift-with-purchase rules.

  1. Open a campaign link

    The visitor opens a collection through a link with the agreed parameters.

  2. See the promoted product first

    The collection recognizes the entry conditions and prioritizes the designated product.

  3. Select a qualifying product

    The visitor opens a product and adds an eligible item to the cart.

  4. Apply gift-with-purchase rules

    The cart processes eligible gifts under the agreed conditions before the customer continues purchasing.

Technical approach and workflows

Key decisions

Distinguish campaign traffic from regular visits

Use entry conditions to determine when product prioritization applies, preserving an appropriate sort order for each browsing path.

Integrate promotion rules into purchasing

Validate qualifying products and gifts together within the cart, using agreed test scenarios.

Functional layers and information flow

The existing store connects two focused features: collections use entry conditions to determine product placement, while the cart applies qualifying-product and gift rules. Both operate within the same purchase journey.

Entry-condition detection

Identify campaign visits using agreed URL parameters.

Pin the designated product only when the entry conditions match.

Collection presentation

Prioritize the target product within the collection.

Keep the existing collection order for regular visitors.

Shopping Cart Rules

Integrate qualifying-product and gift conditions into the existing purchase flow.

Test gift handling and cart outcomes against promotion requirements.

  1. 01

    Entry route

    Campaign parameters or regular visits

  2. 02

    Collection page logic

    Evaluate conditions and adjust product placement

  3. 03

    Shopping Cart Promotion

    Check qualifying-product and gift rules

A simplified workflow diagram showing responsibilities and information flow.

Delivery and validation

  1. Confirm entry conditions and promotion criteria

    Confirm campaign parameters, pinned products, qualifying products and gift rules.

    Stage output Entry conditions and gift rules
  2. Implement both features

    Implement conditional product pinning in collections and qualifying-product/gift handling in the cart.

    Stage output Collection and shopping cart functions
  3. Scenario-based integration testing

    Test campaign and organic visits, then verify gift results across cart scenarios.

    Stage output Verified rule-based outcomes
  4. Testing and Delivery

    Test the existing purchase journey, demonstrate the approved rules and hand over the features.

    Stage output Validated custom features

Validation checklist

  • Campaign entry

    Verify the mapping between parameters and target products, and check product prioritization when the conditions are met.

  • Regular visits

    Open the collection without campaign parameters and confirm the default sort order.

  • Promotion eligibility

    Check cart behavior against the qualifying-product and gift rules.

  • Existing purchase journey

    Test the integration against the established store's purchase journey.

Deliverables and project value

Clearer campaign destinations

Campaign links determine where the promoted product appears in the collection.

Default sorting preserved

Regular visitors retain the default product order.

Gift rules implemented

Translate promotion requirements into cart logic.

Let's discuss your project

Start with your business needs and identify the right next step together.

Book a consultation