View Single Post
  #2  
Old 06-10-2005, 05:41 PM
 
dgstadtman dgstadtman is offline
 

Member
  
Join Date: Oct 2004
Location: Hilton Head Island, SC
Posts: 16
 

Default

Alright...I figured out what it is. The 'add to cart' button on the product detail page uses the "submit" action. The fix that worked for me was kind of a workaround on the 'add to cart button'. I did this by disabling certain functions based on the weight of the product. Obviously, a quote doesn't weigh anything, so disabling a function would happen by wrapping conditional 'if' tags around functions:

Code:
{if $product.weight gt "0.05"}Insert Any Function {/if}

Since the quote has a weight of less than 0.05, it will not show "Insert Any Function"

You Can See it in action Here

In brief here are the steps.

-Create The Form
-Put the form into your detailed description
-Create your php handler
-Create a 'form sent' page (optional)
-Create a 'form error' page (optional)
-In customer/main/product.tpl, Disable functions you don't want by wrapping 'if' statements around those functions, as shown above

You also want to modify customer/main/products.tpl to remove the 'enter your price' label and make it redirect you to the product info page. Don't forget to edit $lbl_enter_your_price to say "get a quote" or something similar. Or you can just create a new label.

I know that a lot of people have wanted a mod like this, so I am working on a how-to right now.
__________________
bracediscountstore.com

xgart gold 4.0.12
fancy categories 4.0.12
Reply With Quote