[Skip to main content](#vessel-content)

#   Hikamarket ACL - view field but not edit

##

- **[darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")**
- [![darrelluk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38717-darrelluk "View darrelluk's Profile") Topic Author
- [ Offline](/forum/user/38717-darrelluk)

Less More

- Posts: 112
- Thank you received: 1
-
-

10 years 4 months ago [\#244764](#244764) by [darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")  *[Hikamarket ACL - view field but not edit](/forum/19-hikamarket/885418-hikamarket-acl-view-field-but-not-edit#244764 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hi,  I am looking to allow a vendor to see certain product fields from the front end, but not be allowed to change their value.  Is this done with the ACL?  An example is the product code. Its created in the back-end by us, needs to be viewed by the vendor at the front end, but must not be able to change its value.  Thx, Darrell")* was created by *[darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")*

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0

Hi,

I am looking to allow a vendor to see certain product fields from the front end, but not be allowed to change their value.

Is this done with the ACL?

An example is the product code. Its created in the back-end by us, needs to be viewed by the vendor at the front end, but must not be able to change its value.

Thx, Darrell

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1NDE4LWhpa2FtYXJrZXQtYWNsLXZpZXctZmllbGQtYnV0LW5vdC1lZGl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

10 years 4 months ago [\#244767](#244767) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hikamarket ACL - view field but not edit](/forum/19-hikamarket/885418-hikamarket-acl-view-field-but-not-edit#244767 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hi,  I am looking to allow a vendor to see certain product fields from the front end, but not be allowed to change their value.  Is this done with the ACL?  An example is the product code. Its created in the back-end by us, needs to be viewed by the vendor at the front end, but must not be able to change its value.  Thx, Darrell")*

Hi,

The "product / edit" ACL are for only the edition.
We didn't add "product / show" ACLs because we though that it wasn't necessary and could be redundant.
But, even if there is no setting or ACL for that, you can force the display of some fields in the "productmarket / form" view.
Like it is already done for the product name Code:

&lt;?php if(hikamarket::acl('product/edit/name')) { ?&gt; &lt;dt class="hikamarket_product_name"&gt;&lt;label&gt;&lt;?php echo JText::_('HIKA_NAME'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikamarket_product_name"&gt;&lt;input type="text" name="data[product][product_name]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_name); ?&gt;"/&gt;&lt;/dd&gt; &lt;?php } else { ?&gt; &lt;dt class="hikamarket_product_name"&gt;&lt;label&gt;&lt;?php echo JText::_('HIKA_NAME'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikamarket_product_name"&gt;&lt;?php echo @$this-&gt;product-&gt;product_name; ?&gt;&lt;/dd&gt; &lt;?php } ?&gt;

So you can perform an override of the view and make some fields visible (un read only) if the vendor do not have edition access.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg1NDE4LWhpa2FtYXJrZXQtYWNsLXZpZXctZmllbGQtYnV0LW5vdC1lZGl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
