Add to cart HTML link SEF url

  • Posts: 323
  • Thank you received: 18
  • Hikashop Business
11 months 3 weeks ago #357745

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.1

Im using Add to cart HTML link in product description (at the end of each product description). It works, but:
1. it links to component/hikashop/checkout?Itemid=1 so I can not assign modules to checkout page.
2. it goes direct to checkout (no notify box).

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

  • Posts: 4760
  • Thank you received: 647
  • MODERATOR
11 months 3 weeks ago #357751

Hello,

1. Can you provide these elements:
- A step by step process to reproduce exactly your process.
- An Url link to allow us to experience the issue.
- Can you elaborate a little more, what do you mean by :
"so I can not assign modules to checkout page."

2. If you want to have a popup notification, then you have to use the Hikashop Cart notification Plugin.
And reproduce this kind of configuration and to adapt it to your needs :



Regards

Last edit: 11 months 3 weeks ago by Philip.

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

  • Posts: 323
  • Thank you received: 18
  • Hikashop Business
11 months 3 weeks ago #357846

1. Create menu item for checkout (so url should be domain.com/checkout). Assign some modules to that menu item.
Open product. Click on Add to cart HTML link button. You get this code:

<a class="hikashop_html_add_to_cart_link" href="https://domain.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&cid=1587&Itemid=102">
        Add to cart    </a>
Paste this code to Joomla article. Open this article and click on add to cart link.
You get directly to checkout, without popup, and url is domain.com/maincategory/checkout instead domain.com/checkout so assigned modules not showing.
This message contains confidential information


2. I already use the Hikashop Cart notification Plugin. I use popup Display location. It works on "regular" Add to cart button. But it not working on Add to cart HTML link.

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

  • Posts: 83007
  • Thank you received: 13399
  • MODERATOR
11 months 3 weeks ago #357847

Hi,

1. You can either:
- change the 102 in that URL to another menu item for HikaShop's checkout.
- configure the "force menu on checkout" setting of the HikaShop configuration page to use a menu item of the type HikaShop checkout.

2. That's normal you're redirected to the checkout with the add to cart HTML link. If you want to have a real add to cart button, with the HikaShop cart notification plugin handling it, you need to use instead a content tag :
www.hikashop.com/support/documentation/1...-product-insert.html

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

  • Posts: 323
  • Thank you received: 18
  • Hikashop Business
11 months 2 weeks ago #357864

1. Force menu on checkout works for menu item. Solved.
2. Content tag works in articles and in product description, but button for tag insert isnt available in product description editor (tinymce). Can this be added?

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

  • Posts: 83007
  • Thank you received: 13399
  • MODERATOR
11 months 2 weeks ago #357865

Hi,

The product details page already displays automatically the add to cart button of the product.
So there should be no need to manually add it to the description. That's why it's not available.
However, you should still be able to copy / paste the content tag in the description editor.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum