Call for Pricing - text in virtuemart

eleanor
374 Posts
eleanor posted this 05 August 2016

Hi

I would like the words 'Call for Pricing' to appear if there is no price in my virtuemart product.

Here is a page with a product that has no price attached to it.:

https://gutterworks.co.uk/alumasc-rainwater-systems/apex-heritage-cast-iron-rainwater-systems/cast-iron-made-to-order/made-to-order-hooper-heads/primed/rainwater-heads-ornamental-cast-iron2015-06-24-03-19-111331603509-detail

Can you tell me how to get the words to appear?

Thank you

Hi I would like the words 'Call for Pricing' to appear if there is no price in my virtuemart product. Here is a page with a product that has no price attached to it.: https://gutterworks.co.uk/alumasc-rainwater-systems/apex-heritage-cast-iron-rainwater-systems/cast-iron-made-to-order/made-to-order-hooper-heads/primed/rainwater-heads-ornamental-cast-iron2015-06-24-03-19-111331603509-detail Can you tell me how to get the words to appear? Thank you
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 08 August 2016

Hello Eleanor,
this is pure VM coding and logic task and unfortunately we do not have a ready solution for it. I'd recommend that you look for solution at VM related forums. If it's code solution you may use CMS Code control. In case you'd need help with incorporating existing solution into Themler theme please let us know

regards,
Aileen

Hello Eleanor, this is pure VM coding and logic task and unfortunately we do not have a ready solution for it. I'd recommend that you look for solution at VM related forums. If it's code solution you may use CMS Code control. In case you'd need help with incorporating existing solution into Themler theme please let us know regards, Aileen
eleanor
374 Posts
eleanor posted this 08 August 2016

Thank you Aileen

I will let you know if I find a solution!

Thank you Aileen I will let you know if I find a solution!
Support Team
Support Team posted this 08 August 2016

You are welcome. Let us know if you need our further help.

Sincerely,
Hella

You are welcome. Let us know if you need our further help. Sincerely, Hella
eleanor
374 Posts
eleanor posted this 10 August 2016

Hiya

OK, so... We have used the Themler code for 'Product Price: show Sales price without tax

Found it at this link on the themler Tips and Tricks!

http://answers.themler.com/articles/67028/tips-and-tricks#t_7

Then we still wanted the 'call for price' notice to appear if our product didn't have a price.

So here is the code in full including our added extra which works! :)

(Remember to ADD THE ZEROS to the product without a price, or it won't work.)

<p><?php if ($product->prices['costPrice'] == '0.000000') {
echo 'Call for Price';
} else
{
if ($product->prices['discountedPriceWithoutTax'] != $product->prices['priceWithoutTax'])
{
echo $this->currency->createPriceDiv('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
else
{
echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
}
}?></p>

Hiya OK, so... We have used the Themler code for 'Product Price: show Sales price without tax Found it at this link on the themler Tips and Tricks! http://answers.themler.com/articles/67028/tips-and-tricks#t_7 Then we still wanted the 'call for price' notice to appear if our product didn't have a price. So here is the code in full including our added extra which works! :) (Remember to ADD THE ZEROS to the product without a price, or it won't work.) <p><?php if ($product->prices['costPrice'] == '0.000000') { echo 'Call for Price'; } else { if ($product->prices['discountedPriceWithoutTax'] != $product->prices['priceWithoutTax']) { echo $this->currency->createPriceDiv('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices); } else { echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices); } }?></p>

Last edited 12 August 2016 by Support Team

Support Team
Support Team posted this 12 August 2016

Hi,

We glad that you found a solution.
Please let us know if you have any further questions/issues.

Thank you,
Olivia

Hi, We glad that you found a solution. Please let us know if you have any further questions/issues. Thank you, Olivia
You must log in or register to leave comments