Jump to content

petrutz91

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • First Name
    Petru
  • Last Name
    Petru

petrutz91's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. To solve this problem first: relax try to be happy becasue you are almost solve it apply the solution of Delorien, is working
  2. I did in this way: Assign a customer to a group which I want to display the price. (customer id=4) Add the folowing to / classes / Product.php public function getPriceGroup($id_product, $tax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = 4, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true) { return Product::getPriceStatic((int)$this->id, $tax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address, $specific_price_output, $with_ecotax, $use_group_reduction, $context, $use_customer_price ); } And after add in the file / yourtheme / product.tpl Price group: {convertPrice price=$product->getPriceGroup()} It took some time to learn the structure, but at the end it work. Hope that it will work also for you. Best regards
  3. I did in this way: Assign a customer to a group which I want to display the price. (customer id=4) Add the folowing to / classes / Product.php public function getPriceGroup($id_product, $tax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = 4, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true) { return Product::getPriceStatic((int)$this->id, $tax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address, $specific_price_output, $with_ecotax, $use_group_reduction, $context, $use_customer_price ); } And after add in the file / yourtheme / product.tpl Price group: {convertPrice price=$product->getPriceGroup()} It took some time to learn the structure, but at the end it work. Hope that it will workfor people who is interested in this feature. Best regards
  4. I did in this way: Assign a customer to a group which I want to display the price. (customer id=4) Add the folowing to / classes / Product.php public function getPriceGroup($id_product, $tax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = 4, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true) { return Product::getPriceStatic((int)$this->id, $tax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address, $specific_price_output, $with_ecotax, $use_group_reduction, $context, $use_customer_price ); } And after add in the file / yourtheme / product.tpl Price group: {convertPrice price=$product->getPriceGroup()} It took some time to learn the structure, but at the end it work. Hope that it will work also for you. Best regards
  5. Hi everyone, I have 3 groups, and for each one i have different prices for Product X. Product X: Group 1 - 10$ Group 2 - 8$ Group 3 - 7$ How I can display all 3 prices on product page. Please help me! I try a lot of different cobinations but without success. Thank you in advance.
  6. Can you please share the working script, I understand the logic and try to adapt for 1.6 but without success. Thank you in advance!
×
×
  • Create New...