Version 2.0.3.1
USA
PayPal Payflow Pro
FileName: pp_payflow.tpl
I am searching for a way to remove the following unnecessary and unwanted fields from the Paypal Payflow Pro Module:
Card Valid From Date:
Card Issue Number:
I found the following support, but it deals with a different Paypal module. The code in my file is different. Can anyone help? http://forum.opencart.com/viewtopic.php?t=19573
I tried placing the <tr style="display: none;"> into the file, but it did nothing.
Here is a snippet that deals with the "card valid from date" in my original and undoctored pp_payflow.tpl file:
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-start-date">
<span data-toggle="tooltip" title="<?php echo $help_start_date; ?>">
<?php echo $entry_cc_start_date; ?></span></label>
<div class="col-sm-3">
<select name="cc_start_date_month" id="input-cc-start-date" class="form-control">
<?php foreach ($months as $month) { ?>
<option value="<?php echo $month['value']; ?>"><?php echo $month['text']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-3">
<select name="cc_start_date_year" class="form-control">
<?php foreach ($year_valid as $year) { ?>
<option value="<?php echo $year['value']; ?>"><?php echo $year['text']; ?></option>
<?php } ?></select>
</div>
</div>
I figured it out on my own. The answer is to simply remove the following code from the pp_payflow.tpl file located in the /catalog/view/theme/*themename*/template/payment
1.
2.
1.
Code: Select all
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-start-date"><span data-toggle="tooltip" title="<?php echo $help_start_date; ?>"><?php echo $entry_cc_start_date; ?></span></label>
<div class="col-sm-3">
<select name="cc_start_date_month" id="input-cc-start-date" class="form-control">
<?php foreach ($months as $month) { ?>
<option value="<?php echo $month['value']; ?>"><?php echo $month['text']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-3">
<select name="cc_start_date_year" class="form-control">
<?php foreach ($year_valid as $year) { ?>
<option value="<?php echo $year['value']; ?>"><?php echo $year['text']; ?></option>
<?php } ?>
</select>
</div>
</div>
Code: Select all
<div class="form-group">
<label class="col-sm-2 control-label" for="input-cc-issue"><span data-toggle="tooltip" title="<?php echo $help_issue; ?>"><?php echo $entry_cc_issue; ?></span></label>
<div class="col-sm-10">
<input type="text" name="cc_issue" value="" placeholder="<?php echo $entry_cc_issue; ?>" id="input-cc-issue" class="form-control" />
</div>
</div>
Who is online
Users browsing this forum: No registered users and 183 guests