View Single Post
  #371  
Old 04-11-2005, 11:50 PM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Hi Jon

Code:
I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.

Have you sorted this yet jon, when i'am taken back to ezrecommends when using gift certificate i need to have a message to let people know they are using a secondary payment method. I have tried this fix below but now message.

Code:
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.

Any news Jon

Thanks again
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote