VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: plunk on May 27, 2015, 17:41:29 PM

Title: product details not showing
Post by: plunk on May 27, 2015, 17:41:29 PM
I builded my website on localhost Xampp, made a backup with Akeeba and moved it to my real website.
From there: category-layout: fine
Product detail page showing nothing, only:

<html>
<head>
</head>
<body>
</body>
</html>

I looked through this topic: https://forum.virtuemart.net/index.php?topic=104004.0, but found no answer there. PLease help!

I am logged in!
Tried different Joomla templates...

Database Version    5.5.43
Database Collation    latin1_swedish_ci
PHP Version    5.4.40
Web Server    Apache/2
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Virtuemart version 3.0.8
Title: Re: product details not showing
Post by: jenkinhill on May 27, 2015, 18:17:32 PM
Are you using template overrides or the default VirtueMart templates?
Title: Re: product details not showing
Post by: plunk on May 27, 2015, 20:04:27 PM
default Joomla template

http://bai-nonsens-kraprao.nl/webshop/index.php/gebakken-rijst-en-noodles

and leave out -nonsens-
Title: Re: product details not showing
Post by: jenkinhill on May 27, 2015, 20:10:15 PM
The question was about VM templates (or overrides thereof), not the Joomla template.

Have you checked the server error log? What shows when you turn on VirtueMart debug?
Title: Re: product details not showing
Post by: plunk on May 28, 2015, 07:03:20 AM
Thanks for answering quickly!

Switched it on now:
Parse error: syntax error, unexpected 'if' (T_IF) in /home/baiky/domains/bai-nonsens-kraprao.nl/public_html/webshop/components/com_virtuemart/views/productdetails/tmpl/default.php on line 45

VM template overrides... You mean: did I alter VM code???
Yes!

Starting from line 43.I guess no coïncidense.
From default.php I disabled:

        <!-- <div class="product-neighbours">
       <?pXXhp
       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, FALSE);
      echo JHtml::_('link', $prev_link, $this->product->neighbours ['previous'][0]
         ['product_name'], array('rel'=>'prev', 'class' => 'previous-page','data-dynamic-update' => '1'));
       }
       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, FALSE);
      echo JHtml::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('rel'=>'next','class' => 'next-page','data-dynamic-update' => '1'));
       }
       ?>
       <div class="clear"></div>
        </div> -->


Later today I will check if I altered more.
Title: Re: product details not showing
Post by: plunk on May 28, 2015, 18:07:35 PM
Yep, I created this error myself. I wanted to disable... something (???), but didn't do a good job and it gave me error. No problem in Xampp, that's why I didn't see before.
Thanks Jenkinhill!!!