Welcome, Guest
Username Password: Remember me

MobileJoomla break tienda shopping cart paypal submit
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: MobileJoomla break tienda shopping cart paypal submit

MobileJoomla break tienda shopping cart paypal submit 12 years, 2 months ago #7283

  • m.iannozzi
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hello,
I have installed mobilejoomla in my site where I'm using tienda shopping cart.
When I try to pay and order with paypal it break payment validation process and in FF Error Java console I find:

"Error: illegal characterSource File: www.xxxxx.com/plugins/system/mtupgrade/mootools.jsLine: 1, Column: 112Source Code: 10px;\"><b>Checkout Amount:<\/b> \u20ac297.50<\/div>\n <img alt=\"\" border=\"0\" src="/\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\"\"1\"\"1\"" \ />\n  <div style=\"clear: both;\"><\/div>\n"

This is because seems that with joomlamobile installed returned html content is not correct infact html appears like below ( In RED color where FF show illegal character error)
 <img alt=\"\" border=\"0\" src="/\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\"\"1\"\"1\"" \ />
insted of
<src=\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\" width=\"1\" height=\"1\" \/>
So HTML is breaked and return JS error.

I'm using
Joomla 1.5.25
MobileJoomla 1.0RC6
Tested on Iphone4 IOS5 and FF with IphoneSwitchUserAgent to Iphone 3.0

MJoomla is configured to not remove unsupported tags but problem still also with option enabled.
I have search on forum for same problem without results.

If you need to check error on my site I can send data as private message/email with FTP account.

Thanks a lot for any feedback
Last Edit: 12 years, 2 months ago by m.iannozzi.

Re: MobileJoomla break tienda shopping cart paypal submit 12 years, 2 months ago #7367

  • m.iannozzi
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I confirm bug. Is necessary to disable image resize to make it works.

Re: MobileJoomla break tienda shopping cart paypal submit 12 years, 2 months ago #7461

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Could you send URL of your site?

Re: MobileJoomla break tienda shopping cart paypal submit 12 years, 2 months ago #7500

  • m.iannozzi
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi,
I have solved problem by setting iPhone configuration tab "Image adaptation method" in "Don't rescale".
Infact joomlamobile parsing the return back html row code to search image tag to rescale and break HTML code.
Joomla mobile break below tag (as you can see is not a properly HTML code)
<img alt=\"\" border=\"0\" src="/\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\"\"1\"\"1\"" \ />
instead of
<img alt=\"\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\" width=\"1\" height=\"1\" \/>
I don't need to rescale any image because I have resized image properly for mobile template.
Now all works good.

When user click on paypal buttton on tienda it return a row code like below.
MobileJoomla seach for image tag to rescale it and break code.


