sors11 Posted July 13, 2013 Share Posted July 13, 2013 (edited) Esto es lo que quisiera conseguir.... Si entráis a cualquier ficha de mis productos veréis que hemos incorporado un visor 3d para ver el modelo y que el user lo pueda toquitear (muy majo y cuco está quedando) http://www.elplan3d....ervociborg.html El problema es que no es dinámico, que siempre muestra el mismo archivo"muñeco", el mismo diseño ...y no se muestra el producto que estamos visitando en ese visor. La idea es que al entrar al producto, se coja el ID del producto y, como meteremos en la tabla del producto un nuevo campo llamado "urlarchivo3d", pues que se le pase al visor... El código del visor que muestra el objeto que ahora mismo se ve en todas las fichas de productos es este...pero siempre se ve el mismo...no varía. <div> src="http://www.elplan3d.com/ps/img/47_MINIS_Servociborg.stl" </div> Los archivos están alojados en nuestro server y cada producto mostrado tiene su correspondiente url y archivo fisico. PD: mi idea era ver en product.tpl cómo se muestra la foto del producto buscado e intentar hacer algo parecido...en vez de buscar y mostrar una imagen, pasarle la URL correspondiente a ese código src= cómo lo véis? Edited July 15, 2013 by sors11 (see edit history) Link to comment Share on other sites More sharing options...
Paula Martinez Posted July 13, 2013 Share Posted July 13, 2013 Hola, Me llamo Raul Martinez, No se si hablas de crear un campo nuevo, como he leído aquí: http://www.prestashop.com/forums/index.php?/topic/261324-anadir-campos-cuando-introduces-un-nuevo-producto/page__view__findpost__p__1302196 Link to comment Share on other sites More sharing options...
sors11 Posted July 13, 2013 Author Share Posted July 13, 2013 pues la verdad es que si que me han dado ideas he seguido este: http://www.jose-aguilar.com/blog/como-anadir-campos-extra-a-los-productos-de-prestashop-15x/ Creo un campo llamado "urlarchivo3d" y lo muestro tla cual me dicen ahi Link to comment Share on other sites More sharing options...
sors11 Posted July 13, 2013 Author Share Posted July 13, 2013 En ese tuto hablan de editar el archivo /override/classes/Product.php y meter codigo Pero lo abro online y me sale mal...lo bajo por FTP para editarlo y tambien se ve feo...no como un php estructurado...os pego un cacho...os ha pasado que no veis bien archivos de PS? --------------------------------- <?php /* ///-build_id: 2013060422.3326 /// This source file is subject to the Software License Agreement that is bundled with this /// package in the file license.txt, or you can get it here /// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use /// /// @copyright 2009-2012 Addons-Modules.com /// */ ${"\x47\x4cO\x42\x41\x4cS"}["l\x76\x6c\x79c\x68\x77\x77\x6dc"]="re\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x65\x70h\x63\x78\x6d"]="\x72o\x77";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x6d\x73\x70s\x72h\x6ee\x73"]="pr\x6f\x64\x75\x63\x74s\x49ds";${"\x47\x4c\x4f\x42\x41L\x53"}["zz\x67\x6c\x64\x63f"]="\x72\x65\x73\x75l\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x78c\x67\x68ai\x6a"]="s\x71l\x47\x72\x6fu\x70s";${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x75\x70\x7ary"]="g\x72\x6f\x75p\x73";${"\x47LO\x42\x41\x4c\x53"}["\x7a\x76\x76\x6d\x68\x71s\x6c\x75"]="\x63ou\x6et";${"\x47\x4cOB\x41\x4c\x53"}["\x6fej\x76\x73msa"]="nb\x50\x72o\x64\x75\x63t\x73";${"\x47LOB\x41\x4c\x53"}["\x74f\x62\x73\x67dew\x6f\x61\x7a\x67"]="\x70\x61\x67\x65\x4e\x75\x6d\x62\x65\x72";${"G\x4c\x4f\x42A\x4c\x53"}["\x67ctr\x76\x66"]="\x73e\x6cects";${"\x47L\x4f\x42\x41L\x53"}["q\x78\x67f\x62\x70\x70\ Link to comment Share on other sites More sharing options...
Enrique Gómez Posted July 13, 2013 Share Posted July 13, 2013 Una opción es trabajar con un nuevo campo en base de datos o otra opción es en la plantilla product.tpl meter el visor con el id de producto (que esta disponible con smarty $product->id) para que cargue el que le corresponda Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted July 13, 2013 Share Posted July 13, 2013 En ese tuto hablan de editar el archivo /override/classes/Product.php y meter codigo Pero lo abro online y me sale mal...lo bajo por FTP para editarlo y tambien se ve feo...no como un php estructurado...os pego un cacho...os ha pasado que no veis bien archivos de PS? --------------------------------- <?php /* ///-build_id: 2013060422.3326 /// This source file is subject to the Software License Agreement that is bundled with this /// package in the file license.txt, or you can get it here /// http://addons-module...nditions-of-use /// /// @copyright 2009-2012 Addons-Modules.com /// */ ${"\x47\x4cO\x42\x41\x4cS"}["l\x76\x6c\x79c\x68\x77\x77\x6dc"]="re\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x65\x70h\x63\x78\x6d"]="\x72o\x77";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x6d\x73\x70s\x72h\x6ee\x73"]="pr\x6f\x64\x75\x63\x74s\x49ds";${"\x47\x4c\x4f\x42\x41L\x53"}["zz\x67\x6c\x64\x63f"]="\x72\x65\x73\x75l\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x78c\x67\x68ai\x6a"]="s\x71l\x47\x72\x6fu\x70s";${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x75\x70\x7ary"]="g\x72\x6f\x75p\x73";${"\x47LO\x42\x41\x4c\x53"}["\x7a\x76\x76\x6d\x68\x71s\x6c\x75"]="\x63ou\x6et";${"\x47\x4cOB\x41\x4c\x53"}["\x6fej\x76\x73msa"]="nb\x50\x72o\x64\x75\x63t\x73";${"\x47LOB\x41\x4c\x53"}["\x74f\x62\x73\x67dew\x6f\x61\x7a\x67"]="\x70\x61\x67\x65\x4e\x75\x6d\x62\x65\x72";${"G\x4c\x4f\x42A\x4c\x53"}["\x67ctr\x76\x66"]="\x73e\x6cects";${"\x47L\x4f\x42\x41L\x53"}["q\x78\x67f\x62\x70\x70\ ¿Este codigo es de algun modulo.. de algun override algun modulo que tengas instalado, por que coloca el enlace de addons... que raro...? Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted July 13, 2013 Share Posted July 13, 2013 (edited) En ese tuto hablan de editar el archivo /override/classes/Product.php y meter codigo Pero lo abro online y me sale mal...lo bajo por FTP para editarlo y tambien se ve feo...no como un php estructurado...os pego un cacho...os ha pasado que no veis bien archivos de PS? --------------------------------- <?php /* ///-build_id: 2013060422.3326 /// This source file is subject to the Software License Agreement that is bundled with this /// package in the file license.txt, or you can get it here /// http://addons-module...nditions-of-use /// /// @copyright 2009-2012 Addons-Modules.com /// */ ${"\x47\x4cO\x42\x41\x4cS"}["l\x76\x6c\x79c\x68\x77\x77\x6dc"]="re\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x65\x70h\x63\x78\x6d"]="\x72o\x77";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x6d\x73\x70s\x72h\x6ee\x73"]="pr\x6f\x64\x75\x63\x74s\x49ds";${"\x47\x4c\x4f\x42\x41L\x53"}["zz\x67\x6c\x64\x63f"]="\x72\x65\x73\x75l\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x78c\x67\x68ai\x6a"]="s\x71l\x47\x72\x6fu\x70s";${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x75\x70\x7ary"]="g\x72\x6f\x75p\x73";${"\x47LO\x42\x41\x4c\x53"}["\x7a\x76\x76\x6d\x68\x71s\x6c\x75"]="\x63ou\x6et";${"\x47\x4cOB\x41\x4c\x53"}["\x6fej\x76\x73msa"]="nb\x50\x72o\x64\x75\x63t\x73";${"\x47LOB\x41\x4c\x53"}["\x74f\x62\x73\x67dew\x6f\x61\x7a\x67"]="\x70\x61\x67\x65\x4e\x75\x6d\x62\x65\x72";${"G\x4c\x4f\x42A\x4c\x53"}["\x67ctr\x76\x66"]="\x73e\x6cects";${"\x47L\x4f\x42\x41L\x53"}["q\x78\x67f\x62\x70\x70\ Pega el cacho entero, que lo vea..... (Puedes añadir simplemente lo que te interesa al override (es decir lo del enlace del señor aguilar), pero pega el codigo entero en el foro que veamos antes de hacer nada) Edited July 13, 2013 by Rubalcaba (see edit history) Link to comment Share on other sites More sharing options...
sors11 Posted July 13, 2013 Author Share Posted July 13, 2013 lo pego pero es una flipada de codigo jejej... seguiré el instinto por el camino que propone Egomezpe... se verá mal por mi y los programas que uso? o todo dios lo tiene asi de raro? ---------------------------- <?php /* ///-build_id: 2013060422.3326 /// This source file is subject to the Software License Agreement that is bundled with this /// package in the file license.txt, or you can get it here /// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use /// /// @copyright 2009-2012 Addons-Modules.com /// */ ${"\x47\x4cO\x42\x41\x4cS"}["l\x76\x6c\x79c\x68\x77\x77\x6dc"]="re\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x65\x70h\x63\x78\x6d"]="\x72o\x77";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x6d\x73\x70s\x72h\x6ee\x73"]="pr\x6f\x64\x75\x63\x74s\x49ds";${"\x47\x4c\x4f\x42\x41L\x53"}["zz\x67\x6c\x64\x63f"]="\x72\x65\x73\x75l\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x78c\x67\x68ai\x6a"]="s\x71l\x47\x72\x6fu\x70s";${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x75\x70\x7ary"]="g\x72\x6f\x75p\x73";${"\x47LO\x42\x41\x4c\x53"}["\x7a\x76\x76\x6d\x68\x71s\x6c\x75"]="\x63ou\x6et";${"\x47\x4cOB\x41\x4c\x53"}["\x6fej\x76\x73msa"]="nb\x50\x72o\x64\x75\x63t\x73";${"\x47LOB\x41\x4c\x53"}["\x74f\x62\x73\x67dew\x6f\x61\x7a\x67"]="\x70\x61\x67\x65\x4e\x75\x6d\x62\x65\x72";${"G\x4c\x4f\x42A\x4c\x53"}["\x67ctr\x76\x66"]="\x73e\x6cects";${"\x47L\x4f\x42\x41L\x53"}["q\x78\x67f\x62\x70\x70\x63"]="\x69\x64_\x6c\x61ng";${"G\x4cO\x42\x41\x4c\x53"}["j\x76g\x79\x71\x70\x72"]="\x6f\x72\x64e\x72\x42\x79\x50\x72\x65\x66i\x78";${"G\x4cOBAL\x53"}["q\x64\x78wsq\x64\x68\x6c"]="\x6fr\x64e\x72\x42y";${"\x47\x4cO\x42A\x4c\x53"}["\x65lt\x71swb\x62\x6f\x6an"]="\x6frde\x72\x57ay";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x79\x64\x64j\x76\x64\x65f\x73\x74"]="\x6f\x6ely\x5f\x61\x63\x74i\x76\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["x\x6f\x71p\x61\x77o\x6b\x75"]="\x69\x64_\x63\x61t\x65g\x6f\x72\x79";${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x6d\x6c\x64\x74b\x69\x6d\x64"]="\x6c\x69m\x69t";${"\x47L\x4f\x42A\x4c\x53"}["\x70\x63\x77\x6bo\x66p"]="\x69d\x5f\x73ho\x70_o\x77n\x65\x72";${"\x47\x4cO\x42\x41\x4c\x53"}["\x68x\x65f\x6e\x7a\x6e\x79\x79ol\x66"]="\x77\x68\x65\x72\x65s";${"GL\x4f\x42AL\x53"}["\x70x\x74xbs\x72\x78\x6b\x65\x66"]="\x6a\x6f\x69n\x73";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x72x\x6bf\x75\x71\x71"]="\x70\x61\x72ams";class Product extends ProductCore{public function setCarriers($carrier_list){$gywfiqe="c\x61r\x72i\x65r_l\x69\x73t";$ihmplnglybn="\x63arr\x69\x65r\x5f\x6c\x69\x73\x74";if(Module::isInstalled("\x61g\x69\x6c\x65\x73\x65\x6c\x6c\x65\x72\x73hi\x70ping")AND!empty(${$ihmplnglybn})){${"G\x4c\x4fB\x41\x4c\x53"}["\x6e\x79\x76\x65\x74pfy\x70i\x65"]="\x63arrier\x5f\x6cist";${${"GL\x4f\x42A\x4cS"}["\x6ey\x76e\x74\x70\x66y\x70\x69\x65"]}[]=intval(Configuration::get("A\x47I\x4c\x45_SS\x5fCARR\x49\x45R_\x49\x44"));}parent::setCarriers(${$gywfiqe});}public static function getProductRatingSummary($params,&$smarty){if(Module::isInstalled("agil\x65\x70\x72\x6f\x64uctre\x76iew\x73"))return Module::hookExec("a\x67i\x6c\x65r\x65v\x69e\x77\x73um\x6dar\x79",array("id\x5fprod\x75ct"=>${${"\x47\x4cOBA\x4c\x53"}["\x72\x78\x6bfu\x71\x71"]}["\x69d_pr\x6fd\x75c\x74"]));return"";}public static function getProducts($id_lang,$start,$limit,$orderBy,$orderWay,$id_category=false,$only_active=false,Context$context=null){$vnuo[spam-filter]yknc="\x77\x68e\x72\x65\x73";$xxnurvayc="\x6f\x72\x64\x65\x72Way";$abfnslro="jo\x69\x6e\x73";${"\x47\x4c\x4fBA\x4c\x53"}["h\x77\x68\x63\x64\x72\x61po\x78\x63\x76"]="o\x72d\x65\x72\x42\x79";${${"G\x4c\x4f\x42A\x4cS"}["\x70\x78\x74x\x62\x73r\x78\x6b\x65\x66"]}="";${"\x47L\x4fB\x41\x4cS"}["k\x75\x6f\x71p\x6b\x6e\x6e"]="\x73\x74a\x72t";${"GL\x4f\x42\x41L\x53"}["lz\x70h\x69\x78\x6dtw\x6a"]="o\x72d\x65\x72B\x79";$yhostgk="\x72q";${"\x47\x4cO\x42\x41\x4c\x53"}["y\x73\x66\x79h\x6e\x66\x78\x75\x69r"]="\x6f\x72\x64\x65\x72\x42\x79\x50\x72\x65f\x69\x78";$gfrvuofz="\x69\x64\x5f\x6can\x67";${${"\x47LO\x42A\x4cS"}["\x68x\x65\x66nz\x6ey\x79o\x6cf"]}="";$baqvjpkxv="rq";if(Module::isInstalled("ag\x69l\x65mu\x6c\x74i\x70\x6ce\x73e\x6cl\x65\x72")AND intval(Configuration::get("A\x47I\x4cE_M\x53\x5f\x50ROD\x55\x43\x54_A\x50PR\x4fV\x41\x4c"))){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6bu\x70\x68\x79\x69\x63\x6f\x62l\x68"]="\x77h\x65r\x65s";$yyyrwabpkvg="\x6a\x6f\x69\x6e\x73";$apfxxxbqfjj="\x6a\x6f\x69\x6es";$qmnnwdj="\x69d_\x73\x68\x6f\x70_\x6f\x77n\x65r";$nvxihdb="\x77\x68\x65r\x65s";$nygamvh="\x77h\x65\x72\x65\x73";require_once(dirname(__FILE__)."/../\x2e\x2e/m\x6f\x64\x75le\x73/\x61\x67\x69l\x65\x6d\x75ltip\x6c\x65sel\x6cer/agi\x6ce\x6d\x75l\x74i\x70\x6ce\x73el\x6c\x65r.\x70\x68\x70");${$apfxxxbqfjj}=${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x78\x74\x78b\x73r\x78k\x65f"]}." \x4c\x45\x46\x54 J\x4fIN\x20\x60"._DB_PREFIX_."\x70roduct_\x6fw\x6eer\x60\x20po\x20\x4f\x4e\x20p\x2eid_pr\x6f\x64u\x63t\x3d\x70\x6f\x2ei\x64_p\x72\x6f\x64u\x63t";${$yyyrwabpkvg}=${${"\x47\x4cOB\x41\x4c\x53"}["\x70\x78\x74\x78\x62s\x72\x78\x6b\x65\x66"]}." L\x45FT\x20\x4aOIN `"._DB_PREFIX_."\x73elle\x72inf\x6f` \x73\x69\x20\x4fN p\x6f\x2e\x69\x64\x5fow\x6e\x65r\x3d\x73\x69.i\x64\x5f\x73eller";${${"\x47LO\x42\x41\x4c\x53"}["\x6b\x75\x70\x68\x79\x69\x63\x6fb\x6c\x68"]}=${$nygamvh}."\x20\x41\x4e\x44 \x49\x46N\x55LL(\x70\x6f\x2e\x61p\x70\x72ov\x65d,0) =\x20\x31 ";if(_PS_VERSION_>"\x31.\x35")${${"GLO\x42AL\x53"}["\x68xef\x6ez\x6e\x79\x79\x6fl\x66"]}=${$nvxihdb}.(Shop::${${"GL\x4fB\x41\x4cS"}["p\x63\x77\x6bo\x66\x70"]}>0?" \x41\x4eD\x20si\x2eid\x5f\x73\x65\x6c\x6ce\x72=".Shop::${$qmnnwdj}:"");}${"\x47L\x4fBA\x4c\x53"}["\x6a\x72\x70pf\x67n"]="\x72q";$nkdizrbkvxeu="\x6f\x72\x64\x65\x72\x42y";${"\x47\x4cO\x42\x41\x4cS"}["i\x65\x66\x66r\x68\x6b"]="\x73\x71\x6c";$ajxuofbcd="\x73\x74\x61\x72\x74";if(empty(${$abfnslro})OR empty(${$vnuo[spam-filter]yknc}))parent::getProducts(${$gfrvuofz},${$ajxuofbcd},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x6d\x6c\x64\x74\x62i\x6dd"]},${$nkdizrbkvxeu},${$xxnurvayc},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6fq\x70aw\x6fk\x75"]},${${"\x47L\x4f\x42\x41\x4cS"}["h\x79\x64\x64\x6a\x76\x64\x65\x66st"]});${"\x47\x4cO\x42\x41\x4c\x53"}["\x74q\x6focmc\x6a\x76\x72\x75"]="i\x64_\x63ateg\x6f\x72\x79";if(!Validate::isOrderBy(${${"\x47LOB\x41\x4cS"}["\x68w\x68\x63\x64\x72a\x70\x6f\x78\x63v"]})OR!Validate::isOrderWay(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x6c\x74q\x73\x77\x62\x62o\x6a\x6e"]}))die(Tools::displayError());${"\x47\x4cOB\x41LS"}["\x6e\x79\x67\x78\x77\x64"]="\x6f\x72d\x65\x72By";$dkwleik="\x6f\x72d\x65\x72\x57\x61\x79";${"\x47\x4c\x4fB\x41L\x53"}["z\x63a\x62ur\x6eb\x77z"]="\x6f\x72\x64\x65\x72\x42y";${"\x47\x4c\x4fBA\x4c\x53"}["\x62\x61\x6f\x77\x65\x6d\x61d\x66"]="\x6f\x72d\x65r\x57a\x79";if(${${"\x47\x4cO\x42\x41LS"}["\x71\x64x\x77\x73\x71\x64\x68\x6c"]}=="\x69d_\x70\x72oduc\x74"OR${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x64\x78\x77s\x71dhl"]}=="\x70\x72\x69ce"OR${${"\x47L\x4f\x42\x41\x4cS"}["\x6cz\x70\x68\x69\x78\x6d\x74\x77j"]}=="d\x61t\x65\x5fa\x64d")${${"\x47L\x4fBA\x4cS"}["j\x76\x67\x79\x71p\x72"]}="p";elseif(${${"G\x4c\x4fB\x41\x4c\x53"}["\x71d\x78w\x73\x71dh\x6c"]}=="na\x6de")${${"G\x4c\x4f\x42\x41\x4cS"}["\x6a\x76g\x79\x71p\x72"]}="\x70l";elseif(${${"GL\x4fBA\x4cS"}["ny\x67x\x77\x64"]}=="\x70\x6f\x73i\x74\x69\x6fn")${${"\x47\x4cO\x42A\x4cS"}["\x6a\x76\x67yq\x70\x72"]}="\x63";${"GLO\x42A\x4cS"}["d\x65tcmp\x6ddj\x62"]="\x73\x71l";${${"G\x4cOBA\x4c\x53"}["\x69\x65\x66\x66\x72\x68k"]}="\n\t\t\x53\x45\x4cE\x43\x54\x20\x70\x2e*, \x70\x6c\x2e* ,\x20t.\x60r\x61\x74e`\x20\x41\x53\x20t\x61\x78\x5f\x72ate,\x20m\x2e\x60\x6e\x61m\x65` A\x53 \x6danu\x66\x61\x63t\x75\x72\x65\x72\x5f\x6e\x61\x6d\x65, s\x2e`\x6e\x61m\x65` \x41S \x73\x75\x70pli\x65r\x5f\x6eame\n\t\tF\x52\x4f\x4d\x20`"._DB_PREFIX_."p\x72odu\x63t`\x20p\n\t\t".${${"G\x4cO\x42A\x4c\x53"}["\x70\x78\x74\x78\x62sr\x78\x6b\x65\x66"]}."\n\t\tLEF\x54\x20\x4a\x4f\x49N `"._DB_PREFIX_."p\x72\x6fdu\x63t_l\x61\x6eg\x60 p\x6c\x20\x4fN\x20(p\x2e\x60\x69d_pr\x6fd\x75c\x74` \x3d\x20\x70\x6c\x2e`id_p\x72o\x64\x75ct`)\n\t\tL\x45FT\x20JO\x49N `"._DB_PREFIX_."\x74\x61x\x5f\x72\x75le`\x20t\x72\x20ON (p\x2e\x60\x69\x64_t\x61\x78_r\x75les\x5fgro\x75\x70\x60\x20= t\x72\x2e\x60i\x64\x5f\x74\x61\x78_rul\x65\x73\x5f\x67\x72o\x75p\x60\n\t\t \x20 \x41\x4e\x44\x20\x74r\x2e\x60i\x64\x5fc\x6funtr\x79` \x3d ".(_PS_VERSION_>"\x31.\x35"?(int)Context::getContext()->country->id:(int)Country::getDefaultCountryId())."\n\t\t A\x4eD\x20tr\x2e`\x69\x64_\x73t\x61te`\x20\x3d\x200)\n\t\x20 \x20\x20\x4cE\x46\x54 J\x4fI\x4e `"._DB_PREFIX_."ta\x78\x60 t \x4f\x4e\x20(\x74\x2e\x60\x69\x64\x5f\x74ax` \x3d\x20tr.\x60id_\x74\x61\x78\x60)\n\t\tL\x45FT \x4a\x4f\x49\x4e\x20\x60"._DB_PREFIX_."\x6da\x6e\x75f\x61c\x74ur\x65\x72`\x20\x6d \x4f\x4e\x20(\x6d\x2e`i\x64_\x6da\x6eufa\x63t\x75r\x65\x72`\x20\x3d\x20p\x2e\x60\x69\x64\x5fm\x61n\x75f\x61\x63\x74\x75re\x72\x60)\n\t\tL\x45F\x54 J\x4f\x49N `"._DB_PREFIX_."su\x70\x70\x6c\x69er\x60 \x73 O\x4e (s\x2e\x60\x69\x64_\x73u\x70pl\x69\x65r`\x20=\x20p.\x60\x69d_\x73u\x70pl\x69\x65\x72\x60)".(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["tq\x6f\x6f\x63\x6d\x63\x6a\x76r\x75"]}?"L\x45FT\x20\x4aO\x49N \x60"._DB_PREFIX_."c\x61\x74\x65\x67\x6f\x72\x79\x5f\x70\x72\x6fduct`\x20\x63\x20\x4fN (c\x2e\x60i\x64\x5fp\x72o\x64\x75c\x74` = p\x2e`\x69d_\x70ro\x64\x75\x63t`)":"")."\n\t\t\x57H\x45RE\x20\x70l.\x60i\x64\x5fl\x61\x6eg`\x20\x3d ".(int)(${${"G\x4cO\x42\x41LS"}["\x71x\x67\x66\x62\x70\x70\x63"]}).(${${"\x47\x4c\x4fBA\x4cS"}["\x78oq\x70\x61w\x6fk\x75"]}?"\x20A\x4e\x44\x20\x63\x2e\x60\x69d\x5fcateg\x6f\x72\x79\x60 =\x20".(int)(${${"G\x4c\x4fB\x41L\x53"}["x\x6f\x71\x70\x61\x77\x6fku"]}):"").${${"GL\x4fB\x41\x4c\x53"}["h\x78\x65\x66\x6ezn\x79\x79\x6fl\x66"]}.(${${"\x47\x4c\x4fBA\x4cS"}["\x68\x79\x64\x64jvd\x65\x66\x73\x74"]}?"\x20\x41ND\x20\x70.\x60\x61\x63tive\x60\x20=\x20\x31":"")."\n\t\tO\x52DE\x52 BY ".(isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x76\x67\x79\x71pr"]})?pSQL(${${"\x47\x4c\x4fBALS"}["\x79\x73f\x79\x68\x6ef\x78\x75\x69r"]})."\x2e":"")."`".pSQL(${${"GL\x4fB\x41\x4cS"}["q\x64\x78w\x73qdh\x6c"]})."\x60 ".pSQL(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62a\x6f\x77\x65m\x61d\x66"]}).(${${"\x47\x4c\x4f\x42A\x4cS"}["\x70\x6dl\x64\x74b\x69\x6d\x64"]}>0?" LIM\x49\x54 ".(int)(${${"\x47\x4c\x4f\x42\x41L\x53"}["k\x75\x6f\x71p\x6bn\x6e"]}).",".(int)(${${"\x47L\x4f\x42\x41L\x53"}["\x70m\x6c\x64t\x62i\x6dd"]}):"");${${"\x47\x4cOB\x41\x4c\x53"}["\x6a\x72\x70p\x66\x67\x6e"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(${${"\x47\x4cO\x42A\x4c\x53"}["\x64\x65tcm\x70md\x6a\x62"]});if(${${"\x47L\x4f\x42\x41L\x53"}["z\x63a\x62\x75\x72\x6ebw\x7a"]}=="pri\x63e")Tools::orderbyPrice(${$yhostgk},${$dkwleik});return(${$baqvjpkxv});}public static function getNewProducts($id_lang,$pageNumber=0,$nbProducts=10,$count=false,$orderBy=NULL,$orderWay=NULL,Context$context=null){$nrahueec="nb\x50\x72o\x64\x75\x63\x74\x73";$nptbohpd="\x6fr\x64\x65\x72\x42\x79";$rpkvekklexyz="or\x64e\x72\x57\x61\x79";${"\x47LOBA\x4c\x53"}["e\x71\x78\x71\x74\x6dg\x6c\x6e\x79\x6c"]="\x6f\x72d\x65r\x42y";${"\x47L\x4fBAL\x53"}["\x64\x70\x7am\x65\x78q\x67\x6a"]="\x6f\x72\x64er\x57a\x79";$fdufaby="\x6ao\x69ns";${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x65k\x6c\x73\x73\x68j\x77q"]="\x70\x61\x67\x65N\x75\x6d\x62\x65\x72";${"\x47\x4cO\x42\x41LS"}["\x67i\x69\x61\x79s\x63\x76u"]="r\x65sul\x74";$sfxowywo="\x73\x65\x6ce\x63\x74\x73";$iqmdpwcksfc="\x6e\x62\x50\x72o\x64\x75\x63t\x73";global$cookie;${$fdufaby}="";${${"\x47L\x4fB\x41L\x53"}["\x68xef\x6ez\x6ey\x79\x6f\x6c\x66"]}="";${$sfxowywo}="";${"\x47\x4c\x4f\x42\x41LS"}["tp\x79\x69\x71\x69\x62\x6a\x73\x67\x72"]="re\x73\x75\x6c\x74";${"\x47\x4cO\x42\x41LS"}["\x71jo\x79\x64i\x70s\x6b"]="joi\x6e\x73";if(Module::isInstalled("ag\x69\x6cem\x75\x6ct\x69p\x6c\x65s\x65\x6cler")){${"\x47\x4cOB\x41\x4cS"}["\x63\x66\x76\x70o\x77rh\x78"]="\x73e\x6c\x65\x63\x74\x73";${"G\x4cO\x42\x41\x4c\x53"}["ls\x6f\x6b\x78\x6cur"]="\x73e\x6ce\x63\x74\x73";$edfovqtwznx="joi\x6e\x73";require_once(dirname(__FILE__)."/../\x2e\x2e/\x6d\x6fd\x75l\x65s/a\x67\x69le\x6d\x75l\x74\x69p\x6ce\x73el\x6c\x65r/a\x67ilemult\x69pl\x65\x73\x65l\x6c\x65\x72.\x70hp");${"G\x4cOBA\x4c\x53"}["\x65\x69\x6ep\x66\x63\x6c\x71p"]="s\x65\x6cect\x73";${${"G\x4c\x4fB\x41\x4c\x53"}["\x70\x78t\x78b\x73\x72\x78k\x65\x66"]}=${$edfovqtwznx}."\n \x20 \x20 \x20 \x20\x20\x20 \x20\x20\x20L\x45FT\x20\x4a\x4f\x49\x4e\x20\x60"._DB_PREFIX_."product_o\x77\x6e\x65r`\x20\x70\x6f\x20\x4fN\x20p\x2e\x69d_\x70\x72od\x75c\x74=\x70\x6f.i\x64_\x70ro\x64u\x63t\n\x20\x20\x20 \x20\x20 \x20 \x20\x20\x4cE\x46\x54\x20\x4aO\x49\x4e\x20\x60"._DB_PREFIX_."\x73\x65\x6c\x6ce\x72\x69\x6efo` s\x20\x4fN p\x6f.\x69d\x5f\x6f\x77\x6e\x65\x72\x3ds.id\x5fse\x6c\x6c\x65r\n \x20 \x20\x20 \x20 \x20 \x20 \x20\x20\x20\x4cEFT\x20JO\x49\x4e \x60"._DB_PREFIX_."\x73e\x6cle\x72\x69n\x66\x6f\x5f\x6ca\x6e\x67`\x20s\x6c \x4fN\x20(\x73\x6c\x2e\x69d_\x73\x65l\x6c\x65\x72\x69n\x66o=s\x2eid\x5f\x73e\x6cleri\x6ef\x6f \x41\x4eD\x20\x73l\x2e\x69\x64\x5f\x6c\x61\x6e\x67=".intval($cookie->id_lang).")\n \x20 \x20\x20 \x20\x20\x20 \x20 \x20";$pkiejqec="\x69\x64\x5f\x73\x68\x6f\x70_\x6f\x77ne\x72";${"\x47\x4c\x4fB\x41\x4cS"}["\x6ei\x72\x67\x63p\x72\x6d\x79mp\x79"]="\x77\x68\x65\x72\x65\x73";${"GL\x4fB\x41\x4c\x53"}["j\x66f\x6c\x65jq\x6a\x66\x77"]="\x69\x64\x5f\x73\x68\x6fp\x5fo\x77n\x65\x72";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x63t\x72\x76\x66"]}=${${"\x47\x4c\x4fBALS"}["\x63fvp\x6f\x77\x72hx"]}."\n\x20 \x20\x20\x20 \x20\x20\x20 \x20\x20,\x73l\x2ec\x6f\x6dp\x61\x6e\x79\x20a\x73 sel\x6ce\x72,\x20\x73\x2e\x69d\x5fs\x65ll\x65r\n \x20\x20 \x20 ";$rkpsfvlxgcb="\x77\x68\x65r\x65\x73";if(Module::isInstalled("a\x67i\x6ce\x73\x65\x6c\x6cerp\x72\x6fdu\x63t\x73")||Module::isInstalled("\x61\x67\x69\x6ce\x6d\x75\x6c\x74i\x70\x6c\x65s\x68\x6fp"))${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6cs\x6fkx\x6c\x75r"]}=${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65i\x6e\x70\x66c\x6cq\x70"]}."\n \x20\x20 \x20\x20 \x20 \x20 \x20\x20\x20,1 A\x53\x20ha\x73_se\x6c\x6cerl\x69\x6ek\n \x20\x20 \x20\x20 ";if(_PS_VERSION_>"\x31.\x35")${${"\x47LO\x42\x41\x4c\x53"}["hx\x65fn\x7a\x6e\x79\x79\x6f\x6c\x66"]}=${${"\x47\x4cO\x42\x41\x4cS"}["\x68\x78e\x66\x6ez\x6ey\x79o\x6cf"]}.(Shop::${${"\x47\x4c\x4fB\x41\x4cS"}["\x6af\x66\x6c\x65\x6aq\x6a\x66\x77"]}>0?" A\x4e\x44\x20\x73.i\x64\x5f\x73\x65lle\x72\x3d".Shop::${$pkiejqec}:"");if(intval(Configuration::get("\x41G\x49\x4cE_MS_PROD\x55C\x54\x5f\x41PPR\x4fVAL")))${$rkpsfvlxgcb}=${${"\x47\x4c\x4fBA\x4c\x53"}["n\x69\x72\x67\x63p\x72\x6d\x79m\x70\x79"]}."\x20AND\x20\x49F\x4eULL(\x70\x6f\x2e\x61pp\x72\x6fved,\x30) \x3d\x20\x31 ";}${"\x47L\x4fBAL\x53"}["he\x74\x6di\x63\x76\x67\x66r\x79"]="\x67\x72o\x75p\x73";$pwutgsq="\x6f\x72\x64e\x72\x42\x79";${"GL\x4f\x42A\x4cS"}["q\x71\x74\x70o\x6c\x75\x61\x77"]="\x72\x65\x73u\x6c\x74";if(Module::isInstalled("\x61\x67\x69\x6c\x65\x73el\x6c\x65rl\x69s\x74\x6f\x70\x74io\x6e\x73")){${"G\x4cO\x42\x41\x4c\x53"}["e\x65\x73j\x6a\x71\x72\x79\x77\x6b\x6a"]="\x77h\x65r\x65\x73";require_once(dirname(__FILE__)."/\x2e./../\x6d\x6f\x64\x75\x6c\x65\x73/\x61gi\x6ce\x73\x65\x6c\x6ce\x72\x6ci\x73\x74o\x70t\x69o\x6es/ag\x69\x6ce\x73eller\x6ci\x73to\x70\x74ions.php");${${"G\x4c\x4fB\x41\x4cS"}["p\x78\x74\x78b\x73\x72xke\x66"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x78\x74\x78\x62s\x72\x78\x6b\x65f"]}."\n \x20 \x20 \x20 \x20 \x20 LE\x46T J\x4f\x49N\x20`"._DB_PREFIX_."s\x65ll\x65\x72_\x6c\x69\x73\x74\x6fptio\x6e`\x20\x73l\x74 \x4fN\x20(p\x2eid\x5f\x70\x72\x6fduc\x74 \x3d\x20slt\x2e\x69\x64\x5f\x70r\x6f\x64u\x63t\x20AN\x44 slt.\x69\x64_opt\x69o\x6e \x3d ".AgileSellerListOptions::ASLO_OPTION_LISTTOP.")\n \x20 \x20\x20 \x20 \x20\x20\x20\x20\x20\x4cEFT \x4aOI\x4e\x20`"._DB_PREFIX_."\x73\x65\x6cle\x72\x5fli\x73\x74\x6fp\x74ion\x60 s\x6c\x62\x20O\x4e (p\x2e\x69d\x5f\x70rod\x75\x63t\x20\x3d \x73\x6c\x62\x2e\x69d\x5f\x70r\x6fd\x75c\x74\x20AND\x20slb.i\x64_op\x74i\x6f\x6e\x20=\x20".AgileSellerListOptions::ASLO_OPTION_LIST.")\n\x20 \x20 \x20 \x20\x20\x20 \x20 \x20\x20 ";${${"\x47\x4cO\x42\x41LS"}["\x65e\x73jjq\x72\x79\x77\x6bj"]}=${${"\x47L\x4fBA\x4c\x53"}["h\x78\x65\x66nz\x6eyy\x6fl\x66"]}."\x20\n \x20\t\t\x20\x20\x20 \x41\x4eD\x20\x73l\x62\x2e\x73\x74\x61\x74\x75\x73 = ".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\n \x20 \x20 \x20\x20\x20 \x20\x20 \x20 \x20";}${"\x47\x4c\x4fB\x41\x4cS"}["\x77\x64\x6c\x79\x6e\x6c\x6ac"]="s\x71\x6c\x47\x72\x6f\x75p\x73";$cnsgzpujp="\x6fr\x64\x65r\x57a\x79";${"\x47\x4c\x4fBAL\x53"}["\x65m\x74\x72\x66\x67\x79\x6ce\x63\x62\x79"]="\x6f\x72\x64\x65r\x42y";$bgfbgbtsw="\x6e\x62\x50\x72\x6f\x64u\x63ts";if(empty(${${"\x47L\x4f\x42A\x4c\x53"}["\x70x\x74\x78b\x73\x72\x78k\x65f"]})OR empty(${${"GL\x4f\x42A\x4cS"}["h\x78\x65\x66\x6ez\x6eyy\x6fl\x66"]}))parent::getNewProducts(${${"G\x4c\x4f\x42\x41L\x53"}["qxgf\x62\x70\x70c"]},${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74fbs\x67\x64e\x77\x6fa\x7a\x67"]},${${"\x47L\x4fB\x41LS"}["\x6fe\x6avsm\x73\x61"]},${${"G\x4c\x4fB\x41\x4cS"}["z\x76vm\x68q\x73\x6cu"]},${$nptbohpd},${$rpkvekklexyz});${"G\x4cOBA\x4cS"}["\x74\x6d\x70\x71\x76\x73\x79"]="\x63\x6f\x75n\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69kvi\x64\x62\x66"]="o\x72\x64\x65\x72ByP\x72\x65\x66ix";if(${${"G\x4cO\x42\x41\x4cS"}["\x74f\x62s\x67\x64\x65\x77oa\x7a\x67"]}<0)${${"GL\x4fB\x41\x4cS"}["tf\x62s\x67d\x65w\x6f\x61\x7ag"]}=0;${"\x47\x4cOB\x41\x4c\x53"}["\x70\x71\x74\x70m\x75g"]="o\x72\x64erB\x79\x50\x72ef\x69\x78";$pglshogkyx="\x6f\x72\x64er\x42\x79";$ctkittfv="s\x71\x6c\x47\x72\x6fup\x73";if(${$iqmdpwcksfc}<1)${$nrahueec}=10;$smqofhdhyh="\x69\x64\x5fla\x6eg";${"GL\x4f\x42\x41\x4c\x53"}["\x64\x66\x75\x61\x75\x73\x68"]="\x72\x65\x73\x75\x6ct";$yuecwopwhj="\x6fr\x64\x65\x72By";if(empty(${${"G\x4c\x4fB\x41\x4c\x53"}["\x71d\x78\x77\x73q\x64\x68l"]})||${${"\x47LOB\x41\x4cS"}["\x71d\x78w\x73qdh\x6c"]}=="posi\x74\x69o\x6e")${${"G\x4c\x4f\x42AL\x53"}["e\x71x\x71\x74m\x67\x6c\x6e\x79\x6c"]}="date\x5f\x61dd";if(empty(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65\x6ct\x71\x73w\x62\x62o\x6an"]}))${$cnsgzpujp}="\x44ESC";if(${$yuecwopwhj}=="\x69\x64\x5fprodu\x63\x74"OR${$pglshogkyx}=="\x70ri\x63\x65"OR${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x64\x78\x77\x73\x71\x64\x68l"]}=="dat\x65_\x61d\x64")${${"G\x4cOB\x41LS"}["\x69\x6b\x76\x69\x64bf"]}="\x70";elseif(${${"\x47\x4cO\x42\x41L\x53"}["q\x64x\x77s\x71\x64\x68l"]}=="\x6ea\x6d\x65")${${"\x47LOB\x41\x4c\x53"}["\x70q\x74\x70\x6d\x75g"]}="\x70\x6c";if(!Validate::isOrderBy(${${"\x47\x4c\x4f\x42ALS"}["\x65\x6d\x74r\x66g\x79\x6c\x65\x63\x62\x79"]})OR!Validate::isOrderWay(${${"\x47\x4cO\x42A\x4cS"}["\x65l\x74\x71\x73\x77b\x62\x6f\x6a\x6e"]}))die(Tools::displayError());${${"\x47\x4c\x4fBA\x4c\x53"}["\x77u\x70\x7a\x72y"]}=FrontController::getCurrentCustomerGroups();${${"\x47\x4c\x4fBA\x4cS"}["w\x64l\x79\x6e\x6c\x6ac"]}=(count(${${"\x47L\x4fB\x41\x4cS"}["\x77u\x70z\x72\x79"]})?"\x49N (".implode(",",${${"\x47\x4cOB\x41\x4c\x53"}["\x68etm\x69\x63v\x67\x66r\x79"]}).")":"\x3d\x20\x31");$vgxosqeoli="\x70r\x6fduct\x73\x49d\x73";if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["t\x6dp\x71\x76s\x79"]}){$wtobpsbbgtl="\x72\x65\x73\x75l\x74";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6bhx\x79f\x78\x6a"]="\x6a\x6f\x69ns";${$wtobpsbbgtl}=Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow("\n\t\t\tS\x45\x4c\x45\x43\x54\x20\x43\x4fUNT(\x70.`i\x64\x5f\x70\x72o\x64uct\x60) A\x53 nb\n\t\t\tF\x52OM\x20\x60"._DB_PREFIX_."prod\x75c\x74\x60\x20p\n\t\t\t \x20 ".${${"\x47\x4cO\x42\x41\x4cS"}["r\x6b\x68x\x79\x66\x78\x6a"]}."\n\t\t\tWH\x45\x52E \x60\x61c\x74i\x76\x65`\x20=\x20\x31\n\t\t\t\x41ND\x20\x44\x41\x54ED\x49\x46F(p\x2e`d\x61\x74\x65_\x61dd\x60,\x20DAT\x45_S\x55B(\x4eO\x57(),\x20I\x4eTE\x52\x56AL ".(Validate::isUnsignedInt(Configuration::get("\x50S_N\x42_DA\x59\x53_NEW_PRO\x44\x55\x43T"))?Configuration::get("\x50S_\x4eB_D\x41\x59S\x5f\x4e\x45W\x5f\x50\x52O\x44U\x43\x54"):20)."\x20D\x41Y)) \x3e \x30\n\t\t\t".${${"\x47\x4cO\x42\x41\x4cS"}["\x68\x78\x65\x66n\x7a\x6e\x79\x79\x6fl\x66"]}."\n\t\t\t\x41N\x44\x20p.\x60id\x5fp\x72\x6fdu\x63t\x60\x20\x49\x4e\x20(\n\t\t\t\t\x53ELE\x43T\x20cp.`id\x5fp\x72o\x64uc\x74`\n\t\t\t\tF\x52\x4fM\x20`"._DB_PREFIX_."\x63\x61te\x67\x6fry_gr\x6f\x75p\x60 \x63\x67\n\t\t\t\tLEFT\x20J\x4fI\x4e \x60"._DB_PREFIX_."c\x61\x74\x65go\x72y\x5f\x70r\x6fd\x75c\x74`\x20c\x70\x20O\x4e\x20(c\x70\x2e`\x69\x64\x5f\x63\x61\x74e\x67\x6f\x72y\x60 = cg.`id\x5f\x63\x61te\x67o\x72\x79\x60)\n\t\t\t\t\x57\x48\x45RE \x63g\x2e\x60id\x5fgro\x75\x70\x60\x20".${${"G\x4c\x4fBAL\x53"}["\x72x\x63g\x68\x61\x69j"]}."\n\t\t\t)");${"G\x4cO\x42A\x4cS"}["\x79h\x71g\x70i\x63\x74\x78k"]="\x72\x65s\x75l\x74";return(int)(${${"G\x4cOB\x41L\x53"}["\x79\x68\x71\x67\x70\x69\x63t\x78\x6b"]}["\x6e\x62"]);}${${"\x47\x4cO\x42\x41\x4c\x53"}["\x7a\x7agl\x64\x63f"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS("\n\t\t\x53EL\x45C\x54 p.*, p\x6c\x2e\x60\x64\x65\x73crip\x74\x69o\x6e`, p\x6c.`des\x63\x72\x69\x70t\x69on\x5fs\x68o\x72t\x60,\x20p\x6c.\x60\x6cink\x5f\x72ewr\x69\x74e\x60,\x20p\x6c\x2e\x60\x6deta_de\x73\x63\x72\x69\x70tio\x6e`, pl\x2e\x60m\x65t\x61_\x6b\x65yword\x73`,\x20p\x6c\x2e\x60me\x74a\x5ftit\x6c\x65`, p\x6c\x2e`\x6e\x61me`, \x70\x2e\x60e\x61n1\x33\x60,\x20\x70.`u\x70\x63\x60,\n\t\t\t\x69\x2e\x60\x69\x64_\x69\x6da\x67\x65`,\x20\x69l.\x60\x6c\x65\x67\x65nd\x60,\x20t.\x60rate`,\x20\x6d\x2e`n\x61me\x60\x20AS\x20ma\x6e\x75\x66\x61ct\x75\x72\x65r\x5fn\x61\x6de, DA\x54\x45D\x49FF(\x70\x2e`\x64a\x74\x65_a\x64d\x60, DATE\x5fS\x55\x42(N\x4fW(), INTE\x52V\x41L\x20".(Validate::isUnsignedInt(Configuration::get("\x50\x53_NB_\x44\x41YS\x5f\x4e\x45W\x5f\x50R\x4f\x44\x55CT"))?Configuration::get("\x50\x53\x5f\x4e\x42\x5fD\x41\x59S\x5fNEW_P\x52OD\x55C\x54"):20)."\x20\x44\x41Y)) >\x20\x30\x20\x41S\x20\x6e\x65w,\n\t\t\t(p\x2e`pric\x65\x60\x20* ((100\x20+ (t.`rate\x60))/\x3100)) AS\x20o\x72de\x72\x70\x72ice,\x20p\x61.\x69d\x5fp\x72\x6fd\x75\x63t_\x61\x74t\x72\x69bu\x74\x65\n\t\t\x46\x52O\x4d `"._DB_PREFIX_."pr\x6f\x64uc\x74\x60 p\n\t\t\t\x20\x20 ".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x6aoy\x64\x69psk"]}."\n\t\t\x4cEF\x54\x20\x4a\x4fI\x4e `"._DB_PREFIX_."\x70r\x6fdu\x63t\x5fla\x6e\x67`\x20p\x6c \x4f\x4e (\x70\x2e\x60\x69\x64\x5f\x70ro\x64\x75c\x74` = pl.\x60\x69d\x5f\x70r\x6fd\x75ct`\x20A\x4e\x44\x20\x70l\x2e\x60\x69\x64_\x6ca\x6eg\x60\x20= ".(int)(${${"\x47LOB\x41LS"}["\x71\x78\x67\x66\x62pp\x63"]}).")\n\t\t\x4cEF\x54\x20\x4fU\x54\x45\x52\x20JOI\x4e\x20`"._DB_PREFIX_."\x70r\x6fdu\x63t_a\x74trib\x75\x74e\x60\x20\x70a\x20\x4f\x4e (p.`id\x5fpr\x6fdu\x63t\x60\x20=\x20\x70a\x2e\x60i\x64\x5f\x70\x72\x6fd\x75ct` \x41\x4e\x44 \x60\x64ef\x61\x75l\x74\x5f\x6fn\x60 \x3d 1)\n\t\tL\x45FT\x20\x4a\x4f\x49N \x60"._DB_PREFIX_."\x69mag\x65\x60 \x69 \x4fN (i\x2e\x60\x69\x64\x5fproduc\x74`\x20= \x70.`\x69d_\x70rodu\x63\x74\x60\x20\x41\x4e\x44\x20\x69.\x60c\x6fver`\x20\x3d\x201)\n\t\tL\x45FT\x20\x4aOI\x4e\x20\x60"._DB_PREFIX_."im\x61\x67e_l\x61n\x67`\x20\x69\x6c\x20O\x4e (\x69.`i\x64_im\x61\x67\x65` = \x69\x6c.`id_i\x6da\x67\x65\x60\x20\x41ND\x20i\x6c.`\x69d\x5flan\x67\x60 =\x20".(int)(${${"\x47L\x4f\x42A\x4c\x53"}["\x71x\x67\x66\x62\x70p\x63"]}).")\n\t\t\x4c\x45FT\x20\x4aO\x49N\x20`"._DB_PREFIX_."ta\x78_ru\x6ce`\x20\x74\x72 ON\x20(p.\x60\x69d_tax_r\x75le\x73_gr\x6f\x75\x70\x60 = t\x72.\x60\x69d_\x74ax\x5f\x72ul\x65\x73_\x67r\x6f\x75p\x60\n\t\t\x20\x20 A\x4eD\x20\x74r\x2e`id_\x63\x6fu\x6e\x74r\x79\x60 = ".(_PS_VERSION_>"\x31\x2e\x35"?(int)Context::getContext()->country->id:(int)Country::getDefaultCountryId())."\n\t\t \x20\x41\x4e\x44\x20\x74r\x2e\x60\x69d_\x73\x74a\x74\x65`\x20= \x30)\n\t\x20\x20\x20\x20\x4c\x45F\x54\x20JOI\x4e\x20\x60"._DB_PREFIX_."\x74a\x78\x60 t \x4f\x4e\x20(\x74\x2e`\x69d_\x74a\x78\x60\x20=\x20\x74\x72.\x60id_\x74\x61\x78\x60)\n\t\tLE\x46\x54 \x4aO\x49N `"._DB_PREFIX_."\x6dan\x75\x66a\x63t\x75re\x72`\x20m ON\x20(m.\x60i\x64\x5fman\x75fa\x63\x74\x75\x72er\x60 \x3d \x70\x2e`id\x5fm\x61nu\x66act\x75rer`)\n\t\tW\x48\x45\x52\x45 \x70\x2e`a\x63\x74\x69ve` \x3d\x20\x31\n\t\t\t".${${"\x47LOB\x41\x4cS"}["\x68x\x65\x66\x6ez\x6e\x79y\x6fl\x66"]}."\n\t\tA\x4eD\x20\x44AT\x45\x44\x49\x46\x46(p\x2e\x60\x64ate_\x61dd`, D\x41T\x45_\x53\x55\x42(\x4e\x4fW(), IN\x54E\x52\x56\x41\x4c ".(Validate::isUnsignedInt(Configuration::get("P\x53\x5f\x4eB_\x44A\x59\x53\x5fN\x45\x57\x5fP\x52\x4f\x44UC\x54"))?Configuration::get("P\x53_NB_D\x41Y\x53\x5f\x4e\x45\x57\x5fP\x52\x4fD\x55\x43\x54"):20)."\x20D\x41\x59)) \x3e\x20\x30\n\t\tA\x4eD \x70.\x60\x69d\x5fp\x72\x6fdu\x63t` \x49\x4e\x20(\n\t\t\tSE\x4c\x45C\x54\x20c\x70.`\x69\x64_p\x72od\x75\x63t\x60\n\t\t\tF\x52OM\x20\x60"._DB_PREFIX_."ca\x74\x65\x67o\x72y_g\x72\x6fu\x70`\x20\x63\x67\n\t\t\t\x4c\x45\x46\x54 \x4aOIN\x20`"._DB_PREFIX_."\x63\x61te\x67\x6fr\x79\x5fp\x72\x6f\x64\x75c\x74`\x20\x63\x70\x20ON (\x63p\x2e`\x69d_\x63\x61te\x67\x6fr\x79\x60\x20=\x20cg\x2e`id\x5f\x63\x61te\x67\x6fr\x79\x60)\n\t\t\tW\x48\x45RE \x63\x67.`id\x5f\x67\x72\x6f\x75p\x60 ".${$ctkittfv}."\n\t\t)\n\t\t\x4f\x52DER \x42Y\x20".(isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x76\x67\x79\x71\x70\x72"]})?pSQL(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6a\x76\x67y\x71p\x72"]}).".":"")."\x60".pSQL(${$pwutgsq})."\x60 ".pSQL(${${"G\x4cO\x42\x41\x4c\x53"}["\x65\x6c\x74\x71sw\x62\x62ojn"]})."\n\t\t\x4c\x49MIT ".(int)(${${"GL\x4fB\x41L\x53"}["\x65e\x6bl\x73sh\x6a\x77\x71"]}*${$bgfbgbtsw}).",\x20".(int)(${${"\x47L\x4f\x42\x41L\x53"}["o\x65\x6a\x76\x73\x6ds\x61"]}));if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x64\x78w\x73q\x64h\x6c"]}=="p\x72i\x63e")Tools::orderbyPrice(${${"\x47LO\x42\x41\x4cS"}["d\x66\x75\x61\x75\x73\x68"]},${${"\x47L\x4fB\x41\x4c\x53"}["d\x70\x7am\x65\x78\x71g\x6a"]});if(!${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x71\x74p\x6f\x6c\x75aw"]})return false;${${"\x47\x4c\x4f\x42\x41LS"}["j\x6d\x73\x70\x73r\x68n\x65\x73"]}=array();foreach(${${"\x47LO\x42\x41\x4c\x53"}["\x67\x69\x69\x61\x79\x73\x63v\x75"]} as${${"G\x4c\x4f\x42A\x4c\x53"}["\x78\x65\x70h\x63\x78\x6d"]})${$vgxosqeoli}[]=${${"G\x4c\x4f\x42\x41\x4c\x53"}["x\x65\x70\x68c\x78\x6d"]}["\x69\x64\x5f\x70\x72\x6fd\x75\x63t"];return Product::getProductsProperties((int)${$smqofhdhyh},${${"G\x4cO\x42\x41\x4cS"}["\x74p\x79\x69\x71\x69b\x6a\x73gr"]});}public function add($autodate=true,$nullValues=false){${"\x47\x4cOB\x41L\x53"}["\x69eyqoc\x6bi\x63g"]="\x72\x65\x73";${"\x47\x4cOB\x41L\x53"}["\x77k\x71\x72\x79\x72y"]="\x6eul\x6cV\x61\x6c\x75es";${"\x47L\x4fB\x41LS"}["\x6e\x78z\x69\x6ccxh"]="a\x75\x74o\x64a\x74e";${${"\x47L\x4f\x42\x41L\x53"}["i\x65y\x71\x6fck\x69\x63g"]}=parent::add(${${"\x47\x4c\x4f\x42A\x4c\x53"}["n\x78\x7ai\x6c\x63\x78h"]},${${"G\x4cOB\x41L\x53"}["w\x6b\x71\x72y\x72\x79"]});${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65\x64m\x6e\x6d\x69vd\x67e\x77"]="\x72\x65\x73";if(Module::isInstalled("a\x67\x69\x6ce\x6du\x6c\x74\x69\x70l\x65\x73\x65\x6cler")AND${${"\x47\x4c\x4fB\x41\x4cS"}["e\x64\x6d\x6e\x6d\x69\x76dge\x77"]}){require_once(_PS_ROOT_DIR_."/m\x6f\x64ules/agil\x65mul\x74i\x70l\x65se\x6c\x6cer/a\x67i\x6c\x65mu\x6c\x74i\x70\x6cesell\x65r.ph\x70");AgileMultipleSeller::sendNewProductEmail($this->id);}return${${"G\x4c\x4f\x42\x41\x4c\x53"}["l\x76\x6c\x79c\x68\x77\x77\x6dc"]};[spam-filter] ?> Link to comment Share on other sites More sharing options...
sors11 Posted July 13, 2013 Author Share Posted July 13, 2013 Una opción es trabajar con un nuevo campo en base de datos o otra opción es en la plantilla product.tpl meter el visor con el id de producto (que esta disponible con smarty $product->id) para que cargue el que le corresponda cómo se haría? estoy pez en programacion PS 1) primero pillo el codigo del producto como?...poniendo simplemente $product->id ? 2) y luego como pillo el campo "urlarchivo3d" de ese id_producto? ... con un if? un foreach? 3) como se lo paso al visor? poniendolo dentro del codigo src="urlarchivo3d" Si a alguien le apetece pensarlo ... gracias Link to comment Share on other sites More sharing options...
Enrique Gómez Posted July 14, 2013 Share Posted July 14, 2013 Entiendo que en tu product.tpl tienes metido el código para el visor <div del visor .... src="urlarchivo3d" </div> con urlarchivo3d ahora mismo siempre = http://www.elplan3d.com/ps/img/47_MINIS_Servociborg.stl Tienes el producto con id, referencia, y demás atributos. Pongamos que tienes ref_1, ref_2 ..etc com referencias, entonces te montas los ficheros con un nombre como p.ej MINIS_Servociborg_ref_1.stl, para el producto con ref_1 MINIS_Servociborg_ref_2.stl, para el producto con ref_2 MINIS_Servociborg_ref_3.stl, para el producto con ref_3 . . MINIS_Servociborg_ref_X.stl, para el producto con ref_X . . Luego en el código donde tienes ahora http://www.elplan3d.com/ps/img/47_MINIS_Servociborg.stl pones http://www.elplan3d.com/ps/img/MINIS_Servociborg_{$product->reference}.stl Ahora la url es dinámica y única para cada producto Saludos Link to comment Share on other sites More sharing options...
sors11 Posted July 14, 2013 Author Share Posted July 14, 2013 gracias ego por esa respuesta ... te has explicado de pm... pero hago eso tal cual y nada....te explico...que igual, o falta algo o algo raro hago.... meto como dices en el src esa "parte dinámica".... <div class="skull_viewer" src="http://www.elplan3d.com/ps/img/{$product->urlarchivo3d}" click="0" panel="0" bgcolor=4E76B4 style="width: 350px; height: 350px; margin-top:20px; margin-left:5px; padding-left:20px; position: relative"></div> Meto en la bda, en el campo nuevo "urlarchivo3d" el nombre el archivo .stl (en este caso urlarchivo = 43_MINIS_Torre_Oscura.stl Y peta...no encuentra ese archivo para mostrarlo... Ante el pete he intentado COSAS: - He probado a declarar primero, arriba, una variable, por si tenia que declararla previamente y he seguido haciendo pruebas... var urlarchivo3d ='{$product->urlarchivo3d}'; Y peta - Luego he probado a poner : <div class="skull_viewer" src="{$product->urlarchivo3d}" y en la bda en el campo urlarchivo3d la URL completa, es decir, incluyendo toda la url.... http://..... Y peta Mi duda es...solo con poner {$product->urlarchivo3d} donde quiera ya me lo hace dinámico y pilla la id_producto y el campo "urlarchivo3d"? tan sencillo?...qué puede faltar o qué hago mal? Link to comment Share on other sites More sharing options...
nadie Posted July 14, 2013 Share Posted July 14, 2013 gracias ego por esa respuesta ... te has explicado de pm... pero hago eso tal cual y nada....te explico...que igual, o falta algo o algo raro hago.... meto como dices en el src esa "parte dinámica".... <div class="skull_viewer" src="http://www.elplan3d.com/ps/img/{$product->urlarchivo3d}" click="0" panel="0" bgcolor=4E76B4 style="width: 350px; height: 350px; margin-top:20px; margin-left:5px; padding-left:20px; position: relative"></div> Meto en la bda, en el campo nuevo "urlarchivo3d" el nombre el archivo .stl (en este caso urlarchivo = 43_MINIS_Torre_Oscura.stl Y peta...no encuentra ese archivo para mostrarlo... Ante el pete he intentado COSAS: - He probado a declarar primero, arriba, una variable, por si tenia que declararla previamente y he seguido haciendo pruebas... var urlarchivo3d ='{$product->urlarchivo3d}'; Y peta - Luego he probado a poner : <div class="skull_viewer" src="{$product->urlarchivo3d}" y en la bda en el campo urlarchivo3d la URL completa, es decir, incluyendo toda la url.... http://..... Y peta Mi duda es...solo con poner {$product->urlarchivo3d} donde quiera ya me lo hace dinámico y pilla la id_producto y el campo "urlarchivo3d"? tan sencillo?...qué puede faltar o qué hago mal? Vamos a ver: {$product->urlarchivo3d} mostara lo que hayas metido en el campo urlarchivo3d que has creado siguiendo la guía que te ha dejado arriba Raul: http://www.prestasho...-raul-martinez/ Y con {$product->id} obtienes el id del producto. 1 Link to comment Share on other sites More sharing options...
Enrique Gómez Posted July 14, 2013 Share Posted July 14, 2013 (edited) Olvídate del campo nuevo de la base de datos, la idea es que utilices la referencia ( ó id, pero creo que es mejor la referencia del producto, que ya existe) para generar una url dinámica http://www.elplan3d.com/ps/img/MINIS_Servociborg_{$product->reference}.stl y no {$product->urlarchivo3d}. luego el fichero tienes que renombrarlo tú para que coincida para cada producto Por ejemplo si tienes un producto con referencia ref_1 tienes que tener un http://www.elplan3d.com/ps/img/MINIS_Servociborg_ref_1.stl que corresponderá a ese producto ---- Edited July 14, 2013 by nadie Añadido [code] [/code] en el mensaje (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted July 14, 2013 Share Posted July 14, 2013 Estimado sors11, Estamos muy preocupados por usted. ¿Como ha ido todo? 1 Link to comment Share on other sites More sharing options...
Enrique Gómez Posted July 14, 2013 Share Posted July 14, 2013 (edited) La idea es que no tengas que generar el campo nuevo en base de datos, todo y que es posible y los tutos van muy bien si se puede hacer sin el nuevo campo será más sencillo Por cierto, uno muy bueno es éste http://nemops.com/ex...tashop-objects/ Saludos y ya dirás que tal Edited July 14, 2013 by egomezpe (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted July 14, 2013 Share Posted July 14, 2013 Por cierto, uno muy bueno es éste http://nemops.com/ex...tashop-objects/ Nemo, tiene guías muy interesantes en su blog, son recomendables revisarlas. La idea es que no tengas que generar el campo nuevo en base de datos, todo y que es posible y los tutos van muy bien si se puede hacer sin el nuevo campo será más sencillo Efectivamente, la idea es no usar un campo nuevo en la base de datos sino se necesita, como es en principio este caso, y hacer uso de los campos que nos proporciona Prestashop. 1 Link to comment Share on other sites More sharing options...
Paula Martinez Posted July 14, 2013 Share Posted July 14, 2013 (edited) Hola, Me llamo Raul Martinez, Yo al final, use este enlace: http://blog.belvg.co...prestashop.html que lo vi en un post donde lo comentaba 'Nadie" y me ha venido muy bien. Es un modulo ya preparado que te crea un campo (Te crea una tabla nueva, que es mejor que crear un campo en una tabla de las de por defecto) y se puede adaptar facilmente. Edited July 14, 2013 by Raul Martinez (see edit history) Link to comment Share on other sites More sharing options...
sors11 Posted July 14, 2013 Author Share Posted July 14, 2013 joder y como me mola este foro me descuido un poco en mirarlo y ahi tengo post a mansalva! si es que nos va el rollo coño eh.... que no he podido verlo chicos...que voy de domingueo...pero no os preocupeis que os haré el feedback del tema...se agradece esta ayuda Como dice Victor...este es un camino muy oscuro y tenebroso...y ya voy liado con la web mas de 7 meses!...asi que salir sale por ***** (y es que esto de PS mejor que la droga nano) Link to comment Share on other sites More sharing options...
petete2008 Posted July 14, 2013 Share Posted July 14, 2013 Olvídate del campo nuevo de la base de datos, la idea es que utilices la referencia ( ó id, pero creo que es mejor la referencia del producto, que ya existe) para generar una url dinámica http://www.elplan3d.com/ps/img/MINIS_Servociborg_{$product->reference}.stl y no {$product->urlarchivo3d}. luego el fichero tienes que renombrarlo tú para que coincida para cada producto Por ejemplo si tienes un producto con referencia ref_1 tienes que tener un http://www.elplan3d.com/ps/img/MINIS_Servociborg_ref_1.stl que corresponderá a ese producto ---- Coincido contigo y yo lo haría de esta forma que es la más rápida (aunque lo ideal sería programar un módulo). Sólo tendrías que editar el product.tpl de tu template y cargar la imagen en base a la referencia del producto. Link to comment Share on other sites More sharing options...
sors11 Posted July 14, 2013 Author Share Posted July 14, 2013 ya lo tengo...sois los amos finalmente puse: src="http://www.elplan3d.com/ps/archivos3d/{$product->reference}.stl" Podéis visitar 3 productos que he hecho dinamicos por ahora http://www.elplan3d.com/ps/es/26-batman-hebilla-cinturon.html http://www.elplan3d.com/ps/es/47-servociborg.html http://www.elplan3d.com/ps/es/43-torre-magica.html molan que no? jejeje ...to dinámico ahi estoy a tope con la web....despues de mas de 7 meses dandole al coco las cosas van saliendo! con paciencia y una caña nano Link to comment Share on other sites More sharing options...
sors11 Posted July 15, 2013 Author Share Posted July 15, 2013 quisiera darle una vuelta de tuerca mas ...rizar un poquete el rizo...tengo la idea...pero me falta soltura con la "traduccion a PS" ya se muestra el diseño 3d en el 3d Viewer de cada producto que se esté visitando vale? pero en mi web exiten 2 tipos de productos....virtuales y fisicos... quisiera "capar" el visor cuando se visite un producto Fisico...y que no se muestre (porque casca claro, no hay diseño 3d de ese articulo).... Los productos fisicos estan en unas categorias determinadas...pongamos la 5 y 7 IF( id_categoria != 5 or id_categoria!=7) THEN( <div> src="http://www.elplan3d.com/ps/archivos3d/{$product->reference}.stl" </div> ) END Es correcto este planteamiento? con esto ya lo tendría todo solucionado respecto al 3d viewer thanks Link to comment Share on other sites More sharing options...
petete2008 Posted July 15, 2013 Share Posted July 15, 2013 Si el articulo lo tienes puesto a una categoria por defecto puedes probar con {product->id_category_default}. Esta variable te guarda la categoria por defecto de ese articulo. Si un articulo lo tienes en más de una categoria entonces sería mejor hacerlo de otra forma. Link to comment Share on other sites More sharing options...
sors11 Posted July 15, 2013 Author Share Posted July 15, 2013 ya..entiendo...con esta solucion pillaria la id_categoria del producto que estoy visitnado no?....claro...si...tengo varios productos en mas de una categorias...en la de Destacados y en la suya....pero bueno...puedo ir viendo a ver opciones con la info que me has pasado Link to comment Share on other sites More sharing options...
petete2008 Posted July 15, 2013 Share Posted July 15, 2013 ya..entiendo...con esta solucion pillaria la id_categoria del producto que estoy visitnado no?....claro...si...tengo varios productos en mas de una categorias...en la de Destacados y en la suya....pero bueno...puedo ir viendo a ver opciones con la info que me has pasado Cuando editas un producto en el panel de control, hay un campo que si mal no recuerdo se llama 'categoria por defecto'. Pues es ahí donde el valor que elijas lo guarda en id_category_default. Link to comment Share on other sites More sharing options...
sors11 Posted July 15, 2013 Author Share Posted July 15, 2013 (edited) gracias Petete...solucionado...lo he implementado con este codigo para que no se muestre el visor en esas categorias....cierro el hilo como SOLUCIONADO {if $product->id_category_default != 39 AND $product->id_category_default != 40 } <div class="sculpteo_viewer" src="http://www.elplan3d.com/ps/archivos3d/{$product->reference}.stl" click="0" panel="0" bgcolor=4E76B4 style="width: 350px; height: 350px; margin-top:20px; margin-left:5px; padding-left:20px; position: relative"></div> {/if} Edited July 15, 2013 by sors11 (see edit history) Link to comment Share on other sites More sharing options...
petete2008 Posted July 15, 2013 Share Posted July 15, 2013 de nada!! Link to comment Share on other sites More sharing options...
Recommended Posts