Ask a Question is enabled, but it is still blank.

Phoca Cart - complex e-commerce extension
User avatar
thethe
Phoca Enthusiast
Phoca Enthusiast
Posts: 60
Joined: 31 Oct 2019, 00:28

Ask a Question is enabled, but it is still blank.

Post by thethe »

Hi Benno or Jan

I tried enabling Ask a question with model popup selected. But I just notice it is blank after I enabled it. What else I need to leave some fields etc.

Thanks
Mang
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9449
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Ask a Question is enabled, but it is still blank.

Post by Benno »

Hi,
there is a js error on your page:
Image

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ask a Question is enabled, but it is still blank.

Post by Jan »

The error says, that the captcha is enabled there but there is no sitekey for reCaptcha - this needs to be added in Options of Phoca Cart.

But not sure if this is the reason for blank page, there can be even some conflict with template, or another JS or CSS library :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
thethe
Phoca Enthusiast
Phoca Enthusiast
Posts: 60
Joined: 31 Oct 2019, 00:28

Re: Ask a Question is enabled, but it is still blank.

Post by thethe »

Looks like there are something error with Template Css. I tried a different template, it works.

Any idea how I can fix these?

Thanks
ML
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ask a Question is enabled, but it is still blank.

Post by Jan »

Hi, the problem is the class .modal in tmpl=component and new bootstrap library.

Image

Some templates including the standard Protostar in Joomla! add "modal" class to view which has no modules (typically a site displayed in modal or popup). This class can be in conflict with new Bootstrap libraries which add display: none value to modal class.

This is why it is hidden, when I change the class, the content is displayed:
Image

So the solution can be overwriting the component.php in your template and removing the modal class or check which bootstrap libraries are loaded and add specific rule for this "modal" window which, like display: block, etc.

Jan
If you find Phoca extensions useful, please support the project
Post Reply