- Posts: 139
- Thank you received: 1
Don't display prices until option is choosen
12 years 11 months ago - 12 years 11 months ago #129454
by abasel
Don't display prices until option is choosen was created by abasel
Is it possible to prevent the price from being shown until an option is chosen.?
Last edit: 12 years 11 months ago by abasel.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago #129478
by Mohamed Thelji
Replied by Mohamed Thelji on topic Don't display prices until option is choosen
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) ?
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.
12 years 11 months ago #129593
by abasel
Replied by abasel on topic Don't display prices until option is choosen
Sorry... product variants(characteristic)
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago - 12 years 11 months ago #129840
by Mohamed Thelji
Replied by Mohamed Thelji on topic Don't display prices until option is choosen
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 :
By :
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 :
Code:
FREE_PRICE="Free"
Code:
FREE_PRICE=" "
Last edit: 12 years 11 months ago by Mohamed Thelji.
The following user(s) said Thank You: abasel
Please Log in or Create an account to join the conversation.
12 years 11 months ago #129878
by aradiah25
Replied by aradiah25 on topic Don't display prices until option is choosen
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
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
Please Log in or Create an account to join the conversation.
12 years 11 months ago #129939
by nicolas
Replied by nicolas on topic Don't display prices until option is choosen
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.
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.
12 years 11 months ago #129946
by aradiah25
Replied by aradiah25 on topic Don't display prices until option is choosen
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
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.
12 years 11 months ago #129948
by nicolas
Replied by nicolas on topic Don't display prices until option is choosen
Only remove that line:
echo $this->loadTemplate();
echo $this->loadTemplate();
Please Log in or Create an account to join the conversation.
12 years 11 months ago #129949
by aradiah25
Replied by aradiah25 on topic Don't display prices until option is choosen
Thanks !!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.213 seconds