Jump to content

razaro

Global Moderators
  • Posts

    2,541
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by razaro

  1. Not sure if this is same module but it is not compatible with 1.5 check https://github.com/barthuttinga/prestashop-1.3/blob/master/modules/statshome/statshome.php Line include_once(dirname(__FILE__).'/../..'.$this->_adminPath.'/tabs/AdminStats.php'); [/code was causing error.
  2. No donation needed, glad it works. Good luck with website, looks like you have nice products.
  3. What version of Prestashop are you using and do you use some specific theme ? In default 1.5.4.1 modules/blocknewproducts/blocknewproducts.php public function hookHeader($params) { $this->context->controller->addCSS(($this->_path).'blocknewproducts.css', 'all'); }
  4. Yes sorry for not being too clear thought that link was enough.
  5. http://www.prestashop.com/forums/index.php?/topic/208918-errors-and-bugs-how-do-i-fix-these/page__view__findpost__p__1030233
  6. Issue is not in class_index.php but in some other file, where ) is missing or ; is left out. It could be from some module. Also you did not mention what version are you using, did you maybe modified some core files or are some files overridden. Also if you enable debug mode maybe full error stack could help.
  7. You can try to hide it with css body#module-mailalerts-myalerts #left_column { display:none} body#module-mailalerts-myalerts #center_column{ width:980px}
  8. Check Preferences > SEO & URLs and edit index page, by default there is "Shop powered by PrestaShop" in meta description. But if you think about text "Powered by PrestaShop" then that check module BlockCMS and uncheck that option.
  9. That block is in themes/blackwhite/modules/editorial/editorial.tpl .
  10. Try this SELECT p.id_product, p.active, pl.name, GROUP_CONCAT(DISTINCT(cl.name) SEPARATOR ",") as categories, p.price, p.reference, m.name as 'manufacturer' FROM ps_product p LEFT JOIN ps_product_lang pl ON (p.id_product = pl.id_product) LEFT JOIN ps_category_product cp ON (p.id_product = cp.id_product) LEFT JOIN ps_category_lang cl ON (cp.id_category = cl.id_category) LEFT JOIN ps_manufacturer m ON (p.id_manufacturer = m.id_manufacturer) WHERE pl.id_lang = 49 AND cl.id_lang = 49 GROUP BY p.id_product
  11. You can do that by going to Tools > Translation and selecting Email translations and choosing correct language and expanding core emails or you can edit files directly in root folder mail/en/ for example, files are contact_form.html and contact_form.txt.
  12. OK for 1.4 version try this <!-- availability --> <p id="availability_statut" style="display:block;"> {if ($product->quantity > 0 && $product->available_now) && $product->available_for_order && !$PS_CATALOG_MODE} <span id="availability_label"> {l s='Availability:'} {$product->available_now} </span> {/if} <span id="availability_value" {if $product->quantity <= 0} class="warning_inline" {/if}> {if $product->quantity <= 0 && $allow_oosp} {if $product->available_later} {l s='Availability date:'}{$product->available_later} {/if} {elseif $product->quantity <= 0 && !$allow_oosp} {l s='This product is no longer in stock'} {/if} </span> </p> and settings for product in back office
  13. It depends from your Prestashop version and theme. So in 1.5 in Product back office on Quantity tab you can make settings like this so in front office on default theme it shows Code for it is in product.tpl <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> <p id="availability_date"{if ($product->quantity > 0) OR !$product->available_for_order OR $PS_CATALOG_MODE OR !isset($product->available_date) OR $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> but maybe it is removed from your theme or hidden with css.
  14. You should use echo Tools::getValue('ApprovedCode'); and also check in request if that value is set in first place.
  15. OK I see that tpl files are in correct place but css files are not there so check if folders in theme exists. So folders like css, js,img should be in path themes/appstore/css, themes/appstore/js ..
  16. If default theme is in root/themes/deafult your theme should be in root/themes/appstore/ but you have placed it in themes/themes/appstore/ so just move appstore one level up.
  17. OK I tried on local server and found 2 issues. Here are codes for files. CertificatCadouController.php <?php class CertificatCadouControllerCore extends FrontController { public $php_self = 'certificatcadou'; public function initContent() { parent::initContent(); $this->context->smarty->assign('currentController', get_class($this)); $this->setTemplate(_PS_THEME_DIR_.'certificatcadou.tpl'); } } certificatcadou.php (was missing <?php tag at beginning ) <?php require(dirname(__FILE__).'/config/config.inc.php'); Tools::displayFileAsDeprecated(); Tools::redirect('index.php?controller=certificatcadou'.($_REQUEST ? '&'.http_build_query($_REQUEST, '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently'); certificatcadou.tpl (wrong variable name used) {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} <h1>Testpage</h1> controller: {$currentController} In controller variable currentController is assigned so that is used in tpl file. This should work for you now.
  18. Try to delete class_index.php in root cache folder.
  19. <?php class FrontController extends FrontControllerCore { public function init() { parent::init(); $this--->context->smarty->assign('currentController', get_class($this)); } } Here you have $this--->context instead of $this->context . Also you can move $this->context->smarty->assign('currentController', get_class($this)); to your CertificatCadouControllerCore init function.
  20. In part 'options' => array( 'query' => 'test', 'id' => 'id_category_parent', 'name' => 'name' ), instead of 'test' there should be some array which you probably get from database. But for example here is hard-coded $optionsforselect = array( array('id_category_parent' => '1','name' => 'Home' ), array('id_category_parent' => '2','name' => 'Ipods' ), array('id_category_parent' => '3','name' => 'Laptop' ) ); And the you can use 'options' => array( 'query' => $optionsforselect, 'id' => 'id_category_parent', 'name' => 'name' ),
  21. Yes same thing for me in Chrome and think issue is with some styles or javascript of lightbox script. It adds element.style { width: 806px; height: 616px; font-size: 6454448px; } to div#outerImageContainer and that font-size seams to cause trouble. As you deselect that line in Chrome dev tools image is shown.
  22. There is good advice from one other forum member about that - to contact developer before purchase to see how support is. Also if you have some issues with modules, give a chance to developers to try to fix them before asking for refund. And you can post also in Addons sub-forum.
  23. Yes, maybe with that module in your case you would not gain much, depending on your products and how many attribute groups you have for each product. Also here is one other module to check out http://addons.prestashop.com/en/front-office-features-prestashop-modules/2209-custom-colors-colorize.html
  24. Maybe this could help you, it is paid module "Attribute Wizard Pro" check this demo http://demo.presto-changeo.com/151awp/index.php?id_product=8&controller=product and more info at http://www.prestashop.com/forums/topic/47363-module-attribute-wizard-pro-create-an-unlimited-number-of-attributes-and-display-as-radio-button-checkbox-dropdown-textbox-teaxtarea-files/
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More