Jump to content

Trying To Create A Custom Order Template


Recommended Posts

So I'm trying to create a custom order template.


Here's what I have so far:


I created a vpscustom.php and a vpscustom.tpl. When I visit mydomain.com/vpscustom.php I can see what I've done so far.


Inside the tpl, I have this as a test run:


<form method="post" action="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}">

<label>Operating System</label>

<select id="configid1" name="configid[1]" onchange="read_configid1()">

<option value="17" mprice="0" aprice="0">Linux Centos 5.7</option>

<option value="18" mprice="0" aprice="0">Linux Red Hat Enterprise 5.5</option>

<option value="19" mprice="0" aprice="0">Windows 2008 R2 Web 64 bit</option>

<option value="20" mprice="0" aprice="0">Windows 2008 R2 Standard 64 bit</option>


<div class="ordernowbox"><input type="submit" value="{$LANG.ordernowbutton} »" class="ordernow" /></div>



I'm still trying to figure out how to pass the configid[1] value to the url. When I click "order", it takes me to the plain old cart page.


Any pointers?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated