how to change the free to something else

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3627

hi,
when i am not adding a price to a product the view is free, can i change it to an icon + link, lets say "contact us" or so?
can i add an icon as "hot product" to the category page?

BR

Amit

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3629

Hi,

You can edit the translation file via the configuration under the tab languages and edit the line:
FREE_PRICE="Free"
You could for example put:
FREE_PRICE="<img src='YOUR_IMAGE_LINK' /> Contact us"

For your second point, I'm not sure what you want to do. Could you be more explicit ?

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3631

hi,
my second Q was if the contact us can be a link? sometimes users want to ask Q about a product so i want to give them a link that they can ask Q about the product, but now when i am thinking about it its quite complicate beacause i will need to get the product detail if i want to know about which product they asked a question?

BTW - can i put that FREE_PRICE="<img src='YOUR_IMAGE_LINK' /> Contact us" in the translation page?

BR


Amit

nicolas wrote:

Hi,

You can edit the translation file via the configuration under the tab languages and edit the line:
FREE_PRICE="Free"
You could for example put:
FREE_PRICE="<img src='YOUR_IMAGE_LINK' /> Contact us"

For your second point, I'm not sure what you want to do. Could you be more explicit ?

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3633

You could indeed add a link in the FREE_PRICE translation, the same way you can add an image in it.
However, you won't be able to directly use the product information in the link (that could be done by editing the view displaying the price though).

I'm not sure what is your new question ? In my previous post I told you to replace the FREE_PRICE translation which is in the translation file by that new translation which would include the image. So yes, you can put it there.

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3634

thanks nicola, i made a review allready at joomla about your amazing support.
from your answer: "you won't be able to directly use the product information in the link (that could be done by editing the view displaying the price though)". i can understand that i can do it, can you explain how to do that?

amit

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3636

In the file listing_price that you can edit via the menu Display->Views you will find that code at the beginning:

echo JText::_('FREE_PRICE');
You could replace it by:
if(!empty($this->element->product_id)){
   echo "<a href='YOUR_LINK&PRODUCT_NAME=".$this->element->product_name."'><img src='YOUR_IMAGE_LINK' /> Contact us</a>";
}else{
   echo JText::_('FREE_PRICE');
}

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3652

when you write YOUR_LINK i have to put the link?
there is 2 listing_price file 1 for product and the other for checkout, i understand that i need to ad it to the product page.

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3653

mm i need to add your_link to the translation file?
sory for my question .

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3657

You said that you wanted to make a clickable button to go somewhere else. So I gave you the code to do that. But I don't know where you want your users to go once they click on the link. So I wrote YOUR_LINK. You should of course replace YOUR_LINK with the link to where you want your users to go (your website's contact form for example).

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3659

i did it as you can see:
"<a href=' www.pickme.co.il/contact-us&PRODUCT_NAME'=".$this- >element->product_name."'>
but what i have to do with the product name? isnt it suppose to send the product id to me?

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3661

Mmmm. That was an example of how to do it supposing that you change the contact form view etc.

If you want, you can do simpler like this:

<a href='mailto:youremail@yourwebsite.com?subject'=Enquiry for ".$this->element->product_name."'>
This way, the link will open the email client of the user with the receiver set to your email and the subject being "Enquiry for your product"

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3665

its open the mail, but nothing is in the subject, the contact us form is better, but i understand that its comlicated to do it?

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3668

mailto will spam me to death

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3671

You can do with the contact form but the joomla contact form doesn't support to give information in the subject via the URL. You might be able to do it by changing the way the contact form is generated in Joomla but that's not something we can help with as it's not linked with HikaShop and we don't know the contact component much.
Another way could be to use a form component to generate a form and passe the information to the form component.

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

  • Posts: 82
  • Thank you received: 0
13 years 4 months ago #3682

when i am using: <a href='mailto:youremail@yourwebsite.com?subject'=Enquiry for ".$this->element->product_name."'>
and the email is opening, the subject remain empthy, you have a suggestion to solve it?

a suggestion for the future:
sometimes people want to ask the seller Questions about the product before buying it, its important to have on each product page a "ask the seller" link.

thanks a lot for your help.

Amit

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
13 years 4 months ago #3685

Maybe your email client doesn't support adding a subject to a new email automatically from the URL. It should work with outlook but doesn't with gmail or yahoo based on what I could read online.
There's nothing we can do to fix that. The problem is your email client which doesn't support that.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum