News:

Support the VirtueMart project and become a member

Main Menu

[solved] Call for Price link to contact page

Started by buzzbored, June 06, 2016, 21:02:36 PM

Previous topic - Next topic

buzzbored

Hello all, when I don't enter a price I get a box for 'call for price' this links to a login page. I would like it to link to a contact page instead . how to do?
Joomla 3.5.1, VM 3.0.16, PHP 5.4.x

GJC Web Design

over ride the sublayouts\prices.php link in  \templates\xxxxx\html\com_virtuemart\sublayouts\prices.php
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

buzzbored

I don't understand . Override to what, what code to change. I'm new to virtuemart sorry if this is simple.
Joomla 3.5.1, VM 3.0.16, PHP 5.4.x

GJC Web Design

have u opened the file?

there is a link in it.. change to what ever 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

buzzbored

This area :
<div class="product-price" id="productPrice<?php echo $product->virtuemart_product_id ?>">
   <?php
   if (!empty($product->prices['salesPrice'])) {
      //echo '<div class="vm-cart-price">' . vmText::_ ('COM_VIRTUEMART_CART_PRICE') . '</div>';
   }

   if ($product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and isset($product->images[0]) and !$product->images[0]->file_is_downloadable) {
      $askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id . '&tmpl=component', FALSE);
      ?>
      <a class="ask-a-question bold" href="<?php echo $askquestion_url ?>" rel="nofollow" ><?php echo vmText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
      <?php
   } else {

What is $askquestion_url? when I click on call for price I get a login screen.
Joomla 3.5.1, VM 3.0.16, PHP 5.4.x

GJC Web Design

make

$askquestion_url = 'your loink to your contact page';  and change the class so it doesn't pop as a modal
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

Ghost

It links to login page  because "Allow non logged-in to send a recommendation or ask a question" option is disabled. You can enable it so that visitors can ask a question through VM form without having to login.

GJC Web Design

QuoteI would like it to link to a contact page instead

this is what I was answering
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

buzzbored

Thanks GJC i'm learning more about how things work thanks to this. AND thanks Ghost, this option will work just fine. I was hoping that something simple could be done. i'm using this currently as a catalog and have no need to make people sign up.
Joomla 3.5.1, VM 3.0.16, PHP 5.4.x