Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

"More Info" button instead of "Add to Cart" for products with options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-23-2007, 03:00 PM
 
creativearc creativearc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 34
 

Default "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.
__________________
CreativeArc
---------------
X-Cart Pro
Version: 4.1.8
Reply With Quote
  #2  
Old 08-24-2007, 07:29 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default 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.
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
  #3  
Old 09-08-2007, 10:52 PM
 
Steel Steel is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 253
 

Default 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
__________________
X-Cart Gold v4.6.6
Reply With Quote
  #4  
Old 09-09-2007, 01:54 PM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default 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?
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #5  
Old 09-09-2007, 11:02 PM
 
Steel Steel is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 253
 

Default 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.
__________________
X-Cart Gold v4.6.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:45 AM.

   

 
X-Cart forums © 2001-2020