Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error with an enquire button


Recommended Posts



Ive added some code to a button on my product pages that add a button for people to enquire about it. This then pushes info to the contact us page for the customer to send.


However Im getting an error and would liek to see if anyonce here could kindly point out my flaws.


The code is the following


<?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US, 'enquiry=Price Inquiry%0D%0A%0D%0AProduct Id: ' . $HTTP_GET_VARS['products_id'] . '%0D%0AProduct Url: ' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']  . '%0D%0AProduct Name: ' . $product_info['products_name'] .'%0D%0A%0D%0A') . '') . '"  class="pricing"><img src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt=""></a>';?>


However when I try to use it the following error appears.


The requested URL /product-one-p-200 Product Name: product one .html was not found on this server.


It seems to be putting the.html part after the url + Product Name: field rather than just after the product url part.


So it should be

URL /product-one-p-200.html Product Name: product one


I hope someone can help as its driving me nuts..

Link to comment
Share on other sites

What it should be doing is passing the Product URL and also The product Name to a contact us page, so that the customer then only has to fill in their name email and telephone.


Im struggling..

Link to comment
Share on other sites

take a look at the tell_a_friend.php, that is exactly what you need, only difference is the receiver of the mail (you and not a friend)


You can place then a link on the product info as described here

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...