[URGENT!] "Show Shipping in the Cart" not working

  • Posts: 27
  • Thank you received: 0
10 years 5 months ago #154975

I want the cart to show the current shipping charges depending on the order ammount. So I have activated the option "Show Shipping in the Cart". The problem is that the charges are shown only from beeing in the last step page of the checkout. When I change the page (e.g. to "home") the shipping charges disappear in the cart again.

How can I reach that the shipping charges in the cart module are steadily visible and up to date (e.g. by increasing the ammount the charges of the next shipping method must be shown)? This is a MUST and VERY IMPORTANT. I hope this is possible in Hikashop which should be.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
10 years 5 months ago #155090

Hi,

I just tested it on my end but when I have the "show shipping in the cart" option turned on in the cart module options, I do see the shipping fees in the cart module regardless of the page where I am once I selected the shipping method in the checkout.
So I cannot reproduce the problem that you're talking about.
However, there is no system yet in place to update the shipping method selected in the cart module when the cart content is changed via the cart/add to cart. Please understand that this option was only added in the last version of HikaShop and that it was not meant to be used like you want.

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

  • Posts: 27
  • Thank you received: 0
10 years 5 months ago #155149

once I selected the shipping method in the checkout

That´s the issue. The shipping charges should be listed in the cart automatically from beginning without getting to the checkout page first. This doesn´t make much sense.

However, there is no system yet in place to update the shipping method selected in the cart module when the cart content is changed via the cart/add to cart.

That´s pity. Could you change it by adding this feature in the next version?

Well, another question:
Where can I add a link to the shipping charges page (file/view -> which line?)

Last edit: 10 years 5 months ago by ff87.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
10 years 5 months ago #155152

It won't be possible for next version of HikaShop as we are already in the release freeze period. Maybe the release after that, but even then, it's really not something easy to do.

If you want to add some custom text in the cart module, you want to edit the file "cart" of the view "product" via the menu Display>Views.
You can add your text at the beginning or at the end for example.

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

  • Posts: 30
  • Thank you received: 0
10 years 5 months ago #156172

Hi Nicholas, I am also having the same issue as user ff87.

I activated the "show shipping in the cart" and it seems to be intermittent.

I tested the following(maybe it helps):
- Logged in, viewed an item and clicked the "add to cart"
- no shipping fees appeared in the cart:


- refreshed several times, no success
- clicked the "proceed to check out"
- Shipping appeared under the Shopping cart
- clicked on the product once again and the shipping fee was still visible:

- clicked "home" and several other pages and shipping fee was still visible.
- added another item to cart (same item - so not I have more than one) and shipping disappeared again.

apparently the shipping fee appears only after clicking proceed to checkout...and disappears again once you update the cart with something.

Hope this helps

Attachments:
Last edit: 10 years 5 months ago by dashmalta.

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

  • Posts: 30
  • Thank you received: 0
10 years 5 months ago #156173

PS: I also cleared the Joomla Cache, browser cache and also tried on different computers (and mobiles), same problem.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #156345

Hello,

apparently the shipping fee appears only after clicking proceed to checkout...and disappears again once you update the cart with something.

You should probably set the "Auto select default shipping and payment methods" option to YES via "Hikashop->System->Configuration->Checkout", so that your cart module will automatically display a shipping method if you're shipping method isn't restricted (on zones for example)

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

  • Posts: 30
  • Thank you received: 0
10 years 5 months ago #156373

In my case I have different rates and discounted rates based on zones, and total cart cost.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #156378

So you'll have to go to your checkout to add your shipping zone so that the shipping system display available shipping methods.

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

  • Posts: 28
  • Thank you received: 0
8 years 7 months ago #233673

Hi,

I'm having exactly the same problem as dashmalta and tried everything you said without any success...

1. I add a product to the cart : NO shipping fees :-(



2. I go to checkout, everything works fine (shipping fees calculation is automatic, because it depends on the total weight)


3. I come back to the cart : Shipping fees are showing ;)


Obvsiously, if the "checkout" page code calculates the shipping fees, it should be possible to calculate it on the cart page. Can you help me on this ? I'm ready to change the code, or write a new one, but I need help on this...

Thanks !

Last edit: 8 years 7 months ago by AntinJH.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
8 years 7 months ago #233695

Hi,

How did you configure your shipping methods ? Could you provide some screenshots ?
Could you also give a link to the shop so that we could reproduce the issue on your website ?

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

  • Posts: 28
  • Thank you received: 0
8 years 7 months ago #234486

Thanks a lot for your answer ;)

Here is how I configured the shipping method :



Here are all my shipping methods (auto selected depending on the weight in KG)



And here is an example for one on my shipping method (bet. 1 and 350kg) :




The website i'm working on is : antin.jonchere.fr

