News:

Looking for documentation? Take a look on our wiki

Main Menu

different pdf for same product in multilingual shop

Started by matevzp2, September 22, 2016, 12:33:49 PM

Previous topic - Next topic

matevzp2

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

Quote from: matevzp2 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

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


matevzp2

Quote from: GJC Web Design 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

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

GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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