Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: translate issue

translate issue 9 years 10 months ago #10122

Hi
I translated my site to English language and ask you this
Is possible to not showing the "add to cart" button when the language is in English state but i want all the other informations (price,desc,etc...) showing?
If yes please tell me how
Thank you for your time
The topic has been locked.

translate issue 9 years 10 months ago #10134

Hi,

Your question is very interesting. Honestly i have never thought about it, until now. I am sure there should be a more professional way.

One of the trick that comes out to my mind is:

- Create a "Custom HTML" module,
- Put some CSS lines in it to hide the "Add to Cart" button (or any other element), something like:
 .addtocart-area { display:none !important;}

- Publish that module on all pages but only within the certain languages (except English). Because you can do that, Module can be filtered by Language.

This would be simplest trick to do what you are looking for, without requiring any code hacking.

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The topic has been locked.

translate issue 9 years 10 months ago #10141

Hi
Where i put this css style code?
In Advance options : Module class suffix?
Regards
The topic has been locked.

translate issue 9 years 10 months ago #10147

Inside the "Custom HTML" module, where you type the content.

like this:

<style>
.addtocart-area { display:none !important;}
</style>


But in order to do that, you shouldn't be using any WYSIWYG editor. Because as soon as you type that, the editor will remove it, because JavaScript and Style lines are not allowed inside the editor. Therefore, first disable the "Editor" through Joomla Global Configuration. Create the module and then you can enable the WYSIWYG Editor.

-OR- use this extension below to create the necessary module (the more advanced method):
extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/15251

That extension will do what you need.

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The topic has been locked.

translate issue 9 years 10 months ago #10159

Hi
thank you for your mention but i have and in the custom fields issue
How can i show the custom fields only in my language option and not to the other
Is that possible?
Regards
The topic has been locked.

translate issue 9 years 10 months ago #10169

Hi,

You can't hide the "custom fields" through PHP file based on languages. But you can use the same method that i have told you.
Just figure out what CSS class name the "custom fields" elements are using (or any element you want to hide). And write a CSS rule like this:


.DIV_CLASS_NAME_TO_HIDE { display:none !important;}


to the module that you publish only for specific languages. But this will only hide it, won't eliminate it completely.

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The topic has been locked.

translate issue 9 years 10 months ago #10173

Hi
Thank you for your mentions
And if i want to translate the customs fields, how can i do it? Because i don't have any flag or something near the custom title for translated Please tell me the procedure
Thank you for your time
The topic has been locked.

translate issue 9 years 10 months ago #10177

Translating the custom fields is a different story.

As far as i know, you can't do it with the current states (i don't know if there is 3rd party plugin to let you do it though).

Virtuemart doesn't have this ability. You need to talk to Virtuemart developers and request this functionality to be built-in.
Create a topic in forum.virtuemart.net and ask the procedure or the possibilities. If there is a 3rd party plugin to let you do it, somebody will give you its name.

Virtuemart v3.0 is going to be released soon. If you can reach the official developers and request this inquiry (because being able to translate the custom fields is very logical), they might implement this feature to VM3.0

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The topic has been locked.

translate issue 9 years 10 months ago #10179

Hi
thank you for your advice
I visited the forum and there is an article about this issue I give the address

(forum.virtuemart.net/index.php?topic=96758.0)

so if any of your users need it
Thank you very much for your support
The topic has been locked.

translate issue 9 years 10 months ago #10188

Ohh yes, instead of typing the constant title and attributes directly to custom field section; typing something like:

COM_VIRTUEMART_CUSTOM_FIELD_1_TITLE

and defining those variables in the Language INI file (defining them differently in each language INI file) is a great idea.

I can't believe i couldn't think of it ;)

Anyway, the topic you have provided explains the method crystal clear. Who ever needs translating custom fields, can look here: forum.virtuemart.net/index.php?topic=96758.0 for detailed instruction.

Case solved. Topic is closed.

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The topic has been locked.
Time to create page: 0.129 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo