Skip to content

Commit

Permalink
🔥 Disable christmas coupon functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Dec 30, 2024
1 parent 17deb02 commit eb78f80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
7 changes: 2 additions & 5 deletions src/components/NFTBook/CrossSellDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ import { getNFTBookPurchaseLink } from '~/util/api';
import { logTrackerEvent, logPurchaseFlowEvent } from '~/util/EventLogger';
import nftOrCollectionMixin from '~/mixins/nft-or-collection';
import couponMixin from '~/mixins/coupon';
export default {
name: 'NFTBookCrossSellDialog',
mixins: [nftOrCollectionMixin, couponMixin],
mixins: [nftOrCollectionMixin],
props: {
open: {
type: Boolean,
Expand Down Expand Up @@ -151,9 +150,7 @@ export default {
{
gaClientId: this.getGaClientId,
gaSessionId: this.getGaSessionId,
coupon: this.getApplicableCoupon({
checkoutPrice: customPriceInDecimal,
}),
coupon: this.$route.query.coupon,
customPriceInDecimal,
utmCampaign: this.utmCampaign,
utmSource: `${this.utmSource}_cross-sell`,
Expand Down
6 changes: 1 addition & 5 deletions src/pages/nft/class/_classId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ import crossSellMixin from '~/mixins/cross-sell';
import navigationListenerMixin from '~/mixins/navigation-listener';
import utmMixin from '~/mixins/utm';
import alertMixin from '~/mixins/alert';
import couponMixin from '~/mixins/coupon';
export default {
name: 'NFTClassDetailsPage',
Expand All @@ -455,7 +454,6 @@ export default {
navigationListenerMixin,
utmMixin,
alertMixin,
couponMixin,
],
layout: 'default',
asyncData({ query }) {
Expand Down Expand Up @@ -1426,9 +1424,7 @@ export default {
gaClientId,
gaSessionId,
giftInfo,
coupon: this.getApplicableCoupon({
checkoutPrice: edition.price,
}),
coupon: this.$route.query.coupon,
customPriceInDecimal,
utmCampaign: this.utmCampaign,
utmSource: this.utmSource,
Expand Down
6 changes: 1 addition & 5 deletions src/pages/nft/collection/_collectionId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ import clipboardMixin from '~/mixins/clipboard';
import navigationListenerMixin from '~/mixins/navigation-listener';
import utmMixin from '~/mixins/utm';
import alertMixin from '~/mixins/alert';
import couponMixin from '~/mixins/coupon';
export default {
name: 'NFTCollectionDetailsPage',
Expand All @@ -121,7 +120,6 @@ export default {
navigationListenerMixin,
utmMixin,
alertMixin,
couponMixin,
],
layout: 'default',
data() {
Expand Down Expand Up @@ -535,9 +533,7 @@ export default {
gaClientId,
giftInfo,
gaSessionId,
coupon: this.getApplicableCoupon({
checkoutPrice: customPriceInDecimal,
}),
coupon: this.$route.query.coupon,
customPriceInDecimal,
utmCampaign: this.utmCampaign,
utmSource: this.utmSource,
Expand Down
8 changes: 2 additions & 6 deletions src/pages/shopping-cart/book.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,13 @@ import { getNFTBookCartPurchaseLink } from '~/util/api';
import nftMixin from '~/mixins/nft';
import alertMixin from '~/mixins/alert';
import couponMixin from '~/mixins/coupon';
export default {
name: 'ShoppingCartPage',
filters: {
formatNumberWithUSD,
},
mixins: [nftMixin, alertMixin, couponMixin],
mixins: [nftMixin, alertMixin],
data() {
return {
isGiftDialogOpen: false,
Expand Down Expand Up @@ -379,10 +378,7 @@ export default {
fbClickId: this.fbClickId,
items: this.shoppingCartBookItems,
email: this.walletEmail,
coupon: this.getApplicableCoupon({
cartCoupon: this.coupon,
checkoutPrice: this.totalNFTPriceInUSD,
}),
coupon: this.coupon,
giftInfo,
},
{
Expand Down

0 comments on commit eb78f80

Please sign in to comment.