I created visitor access for you, so you can see by yourself. I'll send it to you in a private message.

Thanks !
F

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
8 years 7 months ago #234494

Hi,

Ok, I understand the situation.
What you have is normal since the "cart" link of your menu links to the cart manager. There it displays the cart the way it was set thus far. If shipping was selected before, it displays it, otherwise it doesn't.
The cart in the checkout displays the shipping because the "auto select shipping and payment methods" setting is activated in the HikaShop configuration's Checkout tab. And then, when you go back to the cart manager, you see the shipping since it was auto selected in the checkout.

There are at least 2 things you can do to avoid that:
- link the cart menu link to the checkout instead of the cart manager. That way, you'll always get the shipping auto selected
- change the "after a product is added to the cart" setting of the HikaShop configuration to "always go to the checkout". That way, the shipping will be auto selected directly after the add to cart, and when you'll go to the cart manager, you'll already have the shipping.

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

  • Posts: 28
  • Thank you received: 0
8 years 7 months ago #234588

Hi,

Thanks for your answer. I'm not sure I understand what you mean, since I have a cart module oalways showing at the bottom of my page... The top menu link is not important for me, it's just another way to go to the shopping cart for the customer. The most important car is the the truck shaped that appears on every page.

1. Link the cart menu link to checkout : I't wont solve the problem of the bottom page truck shaped cart, am I wrong ?
2. I could take the customer directly to checkout, but, as we say in France "Le client est roi", "The client is the king".... And in this case, my client what the 'continue shopping" pop-up to appear.

What I have to do :
1. The client arrives on the website and see the categories (OK)
2. He clics on one of the categories and see the products (OK)
3. He clics on "add to cart" and "continue shopping" (OK)
4. The page bottom truck shaped cart shows the products (OK), the prices (OK) AND the updated shipping (NOT OK)

I'm ready to go into code if needed, but I can't tell to my client "the customer have to go to checkout, and then come back to cart to see the updated shipping price".

Could you help me on this ?

Thanks
F

PS : what do you call "cart manager" ? Is this the "cart module" ?

Last edit: 8 years 7 months ago by AntinJH.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
8 years 7 months ago #234600

Hi,

The cart manager is the page that is displayed when you click on the link to go to your cart in your menu. The cart module is what you have at the bottom. So it's two different things, but it's the same, they both don't load the shipping fee if not already auto selected by the checkout.
If you don't want to redirect to the checkout and want the cart module to include the shipping fee automatically, then, the only option left is to add custom code to do that auto selection yourself. In that case, the best is to develop a hikashop plugin and implement the onAfterCartUpdate trigger:
www.hikashop.com/support/documentation/6...ml#onAfterCartUpdate
in that function, you'll have to load the shipping methods available, process them, select the one you want and add it in the user session. You can see an example of such code in the "shipping" function of the file components/com_hikashop/views/product/view.html.php

The following user(s) said Thank You: AntinJH

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

  • Posts: 1119
  • Thank you received: 114
8 years 7 months ago #234643

Hi,

May i ask why this isnt by default and custom plugin is need it?
Usually after buyer adds something to cart he should see default shipping cost there. Most shopping components have it by default, like prestashop and no plugin or whatever need for it.

Thanks

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

  • Posts: 28
  • Thank you received: 0
8 years 7 months ago #234663

I totaly agree with you Kyratn !

Hikashop is great, flexible, and the price is good. The idea of an open code based component is really a good one. But some "main" functions are missing and we must spend a lot of time developping them...

Anyway, I must have this for my client, so I'll do the big jump into code ;)

Thanks Nicolas for your answer. I'll probably need help, but first I'll try it by myself.

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

  • Posts: 1119
  • Thank you received: 114
8 years 7 months ago #234702

AntinJH if you could share that plugin with me i am happy to pay so i wont need to contact my Indian developer friend for it. :)

Thanks

Last edit: 8 years 7 months ago by kyratn.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
8 years 7 months ago #234665

Hi,

Well, it means that it would require loading all the shipping methods and auto select them each time the cart module is displayed. So on all the pages of the website and it would make the page processing slower on your website.

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

  • Posts: 28
  • Thank you received: 0
8 years 7 months ago #234860

Hi Nicolas,

I thought about a simple way to calculate the shipping in my case : since my cart calculate the total weight, and my shipping fees depend only on that weight (as explained before), maybe I could use a kind on "SWITCH" function of the shipping methods like :

For (each_shipping_method_in_the_database)
{
If ($my_total_weight > method->min_weight && total_weight < method->max_weight)
$my_shipping_price = method->price;
}

You know what I mean ? I guess shipping methods are saved somewere in the database ? Could you tell me where and how I can access it ?

Thanks !

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

Time to create page: 0.148 seconds
Powered by Kunena Forum