Jump to content

rsanjose

Members
  • Posts

    14
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Spain
  • Activity
    Developer

rsanjose's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Buenos días, Estoy haciendo pruebas con la API y observo que si pido un recurso con schema=blank me sale bien, siempre que antes no haya pedido un registro. Por ejemplo. Tengo una web en local y hago esta consulta: http://localhost/miweb/api/categories?schema=blank me retorna el esquema en blanco. si hago: http://localhost/miweb/api/categories/1 me retorna la categoría 1 sin problemas, en cambio si hago estas dos consultas de seguida (mediante código) http://localhost/miweb/api/categories/1 http://localhost/miweb/api/categories?schema=blank Ambas me retornan el registro de la categoría 1. Quería saber si eso es así o hay algún problema en el código que estoy utilizando. Gracias.
  2. Checking the index.php code in the admin folder, I check that the bug is just behind the try, in the statement: $response = $kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, false); $request contains: object(Symfony\Component\HttpFoundation\Request)#34 (21) { ["attributes"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#37 (1) { ["parameters":protected]=> array(0) { } } ["request"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#35 (1) { ["parameters":protected]=> array(0) { } } ["query"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#36 (1) { ["parameters":protected]=> array(0) { } } ["server"]=> object(Symfony\Component\HttpFoundation\ServerBag)#40 (1) { ["parameters":protected]=> array(33) { ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_ACCEPT_LANGUAGE"]=> string(35) "es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["HTTP_COOKIE"]=> string(714) "PHPSESSID=9b7522c889cf84f2f0e8451dc62a752e; PrestaShop-3d34cf8190abe60ccf6ab9c809fd627a=def502001df81bb3cc5ff281364ae06bfc198c082a8238c98bd2ef61e9538afb6142f411c306144b8e4a1a66488bcce0ee5746203d21e21992b40c2f89298ae9ff53695d72a1476a9e8ec6090728163e9ff79b71ebf6c61089f5945b89d1925280f7b1f55f3af7835e9cd1cffb353d994f4a9204e58777bd579b39fdf83323381780c862ddd77ba9814119deabb7fd5557638a0245afb8563b9cac0487df95ee862ceb032a31a09a3fcdb0ba0b324452774bc3961214c27435d87674; PrestaShop-86ee8c5b2ca792020e0751a0ac305983=def50200f06fda585c9fd8cd855f0e617328de8fcb94fd0fad7a4a13ca318712d802261458f6318afaccf436cd6161a6290ce078679f692cd7a002b66225f7ac945a422e4a57f5342cba1af66e33e99abf558bb82a49cc688fc13028a2211b18200a0659dfae" ["HTTP_HOST"]=> string(15) "xxx.es" ["HTTP_USER_AGENT"]=> string(73) "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0" ["HTTP_UPGRADE_INSECURE_REQUESTS"]=> string(1) "1" ["DOCUMENT_ROOT"]=> string(30) "/home/xxx/public_html" ["REMOTE_ADDR"]=> string(14) "xxx.xxx.xxx.xxx" ["REMOTE_PORT"]=> string(4) "7967" ["SERVER_ADDR"]=> string(14) "xxx.xxx.xxx.xxx" ["SERVER_NAME"]=> string(15) "xxx.es" ["SERVER_ADMIN"]=> string(25) "[email protected]" ["SERVER_PORT"]=> string(2) "80" ["REQUEST_URI"]=> string(7) "/admin/" ["REDIRECT_URL"]=> string(7) "/admin/" ["BASE"]=> string(6) "/admin" ["REDIRECT_STATUS"]=> string(3) "200" ["HTTP_MOD_REWRITE"]=> string(2) "On" ["SCRIPT_FILENAME"]=> string(46) "/home/xxx/public_html/admin/index.php" ["QUERY_STRING"]=> string(0) "" ["SCRIPT_URI"]=> xxx.es/admin/" ["SCRIPT_URL"]=> string(7) "/admin/" ["SCRIPT_NAME"]=> string(16) "/admin/index.php" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["SERVER_SOFTWARE"]=> string(9) "LiteSpeed" ["REQUEST_METHOD"]=> string(3) "GET" ["PHP_SELF"]=> string(16) "/admin/index.php" ["REQUEST_TIME_FLOAT"]=> float(1479969505.92) ["REQUEST_TIME"]=> int(1479969505) ["argv"]=> array(0) { } ["argc"]=> int(0) } } ["files"]=> object(Symfony\Component\HttpFoundation\FileBag)#39 (1) { ["parameters":protected]=> array(0) { } } ["cookies"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#38 (1) { ["parameters":protected]=> array(2) { ["PHPSESSID"]=> string(32) "9b7522c889cf84f2f0e8451dc62a752e" ["PrestaShop-3d34cf8190abe60ccf6ab9c809fd627a"]=> string(376) "def502001df81bb3cc5ff281364ae06bfc198c082a8238c98bd2ef61e9538afb6142f411c306144b8e4a1a66488bcce0ee5746203d21e21992b40c2f89298ae9ff53695d72a1476a9e8ec6090728163e9ff79b71ebf6c61089f5945b89d1925280f7b1f55f3af7835e9cd1cffb353d994f4a9204e58777bd579b39fdf83323381780c862ddd77ba9814119deabb7fd5557638a0245afb8563b9cac0487df95ee862ceb032a31a09a3fcdb0ba0b324452774bc3961214c27435d87674" } } ["headers"]=> object(Symfony\Component\HttpFoundation\HeaderBag)#41 (2) { ["headers":protected]=> array(9) { ["accept"]=> array(1) { [0]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" } ["accept-encoding"]=> array(1) { [0]=> string(13) "gzip, deflate" } ["accept-language"]=> array(1) { [0]=> string(35) "es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3" } ["connection"]=> array(1) { [0]=> string(10) "keep-alive" } ["cookie"]=> array(1) { [0]=> string(714) "PHPSESSID=9b7522c889cf84f2f0e8451dc62a752e; PrestaShop-3d34cf8190abe60ccf6ab9c809fd627a=def502001df81bb3cc5ff281364ae06bfc198c082a8238c98bd2ef61e9538afb6142f411c306144b8e4a1a66488bcce0ee5746203d21e21992b40c2f89298ae9ff53695d72a1476a9e8ec6090728163e9ff79b71ebf6c61089f5945b89d1925280f7b1f55f3af7835e9cd1cffb353d994f4a9204e58777bd579b39fdf83323381780c862ddd77ba9814119deabb7fd5557638a0245afb8563b9cac0487df95ee862ceb032a31a09a3fcdb0ba0b324452774bc3961214c27435d87674; PrestaShop-86ee8c5b2ca792020e0751a0ac305983=def50200f06fda585c9fd8cd855f0e617328de8fcb94fd0fad7a4a13ca318712d802261458f6318afaccf436cd6161a6290ce078679f692cd7a002b66225f7ac945a422e4a57f5342cba1af66e33e99abf558bb82a49cc688fc13028a2211b18200a0659dfae" } ["host"]=> array(1) { [0]=> string(15) "xxx.es" } ["user-agent"]=> array(1) { [0]=> string(73) "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0" } ["upgrade-insecure-requests"]=> array(1) { [0]=> string(1) "1" } ["mod-rewrite"]=> array(1) { [0]=> string(2) "On" } } ["cacheControl":protected]=> array(0) { } } ["content":protected]=> NULL ["languages":protected]=> NULL ["charsets":protected]=> NULL ["encodings":protected]=> NULL ["acceptableContentTypes":protected]=> NULL ["pathInfo":protected]=> NULL ["requestUri":protected]=> NULL ["baseUrl":protected]=> NULL ["basePath":protected]=> NULL ["method":protected]=> NULL ["format":protected]=> NULL ["session":protected]=> NULL ["locale":protected]=> NULL ["defaultLocale":protected]=> string(2) "en" }
  3. I have made a new installation, but on my server it is not possible to activate php_intl. Could that be the problem? The error message in Mozilla is ERR_EMPTY_RESPONSE I only use the Spanish language, is it possible to work without the php_intl extension? Local installation (with php_intl) works fine! Thanks!
  4. Buenos días, Acabo de instalar un certificado SSL en mi página web y funciona correctamente salvo en la página principal. La página principal parece cargar primero como segura y luego, no sé si es que habrá alguna redirección que pasa a no segura. En Firefox sale un triángulo gris con una admiración: Esta conexión no es segura. Conexión parcialmente cifrada. La verdad es que estoy bastante desorientado y creo que un mensaje así es peor aún que no tener certificado. Uso prestashop 1.6.1.1 En preferencias, configuración tengo activado SSL en todas las páginas. En preferencias, SEO + URLs tengo puesto www.mipagina.com en dominio y dominio ssl. Alguien me puede orientar. Os paso copia de mi .htacess: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: www.mipagina.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^mipagina.es [NC] RewriteRule ^(.*)$ https://www.mipagina.com/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^www.mipagina.es [NC] RewriteRule ^(.*)$ https://www.mipagina.com/$1 [L,R=301] # start ~ module watermark section <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteRule [0-9/]+/[0-9]+\.jpg$ - [F] </IfModule> # end ~ module watermark section RewriteCond %{HTTP_HOST} ^mipagina\.es$ [OR] RewriteCond %{HTTP_HOST} ^www\.mipagina\.es$ RewriteRule ^/?$ "http\:\/\/www\.mipagina\.com" [R=301,L] Muchas gracias.
  5. ¡Lógico! (hasta cierto punto) No permite usar el cupón hasta que se asegure de que el cliente no va a devolver la mercancía.
  6. Buenas tardes, Estoy probando el módulo Loyalty (La fidelidad de los clientes y las recompensas v1.2.3 - by PrestaShop) y la verdad es que está bastante bien. Leyendo por el foro, veo que hay gente que con razón, se queja de que el cliente no puede generar el cupón justo antes de finalizar la compra con la idea de aplicar los puntos obtenidos de compras anteriores, sino que el cupón se genera con fecha de validez futura (en mi caso no se puede usar hasta 7 días después de haberlo generado). Mirando el código, veo que en loyalty-program.php, hace el cálculo de la fecha de la siguiente manera: $dateFrom += 60 * 60 * 24 * (int)Configuration::get('PS_ORDER_RETURN_NB_DAYS'); // Convierte los días en segundos e incrementa la variable $dateFrom en esos segundos Pues nada, está claro, basta con cambiar PS_ORDER_RETURN_NB_DAYS (que en mi caso vale 7) por 0 (cero) y asunto solucionado. Pero… ¿Seguro? He comprobado que esa variable no la crea el módulo, sino que ya exite. ¿Para qué sirve? ¿Afectará a algo más si la pongo a 0? Muchas gracias.
  7. I have the same problem, too! I observe that missing bars in the path (see bold in quote) xampphtdocs must be /xamp/phtdocs/
  8. Buenas. No sé si lo llegaste a solucionar, pero lo que yo necesito es que se incluya un texto fijo en todos los mensajes. Crear un fichero con el texto e incluir un "include" en todos las plantillas. Si mañana tengo que cambiar ese texto, pues lo cambio en el fichero y se cambia en todas las plantillas. ¿Sabes cómo podría hacerlo? Gracias.
  9. Buenos días, Después del saludo, esta es mi primera intervención y tenía dudas de si esto se considera configuración o si debía de ir al foro general (pido disculpas si me he equivocado de foro). Voy al grano. Estoy iniciándome en Prestashop y tengo una tienda casi preparada. El caso es que ahora me estoy metiendo en personalizar los mensajes (email) que se envían a los clientes. Los mensajes se encuentran en la siguiente ruta: /mail/es Si miramos algunos de los mensajes, comprobamos que se pueden utilizar variables... Por ejemplo: Hola {firstname} {lastname}, El tema está en que en atención a la Ley Orgánica 15/99 que todos conoceréis, me gustaría añadir a todos los mails un texto informando de los derechos del cliente. ¿Existe alguna forma de que ese texto vaya en una variable del tipo {piepagina} o algo así por si en algún momento hay que cambiarlo funcione con todos los mails de una sola vez. P.D. También me sirve si hay opción de hacer un include. Muchas gracias.
  10. Hola a todos. Aprovecho esta invitación para presentarme ante todos. Soy informático de la vieja escuela, y tras muchos años trabajando en una empresa me veo en la necesidad de reciclarme y retomar las riendas de mi vida. Aunque tengo experiencia en la programación clásica, veo que ahora el futuro está en la web. Prestashop es una herramienta muy potente... Me parece mentira que sólo estudiando y haciendo pruebas, en poco más de una semana tengo una tienda casi totalmente operativa. Este foro me ha resuelto muchas dudas con sólo ver lo que ya se ha solucionado. Os animo a continuar y trataré de ayudar en todo lo que pueda. Saludos Rafa.
×
×
  • Create New...