white page after contact us

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141749

-- 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.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #141817

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.

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141851

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141860

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.

<?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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 2
  • Thank you received: 0
10 years 9 months ago #141883

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.

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141887

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: 10 years 9 months ago by lacasetta.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141895

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141908

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:

<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
<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: 10 years 9 months ago by lacasetta.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141927

Hi,

You have to replace:

<input type="hidden" name="tmpl" value="<?php echo JRequest::getVar('tmpl'); ?>" />
Into:
<?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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141947

Hi,
yes, now it works fine. Thanl you, Jerome.
So for the other user (Narciso) the final code is:

<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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141954

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
10 years 9 months ago #141957

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: 10 years 9 months ago by lacasetta.

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

  • Posts: 49
  • Thank you received: 2
10 years 9 months ago #142391

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #142395

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Cyngen

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

  • Posts: 49
  • Thank you received: 2
10 years 9 months ago #142402

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #142405

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.117 seconds
Powered by Kunena Forum