VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Topic started by: on February 23, 2006, 11:23:46 am

Title: [SOLVED] Adding variable in checkout.paymentradio.php
Post by: on February 23, 2006, 11:23:46 am
I'm making a customisation in virtuemart which will allow the end user to enable or disable taking additional values when processing credit cards (such as start date and issue number)

I've come across a problem that I didn;t get in 1.01. I've added the folowing lines in chechout.paymentradio.php

Code: [Select]
<td nowrap width="10%" align="right">

<input type="text" class="inputbox" id="order_payment_issuenumber" name="order_payment_issuenumber" value="<?php if(!empty($_SESSION['ccdata']['order_payment_issuenumber'])) echo $_SESSION['ccdata']['order_payment_issuenumber'?>" />


The code above works fine but the problem is that the new value for order_payment_issuenumber isn't being transfered to ps_checkout.php so when the following code is used
Code: [Select]
$_SESSION['ccdata']['order_payment_issuenumber'] = @$d['order_payment_issuenumber'];

The value in the ccdata array to set to 0
I can't seem to find why the value in the form in page checout.paymentradio.php is being ignored.
Title: Re: [SOLVED] Adding variable in checkout.paymentradio.php
Post by: on February 28, 2006, 08:56:13 am
I was mistaken in beliving that the $d variable was set as a global. I have changed all the references to the $d variable to the $_SESSION["ccdata"]["XXXXXX"] variable in the session and this works fine.

I will post the changes to the forum and request Soreen if he could put it in the next release of VM.