-
AuthorPosts
-
Juan Pedro Vilar Bou Friend
Juan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 17, 2012 at 1:27 pm #173979Hello
I try to rename the NAME & PRICE field in the extrafield box. I have try the article.xml
<fieldset name=”mega-params-2″ label=”Extra Fields Group 2″>
<field name=”name” type=”text” rows=”5″ cols=”30″ default=”” label=”name” description=”name” />
<field name=”price” type=”text” rows=”5″ cols=”30″ default=”” label=”price” description=”price” />
<field name=”review” type=”text” rows=”5″ cols=”30″ default=”” label=”review” description=”review” filter=”raw” />But when i change field name=”Product” it stops Working. I have see in the fashion.php the there is the variable <?php echo $f_name?> but if $f_name is take out of the article.xml if i change it it should work, but it does not.
Any help?
Thank you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 23, 2012 at 9:08 am #439627Hi there,
You should make changes in file: templatesja_methyshtmljacontentextrafieldsarticle.xml
I made a sample by change from:
<field name="name" type="text" rows="5" cols="30" default="" label="name" description="name" />
to:
<field name="product" type="text" rows="5" cols="30" default="" label="product" description="product" />
and it works fine. Can you check if it works with this solution?
Let me know if you still need help.Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 24, 2012 at 8:39 am #439823No help at all?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 24, 2012 at 8:41 am #439824Could you pm me a temporary admin and ftp account? I’ll check it for you 🙂
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 24, 2012 at 9:33 am #439833Hi, thanks but not.
It should work like this, but it does not. at the moment i change <field name=”name” with <field name=”product” it stops working. Why? i think beacuse the variable in the php says <?php echo $f_name?>
Any idea?
Rgds
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 24, 2012 at 10:05 am #439848Hi, i have send you a privat message with the FTP a moment ago.
Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 24, 2012 at 10:21 am #439850I’ve updated for this field, could you add info in backend and let me know what happen
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 27, 2012 at 4:29 pm #440353Sorry? i don’t understand that.. add info? to what?
Why my product fields are empty now? they were all complete. You change the Db Row? Table? why there are empty?
I have arounf 550 products on this site an they all had a name in the extra field before, now there is only price. Why?
“Product” was only an exampel, i want to translate them, and still if i edit the article.xml it didn’t works.
What did you change?
Rgds
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 27, 2012 at 4:46 pm #440357The instrucction for this plugin from JoomlArt is as follow, (i copy paste from the admin):
Introduce
Features:
Add custom field for Article parametersImportant Instructions:
Extra fields ( article and categories ) is set in xml params ( params folder )Usage Instructions:
You can edit group and all field in xml params ( params folder ).
You have to setup group extra param for categories before set extra fields for articleUpgrade Methods:
Standard joomla uninstall / reinstall method. Module supports upgrade method.
You can install new version directly over this version. Uninstallation is not required.
Backup any customized file before upgrading, your settings would be saved though.Links:
Updates & Versions
Copyright 2004 – 2011 JoomlArt.com.So, i change the article.xml and nothing works, why?
You change something, and it calls “product” but it dosen’t displays what i enter in the DB, the table was full, all Products had a name before, now they don’t.
I just fill out again on of the products http://sumillerbalear.com/index.php/nuestros-productos/ginebras/gin/319-7d-essential and you change “name” to “product”, ok, but this was not what i want, i want to edit it by my self, like it’s stands in the plugin description and i still can’t, beacuse if a change the article.xml the think doesn’t work.
rgds
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 28, 2012 at 2:55 am #440483Very sorry for misunderstanding of your need :((
In your above post:
<blockquote>It should work like this, but it does not. at the moment i change <field name=”name” with <field name=”product” it stops working.</blockquote>
I thought that you want to change the field name to product and I changed for you. In this case, when you change the field “name” to other word (here is “product”) in article.xml file, this field’s value in backend setting will be cleared (it will not appear in product page) and I replied that you should input the value again.
So you only need to translate this field to your language, right?In file:
templatesja_methyshtmljacontentextrafieldsfashion.php
Pls change:
<?php echo $f_name?> to <?php echo JTEXT::_($f_name)?>
Then go to language file and change to your desired language:
administratorlanguageen-GBen-GB.plg_system_jacontentextrafields.ini
In this file, add the field name you wanna display in product page such as:
NAME=”Nombre”
PRICE=”Precio”Let me know if this helps. Lessoned learned, next time I need to sum-up your problem first than assuming your issue.
Best.
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 28, 2012 at 8:49 am #440555Thanks for you answer, but this dosen’t works.
I change code as you post, but nothing.
In: templatesja_methyshtmljacontentextrafieldsfashion.php
i change :
<span class=”ex-value”><strong><?php echo JTEXT::_($f_name)?> :</strong></span> <span class=”ex-label”><?php echo $f_value?></span>
And in the administratorlanguageen-GBen-GB.plg_system_jacontentextrafields.ini
i add:
Name=”Nombre”
Price=”Precio”Line 20 and 21 (mayus, not) try both.
i add 3 screenshorts.
I upload everything but it didn’t works, sorry : http://sumillerbalear.com/index.php/nuestros-productos/ginebras/gin/331-ish-gin
Thanks, Rgds
- Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 28, 2012 at 9:01 am #440558In language file, it should be
NAME=”Nombre”
PRICE=”Precio”
not
Name=”Nombre”
Price=”Precio”The differences are in the capital letter. In language files keys are written in capital letters, it is a default rule from Joomla.
Please check it again 🙂
1 user says Thank You to Saguaros for this useful post
Juan Pedro Vilar Bou FriendJuan Pedro Vilar Bou
- Join date:
- September 2014
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 5
February 28, 2012 at 9:20 am #440561Hi
I try Mayus before….. but now it works. My fault.
Works fine
Thank you 🙂
AuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 14 replies, has 2 voices, and was last updated by Saguaros 12 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum