Skip to main content

white page after contact us

More
12 years 8 months ago #141749 by lacasetta
-- HikaShop version -- : 2.2.3

Hi, today i noticed an issue.
On every product i have the "Contact us for more information".
I you click on it , fill the form and click on "OK" you have a White page... stop
The mails are sent fine.
Just a link to have a test:
www.lacasettabio.it/en/negozio-online/sa...duct/contact/cid-171

my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141817 by Mohamed Thelji
Hi,
The problem is probably coming from your SEF module, can you put it off and try it again ?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141851 by lacasetta
Hi Mohamed,
i tried but it does not work.
Any other tips ?

my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141860 by Jerome
Replied by Jerome on topic white page after contact us
Hi,

The problem is in your view.
The input hidden "tmpl" does not have any value. We patched HikaShop 2.2.3 to not display it like that.
Code:
<?php if(JRequest::getVar('tmpl', '') == 'component') { ?> <input type="hidden" name="tmpl" value="component" /> <?php } ?>
Please check that your view is up to date, if not, you will have to put this code.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141883 by narciso
Replied by narciso on topic white page after contact us
I also have the same problem after updating to 'latest version.
The code I wrote where in which file ..?
<? php if (JRequest :: getVar ('tmpl','') == 'component') {?>
<input type="hidden" name="tmpl" value="component" />
<? php}?>
so I can check.
thanks
Marco

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago - 12 years 8 months ago #141887 by lacasetta
Hi Jerome,
could you tell me where have i to put your code please?
I tried to update newly the hikashop 2.2.3 version also.
But i have the same issue

my site with Hikashop
www.lacasettabio.it
Last edit: 12 years 8 months ago by lacasetta.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141895 by Jerome
Replied by Jerome on topic white page after contact us
Hi,

It is the view "product | contact".
You can override the view or modify the file "components/com_hikashop/views/product/tmpl/contact.php".
Please check if you don't have a view override before editing the core file. Otherwise it won't have any effect.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago - 12 years 8 months ago #141908 by lacasetta
Hi,
I imagine that was that. In fact, I had tried it Yesterday, but it does not work.
So i've tried to change the final part of the code from that:
Code:
<input type="hidden" name="task" value="" /> <input type="hidden" name="ctrl" value="product" /> <input type="hidden" name="redirect_url" value="<?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this->escape($redirect_url); ?>" /> <input type="hidden" name="tmpl" value="<?php echo JRequest::getVar('tmpl'); ?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form> </div>
to that
Code:
<input type="hidden" name="task" value="" /> <input type="hidden" name="ctrl" value="product" /> <?php echo JHTML::_( 'form.token' ); ?> </form> </div>
And now it works.
What do you think about that solution? Is it correct?

my site with Hikashop
www.lacasettabio.it
Last edit: 12 years 8 months ago by lacasetta.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141927 by Jerome
Replied by Jerome on topic white page after contact us
Hi,

You have to replace:
Code:
<input type="hidden" name="tmpl" value="<?php echo JRequest::getVar('tmpl'); ?>" />
Into:
Code:
<?php if(JRequest::getVar('tmpl', '') == 'component') { ?> <input type="hidden" name="tmpl" value="component" /> <?php } ?>
And for the redirect_url line, you can keep it.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141947 by lacasetta
Hi,
yes, now it works fine. Thanl you, Jerome.
So for the other user (Narciso) the final code is:
Code:
<input type="hidden" name="task" value="" /> <input type="hidden" name="ctrl" value="product" /> <input type="hidden" name="redirect_url" value="<?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this->escape($redirect_url); ?>" /> <?php if(JRequest::getVar('tmpl', '') == 'component') { ?> <input type="hidden" name="tmpl" value="component" /> <?php } ?> <?php echo JHTML::_( 'form.token' ); ?> </form> </div>
It's just for my curiosity, but what is that line? because even without it, the site is the same.

my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #141954 by Jerome
Replied by Jerome on topic white page after contact us
Hi,

The line allow the contact form to be in a popup.
I prepared the feature some time ago and I should put the final step of the feature in the next release.
So, you would have an option to say that the contact button in the product page will change the page or open a popup.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago - 12 years 7 months ago #141957 by lacasetta
Great !!!
I'd like to suggest a user check to have a copy of his mail also.
My best regards

my site with Hikashop
www.lacasettabio.it
Last edit: 12 years 7 months ago by lacasetta.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #142391 by Cyngen
Replied by Cyngen on topic white page after contact us
Just a quick recap, since I saw code flying all over, I'm having the same issue in 2.2.3 and would like to implement this fix until it's patched in a release.

Into which module/area do i place the code and also, what is the final code to be added/changed? A before and after is always super helpful. Thanks for some great support.

Kurt

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #142395 by Jerome
Replied by Jerome on topic white page after contact us

Jerome wrote: Hi,

It is the view "product | contact".
You can override the view or modify the file "components/com_hikashop/views/product/tmpl/contact.php".
Please check if you don't have a view override before editing the core file. Otherwise it won't have any effect.

Regards,

All is said :)

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: Cyngen

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #142402 by Cyngen
Replied by Cyngen on topic white page after contact us
That worked great. Will I need to redo that when i Upgrade since I changed the contact.php file? Or will this fix now be incorporated in?

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #142405 by Jerome
Replied by Jerome on topic white page after contact us
Hi,

Jerome wrote: We patched HikaShop 2.2.3 to not display it like that.

Like I said, we patched our HikaShop 2.2.3 so it means that it will be include in the next packages.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.289 seconds
Powered by Kunena Forum