Disable access level in prices for vendors

  • Posts: 272
  • Thank you received: 13
11 years 2 months ago #120136

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.1

Is it possible to disable the assignment of different prices according to ACL groups? At moment I see that vendor can set different prices and assign them to different users group. How can I disable the access level for vendor so he can just assign only 1 price for everyone and cannot even see access level parameter?

Please Log in or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #120143

Hi,

If you want to disable the ACL, for the moment the best is to use a view override and remove the column from the view.
It's a shame because we just release a new version of HikaMarket today, if you asked it some days before I would be able to include this feature in the build.
Because the idea to have options (vendor right) for setting the product price currency/acl is a good idea !
So I will put it in my TODO list for the next version.

In the view "productmarket | form_price", find and remove these blocks:

<?php if(hikashop_level(2)){ ?>
			<th class="title"><?php
				echo JText::_( 'ACCESS_LEVEL' );
			?></th>
<?php } ?>
<?php if(hikashop_level(2)){ ?>
			<td class="hikam_acl"><?php
			if(!empty($price->price_id)) {
				echo $this->joomlaAcl->displayButton('price['.$i.'][price_access]', @$price->price_access);
			} else {
				echo '--';
			}
			?></td>
<?php } ?>
<?php if(hikashop_level(2)) { ?>
			<td><?php echo $this->joomlaAcl->displayButton('price[{id}][price_access]', 'all'); ?></td>
<?php } ?>

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 2 months ago #120258

Thanks Jerome,
hope this feature will be implemented in next release.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.058 seconds
Powered by Kunena Forum