View Single Post
  #17  
Old 10-27-2012, 05:20 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: X-Cart v4.5.4 released

Quote:
Originally Posted by carpeperdiem
Mike - your suggestion to turn off the BUY NOW pref makes no difference in the Add To Cart pop-up (try it).
I wasn't implying that it worked, just suggesting that it be made to work.

Here you go. To change the button to See Details instead of Add to Cart, if the product has variants or options:

Look in /common_files/modules/Add_to_cart_popup/product_added.tpl
Near line 140 Find:
Code:
{include file="modules/Add_to_cart_popup/buy.tpl}
Change it to:
Code:
{if $p.is_product_options eq 'Y' or $p.is_variant eq 'Y'} {assign var=productid value=$p.productid} {include file="customer/buttons/button.tpl" button_title=$lng.lbl_see_details href="product.php?productid=$productid" additional_button_class="main-button"} {else} {include file="modules/Add_to_cart_popup/buy.tpl} {/if}
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.