Author Topic: Change product file list depending on language  (Read 3547 times)

moriles

  • Beginner
  • *
  • Posts: 2
Change product file list depending on language
« on: September 12, 2012, 13:43:47 pm »
Hello

I have this client using virtuemart and joomfish in a multilingual site. He wants to display different pdf's for each product depending on the selected language.

I havenĀ“t done it yet but I figured out what I should do.
  • Modify the vm_product_files table adding a file_lang field
  • Edit product.file_form.php to include a select input with all the possible languages
  • Modify the add function in ps_product_files.php so it inserts the new product file data into the product_files table.
  • Modify the get_file_list function in ps_product_files.php so it only selects files with the appropiate file_lang field value.
Am I working in the right direction?
Is there an easier way to do it?




kevin88

  • Beginner
  • *
  • Posts: 15
Re: Change product file list depending on language
« Reply #1 on: September 23, 2012, 03:41:20 am »