De modules weten niet waar ze geplaatst zijn en hebben altijd de opmaak:
Bijgevoegde modificatie voegt een regel toe aan elke positie om de actuele positie op te slaan, bijvoorbeeld:
De modules leggen de waarde vast in een variabele:
De template schrijft afhankelijk van de positie de opmaak:
Installeer bijgevoegde modificatie en klik op Refresh.
Code: Select all
class="col-lg-3 col-md-3 col-sm-6 col-xs-12"
Code: Select all
$setting_info['position'] = 'content_bottom';
Code: Select all
$data['position'] = $setting['position'];
Code: Select all
<div class="<?php echo ($position == 'content_top' || $position == 'content_bottom' )?'col-lg-3 col-md-4 col-sm-6 col-xs-12':'col-xs-12'; ?>">
Attachments
Fix module position
This was in error.log (there is no ocmod.log)pprmkr wrote:Please show what's in system/logs/ocmod.log for:MOD: PprMkr Fix position for modules
2015-02-25 9:26:29 - PHP Notice: Undefined index: status in /www/webvol1/gm/v9nrh8l7ctukbkg/shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:31 - PHP Notice: Undefined index: status in /www/webvol1/gm/v9nrh8l7ctukbkg/shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:47 - PHP Notice: Undefined index: status in /www/webvol1/gm//shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:47 - PHP Notice: Undefined index: status in /www/webvol1/gm//shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:47 - PHP Notice: Undefined index: status in /www/webvol1/gm//shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:47 - PHP Notice: Undefined index: status in /www/webvol1/gm//shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
2015-02-25 9:26:47 - PHP Notice: Undefined index: status in /www/webvol1/gm//shop.oljedroppen.se/public_html/vqmod/vqcache/vq2-catalog_controller_common_column_left.php on line 72
When installing module you have to enter Module name, but it's for internal use only.
You can find the Module name in $setting['name'].
Replace:
By:
Note: Module name is not multilanguage !
You can find the Module name in $setting['name'].
Replace:
Code: Select all
$data['heading_title'] = $this->language->get('heading_title');
Code: Select all
$data['heading_title'] = $setting['name'];
In wish file should I do the change?pprmkr wrote:When installing module you have to enter Module name, but it's for internal use only.
You can find the Module name in $setting['name'].
Replace:By:Code: Select all
$data['heading_title'] = $this->language->get('heading_title');
Note: Module name is not multilanguage !Code: Select all
$data['heading_title'] = $setting['name'];
I tryed, but nothing change. I'll give it 15 minutes though for cache release ....pprmkr wrote:In catalog/controller/module/{latest,featured,special,bestseller}.php
BUT
On all page not using feauterd products I get this error in the header
Notice: Undefined index: status .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in ...vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
THE LOG SAYS
2015-02-25 10:00:34 - MOD: Modification Default
FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 58
FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 20
LINE: 37
LINE: 54
LINE: 65
FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 23
FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 21
LINE: 27
----------------------------------------------------------------
MOD: PprMkr Fix position for modules
FILE: catalog/controller/common/column_left.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 55
FILE: catalog/controller/common/column_right.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/common/content_bottom.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/common/content_top.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/module/latest.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/featured.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/special.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/bestseller.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/view/theme/default/template/module/latest.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/featured.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/special.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/bestseller.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
----------------------------------------------------------------
Disable all vqmod xml's in /vqmod/xml and then enable one by one until error appears.kungmats wrote: On all page not using feauterd products I get this error in the header
Notice: Undefined index: status .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in .../vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Notice: Undefined index: status in ...vqmod/vqcache/vq2-system_modification_catalog_controller_common_column_left.php on line 73
Then you know who's creating that error and then try to fix it.
vqmod.log states all changes are made just fine, no errors there.
Hi thanks for providing the install.ocmod.xml file, but it does not work at my site :-(
http://oc2.pollekedesign.nl/ still got the problem.
My ocmod.log contains the following entries:
http://oc2.pollekedesign.nl/ still got the problem.
My ocmod.log contains the following entries:
Code: Select all
MOD: PprMkr Fix position for modules
FILE: catalog/controller/common/column_left.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 55
FILE: catalog/controller/common/column_right.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/common/content_bottom.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/common/content_top.php
CODE: $setting_info = $this->model_extension_module->getModule($part[1]);
LINE: 53
FILE: catalog/controller/module/latest.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/featured.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/special.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/controller/module/bestseller.php
CODE: $this->load->model('catalog/product');
LINE: 16
FILE: catalog/view/theme/default/template/module/latest.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/featured.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/special.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
FILE: catalog/view/theme/default/template/module/bestseller.tpl
CODE: <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
LINE: 3
----------------------------------------------------------------
2015-02-27 19:19:49 - MOD: Modification Default
FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 58
FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 20
LINE: 37
LINE: 54
LINE: 65
FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 23
FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 21
LINE: 27
----------------------------------------------------------------
Terug naar Nederlands.
Volgens jouw log zijn de aanpassingen goed geschreven en zou de opmaak van de modules in een column veranderd moeten zijn.
Laat eens de eerste 4 regels zien van system/modification/catalog/view/theme/default/template/module/bestseller.tpl
Volgens jouw log zijn de aanpassingen goed geschreven en zou de opmaak van de modules in een column veranderd moeten zijn.
Laat eens de eerste 4 regels zien van system/modification/catalog/view/theme/default/template/module/bestseller.tpl
First part of the file bestseller.tpl
Code: Select all
<h3><?php echo $heading_title; ?></h3>
<div class="row">
<?php foreach ($products as $product) { ?>
<div class="<?php echo ($position == 'content_top' || $position == 'content_bottom' )?'col-lg-3 col-md-4 col-sm-6 col-xs-12':'col-xs-12'; ?>">
<div class="product-thumb transition">
<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
<div class="caption">
<h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
<p><?php echo $product['description']; ?></p>
<?php if ($product['rating']) { ?>
<div class="rating">
<?php for ($i = 1; $i <= 5; $i++) { ?>
<?php if ($product['rating'] < $i) { ?>
<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
<?php } else { ?>
<span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
<?php } ?>
OCMod werkt prima.
Echter: /config.php is onjuist !
Er wordt gebruik gemaakt van constante DIR_CATALOG in /config.php
De modificatie functie maakt echter onderscheid tussen catalog en admin door te testen of DIR_CATALOG is gedeclareerd. Indien ja, dan admin.
Conclusie: alle gewijzigde bestanden voor catalog worden niet gevonden, want het pad wordt DIR_MODIFICATION . admin/
Pas config.php aan:
Wijzig:
In:
En verwijder:
Echter: /config.php is onjuist !
Er wordt gebruik gemaakt van constante DIR_CATALOG in /config.php
De modificatie functie maakt echter onderscheid tussen catalog en admin door te testen of DIR_CATALOG is gedeclareerd. Indien ja, dan admin.
Conclusie: alle gewijzigde bestanden voor catalog worden niet gevonden, want het pad wordt DIR_MODIFICATION . admin/
Pas config.php aan:
Wijzig:
Code: Select all
define('DIR_CATALOG',
Code: Select all
define('DIR_APPLICATION',
Code: Select all
define('DIR_APPLICATION', DIR_CATALOG);
Who is online
Users browsing this forum: No registered users and 41 guests