Product Form Addon

Use our Forums to find examples and answers to your questions. If you have advanced requirements for your project, contact us and our staff can help you find a solution.

hccdevelopment

Product Form Addon

The Product Form Addon allows you to create foxee products from your EE templates. Using the weblog:entry_form tag you now have the ability to set foxee product attributes to your weblog entry. Relate your products to other weblog entries, or create a product out of a blog entry for instant invoices. The Product Form Addon provides site builders with lots of flexibility and options to bring your foxee catalog to your stores templates.

* Requires Foxee build 1.10.60.036 or later

Usage

Create a product out of a weblog entry by including the template tags added by the Product Form Addon. One application would be to make a invoice from a blog entry, then assign that invoice to the author.

Installation

The Product Form Addon installs just like any standard EE extension

  1. Upload the ext.foxee_product_form_ext.php file to your server and place it in the system/extension directory
  2. Enable the Product Form extension in the control panel under utilities>extension manager
  3. You will now have the ability to create products from your templates
Example

{exp:weblog:entry_form weblog="default_site"}
<table>
<
tr>
<
td>

<
p>Title<br />
<
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /></p>

<
p>URL Title<br />
<
input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>

{formatting_buttons}

<p><a href="{upload_url}" onclick="window.open(this.href, '_blank', 'width=400,height=600');return false;" onkeypress="this.onclick()">File Upload</a>

<
a href="{smileys_url}" onclick="window.open(this.href, '_blank', 'width=600,height=440');return false;" onkeypress="this.onclick()">Smileys</a></p>

{custom_fields}
{if required}
{/if}{field_label}<br />
{field_instructions}
{if textarea}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea><br />
{/if}

{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" /><br />
{/if}

{if pulldown}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}<br />
</
select>
{/if}

{if date}
<input type="text" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" /><br />
{/if}

{if relationship}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}<br />
</
select>
{/if}
{
/custom_fields}

<p>Trackback URLs<br />
<
textarea name="trackback_urls" cols="50" rows="5">{trackback_urls}</textarea> </p>

</
td>
<
td valign="top">

<
input type="submit" name="submit" value="Submit" />
<
input type="submit" name="preview" value="Preview" />

{status_menu}
<p>Status<br />
<
select name="status">
{select_options}
</select>
</
p>
{/status_menu}

<p>Date <br />
<
input type="text" name="entry_date" value="{entry_date}" maxlength="23" size="25" /></p>

<
p>Expiration Date <br />
<
input type="text" name="expiration_date" value="{expiration_date}" maxlength="23" size="25" /></p>

<
p>Comment Expiration Date <br />
<
input type="text" name="comment_expiration_date" value="{comment_expiration_date}" maxlength="23" size="25" /></p>

<
p><input type="checkbox" name="sticky" value="y" {sticky} /> Make Entry Sticky</p>
<
p><input type="checkbox" name="allow_comments" value="y" {allow_comments} /> Allow Comments</p>
<
p><input type="checkbox" name="allow_trackbacks" value="y" {allow_trackbacks} /> Allow Trackbacks</p>
<
p><input type='checkbox' name='dst_enabled' value='y' {dst_enabled} />DST Active on Date of Entry</p>

{ping_servers}
<p>Ping Servers<br />
{ping_row}
<input type="checkbox" name="ping[]" value="{ping_value}" {ping_checked} /> {ping_server_name}<br />
{/ping_row}
</p>
{/ping_servers}

{category_menu}
<p>Categories<br />
<
select name="category[]" size="4" multiple="multiple">
{select_options}
</select>
</
p>
{/category_menu}

<p>Foxee Settings</p>
{foxee_active}
<p>{field_label}
{options}
{option_name} 
<input type="radio" name="{field_label}" value="{option_value}"{option_checked} />
{/options}
</p>
{/foxee_active}

{foxee_featured}
<p>{field_label}
{options}
{option_name} 
<input type="radio" name="{field_label}" value="{option_value}"{option_checked} />
{/options}
</p>
{/foxee_featured}

{foxee_category_code}
<p>{field_label}
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
</
p>
{/foxee_category_code}

{foxee_product_price}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_product_price}

{foxee_product_saleprice}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_product_saleprice}

{foxee_product_code}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_product_code}

{foxee_product_weight}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_product_weight}

{foxee_inventory_available}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_inventory_available}

{foxee_product_limit_quantity}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_product_limit_quantity}

{foxee_shippable}
<p>{field_label}
{options}
{option_name} 
<input type="radio" name="{field_name}" value="{option_value}"{option_checked}>
{/options}
</p>
{/foxee_shippable}

<fieldset>
<
legend>Foxee Download</legend>
{foxee_download_id}
<p>{field_label}
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
</
p>
{/foxee_download_id}
</fieldset>

<
fieldset>
<
legend>Foxee Subscription</legend>
{foxee_subscription_id}
<p>{field_label}
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
</
p>
{/foxee_subscription_id}

{foxee_subscription_recurring}
<p>{field_label}
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
</
p>
{/foxee_subscription_recurring}

{foxee_subscription_free_trial_days}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_subscription_free_trial_days}

{foxee_subscription_enddate}
<p>{field_label}
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
</
p>
{/foxee_subscription_enddate}

</fieldset>

<
fieldset>
<
legend>Foxee Donation</legend>
{foxee_donation}
<p>{field_label}
{options}
{option_name} 
<input type="radio" name="{field_label}" value="{option_value}"{option_checked} />
{/options}
</p>
{/foxee_donation}

{foxee_donation_min}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_donation_min}

{foxee_donation_max}
<p>{field_label} <input type="text" name="{field_name}" value="{field_value}" /></p>
{/foxee_donation_max}
</fieldset>
</
td>
</
tr>
</
table>
{/exp:weblog:entry_form} 



Join our Mailing List