good evening
weird is the line the other I can not find
I have not the line <p class="name"> <osc_item_contact_name php echo ()?> <p>
Part 2 Modify Themes
2.1 Modify oc-content/themes/bender/item-sidebar.php
under
Code: [Select]
<h2><?php _e("Contact publisher", 'bender'); ?></h2>
<p class="name"><?php echo osc_item_contact_name(); ?><p>
add this to show phone number
Code: [Select]
$phoneuser = osc_item_contact_phone();
if ($phoneuser != "") { ?>
<p>Phone: <?php echo $phoneuser; ?></p>
<?php } ?>
I am not here understands what I do right? I am French
if can be
I have found this code
<? php if (osc_item_user_id () == null) {>
<div class="input-has-placeholder input-separate-top">
<label> <php _e ('Phone');?> </ label>
<php ItemForm :: contact_phone_text ();?>
</ div>
<? php}>
So if I understand I renplacer by one the is his?
<div>
<label> <php _e ('sometext');?> </ label>
<php ItemForm :: sometext_text ();?>
</ div>
or do you have any picture that I understand better
thank you
Part 3: to add other field
We can follow tutorial Part1 and Part2 above to add other text field, with very little differences below.
I can explain in detail. It must be adjusted according to your need.
3.1 at oc-admin/themes/modern/items/frm.php
We don't need "if (osc_item_user_id() == null) so change
Code: [Select]
<?php if( osc_item_user_id() == null ) { ?>
<div class="input-has-placeholder input-separate-top">
<label><?php _e('Phone'); ?></label>
<?php ItemForm::contact_phone_text(); ?>
</div>
<?php } ?>
to
Code: [Select]
<div>
<label><?php _e('Sometext'); ?></label>
<?php ItemForm::sometext_text(); ?>
</div>
and place it where you want to add this field.
3.2 at oc-content/themes/bender/item-post.php
Place it outside Seller Info.
If you place <?php ItemForm::some_text(); ?> at Seller Info, it will only appear for non registered user.
3.3 be carefull at ItemActions.php
You must put your code outside "if" condition.
Adjust it according to your need.
3.4 for Buy / Sell option
For buy sell option you can use this field at struct.sql
Code: [Select]
e_newused ENUM('NEW', 'USED') NOT NULL DEFAULT 'NEW',
and adjust your code.