Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • Juan Pedro Vilar Bou Friend
    #173979

    Hello

    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 Moderator
    #439627

    Hi 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 Friend
    #439823

    No help at all?

    Saguaros Moderator
    #439824

    Could you pm me a temporary admin and ftp account? I’ll check it for you 🙂

    Juan Pedro Vilar Bou Friend
    #439833

    Hi, 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 Friend
    #439848

    Hi, i have send you a privat message with the FTP a moment ago.

    Thanks

    Saguaros Moderator
    #439850

    I’ve updated for this field, could you add info in backend and let me know what happen

    Juan Pedro Vilar Bou Friend
    #440353

    Sorry? 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 Friend
    #440357

    The instrucction for this plugin from JoomlArt is as follow, (i copy paste from the admin):

    Introduce
    Features:
    Add custom field for Article parameters

    Important 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 article

    Upgrade 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 Moderator
    #440483

    Very 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.


    1. trans
    Juan Pedro Vilar Bou Friend
    #440555

    Thanks 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


    1. ini-screen
    2. php-screen
    3. xml-screen
    Saguaros Moderator
    #440558

    In 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 🙂

    Juan Pedro Vilar Bou Friend
    #440561

    Hi

    I try Mayus before….. but now it works. My fault.

    Works fine

    Thank you 🙂

    Saguaros Moderator
    #440562

    Pleasure & Glad it works 😀

Viewing 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