Can I integrate "add to cart button" in a HTML5 landing page?

Merchant
จาก India
เป็นสมาชิกตั้งแต่ พ.ย. 2022

First off I want to say a very big thanks to Tim for a simply fantastic product. It is fast, functional and very actively supported. Above all it is open source.. superlative!

Secondly, I want to know if I buy this add on, and I host my landing pages in my own domain, will this help me to jump from the CTA button in landing page to checkout?

Hope it is not a stupid question

Thanks!
Balaji Shankar

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

Thank you so much for showing appreciation of my work. ❤️

You can change the destination URL for your cart form post where form_draw_form_begin() is drawn and set the link to document::ilink('checkout'). If you host the button in an external place outside the platform simply copy the <form> block of elements with the full URL to your store

<form name="add_to_cart_form" method="post" action="https://yoursite.com/checkout">

The HTML is found in includes/templates/default.catalog/(pages|views)/.

LiteCart Fan
จาก Switzerland
เป็นสมาชิกตั้งแต่ มี.ค. 2016

I have tried it in 2.5.1, but without success.
The file app.css was supplemented accordingly, but the icon is unfortunately not displayed when hovering.
Here is the Link: [url=https://www.cadtec.ch/cad-cam-shop/cad-cam-programme-c-1/cad-software-c-2/alibre-design-c-4/]https://www.cadtec.ch/cad-cam-shop/cad-cam-programme-c-1/cad-software-c-2/alibre-design-c-4/[/url]

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

That form contains no changes. To redirect to the checkout page

Replace line 116
https://github.com/litecart/litecart/blob/2.5.1/public_html/includes/templates/default.catalog/views/box_product.inc.php#L116

With this
<?php echo functions::form_draw_form_begin('buy_now_form', 'post', document::ilink('checkout')); ?>

From outside litecart:
<form name="add_to_cart_form" method="post" action="https://yoursite.com/checkout">
  <input name="product_id" value="1" />
  <input name="quantity" value="1" />
  <button type="submit" name="add_cart_product">Buy</button>
</form>

คุณ
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.