Jump to content

Henry

Members
  • Posts

    2
  • Joined

  • Last visited

Henry's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I got a problem when I try to get the info from sells with discounts on Prestashop (V. 1.6.1.17); This is the situation, on my company we are using Prestashop to sell On-Line, perhaps for all the bak we are getting the info from the orders and processing it on another system (one made inside the company). On the beginning of the implementation, we think that we only were going to use the value discounts, but now we have the necessity to make marketing campains, that must use percent discounts, therefor the rutine to obtain the info from the orders on Prestashop must be changed. The principal differences we found on this new kind of discounts was: 1.- on table ps_order_detail, field reduction_amount, reduction_amount_tax_incl y reduction_amount_tax_excl , are getting the value of 0. 2.- on table ps_order_detail, field reduction_percent, are getting the percentaje that apply to the product. 3.- on table ps_orders, fields total_discounts, total_discounts_tax_incl y total_discounts_tax_ecl, aren't getting the value when the product just have the percent discount. Thats why I want to ask you the next: * When I use only the percent discount, fields that show the reduction (on table ps_order_detail) and discounts (on table ps_orders), always show 0 ? * If yes, the total value of discount that on the other process was calculated on the fields total_discounts, always is necesary to get it from the detail (getting it from price * quantity * percentage)? * When we use the both kind of discounts (value and percetage) on the same product, on an order, this info is saved on diferents fields?, I mean the percetage just is saved on the field reduction_percent and the value of discount on field reduction_amount and total_discount?; In other words, to obtain the total discount that apply to this product, I must add the value on the fields reduction_amount plus what I get from the percentage? Thank you in advance for your support. Greetings.
  2. Buenas Tardes, Tengo un problema en obtener la información de las ventas con los descuentos en PrestaShop (v 1.6.1.17), El caso es el siguiente, en mi empresa estamos usando PrestaShop para realizar las ventas en línea, sin embargo para hacer todo el back estamos obteniendo la información de los pedidos y realizando el proceso de facturación, financiero, contable, etc. en otro sistema (uno interno que ya se usaba para tiendas físicas). Inicialmente se había planteado usar descuentos planos (solo en monto) para realizar los descuentos a los productos mostrados en prestashop; sin embargo ahora se tiene la necesidad de hacer campañas por descuentos en porcentajes, por este motivo las rutinas de obtención de estos montos deberá cambiar. Las principales diferencias que encontramos son: 1.- en la tabla ps_order_detail , en los campos reduction_amount, reduction_amount_tax_incl y reduction_amount_tax_excl, me están guardando un valor de 0. 2.- en la tabla ps_order_detail, en el campo reduction_percent, me está guardando el porcentaje que se le debe aplicar al producto. 3.- en la tabla ps_orders, en los campos total_discounts, total_discounts_tax_incl y total_discounts_tax_ecl, no se está guardando información cuando el producto solo tiene descuento en porcentaje. Ante esto quisiera preguntarles lo siguiente: * Cuando se usa únicamente porcentaje de descuento, ¿los campos que indican reducción (en order_detail) y descuentos (en orders), siempre mostrarán 0 ? * De ser así, el monto a descontar correspondiente al porcentaje establecido, ¿siempre es necesario calcularlo a partir del detalle? * Cuando se utilizan descuentos tanto fijos como porcentajes que apliquen en un mismo producto, de una transacción, ¿se guardará la información por separado?; es decir el porcentaje solo se guarda en reduction_percent y el descuento fijo en reduction_amount y total_discount ?; lo cual me llevaría que para obtener el descuento total real, debería sumar lo calculado a partir del detalle (porcentaje) y lo que encuentre en los campos mencionados anteriormente? Muchas Gracias de antemano por su apoyo. Saludos
×
×
  • Create New...