• Resolved myfitcook

    (@myfitcook)


    Hello,

    I’m currently creating a food delivery website and I’ve hit a blockade with the home page. What I need right now, I think, are conditional statements or events.

    In order to buy our menus, the customer will have to provide their address.

    Here is my website : https://myfitcook.fr/

    The first section shows an address bar, I used “woo delivery area pro” plugin for it.
    For account creation and connection I used another plugin called “login/signup popup” by XootiX which is connected to woocommerce.
    The third section shows 2 menus that rotate every day.

    Here are the conditions that I need :
    – IF the customer didn’t provide an address to the search bar, the “add to cart” button will turn into “insert address”, when the customer clicks on it, they will be redirected to the address bar without a page reload
    – IF the customer provided an address, the button “add to cart” will then be displayed and once they click on it, the register or connection popup will appear, prompting them to log on or register on my website.
    – Once the customer enters their address, the “order” button right next to the search bar will direct them to the third section where they will be able to see the different menus and add the one they desire to the cart.

    The tricky part here is that there are 2 plugins and I will need to link them together along with my homepage, so I assume there’s going to be some back-end coding needed.

    I’m currently using wordpress as a CMS, DIVI theme builder for front-end design and Infomaniak as my webhost.

    Here is a website that does exactly what I need : nestorparis.com

    If you check their website you’ll notice that the “order” button is greyed out and prompts the customer to enter their address.

    Once they do that, they will be able to order their menu and the “order” button will activate a pop-up that allows the customer to either log in or create an account.

    I would greatly appreciate any help or suggestions,

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It sounds like you need some Javascript to make your elements interactive. Scripts have to be tailored to your situation, if it’s different from the norm. You could check that site that works, and see if you can use the script it’s using.

    A plugin that does dynamic content (not the same as interactive content) is If So.

    Thread Starter myfitcook

    (@myfitcook)

    the plugin looks great, i’ll check it out, thanks a lot !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional statements’ is closed to new replies.