sharingsunshine Posted December 18, 2013 Share Posted December 18, 2013 Hello, I am using 1.5.6.1 and the Warehouse theme and I am not sure why the "Other Payment Methods" button is being displayed when I only have one form of payment on the 1 page checkout page. Is there a way to remove that button so the customer won't get confused. Or at the least, is there a place to change the caption below the button? Thanks, Randal Link to comment Share on other sites More sharing options...
vekia Posted December 18, 2013 Share Posted December 18, 2013 hello can you share url, i don't know this theme so i have to check it first (i will create test account) Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 18, 2013 Author Share Posted December 18, 2013 Hi, Thanks for being willing to look at this issue. The url is http://198.1.75.97/~bensherb/ the site isn't propogated yet to the domain name. Just put anything in the cart and when you choose credit card payment it will show that button at the end of the process Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 18, 2013 Author Share Posted December 18, 2013 will you still be able to help? Link to comment Share on other sites More sharing options...
vekia Posted December 18, 2013 Share Posted December 18, 2013 i missed your reply, sry ok i see it it's a part of module .tpl file (probably payment.tpl) can you show contents of this module file? (im asking about it because yo use some non-default payment module) also, if in the future you will use more payment methods this button will be more than necessary (what if someone will want to use other payment method?) Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 18, 2013 Author Share Posted December 18, 2013 if something changes we can always uncomment the code but likely this will be all we will be using. <!-- * idnovate.com * Credit Card Offline Payment Module --> {if $currency_authorized} <p class="payment_module"> <a href="{if version_compare($smarty.const._PS_VERSION_,'1.5','<')}{$cc_path_ssl}payment.php{else}{$link->getModuleLink('creditcardofflinepayment', 'payment', [], true)}{/if}" title="{l s='Pay with credit card' mod='creditcardofflinepayment'}"> <img src="{$cc_path}creditcardofflinepayment.jpg" alt="{l s='Pay with credit card' mod='creditcardofflinepayment'}" width="86px" height="57px"/> {l s='Pay with credit card' mod='creditcardofflinepayment'} </a> </p> {else} <p class="payment_module"> <a href="#" style="cursor:not-allowed;" title="{l s='Pay with credit card' mod='creditcardofflinepayment'}"> <img src="{$cc_path}creditcardofflinepayment.jpg" alt="{l s='Pay with credit card' mod='creditcardofflinepayment'}" /> {l s='Payment with credit card is not enabled with this currency' mod='creditcardofflinepayment'} </a> </p> {/if} Link to comment Share on other sites More sharing options...
vekia Posted December 18, 2013 Share Posted December 18, 2013 the code isn't here, you've got any other .tpl files in module directory? Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 18, 2013 Author Share Posted December 18, 2013 in the templates file of the offline payment module there is a front and hook folder which would it be in? Link to comment Share on other sites More sharing options...
vekia Posted December 19, 2013 Share Posted December 19, 2013 it should be in /front/ but... everything depends on module developer btw. this module is free? if so i can check it on my own Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 19, 2013 Author Share Posted December 19, 2013 it's not free. Here is the other front one <!-- * idnovate.com * Credit Card Offline Payment Module --> <script type="text/javascript"> {literal} function procesando() { $('*').css('cursor', 'wait'); document.getElementById('buttons').style.display = "none"; document.getElementById('procesando').style.display = "block"; } {/literal} </script> {if !$mobile_device} <link rel="stylesheet" type="text/css" href="{$cc_path}js/shadowbox.css"> <script type="text/javascript" src="{$cc_path}js/shadowbox.js"></script> <script type="text/javascript"> {literal} Shadowbox.init(); {/literal} </script> {/if} {capture name=path}{l s='Credit card payment' mod='creditcardofflinepayment'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h2>{l s='Order summary' mod='creditcardofflinepayment'}</h2> {assign var='current_step' value='payment'} {include file="$tpl_dir./order-steps.tpl"} {if $nbProducts <= 0} <p class="warning">{l s='Your shopping cart is empty.' mod='creditcardofflinepayment'}</p> {else} <h3>{l s='Credit card payment' mod='creditcardofflinepayment'}</h3> <form action="{if version_compare($smarty.const._PS_VERSION_,'1.5','<')}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}{else}{$link->getModuleLink('creditcardofflinepayment', 'validation', [], true)}{/if}" method="post" id="creditForm" name="creditForm" class="std"> <fieldset> <input type="hidden" name="id_currency" value="{$id_currency|escape:'htmlall':'UTF-8'}"/> <div id="payment_form"> <h3 style="align: center;text-align: center;"> {l s='You can use the following card issuers:' mod='creditcardofflinepayment'} <br /><br /> {foreach from=$issuers item=issuer} {if $issuer.authorized} <img src="{$cc_path}img/{$issuer.imgName|escape:'htmlall':'UTF-8'}" /> {/if} {/foreach} </h3> {if $errores|@count > 0} <div class="alert error" id="errorDiv"> <img alt="{l s='Error' mod='creditcardofflinepayment'}" src="{$cc_path}img/forbbiden.gif" /> {l s='There are errors' mod='creditcardofflinepayment'}: <ol> {foreach from=$errores item=error} <li>{$error|escape:'htmlall':'UTF-8'}</li> {/foreach} </ol> </div> {/if} {if $requireIssuerName} <p class="required text"> <label for="card[name]"> {l s='Card holder name' mod='creditcardofflinepayment'} {if $requiredIssuerName} <sup>*</sup> {/if} </label> <input type="text" maxlength="150" name="card[name]" id="cardName" value="{if isset($card.name)}{$card.name|escape:'htmlall':'UTF-8'}{else}{$cookie->customer_firstname|escape:'htmlall':'UTF-8'} {$cookie->customer_lastname|escape:'htmlall':'UTF-8'}{/if}"/> </p> {/if} {if $requireCedule} <p class="required text"> <label for="card[cedula]"> {l s='ID Card/Passport' mod='creditcardofflinepayment'} {if $requiredCedule} <sup>*</sup> {/if} </label> <input type="text" name="card[cedula]" id="cardCVC" value="{if isset($card.cedula)}{$card.cedula|escape:'htmlall':'UTF-8'}{/if}" size="20" maxlength="20"/> </p> {/if} {if $requireAddress} <p class="required text"> <label for="card[address]"> {l s='Address' mod='creditcardofflinepayment'} {if $requiredAddress} <sup>*</sup> {/if} </label> <input type="text" name="card[address]" id="cardAddress" value="{if isset($card.address)}{$card.address|escape:'htmlall':'UTF-8'}{/if}" size="20" maxlength="255"/> </p> {/if} {if $requireZipCode} <p class="required text"> <label for="card[zipcode]"> {l s='Zip code' mod='creditcardofflinepayment'} {if $requiredZipCode} <sup>*</sup> {/if} </label> <input type="text" name="card[zipcode]" id="cardZipCode" value="{if isset($card.zipcode)}{$card.zipcode|escape:'htmlall':'UTF-8'}{/if}" size="5" /> </p> {/if} {if $requireCardNumber} <p class="required text"> <label for="card[number]"> {l s='Credit card number' mod='creditcardofflinepayment'} {if $requiredCardNumber} <sup>*</sup> {/if} </label> <input type="text" name="card[number]" id="cardNumber" value="{if isset($card.number)}{$card.number|escape:'htmlall':'UTF-8'}{/if}" size="20" maxlength="16" /> </p> {/if} {if $requireCVC} <p class="required text"> <label for="card[cvc]"> {l s='CVC (card security code)' mod='creditcardofflinepayment'} {if $requiredCVC} <sup>*</sup> {/if} </label> <input type="text" name="card[cvc]" id="cardCVC" value="{if isset($card.cvc)}{$card.cvc|escape:'htmlall':'UTF-8'}{/if}" size="4" maxlength="4"/> {if !$mobile_device} <a href="{$cc_path}img/CVC.png" alt="{l s='Where is the CVC number?' mod='creditcardofflinepayment'}" class="thickbox shown" rel="shadowbox"> <img style="vertical-align:middle" src="{$cc_path}img/help.png" width="16" height="16" alt="{l s='Where is the CVC number?' mod='creditcardofflinepayment'}"/> </a> {/if} </p> {/if} {if $requireIssuer} <p class="required text"> <label for="card[issuer]"> {l s='Card issuer' mod='creditcardofflinepayment'} {if $requiredIssuer} <sup>*</sup> {/if} </label> <select name="card[issuer]"> <option value="" {if isset($card.issuer)}{if $card.issuer == ''}selected="selected"{/if}{/if}></option> {foreach from=$issuers item=issuer} {if $issuer.authorized} <option value="{$issuer.name}" {if isset($card.issuer)}{if ($card.issuer == $issuer.name)}selected="selected"{/if}{/if}>{$issuer.name}</option> {/if} {/foreach} </select> </p> {/if} {if $requireExpiration} <p class="required text"> <label> {l s='Card expiry date' mod='creditcardofflinepayment'} {if $requiredExpiration} <sup>*</sup> {/if} </label> <select name="card[mes_caducidad]"> <option value="" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == ''}selected="selected"{/if}{/if}></option> <option value="01" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '01'}selected="selected"{/if}{/if}>01</option> <option value="02" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '02'}selected="selected"{/if}{/if}>02</option> <option value="03" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '03'}selected="selected"{/if}{/if}>03</option> <option value="04" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '04'}selected="selected"{/if}{/if}>04</option> <option value="05" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '05'}selected="selected"{/if}{/if}>05</option> <option value="06" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '06'}selected="selected"{/if}{/if}>06</option> <option value="07" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '07'}selected="selected"{/if}{/if}>07</option> <option value="08" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '08'}selected="selected"{/if}{/if}>08</option> <option value="09" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '09'}selected="selected"{/if}{/if}>09</option> <option value="10" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '10'}selected="selected"{/if}{/if}>10</option> <option value="11" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '11'}selected="selected"{/if}{/if}>11</option> <option value="12" {if isset($card.mes_caducidad)}{if $card.mes_caducidad == '12'}selected="selected"{/if}{/if}>12</option> </select> <select name="card[ano_caducidad]" width="150px"> <option value="" {if isset($card.ano_caducidad)}{if $card.ano_caducidad == ""} selected="selected"{/if}{/if}></option> {*Function to get a select with the current year and 6 more *} {for $i=$smarty.now|date_format:"%Y" to ($smarty.now|date_format:"%Y")+5} <option value="{$i}" {if isset($card.ano_caducidad)}{if $card.ano_caducidad == $i}selected="selected"{/if}{/if}>{$i}</option> {/for} </select> </p> {/if} <br /> <b>{l s='Confirm your order of' mod='creditcardofflinepayment'} <b class="price">{convertPriceWithCurrency price=$total currency=$currency}</b> {l s='by clicking the button "Confirm my order":' mod='creditcardofflinepayment'}</b> <p class="cart_navigation" id="buttons" style="padding-bottom: 0px"> <a href="{$link->getPageLink('order', true, NULL, "step=3")}" class="button_large hideOnSubmit">{l s='Other payment methods' mod='creditcardofflinepayment'}</a> <input type="submit" name="paymentSubmit" value="{l s='Confirm my order' mod='creditcardofflinepayment'}" class="exclusive hideOnSubmit" onclick="procesando();" /> </p> <p id="procesando" style="text-align:center;font-weight:bold;display:none;margin:20px 0 0 0;"><i>{l s='Processing...' mod='creditcardofflinepayment'}</i> <img src="{$cc_path}img/loadingAnimation.gif" width="208" height="13" vertical-align="middle" /> </div> </fieldset> </form> {/if} can I PM you the login details? Link to comment Share on other sites More sharing options...
Recommended Posts