Change each to per day in Category

  • Posts: 5
  • Thank you received: 0
11 years 11 months ago #87180

Hello,
I am new to Hikashop and i would like to ask if it's possible to change where the price is listed ( each ) to ( Per day for example in some category and keep the ( each ) in other category.
We have bungalows to rent and the price is per day and we have products to sell ( each )
test.justdiving.net/index.php?option=com...-3-person&Itemid=107

Thanks for your help

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

  • Posts: 206
  • Thank you received: 26
11 years 11 months ago #87188

I'm not an expert at this, if i post on your thread i'm doing so with the best of my knowledge and just trying to help :)
The following user(s) said Thank You: nicolas, justdiving

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

  • Posts: 5
  • Thank you received: 0
11 years 11 months ago #88855

Hello,
thanks for your link, however i cannot find this file.

"hikashop_price.php" in the folder "plugins/content/hikashop_price"

I don't know where to find it,

Could you please help me,

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #88931

Hi,

You can access this file via FTP. If you don't have it, we can give you this plugin but you should already have it.

The following user(s) said Thank You: justdiving

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

  • Posts: 5
  • Thank you received: 0
11 years 11 months ago #89035

in the plugins/content/ i get only the hikashopsocial.xml and the hikashopsocial.php

i dont find the hikashop_price

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #89083

My mistake, I think that you don't have it by default.
Here is the plugin:

File Attachment:

File Name: plg_conten...rice.zip
File Size:2 KB

Attachments:

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

  • Posts: 5
  • Thank you received: 0
11 years 11 months ago #89204

Thanks Xavier,
do i add the files in the plugins/content/ because i tried to install it but it does not install, should i unzip it and add the files via ftp?

Thanks

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

  • Posts: 5
  • Thank you received: 0
11 years 11 months ago #89301

please let me know if i need to add the files in the plugins/content/ because it's not working!
Iam using joomla 1.5 and the business hikashop the zip you send me cannot be install.

I really need to change "each" to "per day" could you please help me.

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #89405

In the view "product / listing_price", try to change

echo JText::_('PER_UNIT');
By:
					$productClass = hikashop_get('class.product');
					$categories = $productClass->getCategories($this->row->product_id);
					if(in_array('2',$categories)){
						echo JText::_('PER_DAY');
					}
					else{
						echo JText::_('PER_UNIT');
					}
and replace '2' by the ID of the category where you need to display "per day" instead of "each".
You have too to add a translation override in HikaShop > Config > Languages, in the override part. PER_DAY="per day"

The following user(s) said Thank You: SG

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

Time to create page: 0.093 seconds
Powered by Kunena Forum