showing prices.

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62210

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: 12 years 2 months ago by guido.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62321

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:

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:
foreach($this->row->prices as $price){

Then you can add texts before the price by adding:
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: 12 years 2 months ago by Xavier.

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

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62324

Hello Xavier,

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

Guido

Attachments:
Last edit: 12 years 2 months ago by guido.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62325

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.

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62327

i send the wrong picture, this is the right one with a discount.

Attachments:

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

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62328

i edited this file: see picture

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62332

Try to copy the content of this file in the edition page of "product / listing_price" in the good template:


File Attachment:

File Name: listing_price.zip
File Size:2 KB

Attachments:
Last edit: 12 years 2 months ago by Xavier.

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

  • Posts: 48
  • Thank you received: 0
12 years 2 months ago #62340

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

Attachments:
Last edit: 12 years 2 months ago by guido.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum