[Skip to main content](#vessel-content)

#   mini mode failed and page reloaded problem

##

- **[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")**
- [![dalusoha's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37326-dalusoha "View dalusoha's Profile") Topic Author
- [ Offline](/forum/user/37326-dalusoha)

Less More

- Posts: 31
- Thank you received: 0
-
-

11 years 4 months ago [\#205270](#205270) by [dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")  *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205270 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")* was created by *[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5
-- Browser(s) name and version -- : firefox 38.05

I have a popular products module and a cart module on the frontpage. The cart module was set to be "mini" mode. There are two problems. First, when i click the "add to cart" button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ?
Thanks in advance..

- [ ![snap001.jpg](/forum/attachment/24962) ](/forum/attachment/24962 "snap001.jpg") [ ](/forum/attachment/24962?download=1 "snap001.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 4 months ago [\#205278](#205278) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205278 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")*

Hi,

1. That's because you've activated the "Use AJAX when possible for add to cart buttons" setting of the HikaShop configuration and you have several cart modules and the system randomly picks another one that the one you have there for the refresh.
So you have several solutions:
- remove the other cart modules if you don't use them
- configure them all to be mini carts
- turn of that AJAX option

2. The operations in the cart module are not ajax. So the whole page is reprocessed and your browser put you back at the top. That's the way it is and the normal behavior.
What you could try is to edit the file "cart" of the view "product" via the menu Display&gt;Views and change the line: Code:

&lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;"/&gt;

by: Code:

&lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;#hikashop_cart"/&gt;

That should hopefully force the browser to scroll down to the cart module when displaying the page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")**
- [![dalusoha's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37326-dalusoha "View dalusoha's Profile") Topic Author
- [ Offline](/forum/user/37326-dalusoha)

Less More

- Posts: 31
- Thank you received: 0
-
-

11 years 4 months ago [\#205380](#205380) by [dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")  Replied by *[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")* on topic *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205380 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")*

Dear Sir:
I changed the code as you suggested, but no luck. It still jump to the top of the page, not stay in the position of cart module. Any idea ? You can try it , i have changed the code already.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 4 months ago [\#205445](#205445) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205445 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")*

Hi,

That modification was for the normal mode. With the mini cart mode that you have displayed, there is no quantity change or delete possible for a product in the cart module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")**
- [![dalusoha's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37326-dalusoha "View dalusoha's Profile") Topic Author
- [ Offline](/forum/user/37326-dalusoha)

Less More

- Posts: 31
- Thank you received: 0
-
-

11 years 4 months ago [\#205478](#205478) by [dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")  Replied by *[dalusoha](/forum/user/37326-dalusoha "View dalusoha's Profile")* on topic *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205478 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")*

Dear Sir:
1. I have changed to normal mode, but after deleting or changing products, it still not remain in the same position (although it did not jump to the top, it now jumped to middle of the cart module and we can only see half of the cart now and still need to scroll down .....)
2. Although in normal mode, the change of cart module did not jump to the top, but when i clicked "add to cart" button in the popular products module beside the cart module, it still jump to the top. This method seemed not to resolve the reload problem resulting from the action from another module, any method to resolve that ?

Really thank you for kindly reply.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 4 months ago [\#205600](#205600) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mini mode failed and page reloaded problem](/forum/27-checkout/877625-mini-mode-failed-and-page-reloaded-problem#205600 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox 38.05  I have a popular products module and a cart module on the frontpage. The cart module was set to be &quot;mini&quot; mode. There are two problems. First, when i click the &quot;add to cart&quot; button on popular product module, the cart module turned to be a complete display, not a mini mode. Secondly, any time i performed any actions on the cart module ( such as update or change the product amounts or delete the products in the cart....), the page reload to the top of the frontpage and i have to scroll back to the cart module position. You can try it .... Any way to resolve this two problems ? Thanks in advance..")*

Hi,

1. That's because of the banner of your template at the top which hides the top of the page. Without it, it would display just fine.
Change the code to : Code:

&lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;#tm-bottom-a"/&gt;

And that should circumvent the problem.

2. My solution was for the cart module, and you didn't ask for the add to cart up until now, so yes, that's normal that it worked only for the cart module.
For the add to cart, you want to turn on the "Use AJAX when possible for add to cart buttons" option of the HikaShop configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzYyNS1taW5pLW1vZGUtZmFpbGVkLWFuZC1wYWdlLXJlbG9hZGVkLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.242 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
