Don't display prices until option is choosen

  • Posts: 139
  • Thank you received: 1
11 years 1 month ago #129454

Is it possible to prevent the price from being shown until an option is chosen.?

Last edit: 11 years 1 month ago by abasel.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129478

Hi,

Firstly can you give us more information about what you want to do ? when you say "option", are you talking about product options, or product variants(characteristic) ?

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

  • Posts: 139
  • Thank you received: 1
11 years 1 month ago #129593

Sorry... product variants(characteristic)

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129840

Ok, so the solution will be to :

1. set the price of your product to 0, and don't forget a price for each variants of your product through "Hikashop->Products->YourProductPage->'Manage Variants Button'->YourVariant".
2. edit your language file through "Hikashop->System->Configuration->Languages->YourLanguageFile", and change this line :

FREE_PRICE="Free"
By :
FREE_PRICE=" "

Last edit: 11 years 1 month ago by Mohamed Thelji.
The following user(s) said Thank You: abasel

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

  • Posts: 4
  • Thank you received: 0
11 years 1 month ago #129878

Hello,
My product prices are based on the same principle.
Is it possible that there is no price displayed even before what you suggest, I mean once you just open the link of menu type "product list" as shown in the attached file?
THanks

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 1 month ago #129939

Hi,

Sure. You can edit the file "listing_img_title" of the view "product" via the menu Display>Views and remove the block of code for the price display.

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

  • Posts: 4
  • Thank you received: 0
11 years 1 month ago #129946

Well if I do this
If I remove :
<!-- PRODUCT PRICE -->
<?php
}
if($this->params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if($this->params->get('show_price')){
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
I have an error message :
Parse error: syntax error, unexpected $end in /homez.764/sourcesv/www/templates/hotel_3/html/com_hikashop/product/listing_img_title.php on line 97
when i want ot get to the front end.
Shoul I also remove the block <!-- EO COMPARISON AREA --> or change something in it?

Thanks

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 1 month ago #129948

Only remove that line:
echo $this->loadTemplate();

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

  • Posts: 4
  • Thank you received: 0
11 years 1 month ago #129949

Thanks !!!

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

Time to create page: 0.060 seconds
Powered by Kunena Forum