Intro header
Text placeholder. Awaiting final copy.
Subheader if Required
Text placeholder. Awaiting final copy.
Live Test API Array As Table - MockSnippet1 SC-11693
Products | Launch Date | Target Raise (£m) | Over Allotment (£m) | Over Alloting | Raised (£m) | Total Sought (£m) | % Raised | Target Dividend | Deadline | Deadline Details |
---|---|---|---|---|---|---|---|---|---|---|
Products Open |
Api Test Notes re TableDynamic Table for Styling from Test AP
The table above is a working API version using “Mocki.io”, a test API while the real API is being developed.
Note:
To get that the live API data into the HTML table on a page in WordPress, we have had to…
1. Connect to the API using the WPGetAPI plugin
2. That gives us an “Array Tag” which we drop into a PHP code Snippet
3. Within the snippet we can manipulate the array data using PHP (if a raw JSON object we would need to need to decode into an array)
4. That snippet gives us a shortcode we can drop into the WP page
Dev Notes
Teams Comments for spec:
“Ideally the products appearing on the table would also be determined by the VCT offer being set up in Phoenix, initially as coming soon and then updated to Open when it opens.”
“…the plan with Phoenix would be for us to update the excel sheet that would then update the raised amounts on the website but also feed into the offer pages so that everything is synchronised. As per the excel shared for the project the Raised amount is one that would need to feed back into Phoenix, most of the other fields, aside form the two fields we need to calculate would be data from Phoenix populating the website.” – Steve
GrowthInvest is a market-leading adviser platform for tax efficient and alternative investments. Register your interest here for more information on these offers.
Static table for visual reference during development
This table is a styled placeholder for visual reference while the full dynamic API version above is being developed.
Note the “Products Coming Soon” section needs consideration.
Products | Launch Date | Target Raise (£m) | Over Allotment (£m) | Over Alloting | Raised (£m) | Total Sought (£m) | % Raised | Target Dividend | Deadline | Deadline Details |
---|---|---|---|---|---|---|---|---|---|---|
Products Open | ||||||||||
Product Name Data | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed |
Products Coming Soon | ||||||||||
Product Name Data | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed | awaiting data feed |