User Specific CSP Archive Page lists all the products for with applied CSP for the currently logged in user, for roles of the user & for the user groups user belongs to.
How to create a special shop page
- Create a new page on your WordPress instance.
- WordPress Admin > Pages > Add New
OR
- Edit an existing WordPress page
- Add the following shortcode.
- [csp-products-for-user]
- Update & view the page
Customize The Product Display On A Special Shop Page
[Defaults: Pagination is enabled, 10 Products Per Page, 4 Columns on the page]
- Enable/Disable the pagination (Default: true)
- Enable : [csp-products-for-user paginate=”true”]
- Disable : [csp-products-for-user paginate=”false”]
- Limit the products per page (Default: 10)
- [csp-products-for-user paginate=”true” limit=”12″]
- Replace the number 12 with your choice of a number.
- Manage the number of columns to be displayed (Default: 4)
- [csp-products-for-user paginate=”true” limit=”12″ columns=”6″]
Useful hooks to disable showing some CSP types
The following are the hooks can be used to disable showing products of certain types of customer-specific pricing.
- csp_archive_show_product_usp
- csp_archive_show_product_rsp
- csp_archive_show_product_gsp
- csp_archive_show_cat_usp
- csp_archive_show_cat_rsp
- csp_archive_show_cat_gsp