Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Send or Spend box in customer account info...

Send or Spend box in customer account info...

Started by joyjoy on 2 Feb 2011, 6:55 PM · Views: 1,087

Results 1 to 7 of 7
2 Feb 2011, 6:55 PM
#1
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Send or Spend box in customer account info...

Hi, when a customer has a gv balance available the send or spend box becomes visible.

How do I keep this box visible at all times int he customer account information? Here is the code:

<?php
// only show when there is a GV balance
  if ($customer_has_gv_balance ) {
?>
<div id="sendSpendWrapper">
<?php require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?>
</div>
<?php
  }
?>
<br class="clearBoth" />
</div>

Thank you.

2 Feb 2011, 7:50 PM
#2
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Send or Spend box in customer account info...

Anyone? Help?

2 Feb 2011, 7:53 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,712
Plugin Contributions:
0

Re: Send or Spend box in customer account info...

If the customer does not have a GV balance, why would you want to show the box?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Feb 2011, 7:54 PM
#4
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Send or Spend box in customer account info...

Utilizing it for other information. I don't use the GV feature.

2 Feb 2011, 9:05 PM
#5
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Send or Spend box in customer account info...

Hi, how would I change this so that it is shown all the time? Not only when there is a gv balance?

<?php
// only show when there is a GV balance
  if ($customer_has_gv_balance ) {
?>
<div id="sendSpendWrapper">
<?php require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?>
</div>
<?php
  }
?>
<br class="clearBoth" />
</div>
2 Feb 2011, 10:13 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Send or Spend box in customer account info...

Comment out two lines:
//if ($customer_has_gv_balance ) {

//}```php

<?php // only show when there is a GV balance //if ($customer_has_gv_balance ) { ?> <div id="sendSpendWrapper"> <?php require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?> </div> <?php //} ?> <br class="clearBoth" /> </div> ```
2 Feb 2011, 10:38 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,712
Plugin Contributions:
0

Re: Send or Spend box in customer account info...

joyjoy - Your 2 threads on the same subject have been merged - DO NOT post new threads for the same issue.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.