How Do I Make The "Buy" Link On Category Pages Direct Customers To The Product Page?
By default, the "Buy" or "Add to Cart" button underneath each product on category pages will automatically add the product to the customer's shopping cart. It will follow whatever "Add to Cart Action" you have set up in the General Store Settings area of your Online Store Manager.
On the one hand, if your products have selectable options, then the visitor is directed to the product's listing page in order to select those options. However, for regular, stand alone products, the default category buy link action is to add to cart and direct them towards the checkout pages.
With a little template editing, it's possible to have the category "buy" link direct the customers to each product page (regardless of option) instead of adding to cart. If you would like to direct the customer to the product listing pages instead, we've set up the following instructions to help you along:
Please keep in mind that this information is being provided solely as a courtesy. Custom design or HTML/CSS template changes are outside the scope of our provided technical support. If you wish to have our design team make these changes for you, please contact us at 1-800-828-6650, or email [email protected].com for a quote.
To continue, you will need to Modify the category_0.html template. This can be found via FTP, or you can use the template editor in the Online Store Manager.
You will see a listing of your store theme's unique templates. If there is a category_x.html template within this list, look to the far right of the listing and click on the "Action ->Edit" button for it and skip to step 5 listed here. Otherwise, if the category_x.html template is not present, proceed to step 3 next.
onclick="window.location = 'add_cart.asp?quick=1&item_id=[catalogid]'"
onClick="window.location = 'product.asp?itemid=[catalogid]'"
For the default category_0.html template, there will be six instances of this code to change.
Changing the Link/Button Label
Lastly, you may want to edit the category page further so that the "Add to Cart" button's label is changed to say "View Item" or something similar.
While still in the Online Store Manager,
Be sure to clear your store's cache on your store to see changes if they are not readily apparent.