Jump to content

[SOLVED] How to change the Add to cart button to view products in Home Featured Module?


generalexperts

Recommended Posts

I have the homefeatured module. I don't think people will see the featured product and simply add it to the cart without looking at the product page first, even though the background links to view the product page. I would like to change the add to cart button to the view button. I know how to change the actual button, I just need the current "add to cart" button to direct to View the product page. Thanks!

Edited by generalexperts (see edit history)
Link to comment
Share on other sites

Hi,

 

In homefeatured.tpl you have to apply changes in <p class="price container">

 

The code for 'add to cart' looks like this :

 

<a title="Add to cart" rel="ajax_id_product_11" href="http://www.savvymarina.com/cart?qty=1&id_product=11&token=4631f47506b9fa8073eb12dd3687b50d&add" class="exclusive ajax_add_to_cart_button">Add to cart</a>

 

And the code to put for a view button is this :

 

<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>

 

In your case the tpl to modify must be in your themes/your_actual_theme_what_ever_name/modules/homefeatured/homefeatured.tpl

 

Good luck

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...