Welcome, Guest
Username: Password: Remember me

TOPIC: Call for a Price

Call for a Price 3 years 2 months ago #5843

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
The administrator has disabled public write access.

Re: Call for a Price 3 years 2 months ago #5844

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

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

by
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
The administrator has disabled public write access.

Re: Call for a Price 3 years 2 months ago #5855

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
The administrator has disabled public write access.

Re: Call for a Price 3 years 2 months ago #5859

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

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

Regards
The administrator has disabled public write access.

Re: Call for a Price 3 years 2 months ago #5861

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?
The administrator has disabled public write access.

Re: Call for a Price 3 years 2 months ago #5863

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
You should set Items in stock = 0 and select Displays 'Notify Me' instead of 'Add To Cart' button
The administrator has disabled public write access.
Time to create page: 0.168 seconds