Joomla module on Hikashop
13 years 1 month ago #120288
by lacasetta
my site with Hikashop
www.lacasettabio.it
Joomla module on Hikashop was created by lacasetta
-- url of the page with the problem -- :
mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Hi,
i'd like to know better how does it work a joomla module on hikashop pages.
For example: i have a module and i chose to publish it on Hikashop.
I have set, like first page of my shop, the module "'Associated products listing for category listing menu ".
So i published a module X on that page and it works.
But i have the same module published everywere on Hikashop also on the checkout process.
Is it possible to have the module X just on some page of Hikashop?
For example I don't like it on the checkout.
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Hi,
i'd like to know better how does it work a joomla module on hikashop pages.
For example: i have a module and i chose to publish it on Hikashop.
I have set, like first page of my shop, the module "'Associated products listing for category listing menu ".
So i published a module X on that page and it works.
But i have the same module published everywere on Hikashop also on the checkout process.
Is it possible to have the module X just on some page of Hikashop?
For example I don't like it on the checkout.
my site with Hikashop
www.lacasettabio.it
Please Log in or Create an account to join the conversation.
13 years 1 month ago #120374
by nicolas
Replied by nicolas on topic Joomla module on Hikashop
Hi,
A page is defined by the current menu item in joomla. So you can assign a module to some pages and not others only if those pages are on different menu items.
For the checkout, by default you stay on the listing menu item where you came from. So you can restrict a module to the listing and not the checkout.
However, if you set the "force a menu on checkout" option of the configuration, your checkout will potentially be on a different menu item than your listing. That way, using the "menu assignment" option of your module, you will be able to have it on your listings but not on your checkout.
For a more fine grained display of modules based on the current page, you can use the extension Advanced Modules Manager.
A page is defined by the current menu item in joomla. So you can assign a module to some pages and not others only if those pages are on different menu items.
For the checkout, by default you stay on the listing menu item where you came from. So you can restrict a module to the listing and not the checkout.
However, if you set the "force a menu on checkout" option of the configuration, your checkout will potentially be on a different menu item than your listing. That way, using the "menu assignment" option of your module, you will be able to have it on your listings but not on your checkout.
For a more fine grained display of modules based on the current page, you can use the extension Advanced Modules Manager.
Please Log in or Create an account to join the conversation.
13 years 1 month ago - 13 years 1 month ago #120395
by lacasetta
my site with Hikashop
www.lacasettabio.it
Replied by lacasetta on topic Joomla module on Hikashop
Hi,
Well, i used the "force a menu on checkout" option and i have the module only on the listings.
Thanks!
Now ...
Is there a way to change the ordering on the show of the modules?
For example. On the product pages i have a carousel with best sellers and the comments with jcomm.
How can i have jcomm first and the carousel second?
Well, i used the "force a menu on checkout" option and i have the module only on the listings.
Thanks!
Now ...
Is there a way to change the ordering on the show of the modules?
For example. On the product pages i have a carousel with best sellers and the comments with jcomm.
How can i have jcomm first and the carousel second?
my site with Hikashop
www.lacasettabio.it
Last edit: 13 years 1 month ago by lacasetta.
Please Log in or Create an account to join the conversation.
13 years 1 month ago #120400
by nicolas
Replied by nicolas on topic Joomla module on Hikashop
The comments of Jcomm are not displayed with a module.
You will need to edit the file "show" of the view "product" via the menu Display>Views and swap the code for the modules display and the code for the comments:
You will need to edit the file "show" of the view "product" via the menu Display>Views and swap the code for the modules display and the code for the comments:
Code:
<div class="hikashop_submodules" id="hikashop_submodules" style="clear:both">
<?php
if (!empty ($this->modules) && is_array($this->modules)) {
jimport('joomla.application.module.helper');
foreach ($this->modules as $module) {
echo JModuleHelper :: renderModule($module);
}
}
?>
</div>
Code:
<div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both">
<?php
$config = & hikashop_config();
if ($config->get('comments_feature') == 'jcomments') {
$comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once ($comments);
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name)){
$product_id = $this->element->main->product_id;
$product_name = $this->element->main->product_name;
}else{
$product_id = $this->element->product_id;
$product_name = $this->element->product_name;
}
echo JComments::showComments($product_id, 'com_hikashop', $product_name);
}
}
elseif ($config->get('comments_feature') == 'jomcomment') {
$comments = HIKASHOP_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php';
if (file_exists($comments)) {
require_once ($comments);
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
$product_id = $this->element->main->product_id;
else
$product_id = $this->element->product_id;
echo jomcomment($product_id, 'com_hikashop');
}
}
?>
</div>
Please Log in or Create an account to join the conversation.
13 years 1 month ago #120457
by lacasetta
my site with Hikashop
www.lacasettabio.it
Replied by lacasetta on topic Joomla module on Hikashop
Yes, it works!
Thanks
Thanks
my site with Hikashop
www.lacasettabio.it
Please Log in or Create an account to join the conversation.
Time to create page: 0.163 seconds