Quote:
Originally Posted by bobschwab
I am new to X-Cart and learning my way around, would you be willing to share your adjustments to the "Add To Cart" button that switches to a "Go To Checkout" button? I really like what you have done on your website with that button. Thanks!
|
Sorry for the delay in my response! I actually made a second /skin1/customer/main/product_details.tpl (I believe that is the correct template name) and called it product_details_re.tpl.
In the product_details_re.tpl file, I changed the Add to Cart button to a Checkout button (that I grabbed from the cart.tpl).
Then in the include directory, look for func.ajax.php, open it and do a search for product_details.tpl and change that to whatever you named your second/duplicate product_details template.
There are a couple things, though, for instance, we have AlteredCart's Download Expander installed, and it displays some download information for the product.. on our product_details_re.tpl, the download information was not displaying after the refresh... so we had to contact support and get assistance with that. I don't know exactly the terminology or process, but if you have a mod 'running' in the product_details.tpl, you have to call those files/scripts within the func.ajax.php file.
I am positive, there is probably a much more eloquent, less 'clunky' way to do it.. but, I haven't quite found/figured out what it is!
__________________
www.scraporchard.com
X-Cart Pro Version 4.5.5
Altered Cart: One Page Checkout, OnSale, Buy Together, Download Expander, Smart Search, Shop by Filters
Gahela: Gahela Support System
The xCart Store: xBanners, xAccess, xMenus