i added code for slide out cart . my client is usi...
# replo-help
m
i added code for slide out cart . my client is using shrine pro theme. but the code is not working for slide out cart on replo
n
Always best to reach out to the support team, they should be able to help!
s
@Md Toufic Ahmed Khan Badhon did you get this figured out? Also, is your goal to get support on this question here or are you hoping for someone to DM you offering to help? If you look at this channel's guidelines here, there are two main items i'd point out. First, please try to Thread your questions here. Also, please make sure to add solid context here so people can help you. Looking at your messages, I'm unsure what the issue is? The cart seems to be working just fine (it's in your screenshot). Also, adding in the Shopify URL of the site and the actual code (vs just a screenshot) would help. These slide out cart ones can be tricky since they are basically all theme level code. The theme might be Shrine Pro but it might also have been changed by other developers after purchase. Maybe you can consolidate all the relevant into into a new message/thread and the community can help?
🙌 1
m
It is not solved yet
s
Got it. does the rest of my response make sense? Can you try to give a bit more context? I don't think there is enough context here for you to receive help so not sure this community conversation will be effective in it's current state
🙌 1
m
Shrine theme team replied with this Hey Eduardo, Thanks for your patience. Regarding the integration issue with Replo, we recommend contacting Replo's support team directly. We have multiple clients using Replo with our Shrine theme, and the code provided by Replo for the Dawn theme has worked for them. If Replo's support team requires any specific information about the Shrine theme, please let us know, and we'll be happy to assist.
So, how to fix this Cart slide issue
s
@Md Toufic Ahmed Khan Badhon can you provide more context as to what the actual issue is? You seem to just be saying "there is an issue" but you're not actually providing any detail as to what the issue is? From the screenshots, the slide out cart IS working. You haven't provided any links to the live page or the actual code. Can you make an effort to bottle up all the context for us in one places so the community can help you here?
🙌 1
m
Sure
Shrine theme devs. Says that the code which is used for the dawn theme, will also work for the shrine theme. But I tried with the dawn theme code to integrate the theme slide cart Drawer but its not working as expected
Hope you understand now
@Steve (Replo Team)
s
@Md Toufic Ahmed Khan Badhon sorry I still don't understand. Perhaps we take this back to internal vs a community conversation since I don't think you're giving enough converstation for thsi to be helpful. Can you look at your In-App Chat widget and find the Chat ID so we can look this up?
m
Why you don't understand that the code shrine theme gave me is not working with Replo for slide cart. It's simple.
s
you have only given us a screenshot of the code. You haven't given me the myshopify url of the code. is your expectation that we transcribe the code form your screenshot and then go buy shrine for an internal store to test this out and figure this out for you? I still don't think you're understanding the best way to get help here? You keep saying the same thing but I promise you you're not giving us enough context. This is the same feedback Craig from the other conversation has given you. Please actually try to give us the context we need to help you OR stop clogging up the community here. You're still not using threading and you're not being specific enough even though we're really trying to help here. If you keep not following the guidelines we will consider removing you from the community. You can simple give me the in-app Chat conversation and I'll follow-up there
m
Check that in the store there is a slide out cart available. But when I built this page using Replo And tried to integrate the slide out cart using shrine theme code it's not working
Hope you understand now
It's simple
s
Right it is simple, but you only NOW just gave us skinglow.mx so we can start to help you here. Unclear how this was a difficult thing to get you to provide. I asked for it like 3 times
m
So, what is next?
s
Ok so i just batted this back and forth with DeepSeek for a few minutes and found the answer. I suggest you get good at debugging this way since this will help you be a better freelancer here and help you get answers to your clients faster. So here is the logic: Your cart script works actually does work on the homepage because it includes Shopify’s
cart-drawer
section. The Replo preview page (e.g.,
/apps/alchemy/...
) doesn’t load the full theme, so the section is missing, causing errors. Why This Happens • ✅ Live Pages (
skinglow.mx
,
/pages/<slug>
): Include the
cart-drawer
section. The script works because: ◦
cartData.sections
returns the section’s HTML. ◦ The
<cart-drawer>
element exists in the DOM. • ❌ Replo Preview: Uses a simplified template without the
cart-drawer
section, so
cartData.sections
is
undefined
and the element is missing. Quick Fix Add error handling to avoid crashes on previews and simply understand this limitation:
Copy code
fetch("/cart/update.js", {  
  method: "POST",  
  headers: { "Content-Type": "application/json" },  
  body: JSON.stringify({ updates: {}, sections: ["cart-drawer", "cart-icon-bubble"] })  
})  
.then(res => res.json())  
.then(cartData => {  
  const cartDrawer = document.querySelector("cart-drawer");  
  if (cartDrawer && cartData.sections?.["cart-drawer"]) {  
    cartDrawer.renderContents(cartData);  
    document.querySelector("cart-drawer.drawer")?.classList?.remove("is-empty");  
  }  
})  
.catch(err => console.error("Error:", err));
Live Pages Will Work Once your Replo page is published to
/pages/<slug>
, the theme will include
{% section 'cart-drawer' %}
in the pages live rendered form. The script will then work then just as it does today on the homepage. You can basically execute any JS code in console so getting good at debugging these will help
m
So, should I have to publish? Then I can see the slide cart. Am I right. Cause I am not a dev
s
yes that should work. And my point is that saying you're not a Dev isn't a good way to hide behind not being able to debug something. I'm also no a dev but I was able to figure this out. AI's make all this easy to do now a days so I highly suggest getting comfortable debugging at this level as it will give your clients a better experience.
✅ 1