Having both "Add to cart" and "Checkout" in page?

  • Posts: 175
  • Thank you received: 0
9 years 4 months ago #237452

-- HikaShop version -- : 2.6.0

Hello
is it possible to have both add to cart and checkout with this product button in product list / product page?
If yes, how? Thank You

Last edit: 9 years 4 months ago by veeco.

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #237465

Hi,

By default the "add to cart" button with do both: add the product to the cart and redirect the customer to the checkout.
There is nothing to do for that. Is that what you're talking about ?

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

  • Posts: 175
  • Thank you received: 0
9 years 4 months ago #237621

hello

sorry, what i mean is something like

imgur.com/vvr3nkQ

so if user want to straight to check out page with the item, they just need to click the checkout button

otherwise they only click on add to cart

Thank You

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #237638

Hi,

There is no option to do that.
But it's possible to do that with custom code.
You would have to edit the file "quantity" of the view "product" via the menu Display>Views and add a second button with javascript code to update the information in the inputs of the form to do one or the other.

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

  • Posts: 175
  • Thank you received: 0
9 years 4 months ago #238297

Hello

i managed to add a checkout button and change the return URL , however it still have the /?popup=1 in link and it still show the popup in the checkout page.

Any suggestion to fix it?

Thank You

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238565

Hi,

So what code are you using there ?
And how did you configure the settings of the cart section of the HikaShop configuration ?

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

  • Posts: 175
  • Thank you received: 0
9 years 4 months ago #238622

nicolas wrote: Hi,

So what code are you using there ?
And how did you configure the settings of the cart section of the HikaShop configuration ?


Hi

i simply add a button that if clicked, changed the input return_url to another link and submit the form. In the hikashop configuration, I've set it to stay in page and show pop up

that's all i guess?

edit : i just decided to display:none the popup in checkout page

Last edit: 9 years 4 months ago by veeco.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum