Skip to main content

Don't display prices until option is choosen

More
12 years 11 months ago - 12 years 11 months ago #129454 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.

More
12 years 11 months ago #129478 by Mohamed Thelji
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.

More
12 years 11 months ago #129593 by abasel
Sorry... product variants(characteristic)

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

More
12 years 11 months ago - 12 years 11 months ago #129840 by Mohamed Thelji
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 :
Code:
FREE_PRICE="Free"
By :
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.

More
12 years 11 months ago #129878 by aradiah25
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

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

More
12 years 11 months ago #129939 by nicolas
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.

More
12 years 11 months ago #129946 by aradiah25
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.

More
12 years 11 months ago #129948 by nicolas
Only remove that line:
echo $this->loadTemplate();

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

More
12 years 11 months ago #129949 by aradiah25

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

Time to create page: 0.213 seconds
Powered by Kunena Forum