php js css php js css

Changes

Changes to Page: fuel-example

No change was recorded for this entity
390470
Oct 4 11:51pm
McNaught, Scott
Modified page
Can't Undo: The page /fuel-example/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
390475
Oct 4 11:51pm
McNaught, Scott
Modified page
Can't Undo: The page /fuel-example/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
Php Source:
Id:
/fuel-example/
/fuel-example/
Title:
Fuel Example
Fuel Example
Content:
<h1>Table of Products</h1>

<ss:forms:form id="cart_form" onsubmitserver="onCartSubmit($cart_form.getValues())" onsubmitredirect="/commerce/order/">

<ss:data:table datasource="\Components\Commerce\Products::getAllForCategoryAndBrand(2, null)" as="product" width="100%" classrow="myTrClass">
<ss:data:column heading="Product">
[? $product['product_title'] ?]
</ss:data:column>
<ss:data:column heading="Price">
[? formatCurrency($product['product_price']) ?]
</ss:data:column>
<ss:data:column heading="Included Qty">
[? $product['product_packaged_quantity'] ?]
</ss:data:column>
<ss:data:column heading="Included Qty">
<ss:forms:hidden id="'product_' + $product['product_id'] + '_id'" name="product_id[]" value="$product['product_id']" parsenow="id,value" width="100" />
<ss:forms:editbox id="'product_' + $product['product_id'] + '_quantity'" name="product_quantity[]" parsenow="id" width="100" />
</ss:data:column>
</ss:data:table>


<ss:forms:submitbutton />

</ss:forms:form>


<h1>Whats in my cart</h1>
[? varDump(\Components\Commerce\Carts\Current::getAllDetailed()) ?]
<h1>Table of Products</h1>

<ss:forms:form id="cart_form" onsubmitserver="onCartSubmit($cart_form.getValues())" onsubmitredirect="/commerce/order/">

<ss:data:table datasource="\Components\Commerce\Products::getAllForCategoryAndBrand(2, null)" as="product" width="100%" classrow="myTrClass">
<ss:data:column heading="Product">
[? $product['product_title'] ?]
</ss:data:column>
<ss:data:column heading="Price">
[? formatCurrency($product['product_price']) ?]
</ss:data:column>
<ss:data:column heading="Included Qty">
[? $product['product_packaged_quantity'] ?]
</ss:data:column>
<ss:data:column heading="Included Qty">
<ss:forms:hidden id="'product_' + $product['product_id'] + '_id'" name="product_id[]" value="$product['product_id']" parsenow="id,value" width="100" />
<ss:forms:editbox id="'product_' + $product['product_id'] + '_quantity'" name="product_quantity[]" parsenow="id" width="100" />
</ss:data:column>
</ss:data:table>


<ss:forms:submitbutton />

</ss:forms:form>


<h1>Whats in my cart</h1>
[? varDump(\Components\Commerce\Carts\Current::getAllDetailed()) ?]
Content Additional:
{"footer_promo":"on"}
{"footer_promo":"on"}
Css:
.myTrClass
{
background: white;
}

.myTrClass:hover
{
background: #f0f0f0;
}
.myTrClass
{
background: white;
}

.myTrClass:hover
{
background: #f0f0f0;
}
Js:

															

														
Accept Child 404:
0
0
Search Title:

															

														
Search Title Prefix:

															

														
Search Description:

															

														
Search Keywords:

															

														
Search Noindex:
0
0
Search Nofollow:
0
0
Search Change Frequency:

															

														
Search Priority:
0.5
0.5
Search Canonical Override:

															

														
Is Offline:
0
0
Is Hidden In Navigation:
0
0
Is Hidden In Sitemap:
0
0
Security New:
0
0
Security Contact Mode:

															

														
Security Contact Squeeze Viewlimit:

															

														
Security Contact Require Login:
0
0
Security Contact Groups:

															

														
Security Condition Id:

															

														
Security Heading:

															

														
Security Description:

															

														
Other Fields:

															

														
Order:
5
5
Parent Id:
/
/
Type Id:
0
0
Contact Id:
0
0
Design Id:
11
11
Header Functions:

															

														
Header Category:

															

														
Is Domain:
0
0