Jump to content

Aldar

Members
  • Posts

    3
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Estonia
  • First Name
    Aldar
  • Last Name
    Reinberk

Aldar's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi BO has a feature that should enable to change the position of features or feature values by drag-drop them into suitable position. Unfortunately it does not work. I have tried different browsers. cleared cache and even did two fresh installations. When moving item around and releasing it, I get an confirmation message that everything was OK and I can see new arrangement. But after I refresh all the positions fall back into default place. I have attached an image to better explain what I mean. Have you had similar problem?
  2. I think I figured it out. I went for the override method and although I'm not sure it is the best solution but at least it's short and it's working. Sure you could make delivery method ID (sort of) to be configurable but for sake of this example I left it as static. class Cart extends CartCore { public function getDeliveryOptionList(Country $default_country = null, $flush = false) { $option_list = parent::getDeliveryOptionList($default_country, $flush); // get delivery address ID $id_address_delivery = Context::getContext()->cart->id_address_delivery; // Get address detail data by ID $address_data = Address::initialize($id_address_delivery); if ($address_data->vat_number == '') { // remove the carrier that is meant only for business customers unset($option_list[key($option_list)]['3,']); } else { // remove the carrier that is meant only for private customers unset($option_list[key($option_list)]['4,']); } return $option_list; } }
  3. Hi I'm currently trying to figure out the best way to implement this idea. What I want to achieve is to make only certain carriers available when (non registered) customers make a purchase for company by filling "Company" and "VAT number" fields in quick order. At the moment I am not sure if this should be done Overriding Cart class method "getDeliveryOptionList()". Creating a custom Carrier module. Modifying template file. Anybody has suggestions? Aldar
×
×
  • Create New...