Page refresh

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #13237
    linkout
    Participant

      Hi, nice plugin, i wonder if is it possible to empty cart on page refresh?

      Thanks.

      #13240
      Olly
      Admin & Mod

        please explain to me in which scenario this could possibly be useful

        #13241
        linkout
        Participant

          Avoid user duplicate order, id like to empty the card on page reload/refresh.

          This can be done invoking fake click on the empty card button on page reload?

          #13244
          Olly
          Admin & Mod

            and how would there be a duplicated order, given that after items have been ordered the cart empties automatically …

            #13245
            linkout
            Participant

              Because user will be able to order from different restaurants, so we want to avoid user order stuffs from different restaurants.

              #13246
              Olly
              Admin & Mod

                then you really should be using a multisite setup i would have thought..

                #13247
                linkout
                Participant

                  So ? Any solution ?

                  #13248
                  Olly
                  Admin & Mod

                    sure.
                    if you are dealing with different restaurants, use a multisite setup.
                    that’s what it’s for

                    other than that you could do as you suggested:
                    >This can be done invoking fake click on the empty card button on page reload?

                    though this would probably work, this isn’t really an elegant solution i would think, but if this works for you then that’s fine by me

                    #13249
                    linkout
                    Participant

                      You have other solution except the one i ve told you ?

                      #13250
                      Olly
                      Admin & Mod

                        err, yes, use a multisite setup

                        #13253
                        linkout
                        Participant

                          What do you mean by use a multiple site set-up ? Is a plug in feature ?

                          #13254
                          Olly
                          Admin & Mod
                            #13303
                            Olly
                            Admin & Mod

                              i had a bit of a think.
                              although i still think it would be better to use a multisite setup if you want to have control over different restaurants, you might be able to clear the session as follows in a single site environment…(test this thoroughly though as some unexpected results may occur)

                              you could possible play with some get/post variables to clear the items in a session like so:

                              
                              if (get/post == whatever){
                              unset($_SESSION['wppizza']['items']);
                              }
                              

                              again, the recommended way would be to have a multisite setup, but the above might work for you

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • The topic ‘Page refresh’ is closed to new replies.