- Posts: 31
- Thank you received: 0
Stay on same page when adding to cart
15 years 9 months ago #3321
by PaulG
Stay on same page when adding to cart was created by PaulG
Even when “Always stay on same page” is selected, when clicking “Add to cart” I am taken to the default Checkout page (/component/hikashop/checkout). How do ensure that customers will stay on same page?
The main problem with this is that the “Next” button is at the very bottom of the page, not easy to see. This must be a CSS thing, but I can’t figure out how to bring the button up. Any suggestions? I have discovered that adding a module (even an empty one) to the right side forces the “next” button upward. But that's not the idea solution.
Paul
The main problem with this is that the “Next” button is at the very bottom of the page, not easy to see. This must be a CSS thing, but I can’t figure out how to bring the button up. Any suggestions? I have discovered that adding a module (even an empty one) to the right side forces the “next” button upward. But that's not the idea solution.
Paul
Please Log in or Create an account to join the conversation.
15 years 9 months ago #3339
by nicolas
Replied by nicolas on topic Re: Stay on same page when adding to cart
Hi,
We couldn't reproduce the problem you're talking about with the "add to cart" button. You can test on our demo website... It works as expected.
The next button can indeed be moved with some CSS. However, we can't tell you precisely what CSS you should use without seeing the page. Could you provide a link to it ?
We couldn't reproduce the problem you're talking about with the "add to cart" button. You can test on our demo website... It works as expected.
The next button can indeed be moved with some CSS. However, we can't tell you precisely what CSS you should use without seeing the page. Could you provide a link to it ?
Please Log in or Create an account to join the conversation.
15 years 9 months ago #3348
by PaulG
Replied by PaulG on topic Re: Stay on same page when adding to cart
It's not the "add to cart" button, but the html link that I'm having trouble with.
Here is the page in question
paramipress.com/books/mapping-the-dharma/mtd
Notice the difference when next clicking on the "view cart" button in the navigation menu.
Paul
Here is the page in question
paramipress.com/books/mapping-the-dharma/mtd
Notice the difference when next clicking on the "view cart" button in the navigation menu.
Paul
Please Log in or Create an account to join the conversation.
15 years 9 months ago #3353
by nicolas
Replied by nicolas on topic Re: Stay on same page when adding to cart
The HTML link is just an HTML link. The option in the configuration onle works with standard HikaShop "add to cart" buttons. So it's normal it redirects you to the checkout. If you want to stay on the same page, then you need to change your link.
That is your link currently:
That is want you should have to stay on the same page:
As you can see, you need to remove the checkout parameter and add a url parameter where you need to specify the current page.
For the "next" button being at the bottom of the page, the problem comes from your template.
You have the CSS :
which you should replace by:
in the file
paramipress.com/templates/parami_template/css/position.css
That is your link currently:
Code:
http://paramipress.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1
Code:
http://paramipress.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&product_id=1&url=http%3a%2f%2fparamipress.com%2fbooks%2fmapping-the-dharma%2fmtd
For the "next" button being at the bottom of the page, the problem comes from your template.
You have the CSS :
Code:
#main {
background: none repeat scroll 0 0 #FDFAF1;
margin: 0;
padding: 25px 20px 20px;
position: relative;
}
Code:
#main {
background: none repeat scroll 0 0 #FDFAF1;
float: left;
margin: 0;
padding: 25px 20px 20px;
position: relative;
width: 95%;
}
Please Log in or Create an account to join the conversation.
15 years 9 months ago #3370
by PaulG
Replied by PaulG on topic Re: Stay on same page when adding to cart
Excellent! I knew there would be easy solutions to these problems. Finding them on my own is not so easy. Your reputation of giving solid support is justified once again. Thank you, Nicolas.
Paul
Paul
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds