PrestaShopCorp / mercadopagobr

2 stars 9 forks source link

Wrong folder breaks the module design #2

Closed Quetzacoalt91 closed 9 years ago

Quetzacoalt91 commented 9 years ago

Hi,

The URLs to images and CSS are not properly set. In example, on my shop on https://localhost/PrestaShop, I'm expected a link like this:

https://localhost/PrestaShop/modules/mercadopago/views/css/mercadopago_core.css

but the current one is:

https://modules/mercadopago/views/css/mercadopago_core.css

In consequence, I get this payment bouton: capture du 2015-03-09 15 48 52 And this settings page: capture du 2015-03-09 15 53 44

Can you please investigate ?

ricardobrito commented 9 years ago

Hi,

Can you give more information? Which browser and prestashop version? I am not able to reproduce it.

Thanks

Quetzacoalt91 commented 9 years ago

Hi,

I'm using Firefox (even if I don't think the browser is not related to this issue), with PrestaShop 1.6.0.11. But I will check that this is not because of a symbolic link.

ricardobrito commented 9 years ago

Ok. If you want to check I have a production url: http://matsuoka.im/prestashop6 or http://matsuoka.im/prestashop5

All of them are working with css. Are you using the most updated version the module?

Also I am using the addCss method:

$this->context->controller->addCss($this->_path.'views/css/mercadopago_core.css', 'all'); $this->context->controller->addCss($this->_path.'views/css/settings.css', 'all');

Quetzacoalt91 commented 9 years ago

Hi @ricardobrito,

I've just found it now works when the SSL option is disabled in my Back-Ofice :)

ricardobrito commented 9 years ago

@Quetzacoalt91

Nice to hear :) Can I close it?

Quetzacoalt91 commented 9 years ago

Hi @ricardobrito,

Unfortunaltely no, because this issue means that brackets are not properly set !

ricardobrito commented 9 years ago

Oh. Now I see. Nice catch :)

ricardobrito commented 9 years ago

Issue fixed. It was missing a closing bracket.