Quote:
Originally Posted by creativearc
Has anyone found a way to change the link/button to something different than "Add To Cart." for items with options?
Since most customers will not buy a product with the default option, a link such as "more info" would be helpful to ensure that nothing is 'accidentally' added to the cart.
|
Hello creativearc,
Give the following a try ...
To have the basic listing page order buttons display different text, in File:
/customer/main/buy_now.tpl
change the following code (located near the end of the file) from this:
{else}
<td>{include file="buttons/buy_now.tpl" style="button" href="javascript
: document.orderform_`$product.productid`_`$product. add_date`.submit();"}</td>
{/if}
... to this:
{elseif $products[product].is_product_options}
<td>{include file="buttons/buy_now.tpl" style="button" href="javascript
: document.orderform_`$product.productid`_`$product. add_date`.submit();"}</td>
{else}
<td>{include file="buttons/add_to_cart.tpl" style="button" href="javascript
: document.orderform_`$product.productid`_`$product. add_date`.submit();"}</td>
{/if}
... and change the lbl_buy_now language wording to something like "Options & Details".
The following change is also related:
List "Starting at:" instead of "Our Price:" for items that have options/variants by changing the code in File:
/customer/main/products.tpl and File:
/customer/main/products_t.tpl from this:
<font class="ProductPrice">{$lng.lbl_our_price}:
... to this:
<font class="ProductPrice">
{if $products[product].is_product_options}{$lng.lbl_variant_price}
{else}{$lng.lbl_our_price}{/if}:
... and add the variable "variant_price" in languages.
The following posts relate to this discussion:
http://forum.x-cart.com/showthread.php?t=17260&highlight=starting+at
http://forum.x-cart.com/showthread.php?t=33447&highlight=items+with+option s
http://forum.x-cart.com/showthread.php?t=30354&highlight=change+our+price+ to
http://forum.x-cart.com/showthread.php?t=795&highlight=font+class%3DProduc tPrice