Disable page scrol after payment/delivery select

  • Posts: 20
  • Thank you received: 0
11 years 2 months ago #121243

-- url of the page with the problem -- : www.manufakturakosmetyczna.pl/
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5.14

During checkout, after user changes payment or delivery method page refreshes and scrolls down to show selected option at the top.

It's probably a feature not a bug, but I want to diasable it. I don't want the page scroll after refresh. Is that possible?

EDIT : It should go to another category, but I cannot move it.

Last edit: 11 years 2 months ago by marioli.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #121261

Hi,
If you really want to disable the auto scroll after the shipping/payment method selection, you'll be able to do it by editing your "YourWebsite\components\com_hikashop\views\checkout\tmpl\payment.php" and change this line :

$checked.=' onclick="this.form.action=this.form.action+\'#hikashop_payment_methods\';this.form.submit(); return false;"';
By :
$checked.=' onclick="this.form.action=this.form.action;this.form.submit(); return false;"';
And also editing your "YourWebsite\components\com_hikashop\views\checkout\tmpl\shipping.php" and change this line :
$checked.=' onclick="this.form.action=this.form.action+\'#hikashop_shipping_methods\';this.form.submit(); return false;"';
By :
$checked.=' onclick="this.form.action=this.form.action;this.form.submit(); return false;"';
Hope this will help you.

The following user(s) said Thank You: marioli

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

  • Posts: 20
  • Thank you received: 0
11 years 2 months ago #121282

Thank You very much. It works.

I have to admin that it is implemented better than I could have expected. I edited it to scroll always right to the top of the checkout form. I think that it should also scroll automatically to the top of the form always, that is after user clicks 'procede to the checkout' and after checkout process advances to another step. That would be great. You should consider coding it into another version.

Thanks again for Your help.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 months ago #121284

It was actually like that before but we had users asking to have scroll back to the payment/shipping selection so that on checkout pages with a lot of information, the user get back to where he was.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum