Button in product listing

  • Posts: 441
  • Thank you received: 24
12 years 9 months ago #46511

how can i create a button in product_listing "+ info" that goes to the product page? dont know how to use php

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #46662

You don't need to know PHP for that. Edit the file "listing_img_title" of the view "product" via the menu Display->Views and add some HTML like that:
<input type="button" onclick="window.location='<?php echo $link; ?>';" class="button" value="+info"/>

Please Log in or Create an account to join the conversation.

  • Posts: 441
  • Thank you received: 24
12 years 9 months ago #46703

Thank You! another small question i put alt="añadir cesta" but it doesn´t display.How can i do it?

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #46854

alt is for images. You should try with title instead.

More information on input HTML element attributes here:
www.w3schools.com/tags/tag_input.asp

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum