Jump to content

zador

Members
  • Posts

    15
  • Joined

  • Last visited

zador's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. var $new_os is form original PS code, please look any instalation of PS 1.6 classes/order/orderhistory.php about line 289. - i ask if its possible paste own code between PS code lines. yes its possible, i make it and work fine.. but code must be simple and continuous, without functions and without parentheses.. for it i looked for solution put code for load external file as include, requiere_once, etc.. now i understand that is need register vars and functions, and register all and token too, simply make module... ok, thankyou mens for yours time, regards from spain
  2. if ($new_os->paid == 1){ is from PS code i think that this object is defined. my pasted line is: echo '<script>window.open("mycode.php","mywindow","menubar=1,resizable=1,width=350,height=250");</script>'; but, where i can define any object?
  3. in orderhistory.php in function public function changeIdOrderState($new_order_state, $id_order, $use_existing_payment = false) just after line: if ($new_os->paid == 1){
  4. i put this code in classes/order/orderhistory.php if ($new_os->paid == 1) { echo '<script>window.open("mycode.php","mywindow","menubar=1,resizable=1,width=350,height=250");</script>'; } for pass vars and launch my own code out of PS classes.. when condition payment acepted is ture, code launch mycode.php but admin page PS put in blank, anybody know why? thank you
  5. if conditiion is true: // set orders as paid if ($new_os->paid == 1) { .... etc i want ejecute or load any file.php with my own code for other pages and other database } how i can make it out of ps classes and ps public functions? its posible?
  6. thank you for your answer! yes is there update order status. simply i want add function to ejecute other code every time when order status is added or changed to "payment accepted", to conect other DB when send variable (id order) when payment is accepted.
  7. Hi, i want add event function every time when order state change to payment accepted paypal, card, or admin manual change. Please where is function what adding rows into ps table order_payment? thank you for any idea.
  8. where is: $this->context->customer->id_default_group = (your group value); what file?
  9. but, when customer is conected there is her selected group in her account. i need show diferents groups before registration i solved it with cookie, but i would like know how make it without cookies in group.php i changed this: $xig = $_GET["ig"]; if($xig>0){ $cookie = Context::getContext()->cookie; $cookie->cookieGroup = $xig; }else{ $cookie = Context::getContext()->cookie; $xig = $cookie->cookieGroup; } $id_group = $xig; you can try it how work with ?ig=4, ?ig=5, ?ig=6 (three diferent group id) http://www.i-culture-online.com/tienda/es/16-productos?ig=5 changed price in first product "i-passport Español" with cookie i can maintain inicial var "ig" in all pages. when variable "ig" is changed in URL, then all pages get other group. this is the idea, but i like it make without cookies. thank you for your time
  10. i solved it with cookie, but i would like know how make it without cookies
  11. Holas! Cómo puedo añadir una variable en cada URL location? Antes de registrar el usuario o antes de entrar en la tienda necesito seleccionar el grupo: estudiante? - profesor? - institucion? despues de seleccionar el grupo quiero enviar variable de id grupo con cada pagina de PS para cargar categorias, productos y sus precios para este grupo. Usuario puede ir atras y seleccionar otro grupo y ver otras categorias, sus productos y otros precios que pertenecen al otro grupo. http://www.i-culture-online.com/tienda/es/?ig=5 En primera carga, envio /?ig=5 (id_group = 5), y cargo el contenido del id grupo 5, pero cuando entro en categoria o en el producto , la variable ig desaparece. en class/group.php he cambiado esta linea if (Validate::isLoadedObject($customer)) $id_group = (int)$customer->id_default_group; else $id_group = $_GET["ig"]; // cuando el grupo no esta definido carga el grupo de la URL pero como puedo mantener esta variable en cada URL al cambiar categoria o producto? gracias por cualquier respuesta, saludos Jozef
  12. Hi, before user registration and before enter on the shop i need select user group: student? - profesor? - institution? after select id group i want send this variable on every page on PS for load categories, content and prices for this group. user can go back and select other id group and load other categories, other content and other prices. http://www.i-culture-online.com/tienda/es/?ig=5 in first load i send /?ig=5 (id_group = 5), and i load content as id group 5 but when i change category or product, variable "ig" is disappear. in class/group.php i change this line if (Validate::isLoadedObject($customer)) $id_group = (int)$customer->id_default_group; else $id_group = $_GET["ig"]; // when id group is not defined, get id group from URL but how i can maintain this variable in URL when location is change? thank you for any answer, best regards, Jozef
  13. Holas! Cómo puedo añadir una variable en cada URL location? Antes de registrar el usuario o antes de entrar en la tienda necesito seleccionar el grupo: estudiante? - profesor? - institucion? despues de seleccionar el grupo quiero enviar variable de id grupo con cada pagina de PS para cargar categorias, productos y sus precios para este grupo. Usuario puede ir atras y seleccionar otro grupo y ver otras categorias, sus productos y otros precios que pertenecen al otro grupo. He integrado PS con iframe dinamico en Joomla http://www.i-culture...a-iculture.html En primera carga, envio /?ig=5 (id_group = 5), y cargo el contenido del id grupo 5, pero cuando entro en categoria o en el producto , la variable ig desaparece. en class/group.php he cambiado esta linea if (Validate::isLoadedObject($customer)) $id_group = (int)$customer->id_default_group; else $id_group = $_GET["ig"]; // cuando el grupo no esta definido carga el grupo de la URL pero como puedo mantener esta variable en cada URL al cambiar categoria o producto? but how i can maintain this variable in URL when location is change? gracias por cualquier respuesta, saludos Jozef
  14. Hi, exist any posibility for add fix variable into every url location? before user registration and before enter on the shop i need select user group: student? - profesor? - institution? after select id group i want send this variable on every page on PS for load categories, content and prices for this group. user can go back and select other id group and load other categories, other content and other prices. http://www.i-culture-online.com/tienda/es/?ig=5 in first load i send /?ig=5 (id_group = 5), and i load content as id group 5 but when i change category or product, variable "ig" is disappear. in class/group.php i change this line if (Validate::isLoadedObject($customer)) $id_group = (int)$customer->id_default_group; else $id_group = $_GET["ig"]; // when id group is not defined, get id group from URL but how i can maintain this variable in URL when location is change? thank you for any answer, best regards, Jozef
  15. Hi, i have the same problem. PS 1.5.2 i have config of zonas, states, shipping prices, weight, and always see freeshipping, incluse when i put aditional cost 2€, not charged this, only freeshipping shows. where is problem thank you for your time. JOzef
×
×
  • Create New...