2 Replies - 1377 Views - Last Post: 01 October 2009 - 01:09 PM

#1 wiredwizard   User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 76
  • Joined: 07-May 05

buybar.cfm

Posted 09 May 2005 - 04:08 PM

Description: # Description of Parameters:
# 1) product_name - The name of the product to be displayed.
#
# 2) product_uid - The products unique identifier. This is
# information is passed onto the target of "action".
#
# 3) product_price - The price of the product.
#
# 4) form_name - The name of the form in which the information
# produced by this tag will be placed.
#
# 5) form_action - The action to be performed when the form
# containing the produced infomation is submitted.
#
# 6) form_method - valid options include "get" or "post"# Simple little form to insert on a product closeup page which
# allows a customer to adjust the quantity to submit to the cart
# system.
<!---
#####################################################################
# Simple little form to insert on a product closeup page which
# allows a customer to adjust the quantity to submit to the cart
# system.
#
# Description of Parameters:
# 1) product_name - The name of the product to be displayed.
#
# 2) product_uid - The products unique identifier.  This is
#    information is passed onto the target of "action".
#
# 3) product_price - The price of the product.
#
# 4) form_name - The name of the form in which the information
#    produced by this tag will be placed.
#
# 5) form_action - The action to be performed when the form
#    containing the produced infomation is submitted.
#
# 6) form_method - valid options include "get" or "post"
#####################################################################
--->

<cfparam name="Attributes.product_name"   default="product">
<cfparam name="Attributes.product_uid"    default="-1">
<cfparam name="Attributes.product_price"  default="-1">
<cfparam name="Attributes.form_name"      default="buybar">
<cfparam name="Attributes.form_action"    default="action">
<cfparam name="Attributes.form_method"    default="get">

<cfoutput>
<form name="#Attributes.form_name#" action="#Attributes.form_action#" method="#Attributes.form_method#">
     <input name="puid" type="hidden" value="#Attributes.product_uid#" />
     <input name="opt" type="hidden" value="add" />
     <table class="tBuyBar-table" style="width: 100%;">
          <tr class="tBuyBar-tr">
               <td class="tBuyBar-td-header">Qty</td>
               <td class="tBuyBar-td-header" width="70%"><!--- Name ---></td>
               <td class="tBuyBar-td-header"><cfif #Attributes.product_price# GTE 0>Price</cfif></td>
               <td class="tBuyBar-td-header"></td>
          </tr>
          <tr class="tBuyBar-tr">
               <td class="tBuyBar-td" align="left"><input name="qty" value="1" size="2" /></td>
               <td class="tBuyBar-td">#Attributes.product_name#</td>
               <td class="tBuyBar-td"><cfif #Attributes.product_price# GTE 0>#dollarFormat( Attributes.product_price )#</cfif></td>
               <td class="tBuyBar-td" align="right"><input name="submit" type="submit" value="Buy Now!" /></td>
          </tr>
     </table>
</form>
</cfoutput>



Is This A Good Question/Topic? 0
  • +

Replies To: buybar.cfm

#2 codemaster5150   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 13-April 09

Re: buybar.cfm

Posted 01 October 2009 - 01:08 PM


Was This Post Helpful? 0
  • +
  • -

#3 codemaster5150   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 13-April 09

Re: buybar.cfm

Posted 01 October 2009 - 01:09 PM

this was an amazing article, i have learned a lot.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1