Two buttons: Buy now & Add to cart

  • Posts: 59
  • Thank you received: 0
  • Hikashop Business
5 months 1 week 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: 65130
  • Thank you received: 9460
  • MODERATOR
5 months 1 week 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: 59
  • Thank you received: 0
  • Hikashop Business
5 months 1 week 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: 59
  • Thank you received: 0
  • Hikashop Business
4 months 6 hours 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: 2070
  • Thank you received: 281
  • MODERATOR
3 months 3 weeks 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: 3 months 3 weeks ago by Philip.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum