About Search Module & Products in Cart

  • Posts: 66
  • Thank you received: 0
10 years 9 months ago #176177

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.2
-- PHP version -- : 5.5.15
-- Browser(s) name and version -- : Chrome

Hi,

I have two important questions regarding below mentioned website where I have installed hikashop business component:
www.pponlinestore.com

1) How do I use the default search module with Hikashop? i.e. I want whenever the users type something into that search box, it should open onto the product page. I understood sometime back that it is to be dealt with the Hikashop Filter Module. But I am unable to know how to do it?

2) When the user adds some products to the cart and closes the browser without finishing, then the products are still their when they reopen the site in the same browser. I hope you get by this what I mean. Browser close and open actions doesn't affect the cart having products, and this should not be happening. It 'SHOULD' affect. The products should not be there in the cart when the user closes the browser and re-opens it.


Can you please guide me on this?

Thanks in Advance

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #176223

Hi,

1) For the search module, you have to use the standard Joomla search module and enable the HikaShop product search plugin, edit the settings of this plugin in order to add the desired search columns (product_name, product_code, etc.)
Then the search will display the products with a link to the product page.

If you want a product listing shown when searching on a product you indeed have to use the filters.

2) This don't seem to be possible.
Joomla create a Cookie in the browser of the users when creating a session, it use this cookie to get the session infos on every pages.
So when you close the browser and open it again, as you still have the cookie, Joomla is able to get back the user session.
In HikaShop as we use the Joomla session, we are not able to know if the loaded session is the one before or after the browser has been closed.

What will be required is a system to delete the cookie created when closing the browser, but I don't think it's possible.

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

  • Posts: 66
  • Thank you received: 0
10 years 9 months ago #176264

Hi Xavier,

Thank you so much for this nice explaination. Point 1 understood fully and thanks for it.

Regarding point 2, please note that the buyer is a 'Guest' user not the registered user. So my client has already raised the issue that even after closing and reopening the browser the previously added products are still there, which obviously shouldn't be happening.

Isn't there any other solution to this? I already turned off the Joomla Cache. I am really tired of thinking about this.

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

  • Posts: 84220
  • Thank you received: 13671
  • MODERATOR
10 years 9 months ago #176289

Why this obviously shouldn't be happening ?
The goal is exactly to keep the products in the cart even if the user reboot the computer so that if the user comes back to the website with a pending cart, he can directly purchase it instead of having to go through the process of readding to his cart all the products he had already added. And thus, this increases the sales for you.
That's how most ecommerce websites work (at least the ones properly done). Take for example Amazon. You'll see the same thing there.
Turning off the cache of Joomla won't help you deactivate that. As Xavier explained, the system is not made to be deactivable and there is no system that I know of which would allow you to remove a user session cookie from the browser when the browser is closing.

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

  • Posts: 66
  • Thank you received: 0
10 years 9 months ago #176351

I am 1000% percent with you Xavier. But when it comes to deal with client's requirements, then I am helpless . .:)

The client purposefully wants it. Even I am opposed to his ideas, but he deliberately wants to clear the cart upon the browser close.

His perception is, when he added few products then after sometime he changed his mind to purchase and close the browser and then after sometime he comes back and add another set of products diferent than previously added.

I hope you get what I mean. Please let me know how if this possible? And if yes, how?

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

  • Posts: 66
  • Thank you received: 0
10 years 9 months ago #176352

magicwords wrote: I am 1000% percent with you Xavier. But when it comes to deal with client's requirements, then I am helpless . .:)

The client purposefully wants it. Even I am opposed to his ideas, but he deliberately wants to clear the cart upon the browser close.

His perception is, when he added few products then after sometime he changed his mind to purchase and close the browser and then after sometime he comes back and add another set of products diferent than previously added.

I hope you get what I mean. Please let me know how if this possible? And if yes, how?


Sorry Nicolas, ......................in my earlier email I referred you as Xavir

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

  • Posts: 84220
  • Thank you received: 13671
  • MODERATOR
10 years 9 months ago #176384

Hi,

The only thing you can do is this: change the "session lifetime" setting of the Joomla configuration.
The user session, and thus the cart, will only be kept if the user displays a page of the website during the session lifetime. If it does after that lifetime has expired, the user will get a new user session and thus a new cart.
So if you have a lifetime of 2 hours and that the user adds stuff to his cart, close his browser and opens it again and got to your website 3 hours after that, he won't get his previous products in his cart.

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

Time to create page: 0.086 seconds
Powered by Kunena Forum