Hi,
On the product categories page I need to replace the "buy now" button with the "view details" button.
Eg when a custom clicks on the button instead of adding the product to the cart it points to the product details page.
Can anyone help ?
Hi,
On the product categories page I need to replace the "buy now" button with the "view details" button.
Eg when a custom clicks on the button instead of adding the product to the cart it points to the product details page.
Can anyone help ?
Hi,
On the product categories page I need to replace the "buy now" button with the "view details" button.
Eg when a custom clicks on the button instead of adding the product to the cart it points to the product details page.
Can anyone help ?
design/themes/YOUR_THEME/templates/common/product_data.tpl
replace:
{include file="buttons/add_to_cart.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_name="dispatch[checkout.add..`$obj_id`]" but_role=$but_role block_width=$block_width obj_id=$obj_id product=$product but_meta=$add_to_cart_meta}
with
{if $details_page} {include file="buttons/add_to_cart.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_name="dispatch[checkout.add..`$obj_id`]" but_role=$but_role block_width=$block_width obj_id=$obj_id product=$product but_meta=$add_to_cart_meta} {else} {include file="buttons/button.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_text=__("view_details") but_href="products.view?product_id=`$product.product_id`" but_role=$opt_but_role but_name="" but_meta="ty-btn__primary ty-btn__big"} {/if}
Then clear cache
(!) Not tested
Works perfectly!
Thank you very much
You are welcome!