Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
2cc4c095eb86cd551df50add0dd087a52198775c
1 parent
5f5b85a7
是否显示立即购买按钮
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
template/www.yohobuy.com/actions/product/item/index.phtml
yohobuy/www.yohobuy.com/application/models/Product/Item.php
template/www.yohobuy.com/actions/product/item/index.phtml
View file @
2cc4c09
...
...
@@ -269,8 +269,10 @@
<div
class=
"row"
>
{
{#if
virtualGoods
}
}
{
{!--
电子门票按钮
--
}
}
<form
name=
"ticket-form"
action=
"/cart/index/ticketEnsure"
method=
"POST"
class=
"hide"
></form>
<span
id=
"buy-ticket"
class=
"buy-ticket buy-now item-buy{{#if dis}} dis{{/if}}"
>立即购买</span>
{
{#if
isVirtualBtn
}
}
<form
name=
"ticket-form"
action=
"/cart/index/ticketEnsure"
method=
"POST"
class=
"hide"
></form>
<span
id=
"buy-ticket"
class=
"buy-ticket buy-now item-buy{{#if dis}} dis{{/if}}"
>立即购买</span>
{
{/if
}
}
{
{^
}
}
{
{!--
各颜色下所有尺码均售罄则只显示售罄按钮
--
}
}
{
{#unless
soldOut
}
}
...
...
yohobuy/www.yohobuy.com/application/models/Product/Item.php
View file @
2cc4c09
...
...
@@ -175,6 +175,10 @@ class ItemModel
//是否展览票
$goodsInfo
[
'isTicket'
]
=
$goodsInfo
[
'skn'
]
*
1
===
EXHIBITION_TICKET
;
$goodsInfo
[
'virtualGoods'
]
=
$virtualGoods
;
//是否是虚拟商品
if
(
$goodsInfo
[
'virtualGoods'
])
{
//是否显示虚拟商品,立即购买按钮
$goodsInfo
[
'isVirtualBtn'
]
=
$soldOut
?
false
:
true
;
}
if
(
!
$soldOut
&&
!
$notForSale
&&
!
$virtualGoods
)
{
$goodsInfo
[
'addToCart'
]
=
true
;
...
...
Please
register
or
login
to post a comment