Jump to content

sari

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Activity
    Web development agency

Recent Profile Visitors

170 profile views

sari's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Edit the product and in the "information" tab, change "Visibility" to "Search Only"
  2. You don't need an attribute to achieve that, you can go to "Price Rules" -> "Catalog Price Rules" and create rules for price based on quantity... if quantity is what you are calling "number of pieces"
  3. This topic exactly handles what you want to achieve: http://www.prestashop.com/forums/topic/334055-moduleadmin-menu-for-module-configure-link/
  4. Thanks, the single quote fixed it. But I see that: $this->module->l works even without the controller name, it shows under the controller section in the Translation page, whats the purpose for the controller name?
  5. Hi, I'm developing a basic module, and trying out the translations thing. What I don't understand is that Only on translatable field is being shown in the modules translations page. I have this basic module: <?php if (!defined('_PS_VERSION_')) { exit; } class Warranty extends Module { public function __construct() { $this->bootstrap = true; $this->name = "warranty"; $this->tab = 'front_office_features'; $this->version = '1.0'; $this->author = 'XXX'; $this->need_instance = 0; $this->ps_versions_compliancy = array('min' => '1.5'); parent::__construct(); $this->displayName = $this->l("Warranty Registration"); $this->description = $this->l("Allow your customers to register their warranty."); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); } public function install() { if (!parent::install()) { return false; } return true; } public function uninstall() { if (!parent::uninstall()) { return false; } return true; } } ?> And a ModuleFrontController the uses this for the translatable strings: $this->module->l("Please fill all rquired fields"); The only thing I see under "warranty" in the translations page is "Are you sure you want to uninstall?". What am I doing wrong?
  6. Another push up, need this one too.
  7. Look for a menu tab with the name AdminProductValidation, if you find one delete it.
  8. @masoud2011 in prestashop 1.6 you can achieve it as follows: 1- Check the css class of the new tab you made (it should be like this "icon-AdminMyModule" assuming your admin controller for the tab name is "AdminMyModuleController". 2- Create a css file in your module "menuTabIcon.css" and add the code you need, for example: .icon-AdminMyModule:before{ content: "\f021"; } 3- register your module with the "displayBackOfficeHeader" hook and implement this method: public function hookDisplayBackOfficeHeader($params) { $this->context->controller->addCSS(($this->_path) . 'menuTabIcon.css'); } You're done, this will display a refresh icon behind the menu item, if you need codes for other icons, find them here in the Fontawesome cheat sheet
×
×
  • Create New...