Two buttons: Buy now & Add to cart

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 1 month ago #298860

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.1.22

Hi,

I have a simple question: is it possible to have two buttons on a productpage:
- Buy now (this will redirect you directly to the checkout)
- Add to cart (this will add the item to the cart but the visitor will stay on the same page)

If it is possible, how can I arrange this?
Thanks in advance!

Regards,
Joost

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
6 years 1 month ago #298862

Hi,

There is no option for that.
However, you can configure the add to cart to at the item and stay on the same page, and then with a view override you can add a "buy now" link with such code:

<a class="hikabtn hikabtn-success" href="index.php?option=com_hikashop&ctrl=product&task=updatecart&cid=<?php echo $this->element->product_id; ?>&qty=1&add=1">Buy now</a>

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 1 month ago #298951

Hi Nicolas,

First of all: thanks for the quick reply!
It works like I want to. Excellent!!

Thanks again,
Joost

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 3 days ago #300809

Hi Nickolas,

Suddenly the trick doesn't work anymore? Has it something to do with a update? You can check it here: www.amazingjewelry.nl/armbanden/product/listing

regards,
Joost

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
6 years 2 days ago #300822

Hello,

Sorry for this return, but I process some test thanks to your Url, and if I understand your needs for me everything seems to work as described previously.

So can you describe your issue, how it work before and now, give us maybe your step by step test procedure, and maybe the navigator you used.
Other point, did you process some HikaShop update recently ?
Awaiting news from you.

Regards

Last edit: 6 years 2 days ago by Philip.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum