News:

Support the VirtueMart project and become a member

Main Menu

Product Details Page - 66 errors - BaseURL misinterpretation

Started by jonts25, April 15, 2015, 19:30:08 PM

Previous topic - Next topic

jonts25

Hello my people.

Ive designed a custom template from the base of the strapped template.
Every module is working fine except the product details page.
It seems like it is interpreting the BaseURL as http://website.com/index.php/contact-us/ which is wrong
It should be http://website.com/
Therefore all the resources for the detail page are fetched from the wrong URL which leads to a rather crappily drawn website layout.
Maybe someone could say how can i affect this baseurl only in that specific page as other modules/pages are working perfectly fine.

8) 8) 8) 8) 8) 8) 8) 8) 8) 8)


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jonts25

Yes ive included the URI:root() in the index.php file, is there anywhere else i should consider adding it?
Ive echoed it in index.php as follows:
<link rel="stylesheet" href="<?php echo JURI::root()?>/templates/<?php echo $this->template; ?>/css/bootstrap.css" type="text/css" media="screen" />

GJC Web Design

just as a test if you hard code the correct url does the module still add the contactus (I assume you mean links to the product details page?)

this is normally correct yes -> <?php echo JURI::root()?>/templates/<?php echo $this->template; ?>/css/bootstrap.css" type="text/css" media="screen" />

or perhaps try

<?php  $templatepath = $this->baseurl.'/templates/'.$this->template; ?>

<?php echo $templatepath ?>/css/bootstrap.css" type="text/css" media="screen" />
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation