shop_page
Fetch a storefront page as a visitor sees it, save its HTML, and retrieve status, size, title, and fragments matching your find text. Add debug for a parser report.
Instructions
Fetch a page of THIS store as a visitor sees it and save the HTML under mcp/melbis/pages/. Answers status, size, title and then the fragments matching find - or the head of the page when neither find nor debug is given - read the saved file for the rest. Mind two things: a save drops the cache of the module the file belongs to, its views included, and nothing else - the rest is cleared by hand; and this is markup, not a picture - how it LOOKS is still for the owner to say. debug=true adds the parser report: timings, SQL count, cache state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Show the fragments containing this text instead of the head of the page. | |
| path | No | Address part, for example /catalog/; / by default. Query string allowed. | |
| post | No | Fields of a form, sent as a visitor sends them - this turns the read into a POST. It is how the storefront is driven: a basket filled, a request left, a review written. ALWAYS AGREE WITH THE OWNER FIRST and say what you will send and where: unlike a page read, this leaves real rows in the store and may email the manager. The cookies of a post are kept for this session, so a sequence of them is one visitor; a plain read is always a fresh visit. | |
| debug | No |