Jump to content

[SOLVED] A strange bug on the Product View - Showing some sort of code.


Recommended Posts

After going through some products on my site to test the various product descriptions, I had noticed a small snippet of code has appeared above the More Info tab. See the picture below:

 

error_zps75e41d14.png

 

After analysing the code, this seems to be what is causing the problem:

<div class="clearfix">
     :before
     :after
</div>
"
<<<<<<< HEAD


"
<form id="paypal_payment_form" action="http://fashionistayorkltd.co.uk/store/modules/paypal/express_checkout/payment.php" title="Pay with PayPal" method="post" data-ajax="false">
	....
</form>


My question is how do I fix this so "<<<<<<< HEAD" doesn't appear?

I did recently update the PayPal module and this seemed to appear after that, although I have done some other updates prior to this so can't guarantee it was the PayPal module that generated this problem.

 

Is it just a file edit that needs to be done or something more complicated?

 

Thank you in advance for your help.

  • Like 1
Link to comment
Share on other sites

it's a part of some module that you use.

unfortunately i dont know which one, so if i were you i will check modules (one by one) used in "productFooter" hook. 

Try to disable modules attached to this hook - then you will see from which module this code appears.

then modify .tpl files of this module, it's probably there.

Link to comment
Share on other sites

After going through some products on my site to test the various product descriptions, I had noticed a small snippet of code has appeared above the More Info tab. See the picture below:

 

error_zps75e41d14.png

 

After analysing the code, this seems to be what is causing the problem:

<div class="clearfix">
     :before
     :after
</div>
"
<<<<<<< HEAD


"
<form id="paypal_payment_form" action="http://fashionistayorkltd.co.uk/store/modules/paypal/express_checkout/payment.php" title="Pay with PayPal" method="post" data-ajax="false">
	....
</form>


My question is how do I fix this so "<<<<<<< HEAD" doesn't appear?

I did recently update the PayPal module and this seemed to appear after that, although I have done some other updates prior to this so can't guarantee it was the PayPal module that generated this problem.

 

Is it just a file edit that needs to be done or something more complicated?

 

Thank you in advance for your help.

 

Hi, 

 

I have the same bug after the update at the last version of prestashop. 1.5.6.1

If I disable the paypal module this "snippet" disappears.

 

How can I solve this bug?

 

Thanks

Angela

Edited by afshop (see edit history)
Link to comment
Share on other sites

I have found it :)

The piece of code is found in this file: /modules/paypal/views/templates/hook/express_checkout_shortcut_form.tpl

 

The <<<<< HEAD code is right at the top of this file.

 

Just download the attachment, unzip and upload to the modules directory and this should fix it :)

Going to inform the creators of this module so they are aware of the problem.

paypal.zip

  • Like 2
Link to comment
Share on other sites

I have found it :)

The piece of code is found in this file: /modules/paypal/views/templates/hook/express_checkout_shortcut_form.tpl

 

The <<<<< HEAD code is right at the top of this file.

 

Just download the attachment, unzip and upload to the modules directory and this should fix it :)

Going to inform the creators of this module so they are aware of the problem.

Perfect!!!!

 

Thanks

Link to comment
Share on other sites

Perfect!!!!

 

Thanks

Hope it worked out ok for you :)

 

thank you for detailed clarification whre the problem was :)

i marked this topic as [solved]

btw. i also updated this module to latest version and.... i haven't got this issue 

Thanks Vekia :)

I wonder what caused it to insert that code if you upgraded it without a problem.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...