Author Topic: different pdf for same product in multilingual shop  (Read 722 times)

matevzp2

  • Beginner
  • *
  • Posts: 6
  • A beginner
different pdf for same product in multilingual shop
« on: September 22, 2016, 12:33:49 pm »
Hello everyone.
I have a website with 3.0.18 VirtueMart. I Use 4 languages. For products I use custom field to show pdf.

Right now i set pdf in english for description of product.

I want to ask if I am able to set a different pdf (different language) for other languages, and how to make that.

Thanks, Matevz

baoquocmt159

  • Jr. Member
  • **
  • Posts: 57
  • Skype Name: cpo.smartbits
Re: different pdf for same product in multilingual shop
« Reply #1 on: September 26, 2016, 09:47:31 am »
Hello everyone.
I have a website with 3.0.18 VirtueMart. I Use 4 languages. For products I use custom field to show pdf.

Right now i set pdf in english for description of product.

I want to ask if I am able to set a different pdf (different language) for other languages, and how to make that.

Thanks, Matevz

Hello,

I think you should create an plugin to do this, if not please email me baoquocmt159@gmail.com i can help you.

Thank you !

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8891
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: different pdf for same product in multilingual shop
« Reply #2 on: September 26, 2016, 12:48:08 pm »
how about name each pdf

pdf1_en-gb.pdf
pdf1_it-it.pdf   etc

in the custom field write   pdf_xxxxx.pdf

and in the template do a str_replace for the xxxx with the current lang code when u display the custom field
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Ghost

  • Jr. Member
  • **
  • Posts: 422
Re: different pdf for same product in multilingual shop
« Reply #3 on: September 26, 2016, 13:35:08 pm »
Haven't tried it but sounds like this plugin should do what you need http://extensions.virtuemart.net/products/multilingual-translatable-custom-fields-detail.

matevzp2

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: different pdf for same product in multilingual shop
« Reply #4 on: October 15, 2016, 12:44:57 pm »
how about name each pdf

pdf1_en-gb.pdf
pdf1_it-it.pdf   etc

in the custom field write   pdf_xxxxx.pdf

and in the template do a str_replace for the xxxx with the current lang code when u display the custom field

Hi, can you please repeat me instructions what i need to do in template because i didnt understand everything.
Thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8891
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: different pdf for same product in multilingual shop
« Reply #5 on: October 15, 2016, 13:49:58 pm »
in the template detect the current lang code

in the display of the custom field do a str replace of the xxx for the lang code
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27433
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8