Custom Cart Page | Wix Tutorial [Part 4] - Delivery Country and Coupon Codes

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 20

  • @chibzz5301
    @chibzz5301 13 днів тому

    I noticed in the video you skip over the logic when you change the ApplyCouponCode button text to remove - to completely changing the logic to adding hide/show functionality with 2 buttons, i also noticed people in the comments got errors because of this. Maybe it is a good idea to fix this part of the video, best regards :)

  • @timdiobserver6787
    @timdiobserver6787 6 місяців тому

    Awesome video! This really helped me with my project.
    Are you going to release a part 5? I was expecting the loader and I thought you were going to mention that in this part.

    • @thewixwiz
      @thewixwiz  6 місяців тому +1

      Thanks! Yes part 5 will be coming out on Monday. It will cover checkout and loader.

  • @chrismilne2630
    @chrismilne2630 6 місяців тому

    Awesome video, thanks! I've tried skipping ahead a few steps to somehow link the mini cart to the new cart page but so far absolutely no dice. Is that something you will cover in a later video?

    • @thewixwiz
      @thewixwiz  6 місяців тому

      Thanks! That isn't something I cover in the tutorial but the general idea is that you will either need to redirect the old cart page to the new one or set up your custom cart on the native cart page itself (collapsing the native cart widget).

  • @bayestraat
    @bayestraat 2 місяці тому

    I'm assuming the cart icon and minicart seems to function at frontend only? They do not update with the quantity toggle item.onchange, since we did this with ecom-backend?

    • @thewixwiz
      @thewixwiz  2 місяці тому

      Not so much that they are only frontend as that they are not integrated with the event listeners we set up. You may have access to these events through the API events but it would be a hassle to change frontend behavior based on them.

    • @bayestraat
      @bayestraat 2 місяці тому

      ​@@thewixwiz I've used common principals from what you've shown to fully deploy my custom cart in a lightbox. The only issue now is that I'm having a hard time with the checkout process, whereby I'm trying to pass the variable parseFloat(priceSummary.total.amount) to Stripe's price_data API to create prices on the fly. Unfortunately everywhere I read it refers back to Stripe's "app.post" method which to my understanding it doesnt work in wix's env?

    • @thewixwiz
      @thewixwiz  2 місяці тому

      @@bayestraat If I understand correctly you are referring to the Stripe demos which use an express server. Since Wix backend acts as a server in itself there is no need for endpoints. Just build the API calls into Web Methods and call them from the frontend.

    • @bayestraat
      @bayestraat 2 місяці тому

      Ah i see the issue now. By the way, regarding the cart icon not updating unless the page is refreshed, is it possible to set up a custom icon by adding a header snippet in the custom code settings from the site dashboard?

  • @mcswibbs4192
    @mcswibbs4192 5 місяців тому

    How do you set up the tax and delivery fee by chance? I got confused on how you set it up

    • @thewixwiz
      @thewixwiz  5 місяців тому

      The fees themselves are set up through the dashboard.

  • @DeitrichGerlt
    @DeitrichGerlt 4 місяці тому

    I opted to not use the country dropdown, but I would like to use the coupon code box. However, when following the code, the website appears identical, but none of the coupons seem to prompt a change on the custom cart page. If I add the discount on the stock cart page, and then reload the custom cart it displays perfectly. This makes me think there is a disconnect between the promotional code text field and the apply button. Any tips? (WIX Studio)

    • @thewixwiz
      @thewixwiz  4 місяці тому

      Hi, it sounds like you didn't run the render function which reloads the cart after applying the coupon. It would be hard to know though without looking at the code.

    • @DeitrichGerlt
      @DeitrichGerlt 4 місяці тому

      @@thewixwiz Is there a way to share the code with you?

    • @fairmann5307
      @fairmann5307 4 місяці тому

      @@thewixwiz I have the same problem, has a solution already been found? Could it be related to the discount group? Did you use a regular text field there, or what exactly does the group consist of

    • @fairmann5307
      @fairmann5307 4 місяці тому

      okay thats not still working.... every time when i try to enter the code in the custom card i get this message:
      createConsoleProxy.ts:47 Error: Unable to handle the request. Contact the site administrator or view site monitoring logs for more information.
      (anonym) @ createConsoleProxy.ts:47
      eval @ active$wBiEvent.js:56
      v @ app.js:139
      external commonjs "wix-location-frontend":1 Uncaught (in promise) Error: Unable to handle the request. Contact the site administrator or view site monitoring logs for more information.
      I dont know how to handle this...

    • @fairmann5307
      @fairmann5307 3 місяці тому

      @@DeitrichGerlt Do you now have a solution to the problem?
      I keep getting an error after the confirmation button, the console then says that the coupon does not exist, but as you described, it works in the wix store itself.