X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing Buttons (https://forum.x-cart.com/showthread.php?t=12657)

kirsten 03-07-2005 03:57 PM

Changing Buttons
 
Currently on my products.tpl & products_t.tpl I have buy now buttons showing with this code


Quote:

{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}

If a customer clicks on this button it pushes them straight to the checkout, I want to have an Add to cart button showing, the same as on my product.tpl as it does not send them to the checkout, the code on my product.tpl is

Quote:

{if $product.forsale ne "B"}
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}

{if $login ne "" and $active_modules.Wishlist ne ""}
{include file="customer/add2wl.tpl"}
{/if}

Can I just replace the code for add to cart as shown above into my products.tpl & products_t.tpl and will this code work the same way on these tpls as it does on the product.tpl?

Thanx
Kirsten

balinor 03-07-2005 06:33 PM

You lost me Kirsten, your buy now buttons don't bring you to the cart?

kirsten 03-07-2005 06:44 PM

lol sorry but when you hit the buy now button it takes you into the checkout which i do not want
I want them simply to be added to the cart like the add to cart buttons do.
I have added some of Jon's products ie the ezcheckout and eziupsell ezirecommends maybe that is why it now defaults directly to the checkout

Do you understand what I mean or am I still speaking like a totally confused woman who has no html and coding skills????

Kirsten


All times are GMT -8. The time now is 09:48 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.