Ajiokart Marketplace Purchase Links
Ajiokart Marketplace Purchase Links
Description
Ajiokart Marketplace Purchase Links loads the AjioKart Constant Commerce widget from https://markets.ajiokart.com/widget/constant-commerce.js to display marketplace buying options. The widget loads current product options from AjioKart’s marketplace feed. WooCommerce is optional when you supply the AjioKart Product ID in the shortcode.
With WooCommerce active, choose any of four automatic positions: after the product button on shop listings and Product Collection blocks that include a Product Button, after Add to cart on product pages, before product tabs, or after product tabs. The first two open a modal dialog. The tab positions display marketplace options inline on the page. WooCommerce block product templates are supported through their compatibility hooks. On category pages with custom product cards that omit WooCommerce loop hooks, the plugin places mapped product widgets beside the card button. Customize the heading, modal button text, and widget colors in Settings > Ajiokart Marketplace Purchase Links. The screenshots below show the inline and dialog views.
The widget only appears for products with an AjioKart Product ID. Simple products use the ID in Product data > General. For variable products, enter a separate ID for each variation. The selected variation ID takes priority, and the parent ID in General is used when the selected variation has no ID. A variable product-page widget stays hidden until a selected variation or its parent fallback has an ID.
Use [marketplace_trust product_id="G9G37R72PZ"] in a page, post, widget, or Shortcode block to place a modal widget for a specific AjioKart Product ID. This works on a WordPress site without WooCommerce. Use display="inline" for inline options. With WooCommerce active, [marketplace_trust] on a product page uses the current product mapping. For a variable product, the selected variation ID takes priority and the parent ID is used if that variation has no ID. The shortcode works independently of the four automatic position settings, but the main Enable setting must be on. The widget is omitted when no valid Product ID is available.
External service
When a widget is displayed, the visitor’s browser loads its script from AjioKart’s Constant Commerce service at https://markets.ajiokart.com/widget/constant-commerce.js. When inline options are shown or a modal is opened, the widget requests https://markets.ajiokart.com/offers with the configured AjioKart Product ID as the productid query parameter to retrieve current offers and product details. Clicking a marketplace option opens https://markets.ajiokart.com/p.php with that Product ID, the selected marketplace, and the AJIOKART.com referral label; the visitor is then redirected to the selected marketplace. These browser requests can also convey standard request information such as the visitor’s IP address, browser user agent, and referrer according to the visitor’s browser settings. No WooCommerce customer or order details are added to these requests by this plugin.
AjioKart’s Terms & Conditions: https://ajiokart.com/p/terms-and-condition
AjioKart’s Privacy Policy: https://ajiokart.com/p/privacy-policy
Installation
- Upload the plugin folder to
/wp-content/plugins/. - Activate the plugin through the Plugins screen in WordPress.
- In Settings > Ajiokart Marketplace Purchase Links, leave the main Enable setting on and save.
- Add
[marketplace_trust product_id="G9G37R72PZ"]to a page, post, widget, or Shortcode block, replacing the sample ID with the product’s 10-character AjioKart Product ID. - If you use WooCommerce, enable any automatic positions you want. For a simple product, enter its AjioKart Product ID in Product data > General. For a variable product, expand each variation and enter its separate ID in the AjioKart Product ID field beside the variation pricing fields. The selected variation ID takes priority; the parent ID in General is used as a fallback when a variation has no ID and on shop listings. Save the product.
Faq
No. A shortcode with an explicit AjioKart Product ID works on any WordPress site. WooCommerce is needed only for automatic shop and product placements or for a shortcode that reads the current product’s saved mapping.
No widget is shown. On a variable product page, the selected variation’s AjioKart Product ID is used when present; otherwise the parent Product ID is used as a fallback.
Reviews
Changelog
0.3.5
Prioritize variation Product IDs and use the parent Product ID as a fallback.
0.3.4
Require explicit opt-in before showing public attribution and clarify plugin directory metadata.
0.3.3
Load the updated widget with a fresh cache key and keep card hover behavior unchanged when its native dialog opens.
0.3.2
Keep listing dialogs visible above custom product cards and make their buttons fill the card width.
0.3.1
Show the listing modal beside product buttons in custom category cards that omit WooCommerce loop hooks.
0.3.0
Added Product Collection placement and a manual shortcode that also works without WooCommerce, and documented the external service.
0.2.0
Added four display positions, product and variation IDs, widget text and color settings, and the hosted Constant Commerce widget.
0.1.0
Initial structure.