recharge-upsell
A collection page of Who Gives A Crap USA
About
!!! Do not change the name of this collection! It will break all the add on products in this geo's ReCharge !!! The products in here are how we define what two products (tissues and paper towels) we use for the email delay upsell / "add product" upsell. This is how it works: In the portal theme, the "_subscription_upsell_objects.html" file has a "for" loop that looks for products in a collection called "recharge-upsell" in each store (that's this collection). For each product(s) in the collection with "towels" in the product handle, it assigns that liquid object to a variable called "paper-towels" Same with tissues– product has "tissues" in the handle, it assigns the object to a variable named "tissues" To add or change: Preview all this on an unpublished ReCharge portal theme. Add an if statement with the product to the "_subscription_upsell_objects.html" snippet in our recharge portal theme. Search for "{{ tissues" or "{% raw %}" etc to find all the places in the theme where you'd need to update or change the variable. Name changes can affect all stores, so keep that in mind – if you change "paper-towels" to "kitchen-towel" in the _subscription_upsell_objects file, it'll break all the pricing, naming, links, etc for that add on product in that geo. If you change the name of the collection the file loops through, it'll break it everywhere (yikes). That's it. Be careful, have fun, and don't forget to tip your bartender.