Skip to main content

showing prices.

More
14 years 1 month ago - 14 years 1 month ago #62210 by guido
showing prices. was created by guido
Is it possible to have an intial price, then a discount on the products and then the price-discount.
For instance:

initial price: € 100,00
discount 25%:
our price: € 75,00



i want it as above.
If possible could the steps i have to do be explained, i'm a dodo with php .
also where do i put the discount

I did found some in the forum but it isn't really clear for me.

Thanks,

Guido
Last edit: 14 years 1 month ago by guido.

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

More
14 years 1 month ago - 14 years 1 month ago #62321 by Xavier
Replied by Xavier on topic Re: showing prices.
Hi guido,

Go in HikaShop > Configuration > Display, and set the option "Show discounted price" to "Display the discount amount".
Then in HikaShop > Display > Views, edit the view "Product / listing_price".

Add the line:
Code:
echo "<span class='hikashop_product_price_without_discount'>".$this->currencyHelper->format($this->element->prices[0]->price_value_without_discount,$price->price_currency_id)."</span>";
Just after:
Code:
foreach($this->row->prices as $price){

Then you can add texts before the price by adding:
Code:
JText::_('INITIAL_PRICE')
and add the translation in HikaShop > Configuration > Language, edit the language file and add (in this example) INITIAL_PRICE="initial price"
Last edit: 14 years 1 month ago by Xavier.

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

More
14 years 1 month ago - 14 years 1 month ago #62324 by guido
Replied by guido on topic Re: showing prices.
Hello Xavier,

I did those things but is do not see anything changed.
Where would i have to put the jtext ??
See picture.

Guido
Last edit: 14 years 1 month ago by guido.

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

More
14 years 1 month ago #62325 by Xavier
Replied by Xavier on topic Re: showing prices.
Do you have a discount on this product ?

Be sure to edit the view in the good template.

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

More
14 years 1 month ago #62327 by guido
Replied by guido on topic Re: showing prices.
i send the wrong picture, this is the right one with a discount.

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

More
14 years 1 month ago #62328 by guido
Replied by guido on topic Re: showing prices.
i edited this file: see picture

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

More
14 years 1 month ago - 14 years 1 month ago #62332 by Xavier
Replied by Xavier on topic Re: showing prices.
Try to copy the content of this file in the edition page of "product / listing_price" in the good template:


This attachment is hidden for guests.
Please log in or register to see it.
Last edit: 14 years 1 month ago by Xavier.

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

More
14 years 1 month ago - 14 years 1 month ago #62340 by guido
Replied by guido on topic Re: showing prices.
i was editing the wrong template, sorry.
Now i get the following. see picture,
How can i get the inital price on one line, then one line lower the discount, and a line lower the price which has to be paid.

And where do i have to put the jtext exactly.

I copied your file over mine now i see it all.

Thanks
Guido
Last edit: 14 years 1 month ago by guido.

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

Time to create page: 0.193 seconds
Powered by Kunena Forum