| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Remove Emailoption Gift Certificate | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Dear Community,
I would like to remove the email option of the gift certificates. Then its only possible to send them by mail. Which lines and files do I need to edit for this? I searched for an existing thread but I couldn't find one. Kind regards
__________________
X-cart Version 4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You need to edit /skin1/modules/Gift_Certificates/customer/giftcert.tpl
Comment out this bit of code and see how it works <tr> <td colspan="3" class="giftcert-delivery-method"> {if $config.Gift_Certificates.enablePostMailGC eq "Y"} <label> <input type="radio" name="send_via" value="E" onclick="javascript: switchPreview();"{if $giftcert.send_via ne "P"} checked="checked"{/if} /> {$lng.lbl_gc_send_via_email} </label> {else} <input type="hidden" name="send_via" value="E" /> {/if} </td> </tr> <tr> <td colspan="3" class="giftcert-subtitle">{$lng.lbl_gc_enter_email}</td> </tr> <tr> <td class="data-name">{$lng.lbl_email}</td> <td class="data-required">*</td> <td><input type="text" name="recipient_email" size="30" value="{$giftcert.recipient_email|escape}" /></td> </tr>
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the information.
There is a major problem tho. If i comment it out, it removes the email option from the page, but its still enabled. If you dont tag the send by Mail radiobutton, then it sends it to an empty email adress. I want the default to be Mail and not e-mail. Anything that can be done about that? Kind regards
__________________
X-cart Version 4.3 |
|||||||
#4
|
|||||||
|
|||||||
![]() Nevermind,
I fixed the problem by changing: Code:
into: Code:
I changed eq at the Mail option in ne ofcourse. In that way, the Mail option is the default option now. Kind regards.
__________________
X-cart Version 4.3 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|