| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
"More Info" button instead of "Add to Cart" for products with options | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Quote:
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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 ![]() "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|