You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

33 lines
945 B

<!DOCTYPE html>
<script type="text/javascript">
function get_query_variable(key)
var query =;
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == key){return pair[1];}
function finish_form_with_query_variable(key)
var query_value = get_query_variable(key);
if (query_value != false) {
document.getElementById('post_form_item').value = query_value;
<body onLoad='finish_form_with_query_variable("item")'>
<form id="post_form" method="post" action="">
<input id="post_form_item" name="cart[add][id]" type="hidden" />