# Ecwid's Date Picker Buy Button through code needs to be refreshed twice to appear

**URL:** <https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127>\
**Category:** Custom code\
**Created:** [October 28, 2023, 3:13pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127 "2023-10-28T15:13:17Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [October 28, 2023, 3:13pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/1 "2023-10-28T15:13:17Z")

</div>

Hi all, l am trying to finish building a rental shop site on ReadyMag through Ecwid’s Venture plan. Currently ReadyMag’s Buy button widget doesn’t integrate Ecwid’s Date Picker option, making it impossible to have a rental shop, at least not through Ecwid and Readymag’s buy button widget.

> **[ironhaus - La Casa de los Hierros](https://iron.haus)**
>
> Equipos de DJ de primera línea.

l had to integrate our shop to ReadyMag through the code widget, and now the website is almost ready and the only problem l have is that the website needs to be refreshed 2 times before showing the widget.

Here’s the response l got from Ecwid’s behalf:

 ![Screenshot 2023-10-28 at 15.42.58](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/6/6507aa021a016fdc2420f38cc298df4df005874f.png)

l obviously don’t want to use their “New-gen Instant Site” because we want our ReadyMag project to be our website at launch and other reasons l understand l don’t have to mention here, only that also l got to know about Ecwid just because of my ReadyMag subscription and l feel comfortable with ReadyMag. Honestly l would prefer a solution from ReadyMag’s part, or at least to understand if the Buy Button Date Picker is going to be updated anytime in the future thinking in users who have other type of shops, like a rental shop, just for me to understand how to proceed with the site or if l will need to get away from ReadyMag until this is solved which l really don’t want to and would be my last resort.

l think it might be an ajax problem and it might be resolved through some coding; maybe forcing the widget to automatically load since the first interaction with the site, and that would be awesome too, almost close to having the site up and running only need this problem out of the way and l can’t afford to lose another month with the site down because of this.

Many thanks for your time,

---

<div class="post-metadata">

**Author:** ![Samus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/samus/32/1146_2.png) [@Samus](https://forum.readymag.com/u/Samus)\
**Post date:** [November 7, 2023, 7:22pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/2 "2023-11-07T19:22:37Z")

</div>

Readymag’s e-comm widget won’t help here. You’ll have to either:

- Add all e-comm assets via code (whatever options Ecwid provide—I think they have a few embedding options that you should easily include via the Code widget).

- The long road would be code your way in and try to alter Readymag’s e-comm widget (not sure how feasible this would be, though).

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [November 8, 2023, 12:32pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/3 "2023-11-08T12:32:08Z")

</div>

> [@Samus](#):
>
> - Add all e-comm assets via code (whatever options Ecwid provide—I think they have a few embedding options that you should easily include via the Code widget).

Hi @Samus , thank you for your response and yes this is not e-comm widget, it is already the “code” widget as the e-comm widget is super limited l had to take it out completely.

The problem comes only when entering any page link that has a store product linked to it through the home page, when l enter any product page directly they work just fine.

If l go to my front page and click a product thumbnail that takes me to the product page, l have to refresh the page twice or three times to see it.

You think that maybe this can be solved by adding something to the code widget that allows loading all ajax / javascript codes automatically as soon as someone enters the front page?

---

<div class="post-metadata">

**Author:** ![Samus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/samus/32/1146_2.png) [@Samus](https://forum.readymag.com/u/Samus)\
**Post date:** [November 9, 2023, 12:35am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/4 "2023-11-09T00:35:05Z")

</div>

Not much of a coder here—sorry 😢. Perhaps other lads here might be able to shed some light. 🤞🏼

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [November 10, 2023, 9:19pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/5 "2023-11-10T21:19:06Z")

</div>

Hi Samus, l really hope so, it shouldn’t be that difficult to fix this bug and would be beneficial to both ReadyMag and Ecwid to solve it, but unfortunately they answered to us saying this is a problem only possible to be solved by @Readymag’s team:

 ![Screenshot 2023-11-10 at 22.17.37](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/9/906e8169e9e593cbc3e0554a5c12e96aa9fb16fc.png)

Does ReadyMag have any support in this forum?

---

<div class="post-metadata">

**Author:** ![Readymag](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/readymag/32/3_2.png) [@Readymag](https://forum.readymag.com/u/Readymag)\
**Post date:** [November 13, 2023, 9:59am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/7 "2023-11-13T09:59:57Z")

</div>

hello Olga! thank you for sharing. our support team will check out the details you provided in your email and reply to you over there.

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [November 13, 2023, 10:37am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/8 "2023-11-13T10:37:12Z")

</div>

Thank you so much! awaiting for your reply.

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [November 23, 2023, 3:29pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/9 "2023-11-23T15:29:12Z")

</div>

Hi there @Readymag ,

Any updates on this subject?  
Thank you  
Olga

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [December 4, 2023, 11:05pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/10 "2023-12-04T23:05:42Z")

</div>

Hi @Readymag, any idea on how long it normally takes the support team to get into small issues similar to this one? would really love to start running the store this January, just a little help from you guys could make my whole season! l think it might have something to do with the project not loading javax at the start because when you go straight to the pages with the store, the code loads without problems, just in case it can help support’s team somehow, thank you so much again for your time.

---

<div class="post-metadata">

**Author:** ![Readymag](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/readymag/32/3_2.png) [@Readymag](https://forum.readymag.com/u/Readymag)\
**Post date:** [December 6, 2023, 2:00pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/11 "2023-12-06T14:00:07Z")

</div>

Hello Olga! Unfortunately, we cannot provide you a timeline or promise that the issue would be resolved soon. Did you send an email with details at [support@readymag.com](mailto:support@readymag.com)? If not, please do that, it’ll be easier for us to assist you over email.

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [December 21, 2023, 8:53pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/12 "2023-12-21T20:53:49Z")

</div>

hello… yes l did… no luck at all, just received a generic response saying that @Readymag doesn’t support Ecwid’s date picker option, basically sending me back again to the forum:

 ![Screenshot 2023-12-21 at 16.44.35](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/1/1423071d05b1446b62cd9d58c5bfec8569b58eed.png)

l already talked to a bunch of web developers and they all told me that the problem comes from Readymag not sending the fetch data correctly to ecwid, not a problem of the Date Picker or the Code itself, so basically the only party that could help me is Readymag, but refuse to do it, l have a business plan therefore l understand this should be addressed by @Readymag in a more serious matter:

 ![IMG_9254.HEIC](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/9/93311c98ff259030260fd7a794f93988373a8e2b.jpeg)

All professional developers agreed this is a fetching problem, demonstrating that the problem is not in the form or in the code but caused by ReadyMag not sending the data back from Ecwid, causing the form to appear randomly on the website, and l feel there is no support in this bug by Readymag, the only ones with the ability to fix it.

Could you please give me a solution? would l need to move my project because of not getting simple support?

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [December 23, 2023, 4:14pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/13 "2023-12-23T16:14:23Z")

</div>

Hi @Readymag , again, another developer found that the issue is a credential problem between Readymag and #Ecwid:

 ![Screenshot 2023-12-23 at 12.08.15](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/8/84b42a5a1037485ad309258e52ecd920f1bbc284.png)

does business plan receive any support from Readymag?

---

<div class="post-metadata">

**Author:** ![HuV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/huv/32/45_2.png) [@HuV](https://forum.readymag.com/u/HuV)\
**Post date:** [January 19, 2024, 5:25pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/14 "2024-01-19T17:25:48Z")

</div>

@Olga_Kostyrko, our dev crew had a closer look at this, they advised to enable the iframe toggle:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/3/364c40c501a8c365581eab3e52e704d5f6c49c0a.png)

Could you please try that and verify if code works as expected after that?

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [January 19, 2024, 6:38pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/15 "2024-01-19T18:38:25Z")

</div>

hi @HuV and thank you for your reply l really appreciate it. After following the three steps in all products the widget now seems to consistently appear on the website, the only problem is that now it encapsules all other coded widgets of the page into the frame and the main cart doesn’t refresh when adding products, instead it shows a new cart button inside of the frame:

 ![Screenshot 2024-01-19 at 14.34.15](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/2/22878c5a83c1c36cec5d56a23e0e34a9e440bb63.jpeg)  
 ![Screenshot 2024-01-19 at 14.41.23](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/0/0fdb56fb66a6c462cffe72f957b1428a30a5657d.jpeg)

If we could fix this the site would be up and running! thank you again for looking into it.

---

<div class="post-metadata">

**Author:** ![HuV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/huv/32/45_2.png) [@HuV](https://forum.readymag.com/u/HuV)\
**Post date:** [January 23, 2024, 11:37pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/16 "2024-01-23T23:37:16Z")

</div>

@Olga_Kostyrko let me passed on this new information to our dev crew. We’ll come back ASAP with new insights.

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [January 24, 2024, 3:33pm UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/17 "2024-01-24T15:33:16Z")

</div>

hi @HuV, thank you, patiently awaiting for feedback.

---

<div class="post-metadata">

**Author:** ![HuV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/huv/32/45_2.png) [@HuV](https://forum.readymag.com/u/HuV)\
**Post date:** [January 25, 2024, 12:34am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/18 "2024-01-25T00:34:01Z")

</div>

@Olga_Kostyrko, our devs confirm there are several aspects of Ecwid’s catalog that won’t fully align with the state of our integration. The current version provides limited functionality.

We’re actively researching new ways to enhance the e-commerce options offered; although, no updates are expected to be delivered for this integration for now.

We sincerely apologize for any inconvenience caused by these limitations.

---

<div class="post-metadata">

**Author:** ![Olga\_Kostyrko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/olga_kostyrko/32/1293_2.png) [@Olga\_Kostyrko](https://forum.readymag.com/u/Olga_Kostyrko)\
**Post date:** [January 26, 2024, 1:46am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/19 "2024-01-26T01:46:57Z")

</div>

hey @HuV, thank you for your response, guess l will have to take my business elsewhere. Good luck thinking about those updates.

---

<div class="post-metadata">

**Author:** ![HuV](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/huv/32/45_2.png) [@HuV](https://forum.readymag.com/u/HuV)\
**Post date:** [January 27, 2024, 1:29am UTC](https://forum.readymag.com/t/ecwids-date-picker-buy-button-through-code-needs-to-be-refreshed-twice-to-appear/2127/20 "2024-01-27T01:29:50Z")

</div>

Absolutely appreciate your feedback, and we completely respect your perspective. Best of luck on your business journey!
