You are here:  » Add to my saved list

Support Forum



Add to my saved list

Submitted by italiano28 on Thu, 2008-02-21 06:07 in

Good day David,on this forum i start to learn english :)
I found this javascript : todo.js and todo.html
todo.js code

{code saved}

Todo.html code:

{code saved}

EXAMPLE DEMO here: {link saved}

I try to modify it alone but can t,i am to noob on programming.
It is posible to modify this script to be able to add product url to be saved on click?
So i can integrate it in the product page and may be in the search result.
Thank you.
Regards
Stefano

Submitted by support on Thu, 2008-02-21 08:48

Hello Stefano,

I would try it on the product page first. Obviously just create todo.js as normal. Then in product.php look for:

  require("html/header.php");

..and change this to:

  require("html/header.php");
  print "<script type='text/javascript' src='/todo.js'></script>";

Then lower down, you have:

  require("html/footer.php");

..and change this to:

  print "<script type='text/javascript'> ListToDoItems(); </script>";
  print "<p><a href='javascript:AddItem()'>Add Item</a></p>";
  require("html/footer.php");

Hope this helps!
Cheers,
David.