Announcement

Collapse
No announcement yet.

Help, Footer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help, Footer

    Not if you can do.
    In a footer can update the total sum of an order?

  • #2
    Originally posted by quieropaginaweb View Post
    Not if you can do.
    In a footer can update the total sum of an order?
    With a trick you can add a global variable in the footer. TO fill it you need to sc_redir to the same application after calculating and setting the sum in the global.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      It is possible that you indicate to me with an example.
      thanks

      Comment


      • #4
        I assume you have a detail of products with the sum. After adding a product you need to recalculate the sum? That means that you can use the onafterinsert to calculate the sum, i.e. by sql. Then you fill a global variable with this value [glob_myval]=$mysum; The you do a sc_redir(myapp.php). In the footer you need to put the [glob_myval]; Don't forget to use the sc_commit_trans() in the onafterinit, otherwise your insert might fail.
        It's a bit of a puzzle, but it's doable.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          I ask the same can not, image attached.
          I have a multiple form records using ajax Total calculator.
          I do not calculate the cumulative, if can not.
          But as indicated in the foot persent know if can calculate the total cost of your order using ajax.
          Do not insert any record to the end of the order

          thanks
          Attached Files

          Comment


          • #6
            The idea is to pass the value through ajax in real time.
            I've tried putting a variable in the foot only thing that loads when I post the form.
            I wish it was more like a field and it was updated.
            Is that you can not do?

            thanks

            Comment

            Working...
            X