Comments (1)
@merkushin, as a side note, you should be able to handle this relatively simply using the following elements:
- The
QuerySitePlans
component fromcalypso/components/data/query-site-plans
, which wraps thefetchSitePlans
action fromcalypso/state/sites/plans/actions
- The
getSitePlan
selector fromcalypso/state/sites/plans/selectors
, which returns aSitePlanData
result, defined inclient/my-sites/checkout/src/hooks/product-variants.tsx
-- that object includesintroductoryOfferFormattedPrice
andintroductoryOfferRawPrice
properties, though you can also rely on the more generalisIntroductoryOfferAppliedToPlanPrice
selector fromcalypso/state/sites/plans/selectors
to determine whether an introductory offer is available.
I hope the pointers help!
from wp-calypso.
Related Issues (20)
- The Site Management Panel widget doesn't load translations on WoA sites HOT 3
- Add Template modal in Mobile Safari has layout issues - WP 6.6
- Event `calypso_signup_actions_submit_step` registration is failing on "Pick your destination"
- Jump to Top on Mobile Post/Page Editor HOT 3
- Slideshare embeds don't work when pasting the URL in the block editor HOT 1
- Cover Block: Video background autoplays on desktop but not on mobile (on Simple sites) HOT 2
- No way to show Link Manager/Blogroll links on front end
- Theme showcase on mobile not loading thumbnail properly, shows question mark symbol. HOT 2
- ETK Migration: wpcom-block-editor-nux
- Site Migration: Show option to get an assisted migration on the migration instructions screen HOT 4
- Block Transforms: Deemphasize transform to "Paid Content" HOT 1
- Task: Build a replica of /start Onboarding flow in Stepper
- Replace the VideoPress upsell by the Explorer plan
- Apply 1-click checkout to “No ads with WordPress.com Explorer” nudge
- Checkout: Broken Business plan upsell with free plan HOT 3
- Copy Site - Unable to finish copying site if Creator plan is purchased via Plans page HOT 1
- Better Trial Aknowledgement for Premium Styles on Free and Starter Plans
- Collect metrics for the PAO landing pages HOT 1
- Newsletter: Settings page prevents you from navigating away. HOT 2
- Buttons block: add behavior settings on hover HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-calypso.