News:

Looking for documentation? Take a look on our wiki

Main Menu

Customizing Delimiter Output

Started by aeiweb, November 12, 2012, 20:52:21 PM

Previous topic - Next topic

aeiweb

Hi!

So, I am editing the signup process, and have edited all the user fields.  I want to seperate the sections using an accordian script, and I'd like the system to add in the tags needed to close the first accordian and open the next one. This way I can seperate the sections into 3 areas on one page.

Any suggestions as to how I could do this? I just need to plop in a small bit of HTML code for it to work, just need it to automate it so my life gets easier.

Thanks much!

PRO

views/user/edit_address_userfields.php

I use this code to create a 2 column layout

AFTER:
       echo '' . $_field['formcode'] . "\n";

I add this
if(($_field['name']=='last_name')OR ($_field['name']=='shipto_last_name')OR ($_field['name']=='password2')) {  echo '         </td><td>' . "\n";}

so,
You could do the same with your code. (You just have to change the fields to the ones you want)

You can examine the field with firebug to see the $field['name']


oriental

Dear PRO,

I am newbie at using VM, I am using latest VM 2.0.14.
Please check below link.

http://onion-test.net78.net/index.php/store/user/login

I want create a new table "Bank details" and capture user bank details in VM Account maintenance.

When I use delimiter it just repeats every where and new fields I had just end up in bill to section.

Also how to hide shopper information(in front end)

Pls Guide Me,

Rds,
Oriental

PRO

Quote from: oriental on November 18, 2012, 11:12:13 AM
Dear PRO,

I am newbie at using VM, I am using latest VM 2.0.14.
Please check below link.

http://onion-test.net78.net/index.php/store/user/login

I want create a new table "Bank details" and capture user bank details in VM Account maintenance.

When I use delimiter it just repeats every where and new fields I had just end up in bill to section.

Also how to hide shopper information(in front end)

Pls Guide Me,

Rds,
Oriental

I dont know how to do this.

Payment methods are done via plugins

oriental

Not Payment method, Its about adding delimiter and fields in VM Account maintenance form..

Another user has same problem, not no answers yet..

http://forum.virtuemart.net/index.php?topic=104003.msg345792#msg345792

Pls check

PRO

Quote from: oriental on November 18, 2012, 16:35:55 PM
Not Payment method, Its about adding delimiter and fields in VM Account maintenance form..

Another user has same problem, not no answers yet..

http://forum.virtuemart.net/index.php?topic=104003.msg345792#msg345792

Pls check

have you added fields?


and what happens?

oriental

#6
I have added plugins to no avail, I have attached screen shot of the problem being faced

[attachment cleanup by admin]

oriental

There are two php files, which many have told controls this issue, But none of suggestions has worked

There are two such file

/public_html/components/com_virtuemart/views/user/tmpl (attachment 1)

/public_html/templates/explore/html/_com_virtuemart/user (attachment 2 - part of the template)


[attachment cleanup by admin]

PRO

to remove shopper information/perms

user/edit_vmshopper.php

remove

      <tr>
         <td class="key">
            <label for="perms">
               <?php echo JText::_('COM_VIRTUEMART_USER_FORM_PERMS') ?>:
            </label>
         </td>
         <td>
            <?php echo $this->lists['perms']; ?>
         </td>
      </tr>

      <tr>
         <td class="key">
            <label for="customer_number">
               <?php echo JText::_('COM_VIRTUEMART_USER_FORM_CUSTOMER_NUMBER') ?>:
            </label>
         </td>
         <td>
          <?php if(Permissions::getInstance()->check('admin')) { ?>
            <input type="text" class="inputbox" name="customer_number" id="customer_number" size="40" value="<?php echo  $this->lists['custnumber'];
               ?>" />
         <?php } else {
            echo $this->lists['custnumber'];
         } ?>
         </td>
      </tr>
       <?php if($this->lists['shoppergroups']) { ?>
      <tr>
         <td class="key">
            <label for="virtuemart_shoppergroup_id">
               <?php echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_GROUP') ?>:
            </label>
         </td>
         <td>
            <?php echo $this->lists['shoppergroups']; ?>
         </td>
      </tr>
      <?php } ?>