Jump to content

IGNITER

Members
  • Posts

    63
  • Joined

  • Last visited

About IGNITER

  • Birthday 05/29/1978

IGNITER's Achievements

Newbie

Newbie (1/14)

1

Reputation

2

Community Answers

  1. Yes, I copied the default theme and then started changing it. It is version 1.5.6.1.
  2. Hello, I have resized the left and the right column in product page in order to accommodate larger image. Now there is 5 little thumbnails visible instead of the 3 originally. I have noticed that if there are only 3 pictures per product Prestashop doesn't shows the arrows. How to tell the Presta to show its arrows only if there is more than 5 pictures? Thanks!
  3. There is a solution I found. I put a static page in the module dir and in the file /views/templates/front/display.tpl I entered simple <iframe src="{$modules_dir}/... > ... </iframe> tag. It's not beautiful, it is not nice, but at least is working. Since it is static page there is no a translation. I came to the conclusion that it is not easy to write fully functional module for prestashop. In favor of the community I am uploading my progress of that module so far. Feel free to use it for whatever purpose you want, modify it, improve it and make it fully functional if you can. reservation.zip
  4. Nothing changed when I tried to move them up and down too. It's the grid that is messing, I moved all the modules code to the same level of the grid where the logo is. Some say that the grid made customization more convenient, but I doubt it.
  5. Solved! In header.tpl I moved the code: <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> </a> from <div id="header" class="grid_9 alpha omega"> ... </div> to <div id="header_right" class="grid_9 omega"> ... </div> Here is the result: <!-- Header --> <div id="header" class="grid_9 alpha omega"> <div id="header_right" class="grid_9 omega"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> </a> {$HOOK_TOP} </div> </div>
  6. It must be by changing the code in some of the .tpl files, moving that piece of code between the right <div> tags. One of my greatest concerns is that it holds the logo little higher and opens a space between the header links. It doesn't looks good in general.
  7. Hi, I was searching for similar topics and I didn't found. I want to move permanent links and the language block to the top of the page. Here it is now: And I wanted to make it like this:
  8. I think I have an idea what's going on. Here is the code from one of the CSS files as is: reservation.css .form { width: 300px; font-size:15px; font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; padding-left: 5px; padding-right: 5px; background: url(../img/form.jpg); border: 1px solid #CCC; } .half_form { width: 140px; font-size:15px; font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; padding-left: 5px; padding-right: 5px; background: url(../img/half_form.jpg); border: 1px solid #CCC; } .nano_form { width: 70px; font-size:20px; font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; padding-left: 6px; padding-right: 6px; background: url(../img/nano_form.jpg); border: 1px solid #CCC; } .msg_form { width: 300px; height:120px; font-size:15px; font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; padding-left: 6px; padding-right: 6px; background: url(../img/msg_form.jpg); border: 1px solid #CCC; resize: none; } Maybe the image path "background: url(../img/image.jpg);" can't be located for some reason. The other thing is the CSS styles of the forms such as: width: 300px; height: 120px; resize: none; are not recognized properly. The only thing that is OK is the "font-size" declaration. The directory structure looks that way:
  9. I have put this code: public function setMedia(){ parent::setMedia(); if ($this->assignCase == 1) $this->addJS(_THEME_JS_DIR_.'functions.js'); $this->addJS(_THEME_JS_DIR_.'zebra_datepicker.js'); $this->addCSS(_THEME_CSS_DIR_.'reservation.css'); $this->addCSS(_THEME_CSS_DIR_.'zebra_datepicker.css'); } in /controllers/front/display.php It seems that it does something but comparing to what must be is not the same. Don't know where the problem is.
  10. The main module file ... this one: reservation.php <?php if (!defined('_PS_VERSION_')) exit; class Reservation extends Module { public function __construct() { $this->name = 'reservation'; $this->tab = 'front_office_features'; $this->version = '0.1.0'; $this->author = 'Svetoslav Doikov'; $this->need_instance = 1; $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6'); //$this->dependencies = array('blockcart'); parent::__construct(); $this->displayName = $this->l('Reservation'); $this->description = $this->l('Simple reservation mailer.'); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); if (!Configuration::get('MYMODULE_NAME')) $this->warning = $this->l('No name provided'); } public function hookDisplayLeftColumn($params) { $this->context->smarty->assign( array( 'reservation' => Configuration::get('RESERVATION'), 'my_module_link' => $this->context->link->getModuleLink('reservation', 'display') ) ); return $this->display(__FILE__, 'views/templates/hooks/reservation.tpl'); } public function install() { if (Shop::isFeatureActive()) Shop::setContext(Shop::CONTEXT_ALL); return parent::install() && $this->registerHook('LeftColumn') && $this->registerHook('header') && Configuration::updateValue('RESERVATION', 'my friend'); } } ?> It is described that way in the docks so I have decided to name it that way.
  11. As far as I understand it ... it should be like: public function setMedia() { $this->addCSS(_THEME_CSS_DIR_.'css/reservation.css'); $this->addJS(_THEME_JS_DIR_.'js/reservation.js'); return parent::setMedia(); } I have tried this in the bootstrap module file, it didn't work. Am I wrong?
  12. I managed it to work -> http://urbain5.credo96.com/index.php?fc=module&module=reservation&controller=display&id_lang=2 Thanks to this -> http://www.prestashop.com/forums/topic/290064-solved-link-not-working-creating-a-prestashop-15-module/ When I placed the files accordingly and the content appear. I am not sure it is the right way, but at least it works. They are 2 things left: 1. to attach the CSS and JS properly (as far as I can see the CSS works strange) 2. to include somewhere that piece of PHP code that actually sends the mails. Any help will be appreciated!
×
×
  • Create New...