Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1168829
shop_all.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Sep 25, 2:53 PM
Size
1 KB
Mime Type
text/html
Expires
Sat, Sep 27, 2:53 PM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
757220
Attached To
rTMST Themes.Modern-Store
shop_all.tpl
View Options
<
inp2:m_DefaultParam
category
=
""
/>
<
inp2:m_ifnot
check
=
"m_Param"
name
=
"category"
>
<
inp2:m_Get
name
=
"m_cat_id"
result_to_var
=
"category"
/>
</
inp2:m_ifnot
>
<
inp2:m_DefineElement
name
=
"shop_all_product_element"
>
<
li
>
<
a
href
=
"<inp2:ProductLink template='__default__'/>"
image
=
"<inp2:ImageSrc primary='1' MaxWidth='80' DefaultWidth='80' html_escape='1'/>"
price
=
"<inp2:Field name='Price' currency='selected'/>"
cart_link
=
"<inp2:AddToCartLink template='in-commerce/checkout/shop_cart' product_template='__default__'/>"
>
<
inp2:Field
name
=
"Name"
/>
</
a
>
</
li
>
</
inp2:m_DefineElement
>
<
ul
>
<
inp2:p_PrintList
render_as
=
"shop_all_product_element"
per_page
=
"20"
parent_cat_id
=
"
$
category"
recursive
=
"1"
/>
</
ul
>
<
script
type
=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'a'
,
'#level-content'
).
mouseover
(
function
(
$
e
)
{
var
$
me
=
$
(
this
);
$
(
'.image'
,
'#level-good'
).
attr
(
'src'
,
$
me
.
attr
(
'image'
));
$
(
'.price'
,
'#level-good'
).
html
(
$
me
.
attr
(
'price'
)
);
$
(
'.addtocart'
,
'#level-good'
).
attr
(
'href'
,
$
me
.
attr
(
'cart_link'
)
);
}
);
}
);
</
script
>
Event Timeline
Log In to Comment