Hi,
i am new in opencart, but is a real online shopping solution. One thing i want to solve is to change from add to cart to view product in category view, featured and latest items. add to cart to be only in the product page.
Anyone has any idea how to do it?
you mean you want to remove button "add to cart"? If so - edit .tpl files and delete codes of buttons. You can find in your theme category those files. You need to edit (i might forget some files) latest, featured, manufacturer and category pages.
OK big edit
for each of the following files
FIND:
Replace With:
for each of the following files
FIND:
Code: Select all
<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><span><?php echo $button_cart; ?></span></a>
Code: Select all
<a href="<?php echo $product['href']; ?>" class="button"><span>view product</span></a>
I wasn't the one asking, but thank you soo much for posting this! (needed it for one of my category templates.)
VAHID wrote:OK big edit
for each of the following files
FIND:
Replace With:Code: Select all
<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><span><?php echo $button_cart; ?></span></a>
Code: Select all
<a href="<?php echo $product['href']; ?>" class="button"><span>view product</span></a>
Using OC v1.5.4.1 with Evisu Theme
You could also use this:
http://www.opencart.com/index.php?route ... n_id=10925
It would save you a lot of job.
http://www.opencart.com/index.php?route ... n_id=10925
It would save you a lot of job.
Who is online
Users browsing this forum: No registered users and 14 guests