title: Rebuild checkout page in opencart on passing registered email as querystring to checkout/cart
body: <p>I have a requirement to rebuild checkout page, containing latest abandoned products.</p>
  
  <p>If you are already logged into opencart consumer site and hit this url  - <a href="http://www.example.com/index.php?route=checkout/cart">http://www.example.com/index.php?route=checkout/cart</a>, it will definitely list all products in cart ( that are yet to be purchased).</p>
  
  <p>Without logging into consumer website, if someone directly hits this url - <a href="http://www.example.com/index.php?route=checkout/cart&amp;email=someone@example.com">http://www.example.com/index.php?route=checkout/cart&amp;email=someone@example.com</a> - it will list all products that are yet to be purchased by <code>someone@example.com</code> (also known as <code>abandoned products/cart</code>), provided <code>someone@example.com</code> is a registered user of opencart website.</p>
  
  <p>I want to pass that email address from the url as a querystring to the checkout/cart page and use that to return abandoned products for that customer email.</p>
  
  <p>How can I take that email in checkout/cart page and show the user the abandoned cart products?</p>
  
  <p>I am very much new to <code>opencart</code>, i don't know much about core functionality, so i searched how to achieve this, but landed with extensions ( such as <a href="http://isenselabs.com/products/view/abandonedcarts-proved-recover-abandoned-cart">THIS</a>) that are paid, my requirement is to have it build within URL, that i explained above.</p>
  
  <p><strong>Provided</strong> : <code>Opencart</code> installation is a stock version, no other addon/plugins are installed.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have tried following.</p>
  
  <pre><code>if(isset($this-&gt;request-&gt;get['email'])) 
  { 
      $email = $this-&gt;request-&gt;get['email']; 
      $cart_details = $this-&gt;db-&gt;query("SELECT cart FROM " . DB_PREFIX . "customer c where c.email = '" . $email . "'"); // just for tesing, i will fix this to prevent SQL injection.
      $this-&gt;session-&gt;data['cart']= $cart_details-&gt;row['cart']; 
  }
  </code></pre>
  
  <p>when i do echo with <code>"$cart_details-&gt;row['cart']"</code>, it got required value, but even after setting that value to <code>session</code> checkout page is not rebuilding list of abandoned products.</p>