{"msg":"\n<form action='https:\/\/www.paypal.com\/cgi-bin\/webscr' method='post'>\n\n<!--USER INFO-->\n <input type='hidden' name='first_name' value=''>\n <input type='hidden' name='last_name' value=''>\n <input type='hidden' name='email' value=' This e-mail address is being protected from spambots. You need JavaScript enabled to view it '>\n\n<!--SHIPPING ADDRESS PROVIDED-->\n <input type='hidden' name='address1' value=''>\n <input type='hidden' name='address2' value=''>\n <input type='hidden' name='city' value=''>\n <input type='hidden' name='country' value=''>\n <input type='hidden' name='state' value=''>\n <input type='hidden' name='zip' value=''>\n\n <!--CART INFO AGGREGATED-->\n <!--ORDER INFO-->\n <input type='hidden' name='custom' value='6'> \n <input type='hidden' name='amount_1' value='38.00'>\n <input type='hidden' name='item_name_1' value='Locanda del Casale - Mese dedicato |Codice Prodotto: TO.130375)'>\n <input type='hidden' name='item_number_1' value='10'>\n <input type='hidden' name='quantity_1' value='2'> \n \n <input type='hidden' name='tax_cart' value='0.00'> \n <input type='hidden' name='handling_cart' value='0'>\n <input type='hidden' name='discount_amount_cart' value='0.00'> \n <input type=\"hidden\" name=\"upload\" value=\"1\">\n <input type='hidden' name='invoice' value='6'>\n\n <div id=\"payment_paypal\">\n <div class=\"prepayment_message\">\n Per favore clicca sul bottone di Paypal per completare il tuo acquisto. Verrai indirizzato sulla pagina di Paypal dove non hai necessit\u00e0 di avere un account e puoi scegliere di usare la tua carta di credito. Grazie ancora per il tuo ordine! <\/div>\n <div class=\"prepayment_action\">\n <div style=\"float: left; padding: 10px;\"><input type=\"image\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/x-click-but20.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\" \/><\/div>\n <div style=\"float: left; padding: 10px;\"><b>Checkout Amount:<\/b> \u20ac76.00<\/div>\n <img alt=\"\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\" width=\"1\" height=\"1\" \/>\n <div style=\"clear: both;\"><\/div>\n <\/div>\n <\/div>\n \n<!--PAYPAL VARIABLES-->\n\t<input type='hidden' name='cmd' value='_cart'>\n\t<input type='hidden' name='rm' value='2'>\n\t<input type=\"hidden\" name=\"business\" value=\" This e-mail address is being protected from spambots. You need JavaScript enabled to view it \" \/>\n\t<input type='hidden' name='return' value='http:\/\/127.0.0.1\/index.php?option=com_tienda&view=checkout&task=confirmPayment&orderpayment_type=payment_paypal&paction=display_message&checkout=1'>\n\t<input type='hidden' name='cancel_return' value='http:\/\/127.0.0.1\/index.php?option=com_tienda&view=checkout&task=confirmPayment&orderpayment_type=payment_paypal&paction=cancel'>\n\t<input type=\"hidden\" name=\"notify_url\" value=\"http:\/\/127.0.0.1\/index.php?option=com_tienda&view=checkout&task=confirmPayment&orderpayment_type=payment_paypal&paction=process&tmpl=component\" \/>\n\t<input type='hidden' name='currency_code' value='EUR'>\n\t<input type='hidden' name='no_note' value='1'>\n<\/form>\n","error":"","anchor":"","summary":"<div class=\"cartitems\">\n\t<div class=\"adminlist\">\n\t\t<div id=\"cartitems_header\" class=\"floatbox\">\n\t\t\t<span class=\"left50\">Prodotto<\/span>\n\t\t\t<span class=\"left20 center\">Quantit&agrave;<\/span>\n\t\t\t<span class=\"left30 right\">Totale<\/span>\n\t\t<\/div>\n \n <div class=\"row0 floatbox cart_item_list\">\n <div class=\"left50\">\n \t<div class=\"inner\">\n\t <a href=\"\/component\/tienda\/products\/view\/10.html?controller=products\">\n\t Locanda del Casale - Mese dedicato\t <\/a>\n\t <br\/>\n\t \n\t \t \n\t \t <b>Codice Prodotto:<\/b>\n\t TO.130375\t <br\/>\n\t \t\n\t \t Prezzo:\n\t \u20ac38.00 \n\t \n\t \n\t\t\t\t\t\t \n\t\n\t \t<\/div> \n <\/div>\n <div class=\"left20 center\">\n 2 \n <\/div>\n <div class=\"left30 right\">\n \t<div class=\"inner\">\n \t\t\u20ac76.00 \t<\/div>\n <\/div>\n <\/div>\n \t<div class=\"marginbot\"><\/div>\n <div class=\"marginbot\"><\/div>\n \n \n <\/div>\n \n \n \n <div class=\"marginbot\"><\/div>\n <div class=\"floatbox\">\n \t<span class=\"left50 header\">\n \t\t<span class=\"inner\">\n \t\t\tTotale \t\t<\/span>\n <\/span>\n <span class=\"left50 right\">\n \t<span class=\"inner\">\n \t\t\u20ac76.00 \t<\/span>\n <\/span>\n <\/div>\n<\/div>\n"}
Last Edit: 12 years, 2 months ago by m.iannozzi.
The following user(s) said Thank You: Barnabas

Re: MobileJoomla break tienda shopping cart paypal submit 12 years, 1 month ago #7775

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Does the issue arise in 1.0 Stable?

Re: MobileJoomla break tienda shopping cart paypal submit 12 years, 1 month ago #7890

  • m.iannozzi
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Yes. I have update today to latest version but problem still if I enable image resize. All works good with "Don't rescale" setting. 
  • Page:
  • 1
Time to create page: 0.18 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.