Post by Russ_Kipp » Tue Oct 20, 2015 3:48 am

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>

Newbie

Posts

Joined
Fri Oct 16, 2015 3:54 am
Location - USA

Post by Russ_Kipp » Wed Oct 21, 2015 4:18 am

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.

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>
2.

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>

Newbie

Posts

Joined
Fri Oct 16, 2015 3:54 am
Location - USA

Post by GaryJames » Fri Jul 27, 2018 5:36 am

To date I also removed this code in my opencart 3.0.2.0 Paypal payflow pro in the Theme editor editing pp_payflow.twig file. In the theme editor make sure you got to extensions/payment/pp_payflow.twig

User avatar
Newbie

Posts

Joined
Thu Apr 26, 2018 12:32 pm

Who is online

Users browsing this forum: No registered users and 31 guests