Author Topic: Assign different quote forms to different languages  (Read 356 times)

Offline Playman26

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Assign different quote forms to different languages
« on: 21/April/2012, 02:46:10 PM »
Hi,

Firstly, I want to thank you for the great product you have developped! I am still testing it with a trial version, but I will most probably order a permanent license soon.
I have the following questions:

1. As I am doing a bilingual site, I would like to have different quote forms displayed for the different languages on the site. I created two forms and published them, but they both appear on a list in both languages and the visitor has to choose one. Is it possible to assign different quote forms to a different language? The same question for the payment gateway - can I assign one gateway to the nbill page in one language and different one to the other language without letting the visitor to choose?

2. Re the upload button form on the quote form. I found a similar topic in your forum and I put a valid path in the advanced tab, but the upload button form still does not become active. Does it matter that I am working on localhost, or should this work in my case?

Many thanks in advance!


Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,984
    • View Profile
Re: Assign different quote forms to different languages
« Reply #1 on: 23/April/2012, 08:17:46 AM »
1. I'm afraid there is no such feature in nBill. There might be other Joomla extensions out there that enable different content to be served depending on the language though (I haven't checked).

2. I'm not sure what you mean by 'the upload button form'. If you put a valid full file path (eg. C:\xampp\myfolder - NOT a URL), in the upload path setting on the advanced tab, and the user PHP runs under has permission to write to that path, the file upload field type becomes available in the list of field types in the order form editor.

Offline Playman26

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Assign different quote forms to different languages
« Reply #2 on: 23/April/2012, 01:24:03 PM »
Hi,

Many thanks for your prompt reply.

On question 1 - OK, I will try to find a solution for this. Perhaps I can use joomfish to translate my own input in the forms (assuming joomfish will be able to translate it).

On question 2 - thanks for the advise, I managed to active the file upload form. However, whenever I send now test quotes, the uploaded file is not included in the message to the administrator email, either in the specified folder for uploads.

It seems to be working half properly in the order form (file gets uploaded, but no attachment in the message to the administrator email).
In the quote form:
- I get the following error message in the front-end when submitting the new quote: Could not access file: /home/<username removed>/public_html/Uploads/ (using the same path for the order forms, so should be correct).
- Confirmation email sent to the user and administrator (no attachment to administrator message, "Attach to Admin E-Mail" is set to "Yes".
- No files uploaded in the upload folder.
 
 
I would be very grateful if you could suggest a solution for this.

Many thanks in advance!

Regards,
« Last Edit: 23/April/2012, 02:55:37 PM by netshine »

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,984
    • View Profile
Re: Assign different quote forms to different languages
« Reply #3 on: 23/April/2012, 02:55:19 PM »
PHP is not able to access the folder. This might be due to using an upper case 'U' in the word 'Uploads' in the folder name - try making it lower case. Also check the folder permissions on that folder to ensure it is both readable and writable by the user PHP runs under.

Offline Playman26

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Assign different quote forms to different languages
« Reply #4 on: 23/April/2012, 04:16:29 PM »
Hi,

Many thanks for your reply. I changed the folder name to lower case, but it did not help. I am still getting this message. If I remove the '/' from the beggining of the path the message does not appear, but no file are being uploaded to the specified folder either. Also, no attached files are sent with the message to the admin, however, the message itself arrives.

It's really strange, because the files are uploaded with the order form...



Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,984
    • View Profile
Re: Assign different quote forms to different languages
« Reply #5 on: 23/April/2012, 07:48:42 PM »
If you are still getting that error message it is probably due to folder permissions - if the user PHP runs under is different to your account username (which it will be if your server doesn't have suPHP), you might need to set the folder permissions to 777.

Offline Playman26

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Assign different quote forms to different languages
« Reply #6 on: 24/April/2012, 09:10:21 AM »
Hi,

Thanks again for your reply. I found the problem - I added 2 'File Upload' forms in the quote form and that seemed to cause the issue. I left only one now and it is working fine (no idea why this happened, but it is solved now). But I still want to offer the visitor the opportunity to upload more than one file. Is there any way I can do this?

Thanks!

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,984
    • View Profile
Re: Assign different quote forms to different languages
« Reply #7 on: 24/April/2012, 04:25:08 PM »
It should work ok with more than one file upload field per form. I just tried it out myself and it worked fine. I think I would need access to your site to investigate any further, so if the problem persists for you, please submit a support ticket.

Offline Playman26

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Assign different quote forms to different languages
« Reply #8 on: 25/April/2012, 12:57:32 PM »
Hi,

I rebuilt the whole form, adding bit by bit to see what caused the problem.
I turns out, that if I have 2 and more File upload fields in the quotation form they all have to be used (a file has to be uploaded).
If I leave on of them blank, the quote goes through, email is sent and files have been uploaded, but I still get this annoying error message:
'Could not access file:.....'

The permissions of the folder are set to 0777, the files once uploaded to the specified folder get permission 0644.

If I can not sort it out myself I will post a ticket on your helpdesk providing you with access details

Many thanks again for your prompt support!