문제

Is it possible or is there an extension that will allow me to set free delivery for customers at customer level and not customer group level

도움이 되었습니까?

해결책

Yes, this can be achieved. You can approach this following way,

  1. Create a customer attribute to set whether the customer is allowed to get free delivery. To create a customer attribute you can follow these links

a. https://stackoverflow.com/questions/5961290/adding-attributes-to-customer-entity

b. Adding custom attribute to Customer

  1. Once the customer attribute is created you can assign your customers to allow free delivery.
  2. Now in your shipping module's collectRates() function you can check whether the customer is allowed free delivery, if it returns true you can set this

$shippingPrice = '0.00';

Thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top