View Single Post
  #82  
Old 09-19-2004, 11:59 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

To change the gift certificate redirect, and to give them a message.

This is 4.0, may be just slightly different for 3.5.x branch.

Open /payment/payment_giftcert.php

Find:

Code:
func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&paymentid=".@$paymentid);

Replace with:

Code:
func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&giftcertapplied=Y");

Open cart.php

After

Code:
require "./auth.php";

Add:

Code:
if ($giftcertapplied) { $smarty->assign("giftcertapplied", "Y"); }

Open skin1/customer/main/checkout.tpl

Find:

Code:
{elseif $payment_methods ne ""}

After put:

{if $giftcertapplied ne ""}

{$lng.txt_giftcertapplied}</p>{/if}

Then add the language variable through your admin

txt_giftcertapplied - Your gift certificate has been applied. Please select a secondary payment method to complete your order.
Reply With Quote