Jump to content

opionai

Members
  • Posts

    26
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

opionai's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. How can I collect the id_order variable to send it with the confirmation email of the cheque module but with base64_encode encoded ( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => here ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Como puedo recoger la variable de id_order para enviarla con el email de confirmación del modulo cheque pero con codificada base64_encode( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => aqui ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } }
  2. but how should I do it ... the idea is to encode in the email the data to be sent by the url
  3. How can I collect the id_order variable to send it with the confirmation email of the cheque module but with base64_encode encoded ( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => here ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Como puedo recoger la variable de id_order para enviarla con el email de confirmación del modulo cheque pero con codificada base64_encode( $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), {id_order} => aqui ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } }
  4. Hello good afternoon. I have this code to send a notice to the administrator public function sendEmailProductOutOfStock($id_customer, $id_product, $id_product_attribute, $id_shop=null, $id_lang=null, $guest_email=null) { $context = Context::getContext(); if (is_null($id_shop)) $id_shop = (int)$context->shop->id; if (is_null($id_lang)) $id_lang = (int)$context->language->id; $customer = new Customer($id_customer); $customer_email = $customer->email; $customer_firstname = $customer->firstname; $customer_lastname = $customer->lastname; $guest_email = pSQL($guest_email); $id_customer = (int)$id_customer; $customer_email = pSQL($customer_email); if ($id_customer==0) $customer_email = $guest_email; $product_name = Product::getProductName($id_product, $id_product_attribute, $id_lang); if (empty($this->_merchant_mails))/* Algunas veces no guarda en $this->_merchant_mails los correos, si es así, los recuperamos de la configuración del módulo*/ $mails = str_replace(',', self::__MA_MAIL_DELIMITOR__, strval(Configuration::get('MA_MERCHANT_MAILS'))); else $mails = $this->_merchant_mails; $template_vars = array( '{id_customer}' => $id_customer, '{customer_firstname}' => $customer_firstname, '{customer_lastname}' => $customer_lastname, '{customer_email}' => $customer_email, '{product}' => $product_name, ); $from = $customer_email; $fromName = ($customer_firstname.' '.$customer_lastname); if (!empty($mails)){ $merchant_mails = explode(self::__MA_MAIL_DELIMITOR__, $mails); foreach ($merchant_mails as $merchant_mail) { Mail::Send( $id_lang, 'new_request_availability', sprintf(Mail::l('Solicitud de disponibilidad del producto: %s', $id_lang), $product_name), $template_vars, $merchant_mail, null, //strval(Configuration::get('PS_SHOP_EMAIL')), //strval(Configuration::get('PS_SHOP_NAME')), $from, $fromName, null, null, dirname(_FILE_).'/mails/', null, $id_shop ); } } else{ Mail::Send( $id_lang, 'new_request_availability', sprintf(Mail::l('Solicitud de disponibilidad del producto: %s', $id_lang), $product_name), $template_vars, strval(Configuration::get('PS_SHOP_EMAIL')), null, // strval(Configuration::get('PS_SHOP_EMAIL')), // strval(Configuration::get('PS_SHOP_NAME')), $from, $fromName, null, null, dirname(_FILE_).'/mails/', null, $id_shop ); } } But I would like to know how I can put in this same mail a list with the attributes type like this Un. Name Atribute 8 Name article - Talla - Talla 2 10 Name article - Talla - Talla 3 0 Name article - Talla - Talla 5 0 Name article - Talla - Talla 6 15 Name article - Talla - Talla 12
  5. It is possible to add the client's email with this code to the Reply-to field if ($dir_mail) Mail::Send( $mail_id_lang, 'new_order', sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference), $template_vars, $merchant_mail, null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], null, null, $dir_mail, null, $id_shop ); } }
  6. how can i make the reply-to be the customer. Mail::Send( $id_lang, $template, sprintf(Mail::l('New order - #%06d', $id_lang), $order->id), $template_vars, $merchant_mail, null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], null, null, dirname(__FILE__).'/mails/', null, $id_shop );
  7. Buenas noches. Como puedo hacer obligatorio el campo pedido observaciones
  8. Buenas tardes foro. Quiero controlar cuando no estan logueados que no vean el gasto de envio en el sumario del carro y lo solucione asi {if $logged}{displayPrice price=$total_shipping}{else}{l s='0,00€'}{/if} Pero el problema es que cuando actualizo la cantidad desde el signo + y - de la cantidad vuelve a mostrarse aunque no este logueado. y eso me pasa también en el caso del fuera de rango busque la solucion asi {if $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery"> <td class="tdfirst" colspan="5">{l s='Shipping:'}</td> <td colspan="2" class="price" id="total_shipping">{l s='0,00 €'}</td> </tr> y el problema es que cuando actualizo la cantidad desde el signo + y - vuelve a mostrarse envio gratuito Gracias de antemano
  9. Buenos dias Foro. Cuando añado un producto al carrito, la imagen vuela hacia el carrito y se queda desplegado y la imagen del producto añadido es más grande que el resto que ya esta en el carro, y si luego refresco la pantalla, la imagen se ajusta como los otras y se hace más pequeña. Como puedo cambiar el tamaño ? Y el carro se queda desplegado y no se recoge Como puedo solucionarlo. Gracias.
  10. Buenos dias Foro. Cuando añado un producto al carrito, la imagen vuela hacia el carrito y se queda desplegado y la imagen del producto añadido es más grande que el resto que ya esta en el carro, y si luego refresco la pantalla, la imagen se ajusta como los otras y se hace más pequeña. Como puedo cambiar el tamaño ? Y el carro se queda desplegado y no se recoge Como puedo solucionarlo. Gracias.
  11. Buenas noches gracias por contestar. Creo que lo voy hacer de una manera. Actualizar los descatalogados desactivandolos de forma masiva y luego desde la sección productos eliminar los desactivados. Creo que luego el cliente puede consultar sin ningun problema sus pedidos anterirores aun que no este el articulo
  12. ¿ De que tablas debo eliminar el artículo para que no quede registro y asi no tener ocupando sitio en la base de datos ? Ademas si un cliente ha comprado anteriormente un producto que esta descatalogado y lo borro, ¿Tendra algún problema en consultar su historial de pedidos si en un pedido esta incluido el articulo descatalogado?
  13. Si claro, yo descargo un listado que me dice el stock y los descatalogados osea que no tienen reposicion
×
×
  • Create New...