*

Gimenez70

  • **
  • 6 posts
  • Nada es Verdad.. Todo esta permitido..
Add a little whatsapp icon in seller sidebar
« on: January 24, 2021, 04:39:40 AM »


Security PREREQUISITES

( You are warned that you must know something about php to modify these files )

* copy these 3 files to xxxold.php
( so we have the duplicates of these files to restore them before any error )

 oc-admin / themes / omega / items / frm.php
 oc-content / themes / sigma / user-profile.php
 oc-content / themes / sigma / item-sidebar.php

those files should be read like this

 oc-admin / themes / omega / items / frmold.php
 oc-content / themes / sigma / user-profileold.php
 oc-content / themes / sigma / item-sidebarold.php

1.MODIFYING "other contact" for "whatsapp" in THE OMEGA THEME oc-admin
enter this file
 oc-admin / themes / omega / items / frm.php

Look for
Code: [Select]
  <div class="input-has-placeholder input-separate-top">
        <label><?php _e('Other Contact'); ?></label>
        <?php ItemForm::contact_other_text(); ?>
  </div>

modify by this
Code: [Select]
  <div class="input-has-placeholder input-separate-top">
        <label><?php _e('Whatsapp'); ?></label>
        <?php ItemForm::contact_other_text(); ?>
  </div>

2. IN THE user-profile.php
enter this file
 oc-content / themes / sigma / user-profile.php

Look for
Code: [Select]
  <div class="control-group">
     <label class="control-label" for="phoneLand"><?php _e('Phone''sigma'); ?></label>
  <div class="controls">

modify by this
Code: [Select]
  <div class="control-group">
     <label class="control-label" for="phoneLand"><?php _e('Whatsapp''sigma'); ?></label>
  <div class="controls">

3.IN THE item-sidebar.php
enter this file
 oc-content / themes / sigma / item-sidebar.php

Look for
Code: [Select]
   <?php if ( osc_item_contact_other() != '' ) { ?>
      <p class="other bld"><span><?php _e('Other''sigma'); ?>:</span> <?php echo osc_item_contact_other(); ?></p>
   <?php ?>

Modify by this
Code: [Select]
   <?php if ( osc_item_contact_other() != '' ) { ?>
      <p class="other bld"><span><?php _e('Whatsapp''sigma'); ?>:</span> <a class="other bld" title="Whatsapp" target="_blank" href="https://wa.me/<?php echo osc_item_contact_other(); ?>"><i class="fa fa-whatsapp"></i></a></p>
   <?php ?>

* You remember that if you update the SIGMA theme  these modifications will be deleted.




« Last Edit: January 24, 2021, 06:24:17 PM by Gimenez70 »
¡My Telegram!
¡My Whatsapp!
Nada es Verdad.. Todo esta permitido.

*

MB Themes

Re: Add a little whatsapp icon in seller sidebar
« Reply #1 on: January 24, 2021, 08:25:23 AM »
@Gimenez70
Thanks for nice guide, just one comment to changing strings.
This is not required to do in theme/core files, simply update translation to have i.e. "Whatsapp" instead of "Other contact", even English to English will work nicely.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Gimenez70

  • **
  • 6 posts
  • Nada es Verdad.. Todo esta permitido..
Re: Add a little whatsapp icon in seller sidebar
« Reply #2 on: January 24, 2021, 06:26:33 PM »
@Gimenez70
Thanks for nice guide, just one comment to changing strings.
This is not required to do in theme/core files, simply update translation to have i.e. "Whatsapp" instead of "Other contact", even English to English will work nicely.

Thank You MB .. 8)
¡My Telegram!
¡My Whatsapp!
Nada es Verdad.. Todo esta permitido.