- Posts: 2
- Thank you received: 0
free shipping for registered users
15 years 8 months ago #5513
by beckles
free shipping for registered users was created by beckles
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
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.
15 years 8 months ago #5515
by nicolas
Replied by nicolas on topic Re: free shipping for registered users
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
by the code
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.
That's not possible directly with the options in HikaShop.
However, you can edit the file plugins/hikashopshipping/manual.php and replace the code
Code:
$rates[]=$rate;
Code:
$user =& JFactory::getUser();
if(!$user->guest){
$rate->shipping_price = 0;
}
$rates[]=$rate;
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.
15 years 8 months ago #5523
by beckles
Replied by beckles on topic Re: free shipping for registered users
Thank you! works perfectly!
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9360
by williamstdd
Cheers,
Todd
Replied by williamstdd on topic Re: free shipping for registered users
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.
15 years 7 months ago #9366
by nicolas
Replied by nicolas on topic Re: free shipping for registered users
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.
15 years 7 months ago #9372
by williamstdd
Cheers,
Todd
Replied by williamstdd on topic Re: free shipping for registered users
You are amazing!
Cheers,
Todd
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9525
by nicolas
Replied by nicolas on topic Re: free shipping for registered users
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.177 seconds