Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
how to re-add "add to cart" like 'reorder' (javascipt function ajax)

This 'REORDER' button is working now,

> html

<div class="button"><a class="skinbtn point2  btn_review_write reorder-btn-nw" href="javascript:go_reOrder({.orderNo})"><em>REORDER</em></a></div>



> javasciprt

function go_reOrder(orderNo){
        $.ajax({
            method: "GET",
            cache: false,
            url: "../order/cart_ps.php",
            data: "mode=reOrder&orderNo="+orderNo,
            success: function (data) {
                if(data.error == 0){
                    //$("#devCartSno").val(data.cartSno);
                    //$("#reOrder").submit();
                    top.location.href = "/order/order.php";
                }
                return false;
            },
            error: function (data) {
                alert(data.message);
            }
        });
    }

and I make 'ADDTOCART' button like this.

<div class="button"><a class="skinbtn point2  btn_review_write reorder-btn-nw" href="javascript:go_addtocart({.orderNo})"><em>ADDTOCART</em></a></div>

What is the JavaScript corresponding to this?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!