Hi there. I have a cart using the old JCart PHP Cart (it's been a little updated over the years to be cleaner and more modern) and I already have a function, which automatically saves both the items of the Cart in an Array AND the items of the Cart in JSON built in - we even have those saving to a table in mysql.
I want to make a Re-Order button that "gets" these items (from a record) from that table and then re-adds/inserts them into my cart. There's alreay AJAX for add_item and add - and there's a get_contents function that I'm pretty sure can be used to loop through the items and add them to the Cart - I'm just not sure how to do this exactly.
I want this done asap because I know that someone good with Arrays and Ajax can do it in an hour easily - because I've had similar stuff done before.
15 freelancere byder i gennemsnit $106 timen for dette job
I am expert in ajax and php. I have understood your requirements to create a reorder button to fetch json values from DB and add those items in cart using ajax. I am ready to start now.