System using Wishlist and causing 500 error

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 8 months ago #95283

I upgraded from 2.0.0 to 2.1.1 and everything seemed to go fine, but now, on random occasions, instead of giving the option to "Proceed to checkout" to the user, it instead says "show the wishlists". When the user clicks on that button, it sends them to an error page: www.multifamilyinsiders.com/shop-multifa...showcarts/cart_type-

This behavior seems to be random, and I have wishlists turned off in the following location:

  • Display > Display 'Add to wishlist' button

However, the option "Checkout > Display the convert cart in wishlist button" is neither No or Yes - I am unable to change that setting.



Any help? Right now, the cart is unusable half the time.

Attachments:
The following user(s) said Thank You: mt_robson

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95324

Hi,

There is an error when loading your website.
Have you edited the view "checkout / notice" in HikaShop > Display > Views ?

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 8 months ago #95339

Can you tell me what error you are getting when going on the site? I'm not seeing it.

And no, I have not edited that view.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95343

Address not found.
Firefox can't found the server at the address www.multifamilyinsiders.com/

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 8 months ago #95366

Well... this is frustrating - I clicked on the link you just typed and it comes up fine for me. It loads up when I check with www.webpagetest.org .

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95410

Ok, I can reach your website now.

When clicking on "add to cart" button, the cart type sent is "cart" so it's ok, but the notice view have a "wishlist" type.
I'm not able to reproduce the problem on my end, could you give us a backend and ftp access ?

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 8 months ago #95477

I just messaged you details - thank you!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95482

Hi,

I turned off the option "Enable the wishlists" in Configuration > Features > Wishlists and it seems to be working fine.
Thanks to confirm :)

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 8 months ago #95484

I didn't realize there were so many places wishlists were included in the configuration settings.

I'll let you know if I see the issue again.

Thank you! Can you message me how much I owe you and how to pay?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #95487

For only an option, it's free ;)
Waiting for your feedback.

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 7 months ago #96389

Hi Xavier,
Unfortunately, it looks like the issue is still there. It is random, so it doesn't show up all the time, but it is present.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96437

Hi,

Could you give me a backend access ? (the old one seems to be deleted)

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

  • Posts: 31
  • Thank you received: 0
11 years 7 months ago #96473

Hello,

I assume I have the same problem as follows:

When customers try to add the first article to their cart, they receive this Popup Notice (Screenshot 1).



Clicking on "Display the Wishlists" results in Error 500 (Screenshot 2), clicking on "Continue" instead usually works fine.



In contrary to what brentwilliams2 experienced it is not random with me; from the second article added on it works fine (Screenshot 3).



I (currently) do not need wishlists at all (I hopefully have turned them off correctly in the settings), but I desperately need my cart function working properly :( .

Thx in advance for your help,

Matt B) .


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]
Attachments:

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 7 months ago #96530

Xavier, you should have access again - sorry about that.

And Matt, I think you are actually correct. Now that I look at it again, it might now be 1st time wishlist, 2nd+ time is the proper checkout button.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96534

Hi,

I have applied a patch on your website, thanks to confirm if that have corrected the bug.

The view "checkout / notice" have to be replaced by:

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.1.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
$app = JFactory::getApplication();
$wishlist_id = $app->getUserState( HIKASHOP_COMPONENT.'.wishlist_id','0');
$cart_type = $app->getUserState( HIKASHOP_COMPONENT.'.popup_cart_type','cart');
$app->setUserState( HIKASHOP_COMPONENT.'.popup_cart_type','cart');
?>
<script type="text/javascript">
setTimeout( 'window.parent.hikashop.closeBox()', <?php echo (int)$this->config->get('popup_display_time',2000);?> );
</script>
<div id="hikashop_notice_box_content" class="hikashop_notice_box_content" >
	<div id="hikashop_notice_box_message" >
		<?php
		if($cart_type == 'wishlist'){
			echo hikashop_display(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_WISHLIST'),'success',true);
		}else{
			echo hikashop_display(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'),'success',true);
		}
		?>
	</div>
	<br />
	<div id="hikashop_add_to_cart_continue_div">
		<?php echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.parent.hikashop.closeBox(); return false;','id="hikashop_add_to_cart_continue_button"'); ?>
	</div>
	<?php if($cart_type == 'wishlist'){ ?>
	<div id="hikashop_add_to_cart_checkout_div">
		<?php
		if($wishlist_id != 0)
			echo $this->cartClass->displayButton(JText::_('DISPLAY_THE_WISHLIST'),'wishlist',$this->params,hikashop_completeLink('cart&task=showcart&cart_id='.$wishlist_id.'&cart_type='.$cart_type.$this->url_itemid),'window.top.location = \''.hikashop_completeLink('cart&task=showcart&cart_id='.$wishlist_id.'&cart_type='.$cart_type.$this->url_itemid).'\';return false;');
		else
			echo $this->cartClass->displayButton(JText::_('DISPLAY_THE_WISHLISTS'),'wishlist',$this->params,hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$this->url_itemid),'window.top.location = \''.hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$this->url_itemid).'\';return false;');
		?>
	</div>
	<?php } else{ ?>
	<div id="hikashop_add_to_cart_checkout_div">
		<?php echo $this->cartClass->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'to_checkout',$this->params,hikashop_completeLink('checkout'.$this->url_itemid),'window.top.location=\''.hikashop_completeLink('checkout'.$this->url_itemid).'\';return false;','id="hikashop_add_to_cart_checkout_button"'); ?>
	</div>
	<?php } ?>
</div>

The following user(s) said Thank You: mt_robson

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
11 years 7 months ago #96579

Looking good so far! I'll let you know if I see it again.

Thanks!

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

  • Posts: 31
  • Thank you received: 0
11 years 7 months ago #99896

Hello Xavier,

this also worked out nicely - even "wunderbar" ;).

Your support is just great - thx a lot!

Cheers,

M. :)


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]

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

Time to create page: 0.086 seconds
Powered by Kunena Forum