| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
standard x-cart "add-to-cart" Button of front page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
standard x-cart "add-to-cart" Button of front page
Hi X-cart team,
I have a question: How do I place the standard x-cart button on the front page of my store and have it function exactly like if I had clicked the "add to cart" button on the product page? I found this code and it seemed promising: <form action="?target=cart" method="post" accept-charset="utf-8" class="custom-add2cart"> <input type="hidden" name="target" value="cart" /> <input type="hidden" name="action" value="add" /> <input type="hidden" name="product_id" value="5" /> <div class="add-button-wrapper widget-fingerprint-product-add-button"> <button type="submit" class="btn regular-button regular-main-button add2cart submit"> <span>Add to cart</span> </button> </div> </form> It added the product to the cart but it didnt take you to the checkout page(/?target=cart)like the the add to cart on the product page does. We are designing a custom front page and would like the "add to cart" button and functionality to appear there for certain products, similar to the featured products module just on the actual front page with a direct link to product being added not only to cart but you to be taken to the cart page as well. any ideas or suggestions would be appreciated. thanks in advance
__________________
x-cart business 5.2.14 |
|||||||
#2
|
|||||||
|
|||||||
Re: standard x-cart "add-to-cart" Button of front page
For 533 version there will be special "Buy button" module which allows to add js code with buy button to any page.
__________________
Sincerely yours, Max Vydrin |
|||||||
#3
|
|||||||
|
|||||||
Re: standard x-cart "add-to-cart" Button of front page
Thanks Xim,
but my company plans to stay with version 5.2.16 for awhile. Are there any solutions to my problem for Version 5.2?
__________________
x-cart business 5.2.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|