Jump to content

ventura

Global Moderators
  • Posts

    4,861
  • Joined

  • Last visited

  • Days Won

    66

ventura last won the day on April 24

ventura had the most liked content!

About ventura

Profile Information

  • Location
    Madrid
  • First Name
    Antonio Ventura
  • Activity
    Developer

Recent Profile Visitors

44,715,316 profile views

ventura's Achievements

  1. better to make another type of approach Modify the _getProducts function, either by modifying the query to add the _getProductID value, or directly modifying or creating a new array to add a new key. eg public function hookDisplayProductAdditionalInfo($params) { $id_shop = Context::getContext()->shop->id; $products = $this->_getProducts($id_shop); $product_with_ids = array(); foreach ($products as $product) { $id_product_from_db = $this->_getProductID($product['id_product']); $product_with_ids[] = array_merge($product, ['id_product_from_db' => $id_product_from_db]); } $this->context->smarty->assign([ 'products' => $product_with_ids ]); return $this->display(__FILE__, 'product.tpl'); } in tpl {foreach from=$products item=product} {$product.id_product_from_db} {/foreach}
  2. I didn't understand it well try this 'page' => $this->_getProductID($params['product']->id)
  3. you need a frontend controller in the module
  4. you have to do it in a module. The hookDisplayProductAdditionalInfo function has to be included in the main class of the module. You can create an example structure for the module here https://validator.prestashop.com/generator
  5. https://support.trustpilot.com/hc/es/articles/115013821328-Instalar-la-integración-PrestaShop-de-Trustpilot#descargar-la-integracion-0
  6. for products and combinations stock https://devdocs.prestashop-project.org/8/webservice/resources/stock_availables/
  7. Dependiendo del tipo de orden que quieras aplicar, puedes utilizar varios métodos, override de la función loadLanguages de la clase Language modificando la query override de la función renderWidget de ps_languageselector modificando el array $languages
  8. Tienes que tener en cuenta la configuracion del path enl a base de datos teniendo en cuenta los prefijos de las tablas ejemplo: SET @domain = 'localhost'; UPDATE ps_configuration SET `value` = 0 WHERE `name` = 'PS_SSL_ENABLED'; UPDATE ps_configuration SET `value` = 0 WHERE `name` = 'PS_SSL_ENABLED_EVERYWHERE'; UPDATE ps_configuration SET `value` = @domain WHERE `name` = 'PS_SHOP_DOMAIN'; UPDATE ps_configuration SET `value` = @domain WHERE `name` = 'PS_SHOP_DOMAIN_SSL' ; UPDATE ps_shop_url SET domain = @domain ; UPDATE ps_shop_url SET domain_ssl = @domain ;
  9. Puede depender de las necesidades concretas . Puedes añadir un nuevo metodo desde un modulo https://devdocs.prestashop-project.org/8/modules/concepts/webservice/ O puedes hacer un override de la funcion updateWs en /classes/Product.php ahi compararías si se aplica un cambio en la marca/ manufacturer y se le pueden aplicar los descuentos correspondientes a las reglas de catalogo con SpecificPriceRule::applyAllRules Otra opción, quizas la más transversal sería hacer override de la funcion saveEntityFromXml en classes/webservice/WebserviceRequest.php para añadir la ejecucion del hook actionProductUpdate
  10. Lo más practico sería utilizar un módulo tipo slider que te permita añadir varios banners y luego modificar la maquetacion para que se muestren los banners en el grid que mas convenga. Puedes duplicar el modulo ps_imageslider, o modificarlo si no lo estas utilizando
  11. $id_product = (int) $params['product']['id']; $id_product = (int) $params['product']->id;
  12. Es muy posible que no todos los módulos que tengas instalados sean compatibles con la versión 8.1 de Prestashop. Prueba a desactivar los módulos no nativos. SIEMPRE antes de cualquier proceso de actualización realizar pruebas previamente en un entorno aislado, o de desarrollo.
×
×
  • Create New...