Linux 软件免费装

Rexivue Lens Prescription for WooCommerce

开发者 vishvajit424
更新时间 2026年10月5日 03:58
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce product fields prescription contact lenses optical

下载

1.3.0

详情介绍:

Rexivue Lens Prescription adds a prescription table to WooCommerce product pages, built for contact lenses and similar optical products. Rexivue is an independent plugin. It is not affiliated with, or endorsed by, WooCommerce or Automattic. For each product you choose: On the product page the customer picks values and the number of boxes for each eye. The cart quantity becomes the total number of boxes (left + right), and WooCommerce charges its normal product (or variation) price for each box. The prescription is shown in the cart, mini-cart, checkout and order, and is saved on the order line item. Features How pricing works The plugin never sets or reads a price from the browser. The line quantity is set on the server from the validated number of boxes, and WooCommerce multiplies its own product price by that quantity, so taxes, coupons and currency plugins behave as normal. Security

安装:

  1. Make sure WooCommerce 8.2 or newer is installed and active.
  2. Upload the rexivue-lens-prescription folder to /wp-content/plugins/, or upload the zip under Plugins > Add New > Upload Plugin.
  3. Activate the plugin.
  4. Edit a product, open the Prescription tab and enable the eyes and fields you need.
Switching from an earlier build Earlier private builds of this plugin were named "YLS Product Custom Fields" or "Optical Custom Fields". To switch:
  1. Deactivate the earlier build.
  2. Install and activate Rexivue Lens Prescription. On activation it copies each product's prescription settings into its own prefixed keys. Orders, carts and prescription files from the earlier build stay readable.
  3. Check a product page, then delete the earlier build.
While an earlier build is active, Rexivue pauses itself and shows a notice on the Plugins screen, so the prescription table is never shown twice. Nginx The upload directory is protected with an .htaccess file on Apache and LiteSpeed. On Nginx add a rule like this to your server block, then reload Nginx: location ^~ /wp-content/uploads/rexivue-prescriptions/ { deny all; return 403; } Files also use random, unguessable names, but the rule above is strongly recommended.

升级注意事项:

1.3.0 First WordPress.org release. Stores switching from an earlier private build should read "Switching from an earlier build" under Installation.

常见问题:

Are SPH, CYL and AXIS mandatory?

No. By default only the number of boxes is required for each enabled eye. Use the rexivue_is_field_required filter to make fields mandatory.

Can customers change the quantity in the cart?

No. The quantity of a prescription line always equals its number of boxes. To change it, the customer removes the line and adds the product again.

Why do catalogue "Add to cart" buttons say "Select options"?

A prescription can only be entered on the product page, so shop and category buttons for prescription products link there instead of adding to cart directly.

Does "Buy Now" work?

A separate Buy Now button provided by your theme is validated first and then left to its own handler. If that handler adds to cart over AJAX without sending the form fields, the server will reject the request because the prescription is missing. Contact your theme author or use the normal Add to cart button.

更新日志:

1.3.0