normal Call for a Price

More
10 years 6 months ago #5843 by Panagiotis Thalassinos
Hello again,

I have a problem with call for a price...
I leave the price in a product empty, In virtuemart configuration i clicked the option for Show call for price, when the price is empty, but nothing is happend , thi price is just empty...

Can you help me?

Thank you in advanced

Please Log in or Create an account to join the conversation.

More

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
10 years 6 months ago #5844 by Trung Duong
Replied by Trung Duong on topic Re: Call for a Price
Hello,

You can replace this code below
Code:
if (empty($this->product->prices) and VmConfig::get ('askprice', 1) and !$this->product->images[0]->file_is_downloadable)

by
Code:
if ($this->product->prices > 0 and VmConfig::get ('askprice', 1) and !$this->product->images[0]->file_is_downloadable)

at file: templates/ot_jewelry/html/com_virtuemart/productdetails/default_showprices.php
and then set your product price is: 0

Regards

Support email: services(at)omegatheme(dot)com


Follow Us to keep updated!

[img


[img


[img]...[/img]

[img]...[/img]

[img]...[/img]

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #5855 by Panagiotis Thalassinos
Thank you for the quick reply...

I made the change but is after that pruduct detail page is not working, and say
Parse error: syntax error, unexpected '&' in
public_html/templates/ot_jewelry/html/com_virtuemart/productdetails/default_showprices.php on line 27
(and in all other products)
Waiting for your reply

Thank you in advanced...

Panos

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #5859 by Trung Duong
Replied by Trung Duong on topic Re: Call for a Price
Hello,

Please check your code again, maybe you copy and paste wrong.

Regards

Support email: services(at)omegatheme(dot)com


Follow Us to keep updated!

[img


[img


[img]...[/img]

[img]...[/img]

[img]...[/img]

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #5861 by Panagiotis Thalassinos
Yes .. Yes .. you had right!!! My eyes betray me...(sorry for your time)
Thank you very much...
The next problem is that still with no price i can add in the cart the item with zero price...

Any idea?

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #5863 by Trung Duong
Replied by Trung Duong on topic Re: Call for a Price
You should set Items in stock = 0 and select Displays 'Notify Me' instead of 'Add To Cart' button

Support email: services(at)omegatheme(dot)com


Follow Us to keep updated!

[img


[img


[img]...[/img]

[img]...[/img]

[img]...[/img]

Please Log in or Create an account to join the conversation.

Time to create page: 0.266 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam