Code Monkey home page Code Monkey logo

Comments (10)

onursonmez avatar onursonmez commented on September 26, 2024

I changed SERVER_ADDRESS=domain.com to SERVER_ADDRESS=0.0.0.0 then problem fixed

from falcon.

Oksydan avatar Oksydan commented on September 26, 2024

Hi @onursonmez,

It looks like you didn't configured your env properly.
Did you read installation guide https://github.com/Oksydan/falcon?tab=readme-ov-file#installation?
What is your shop domain?
It's not Falcon problem at all tbh and error description is clear address not available 2606:4700:3032::6815:4432:3505.

from falcon.

onursonmez avatar onursonmez commented on September 26, 2024

from falcon.

Oksydan avatar Oksydan commented on September 26, 2024

Are you trying to setup webpack dev server on production server? You shouldn't do it. If you can't use local environment you shouldn't use dev script and you should use just watch. BTW you should never run watch or dev command in production server especially dev since your js files contains a lot of extra code for development purpose and your store will be running rly slow. Especially on mobile devices. You should only deploy assets that comes from build script to production server.

from falcon.

onursonmez avatar onursonmez commented on September 26, 2024

I uploaded the files and modules to the fegge.com production server. I did yarn build and activated the theme. Am I doing it wrong? It seems to be working now on fegge.com?

from falcon.

Oksydan avatar Oksydan commented on September 26, 2024

No it's ok but that's just my digression about working with the theme πŸ˜„.
Did you finally achieve to run webpack dev server on your local environment?

from falcon.

onursonmez avatar onursonmez commented on September 26, 2024

Yes, but the stripe payment module is not working. When I switch to Classic theme, the credit card form appears, but when Falcon theme is running, the form does not appear. On fegge.com you can add a product to the cart and see it. it doesn't give any error on the console. I am sending screenshots in the attachment.
classic-theme
falcon-theme

from falcon.

Oksydan avatar Oksydan commented on September 26, 2024

Hi, it might be related to different template structure. Probably stripe module is replacing content instead of adding multiple PaymentOptions. You have to debug it, I can't help you with that.
Many modules rely in some way on the classic theme structure and do not take different themes into account. This is not the right way to register paymentOptions and this kind of implementation may not work for many themes.

from falcon.

onursonmez avatar onursonmez commented on September 26, 2024

I made a small change to display the stripe credit card form. I am writing this in case others experience this.

I made a small change in themes/falcon/templates/checkout/_partials/steps/payment.tpl

Original code:

<input class="ps-shown-by-js custom-control-input{if $option.binary} binary{/if}" id="{$option.id}" data-module-name="{$option.module_name}" name="payment-option" type="radio" required {if $selected_payment_option == $option.id || $is_free} checked {/if}>

Modified code:

<span>

<input
class="ps-shown-by-js custom-control-input{if $option.binary} binary {/if}"
id="{$option.id}"
data-module-name="{$option.module_name}"
name="payment-option"
type="radio"
required
{if ($selected_payment_option == $option.id || $is_free) || ($payment_options|@count === 1 && $module_options|@count === 1)} checked {/if}
>

<span></span>
</span>

I have not tampered with the stripe module, but I think it creates the credit card form in <span></span>. anyway, I did my job and I am very happy :)

from falcon.

Oksydan avatar Oksydan commented on September 26, 2024

Hi @onursonmez,

the problem has been solved and I am closing this issue.

from falcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.