Reploverse Icon

Creating a Dynamic Link for Cart Items and Discounts

·
·

does anyone know how to create a link that adds an item to cart, adds a discount code, and redirects to a page (that is NOT checkout or the cart)?

  • Avatar of Pylon
    Pylon
    APP
    ·
    ·

    Hi there! This is Shahar from the Replo Team. To create a single link that adds an item to the cart, applies a discount code, and redirects to a custom page, you can use Replo's chained interactions. Here's how:

    1. 1.

      Set up an Add to Cart interaction to add the product.

    2. 2.

      Add an Apply Discount Code interaction with your desired code.

    3. 3.

      Complete the setup by adding a Redirect interaction to your custom page URL.

    You can follow the steps outlined in our Interactions guide here: Replo Interactions Documentation.

  • Avatar of Paolo DiBenedetto
    Paolo DiBenedetto
    ·
    ·

    thanks but I am doing this on a popup, so its not made in replo unfortuantely

  • Avatar of Pylon
    Pylon
    APP
    ·
    ·

    Are you referring to implementing this functionality through a pop-up on a Replo page, or are you building it entirely within your theme?

  • Avatar of Paolo DiBenedetto
    Paolo DiBenedetto
    ·
    ·

    just a pop-up on my website. i just need a link in general. we use replo for landing pages but this is just our normal popup from like our homepage using amped

  • Avatar of Paolo DiBenedetto
    Paolo DiBenedetto
    ·
    ·

    im basically trying to do what this person is doing and the suggestions arent working for me https://community.shopify.com/c/technical-q-a/shopify-url-for-discount-adding-a-product-and-redirect/td-p/595608

  • Avatar of Pylon
    Pylon
    APP
    ·
    ·

    To achieve this functionality, Shopify's URL parameters can be used to create a link that adds an item to the cart, applies a discount code, and redirects to a specific page. The format typically looks like this: https://yourstore.myshopify.com/cart/add?id=PRODUCT_ID&discount=DISCOUNT_CODE&redirect=/custom-page. Replace PRODUCT_ID, DISCOUNT_CODE, and /custom-page with the specific product ID, discount code, and your desired redirect page URL respectively. For additional help, you might want to consult Shopify documentation or their community for further customization options.

  • Avatar of Paolo DiBenedetto
    Paolo DiBenedetto
    ·
    ·

    thank you! i will give that a try!

  • Avatar of Pylon
    Pylon
    APP
    ·
    ·

    Hi there, this ticket is being automatically closed since we haven't heard back from you in awhile. If you still need help you can reply here and the ticket will be re-opened.