Jump to content

piotr94

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • First Name
    Piotr
  • Last Name
    Żurek

piotr94's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yes, I'm sure. Customer store has categories like "1-years old", "2-years old" and He want to display all products with this attibute.
  2. Hello, I'm looking for module that create pages for products with features from all categories. Ex. I can open page with all products with feature "Size: S", doesn't matter from witch category it comes. Regards
  3. public static function getProductTaxRate($id_product, $id_address = null, Context $context = null) { if ($context == null) $context = Context::getContext(); $address = Address::initialize($id_address); $groups = Customer::getGroupsStatic((int)($address->id_customer)); $taxratenew = null; foreach ($groups as $g) { if ($g == 8 || $g == 9) { //set the group you want here ( '>;' or '=') return 0; //set the tax rate you want here (e.g. "0") } } if (!$taxratenew) { $id_tax_rules = (int)Product::getIdTaxRulesGroupByIdProduct($id_product, $context); $tax_manager = TaxManagerFactory::getManager($address, $id_tax_rules); $tax_calculator = $tax_manager->getTaxCalculator(); $taxratenew = $tax_calculator->getTotalRate(); } return $taxratenew; } Try this, it works with tax = 0;
  4. Witam, Zajmuję się obecnie budową zamkniętego sklepu dla ograniczonej liczby klientów. Będą to klienci jednej firmy, którzy przy rejestracji powinni podać numer karty pracownika i tylko na jego podstawie będzie możliwa rejestracja. Listę wszystkich numerów będę miał dostępną. Czy jest moduł aby wdrożyć taką funkcję? Jeśli nie - proszę o wskazówki jak zabrać się do budowy takiego modułu.
×
×
  • Create New...