free shipping for registered users

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #5513

Hi

we wish to offer our members free shipping on all products and have our non-members pay a flat shipping rate. Is there a way to configure shipping to only apply to non-registered users?

Thanks

Beck

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 10 months ago #5515

Hi,

That's not possible directly with the options in HikaShop.

However, you can edit the file plugins/hikashopshipping/manual.php and replace the code

$rates[]=$rate;
by the code
$user =& JFactory::getUser();
    				if(!$user->guest){
    					$rate->shipping_price = 0;
    				}
    				$rates[]=$rate;
to achieve it.
Please note that this modification will be removed if you update hikashop. You can either reapply it each time you update or make a copy of the manual shipping plugin and make the modification in that copy.

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

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #5523

Thank you! works perfectly!

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

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9360

What are the return value of getUser() and how do they relate to the user group? I would like this same function, but users with Back-end access of Manager. I will be using HikaShop when we are selling books at events and one of my employees will be entering the information. Since they are present there is no shipping, but I don't people to be able to choose it when buying online. (Other suggestions for implementation would be appreciated.)


Cheers,
Todd

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9366

That should be easy to add. We don't have the time today but we'll look at adding access level restrictions on payment and shipping plugins tomorrow.

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

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9372

You are amazing!


Cheers,
Todd

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9525

We just published a new version which adds ACL support on shipping and payment methods in the business edition.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum