Checkout Issues

  • Posts: 21
  • Thank you received: 0
13 years 7 months ago #12992

I'm almost there. I just have a few issues with the checkout.

Just a little information first. I'm using PayPal for payments. I have sales tax set up for Maryland.The checkout workflow is as follows:

cart_coupon,login,address,shipping_payment_confirm_cart_coupon_status_fields,end

The issues:

1. When you go to checkout, sales tax shows on the first view of the cart. This happens if you are not logged in yet, also when you are logged in with an address outside of Maryland. It does correct itself on the final total, but I would like it not to show up on the first view.

2. When you go to PayPal, there is an error that comes up --PHPMAILER_RECIPIENT_FAILED ----@----.com--. I do however receive the notice of an order for the administrator. Is this a Joomla issue or do I need to change something in HikaShop?

3. If you get to PayPal and use the link to return to the site without completing the order, the cart is empty when you get back. Is there any way to keep the items in the cart?

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

  • Posts: 52
  • Thank you received: 0
13 years 7 months ago #12993

Sub-R wrote:


1. When you go to checkout, sales tax shows on the first view of the cart. This happens if you are not logged in yet, also when you are logged in with an address outside of Maryland. It does correct itself on the final total, but I would like it not to show up on the first view.

same problem here. of course it wasn't a problem until I tried to delete new zealand or whatever was the "main tax zone", now no matter if I set it to iceland it still shows tax on checkout until they login. oddly, I am also making the site for a maryland company, and that part works correctly. =)

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12994

Hi,

1. You need to set the option "main tax zone" in your configuration of hikashop. By default, before the user enters his address, the taxes are calculated based on that zone.

2. That indeed sounds like a problem of your email settings in joomla. No one else reported such error for hikashop yet.

3. The cart is actually emptied before going to paypal. If you don't want that, you will have to modify the code of hikashop. More precisely, in the function save of the file administrator/components/com_hikashop/classes/order.php

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

  • Posts: 52
  • Thank you received: 0
13 years 7 months ago #12995

hi nicolas,

I have tried setting the "main tax zone" to an unpublished zone and to one that has no tax and yet it continues to show the maryland tax rate on the category listing and in the cart. I have also set the "show taxed prices" to "No Tax", again it still shows the prices with the maryland rate.

do you think it could have anything to do with this:
www.hikashop.com/support/forum/4-how-to/...t.html?lang=en#12323 ?


p.s. it was when I tried to delete the one it was initially set to by default on install that this happened =(


update: I logged in in frontend as a different non-maryland user then logged out and now it is not happening anymore. weird.

Last edit: 13 years 7 months ago by dontflinch.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12996

Yes, it could be your problem. Please check that code and change it if it needs to be changed.

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

  • Posts: 21
  • Thank you received: 0
13 years 7 months ago #13225

Thanks Nicolas.

1. I figured out the main tax zone, so that's good.
2. I think I figured out the email issue. I'm on a temporary site and I don't think my email server allows mail to be sent from another server.
3. Will changing the code keep items in the cart even after a purchase, or will it know that the order was paid for through PayPal and clear the cart? Could you let me know exactly what code I need to change.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13239

You have in that file the code:
if(!empty($order->cart->cart_id)){
$cartClass = hikashop::get('class.cart');
$cartClass->delete($order->cart->cart_id);
}
which removes the cart when an order is created. If you remove the code, the cart won't be emptied.

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

  • Posts: 21
  • Thank you received: 0
13 years 7 months ago #13276

I removed the code and like you said, the cart does not clear. Is there any way to make it clear after a purchase? When you return to the site after completing the purchase, you return to a thank you page. Is there any way to incorporate that into the code so that it recognizes the purchase and clears the cart at that point?

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13315

You can edit the file after_end via the menu Display->Views and add the code:
$cartClass = hikashop::get('class.cart');
$cartClass->resetCart();

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

  • Posts: 21
  • Thank you received: 0
13 years 7 months ago #13322

That did the trick. Thank you so much for all the help Nicolas. I'm not going to say that I'll never have any more questions, but I think I have all of my issues resolved.

Thanks again.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum