plutten22 Posted January 17, 2017 Share Posted January 17, 2017 (edited) Hi. I have no logo and the text is dubble. I have set up the paypal module and every thing seems to work but in the cart the text "Pay with your card or your PayPal account" is double and there is no image of paypal visa. I attache picture so you can see. Using PS 1.6.1.10 Shop adress: Regards Plutten22 Edited January 17, 2017 by plutten22 (see edit history) Link to comment Share on other sites More sharing options...
Alvaro Tarela Posted January 17, 2017 Share Posted January 17, 2017 There is a "}" character between both texts. So, I think there is a bug in the Paypal template, maybe a double "[spam-filter] in it. You should review the files in the /views folder into the module theme. Link to comment Share on other sites More sharing options...
plutten22 Posted January 17, 2017 Author Share Posted January 17, 2017 Hi Thanks !! Can you tell me what the files name is and where. I lookt around but i cant find it. Plutten22 Link to comment Share on other sites More sharing options...
jetx Posted January 18, 2017 Share Posted January 18, 2017 Hi. I have no logo and the text is dubble. I have set up the paypal module and every thing seems to work but in the cart the text "Pay with your card or your PayPal account" is double and there is no image of paypal visa. I attache picture so you can see. Using PS 1.6.1.10 Shop adress: http://www.cykelstaden.se/cykelstaden2013/ Regards Plutten22 See if it is related to this: https://www.prestashop.com/forums/topic/538444-paypal-update-v31010-paypal-logo-issue/?do=findComment&comment=2380533 Link to comment Share on other sites More sharing options...
plutten22 Posted January 18, 2017 Author Share Posted January 18, 2017 Hi No sorry did not help. If some one can tell me where to find the text in the paypal module. Regards Link to comment Share on other sites More sharing options...
plutten22 Posted January 18, 2017 Author Share Posted January 18, 2017 Can any one help. ? Link to comment Share on other sites More sharing options...
Alvaro Tarela Posted January 19, 2017 Share Posted January 19, 2017 (edited) You have to look into /modules/paypal/views/templates files. And, if you have a theme installed, look for it too into: /themes/_your_theme_/modules/paypal/views/templates Look for a double [spam-filter] or maybe a missing quotation mark (') in the text similar to {l s='Pay with your card or your PayPal account'} Trick: Install (for Windows) NotePad++ and use the "Find in all files" option. Look for the phrase "Pay with your card or your PayPal account" and check the points commented above. Good look! Edited January 19, 2017 by Alvaro Tarela (see edit history) Link to comment Share on other sites More sharing options...
plutten22 Posted January 19, 2017 Author Share Posted January 19, 2017 Hi Alvaro I think i found the file "integral_evolution_payment.tpl" Can you please tell me what i should change. Im not so god at this. {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {*Displaying a button or the iframe*} {if $payment_hss_solution == $smarty.const.PAYPAL_HSS_REDIRECTION} {if $smarty.const._PS_VERSION_ >= 1.6} <div class="row"> <div class="col-xs-12 col-md-6"> <p class="payment_module paypal" > <a href="javascript:void(0)" style="padding-left:17px;" onclick="$('#paypal_form').submit();" id="paypal_process_payment" title="{l s='Pay with your card or your PayPal account' mod='paypal'}"> <img src="{$logos.LocalPayPalHorizontalSolutionPP|escape:'htmlall':'UTF-8'}" alt="{l s='Pay with your card or your PayPal account' mod='paypal'}" height="48px" /> {l s='Pay with your card or your PayPal account' mod='paypal'} </a> </p> </div> </div> {else} <p class="payment_module"> <a href="javascript:void(0)" onclick="$('#paypal_form').submit();" id="paypal_process_payment" title="{l s='Pay with your card or your PayPal account' mod='paypal'}"> <img src="{$logos.LocalPayPalHorizontalSolutionPP|escape:'htmlall':'UTF-8'}" alt="{l s='Pay with your card or your PayPal account' mod='paypal'}" height="48px" /> {l s='Pay with your card or your PayPal account' mod='paypal'} </a> </p> {/if} {else} {if $smarty.const._PS_VERSION_ >= 1.6} <div class="row"> <div class="col-xs-12 col-md-6"> <p class="payment_module"> <iframe name="hss_iframe" width="556px" height="540px" style="overflow: hidden; border: none" class="payment_module"></iframe> </p> </div> </div> {else} <hr style="border-top: 1px dotted rgb(204, 204, 204);" /> <iframe name="hss_iframe" width="556px" height="540px" style="overflow: hidden; border: none" class="payment_module"></iframe> {/if} {/if} <form style="display: none" {if $payment_hss_solution == $smarty.const.PAYPAL_HSS_IFRAME}target="hss_iframe"{/if} id="paypal_form" name="paypal_form" method="post" action="{$action_url|escape:'htmlall':'UTF-8'}"> <input type="hidden" name="cmd" value="_hosted-payment" /> <input type="hidden" name="billing_first_name" value="{$billing_address->firstname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_last_name" value="{$billing_address->lastname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_address1" value="{$billing_address->address1|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_address2" value="{$billing_address->address2|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_city" value="{$billing_address->city|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_zip" value="{$billing_address->postcode|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="billing_country" value="{$billing_address->country->iso_code|escape:'htmlall':'UTF-8'}" /> {if ($billing_address->id_state != 0)} <input type="hidden" name="billing_state" value="{$billing_address->state->name|escape:'htmlall':'UTF-8'}" /> {/if} <input type="hidden" name="first_name" value="{$delivery_address->firstname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="last_name" value="{$delivery_address->lastname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="buyer_email" value="{$customer->email|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="address1" value="{$delivery_address->address1|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="address2" value="{$delivery_address->address2|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="city" value="{$delivery_address->city|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="zip" value="{$delivery_address->postcode|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="country" value="{$delivery_address->country->iso_code|escape:'htmlall':'UTF-8'}" /> {if ($delivery_address->id_state != 0)} <input type="hidden" name="billing_state" value="{$delivery_address->state->name|escape:'htmlall':'UTF-8'}" /> {/if} <input type="hidden" name="address_override" value="true" /> <input type="hidden" name="showShippingAddress" value="true" /> <input type="hidden" name="currency_code" value="{$currency->iso_code|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="invoice" value="{$customer->id|intval}_{$time|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="shipping" value="{$shipping|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="tax" value="{$cart_details.total_tax|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="subtotal" value="{$subtotal|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="custom" value="{$custom|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="notify_url" value="{$notify_url|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="paymentaction" value="sale" /> <input type="hidden" name="business" value="{$business_account|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="template" value="template{$payment_hss_template|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="cbt" value="{l s='Return back to the merchant\'s website' mod='paypal'}" /> <input type="hidden" name="cancel_return" value="{$cancel_return|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="return" value="{$return_url|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="bn" value="{$tracking_code|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="lc" value="{$iso_code|escape:'htmlall':'UTF-8'}" /> </form> {if $payment_hss_solution == $smarty.const.PAYPAL_HSS_IFRAME} {literal} <script type="text/javascript"> $(document).ready( function() { $('#paypal_form').submit(); }); </script> {/literal} {/if} Link to comment Share on other sites More sharing options...
Alvaro Tarela Posted January 19, 2017 Share Posted January 19, 2017 Hi! I've enter your page and I've seen that the problem is not in the code, but in the image. There is a bug in some place and the image path is wrong. In the page, it's trying to load this image: http://www.cykelstaden.se/views/img/default_logos/default_horizontal.png But the correct path should be: http://www.cykelstaden.se/themes/default-bootstrap/modules/paypal/views/img/default_logos/default_horizontal.png or http://www.cykelstaden.se/modules/paypal/views/img/default_logos/default_horizontal.png You can do a "trick" to solve this... - Create a folder in the root called "views". Then, copy the folder "/modules/paypal/views/" into that folder. So, you will have all the content into "http://www.cykelstaden.se/views/" Link to comment Share on other sites More sharing options...
plutten22 Posted January 25, 2017 Author Share Posted January 25, 2017 Hi Alvaro. Thanks for your posting. It helpt me to relise that i hade my site in a sub directory. I have now installed my site to the root directory. I was making a new site so that is why i hade it in a sub directory. Now the text is fine but the image is not showing and shuld not the background be white as well. Please if you can help me with this. I attache a picture so you can see what i meen. Regards / Plutten22 Link to comment Share on other sites More sharing options...
Alvaro Tarela Posted January 25, 2017 Share Posted January 25, 2017 Hi! You are having the same problem with the path image.Why don't you uninstall the PayPal module and try to install again? If you have a problem with the paths, you'd have problems with Paypal payments, I think. Problems I've seen:- Wrong image path for the paypal.png image- There is not a CSS class for showing the "white" background, nor the right arrow.To solve that, you could try to add this code in your /theme/default-bootstrap/css/global.css file: p.payment_module a.paypal:after { display: block; content: "\f054"; position: absolute; right: 15px; margin-top: -11px; top: 50%; font-family: "FontAwesome"; font-size: 25px; height: 22px; width: 14px; color: #777; } p.payment_module a.paypal { background: url(../img/paypal.png) 15px 12px no-repeat #fbfbfb; } Note that you have to put the paypal logo image named paypal.png into the folder: /themes/default-bootstrap/img/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now