News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

" Call For Price" Button Re-Direct

Started by DPVK, July 30, 2013, 22:13:25 PM

Previous topic - Next topic

DPVK

I am trying to make it so when you click on the Call For Price button it redirects you to the contact page but no matter what I do it always sends me to my home page. Any thoughts on how I might do this?

Maxim Pishnyak

#1
What did you try to do?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

CGLaidlaw

#2
I too have this same issue, I am using VM 2.9.9 and I have not changed anything within .php files at all. Yet the "Call for Price" button still redirects to Home. Any help on this topic would be majorly helpful and much appreciated! I have looked for the file price.tpl.php and cannot find it within my installation, or on my computer at all. (Using a local WAMP server for testing purposes)

Thank you in advance!

GJC Web Design

in templates/YOURTEMPLATE/html/com_virtuemart/productdetails/default.php

$serviceurl = 'index.php?option=com_contact&view=contact&id=9&Itemid=470&tmpl=component';//whatever your id and Itemid are
$serviceurl = JURI::root().$serviceurl;
$document = JFactory::getDocument();
$document->addScriptDeclaration("
   jQuery(document).ready(function($) {
      $('a.ask-a-question').click( function(){
         $.facebox({
            iframe: '" . $serviceurl . "',
            rev: 'iframe|550|800'
         });
         return false ;
      });
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