- Posts: 24
- Thank you received: 0
Next and previous button missing in category view
-
xaxier
Inactive member -
Topic Author
- Member
-
Less
More
12 years 4 months ago #23232
by xaxier
Next and previous button missing in category view was created by xaxier
Hi there,
When view product detail page in virtuemart, I don't see link for next product and previous product button. Any idea how to solve this? I used hotstart and updated the virtuemart
Virtuemart version: 2.0.14
Thanks!
When view product detail page in virtuemart, I don't see link for next product and previous product button. Any idea how to solve this? I used hotstart and updated the virtuemart
Virtuemart version: 2.0.14
Thanks!
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago #23240
by ivan.milic
Replied by ivan.milic on topic Next and previous button missing in category view
There is setting to enable/disable that but cosmentics dos not have them in it's design
Please Log in to join the conversation.
-
xaxier
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 4 months ago #23243
by xaxier
Replied by xaxier on topic Next and previous button missing in category view
HiIvan,
Does it mean I can't have the next and previous button if I am using Hot cosmetics? It seem to be not user friendly if there are no next or previous product on the product detail page. Can I add in it? If can, can you provide me a guideline?
Thanks
Does it mean I can't have the next and previous button if I am using Hot cosmetics? It seem to be not user friendly if there are no next or previous product on the product detail page. Can I add in it? If can, can you provide me a guideline?
Thanks
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago #23249
by ivan.milic
Replied by ivan.milic on topic Next and previous button missing in category view
file you would need to edit is:
templates\hot_cosmetics\html\com_virtuemart\productdetails\default.php
code you need to add:
you can see original:
mponents\com_virtuemart\views\productdetails\tmpl\default.php
templates\hot_cosmetics\html\com_virtuemart\productdetails\default.php
code you need to add:
Code:
<?php
// Product Navigation
if (VmConfig::get('product_navigation', 1)) {
?>
<div class="product-neighbours">
<?php
if (!empty($this->product->neighbours ['previous'][0])) {
$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0]
['product_name'], array('class' => 'previous-page'));
}
if (!empty($this->product->neighbours ['next'][0])) {
$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page'));
}
?>
<div class="clear"></div>
</div>
<?php } // Product Navigation END
?>
you can see original:
mponents\com_virtuemart\views\productdetails\tmpl\default.php
Please Log in to join the conversation.
-
xaxier
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 4 months ago - 12 years 4 months ago #23255
by xaxier
Replied by xaxier on topic Next and previous button missing in category view
Hi Ivan,
I try to add in the code in the templates\hot_cosmetics\html\com_virtuemart\productdetails\default.php and I encounter HTTP Error 500 (Internal Server Error)
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
Inside the original default.php, I found the navigation code that looks the same with your given code but when I add in your given code to replace the original lines, i encounter error as well.
Any idea?
I try to add in the code in the templates\hot_cosmetics\html\com_virtuemart\productdetails\default.php and I encounter HTTP Error 500 (Internal Server Error)
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
Inside the original default.php, I found the navigation code that looks the same with your given code but when I add in your given code to replace the original lines, i encounter error as well.
Code:
<?php
// Product Navigation
if (VmConfig::get('product_navigation', 1)) {
?>
<div class="product-neighbours">
<?php
if (!empty($this->product->neighbours ['previous'][0])) {
$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0]
['product_name'], array('class' => 'previous-page'));
}
if (!empty($this->product->neighbours ['next'][0])) {
$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page'));
}
?>
<div class="clear"></div>
</div>
<?php } // Product Navigation END
?>
Any idea?
Last edit: 12 years 4 months ago by xaxier.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 months ago #23261
by ivan.milic
Replied by ivan.milic on topic Next and previous button missing in category view
I gave you some hints, unfortenently template as product is like that, and further help can not be threated on this forum it would be required form you to pay for custom job.
Please Log in to join the conversation.
Time to create page: 0.180 seconds