News:

Support the VirtueMart project and become a member

Main Menu

Is There an Easy Way to Edit "404: Product Does Not Exist" Page?

Started by Bel, June 14, 2014, 11:53:22 AM

Previous topic - Next topic

Bel

My stock on VM changes frequently, which means potential customers following links from Google often hit the 404: Product does not exist page as generated by VM. There's no way to get around this as my stock changes so often, but I'd like to display a more "friendly" message on the page so it's less off-putting for customers. Ideally I'd like it to look exactly as it does now (i.e. standard VM error message) but with some extra text inviting customers to phone or browse the rest of the site.
My question is, is there an easy way to do this from within Virtuemart?  Or if not, can I edit one of the VM files to change the message displayed without changing the way it looks?


GJC Web Design

you haven't mentioned your version!  This handling of 404's has changed in recent versions

but in components/com_virtuemart/views/productdetails/tmpl/default.php there is

if (empty($this->product)) {
   echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
   echo '<br /><br />  ' . $this->continue_link_html;
   return;
}

is this what u want?
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