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)
-   -   "More Info" button instead of "Add to Cart" for products with options (https://forum.x-cart.com/showthread.php?t=33447)

creativearc 08-23-2007 03:00 PM

"More Info" button instead of "Add to Cart" for products with options
 
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.

rogue 08-24-2007 07:29 AM

Re: "More Info" button instead of "Add to Cart" for products with options
 
As it happens, if you have a product list (from a search say) and the user clicks on "Add to cart" for an item with options he will be taken to the product page. It will not add the product to the cart.

Steel 09-08-2007 10:52 PM

Re: "More Info" button instead of "Add to Cart" for products with options
 
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

hhiker 09-09-2007 01:54 PM

Re: "More Info" button instead of "Add to Cart" for products with options
 
If you are simply wanting to change the button on the page w/ the product list, you can go into your admin, click on General Settings, go to Appearance Options and look for "Enable "Buy Now" button in the products list:" and uncheck that box.

Then it will display a link that says "See Details" on all products in the list.

Is that what you were looking for?

Steel 09-09-2007 11:02 PM

Re: "More Info" button instead of "Add to Cart" for products with options
 
Hello hhiker,

The code change allows products with options to list a "Starting at" price with an action button that has "Details" as the text; and for products without options, "Our Price" and "Add to Cart" as the button text.

I do not think that the Appearance Options toggle will accomplish having two formats on the page with the product list. At least it wasn't with the various store settings I have selected.


All times are GMT -8. The time now is 11:33 AM.

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