Jump to content

comprope

Members
  • Content count

    25
  • Joined

  • Last visited

3 Followers

About comprope

  • Rank
    PrestaShop Apprentice
  • Birthday 05/17/1992

Profile Information

  • Gender
    Male
  • Location
    Lima, Perú
  • Activity
    User/Merchant

Contact Methods

  • Website URL
    https://linkedin.com/in/rubensaid
  • Facebook
    RubenFelixUNI
  1. I found that in some themes JS this sentence is used: Look for themes/yourtheme/js/modules/loyality/loyality.js or something similar. You can use debug tools of browsers. updateLoyaltyView(parseInt($('#our_price_display').text())); Which produces error in some currencies. So, changed it to this: updateLoyaltyView(parseInt($('#our_price_display').attr("content")));
  2. Infinite Scroll for Prestashop

    dont you have problems with blocklayered? I can see your website?
  3. Infinite Scroll for Prestashop

    there you have in line 200, it has another function name but does the same,
  4. Infinite Scroll for Prestashop

    Just modify file infinitescroll.php as below: function shouldLoadJavascript() { $enabledControllers = array( 'best-sales', 'category', 'manufacturer', 'new-products', 'search', 'supplier'); if(isset($this->context->controller->php_self)){ if(in_array($this->context->controller->php_self, $enabledControllers)){ return true; } } return false; } by function shouldLoadJavascript() { $enabledControllers = array( 'best-sales', 'category', 'manufacturer', 'new-products', 'search', 'supplier','prices-drop'); if(isset($this->context->controller->php_self)){ if(in_array($this->context->controller->php_self, $enabledControllers)){ return true; } } return false; }
  5. Infinite Scroll for Prestashop

    Without any modification to blocklayered.js infinite scroll works for me. However, problem appears when a new filter is activated and no more than one page exists, in that case previous infinite_scroll object declared continues to be triggered (I don't know how). So, in order to fix this situation I'm trying to get update that first object, but no results until now.
  6. Products-compare error

    that should be a problem with your theme, because that piece of code just fix a problem with logical code no related to visuals or smarty.
  7. I will test this case, it may be an important feature for a marketplace
  8. I'm using this code. Is almost the same, but just I'm making sure that code will not call to getProduct() function when CompareController is the context. However, js and css will load on both pages public function hookDisplayHeader($params) { if (!isset($this->context->controller->php_self) || !in_array($this->context->controller->php_self, array('product', 'products-comparison'))) return; $this->context->controller->addCss($this->_path.'css/socialsharing.css'); $this->context->controller->addJS($this->_path.'js/socialsharing.js'); if(in_array($this->context->controller->php_self, array('product'))) $product = $this->context->controller->getProduct(); if (!Validate::isLoadedObject($product)) { return; }
  9. Products-compare error

    Yo lo estoy utilizando algo asi: public function hookDisplayHeader($params) { if (!isset($this->context->controller->php_self) || !in_array($this->context->controller->php_self, array('product', 'products-comparison'))) return; $this->context->controller->addCss($this->_path.'css/socialsharing.css'); $this->context->controller->addJS($this->_path.'js/socialsharing.js'); if(in_array($this->context->controller->php_self, array('product'))) $product = $this->context->controller->getProduct(); if (!Validate::isLoadedObject($product)) { return; }
  10. This is an override, we are not modifying core files directly. If you read developers manuals, you will see that Prestashop mention using overrides to change default behaviour.
  11. Problems with the suppliers page

    That problem was fixed with this line: https://github.com/PrestaShop/PrestaShop/commit/966c24d5d49d1269f854b338ce9ac95235a6268e
  12. Script importar Productos

    Hola ditolas, que problema sucede al tratar de utilizar el script? Sabes si sube imagenes también, o como maneja ese punto? Yo también necesito un script como este, sería genial para mi marketplace. Quisiera conocer que problemas estas teniendo pues segun el post de referencia es basicamente utilizar un archivo ya hecho de prestashop.
  13. I haven't been using it on my site. But I will be use finally. I just developed code becasue I though I would use it but finally desist.. however, now I have to use it .. LOL
  14. Problems with the suppliers page

    this is for manufacturer, but for supplier not. I've been checking new Supplier.php file of new version of Prestashop on GitHub but code is the same, I think the problem wasn't fixe
  15. Ok, I've found the solution. Just have to use this code for product and id_product $product = $this->context->controller->getProduct(); $id_product = (int)$product->id; And this one for category: $category = $this->context->controller->getCategory(); if (!isset($category->id_category)) { if (isset($product->id_category_default) && $product->id_category_default > 1) $category = new Category((int)$product->id_category_default); }
×