Closed Quetzacoalt91 closed 9 years ago
Hi,
So how should I proceed to fix "URL stored in back_urls array may won't work when URL rewriting is enabled."?
Thanks
Hi @ricardobrito,
You should use the function
Link::getModuleLink($module, $controller = 'default', array $params = array(), $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false)
It will generate the properly URL, regarding your URL rewriting configuration in the BO.
Hi @Quetzacoalt91 ,
I pushed all changes asked.
Just the following issue I didn't do since the new code checks some settings and that would be repetitive inside a foreach:
function getContent(): At the end, you could define an array like this
Please let me know asap if the module needs more changes.
Thanks!
While I am proceeding with the functionnal tests, here are the comments related to the code:
General:
/mercadopago.php:
MERCADOPAGO_
in capital letters.and then foreach on it:
$result
not really useful.hasCredential()
is false, you should not show anything in the payment page (even not an error), because the customer cannot do anything to fix the issue. However, you can display a warning on the back-office.$customer
has multiple assigments, for unrealted data. You should define it this way:$customer
for the object$customer_data
to define your array$customer
withContext::getContext()->customer
. Just reuse the first variable.back_urls
array may won't work when URL rewriting is enabled./controllers/front/notification.php
Mails
TPL files