Hi,
One group of products can only be bought by registered dealers, as customers need a prescription to get a refund from their health insurance.. However, these products should be visible to all visitors - they should just not be able to buy them directly.
How can I ensure that the products are visible, but can't be bought by guests, only registered dealers?
Instead of using the "access level" setting of the products (which would remove the product completely from the frontend for people without access to them), you want to use the "access level" setting of the prices of these products.
Then, turn off the "display add to cart button for free products" setting of the HikaShop configuration so that the products won't be available for purchase when the prices are not accessible.
And you can use a translation override to change the "free" text to something else, like for example "only available for some user groups".
www.hikashop.com/download/languages.html#modify
All other products should be able to be bought as a guest. However, there is no form showing for guests to add their address details. Don't know what I've done wrong here - help is appreciated.
Can you make sure that you correctly enabled "guest" mode via "Hikashop->System->Configuration->Checkout" options ?
In addition I am getting the following error message on the checkout screen:
Notice: Undefined variable: url_itemid in /home/kuenzli1/public_html/components/com_hikashop/views/checkout/tmpl/show_block_buttons.php on line 17.
If you're only having "notice" and no warning messages it won't affect your shop.
Note that when your shop is in production mode you should :
- Disable the Joomla debug mode ("Administration->Global configuration->System->Debug System/Language")
- Set the "error reporting" option of the Joomla configuration to "none"
Best regards,
Mohamed Thelji.