*

mohsan

  • ***
  • 42 posts
All contact number has been lost.
« on: June 02, 2017, 01:28:21 PM »
Dear,

I just update my website theme. after update the theme. all contact number has been get lost. please help me in this matter. how can i fixed that.???

Thanks
Mohsan

*

MB Themes

Re: All contact number has been lost.
« Reply #1 on: June 02, 2017, 01:35:38 PM »
@mohsan
Few months ago theme has started to use different data structure that leads to using new fields for custom theme values.
You can copy them on database level from item table into item_veronika table.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mohsan

  • ***
  • 42 posts
Re: All contact number has been lost.
« Reply #2 on: June 02, 2017, 01:49:16 PM »
Last time, when i update theme from zara to veronika. i transfer all the contact to custom field. i think i did it in Feb 2017, now again all contact has been lost. their are more then 10k records are their.

send me update query. i will try to update. give me the reference table name. plz

*

MB Themes

Re: All contact number has been lost.
« Reply #3 on: June 02, 2017, 02:18:05 PM »
@mohsan
If you did it already, then nothing is required now. It has changed only once.
I recommend to backup _item_veronika table, update theme and then update it from backup.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mohsan

  • ***
  • 42 posts
Re: All contact number has been lost.
« Reply #4 on: June 02, 2017, 02:32:49 PM »
In this item_veronika, i have seen all contact number (field Name is: s_phone). but i can't see any number in the website. plz have a look on it.

http://beelus.com

Thanks
Mohsan

*

MB Themes

Re: All contact number has been lost.
« Reply #5 on: June 02, 2017, 02:36:55 PM »
@mohsan
In item.php following lines are related to phone numbers:
Code: [Select]
  <?php
    $item_extra 
veronika_item_extraosc_item_id() );
  
?>


  <?php 
    
if(osc_item_user_id() <> 0) {
      
$item_user User::newInstance()->findByPrimaryKey(osc_item_user_id());
    }

    
$mobile_found true;
    
$mobile $item_extra['s_phone'];

    if(
$mobile == '' && osc_item_user_id() <> 0) { $mobile $item_user['s_phone_mobile']; }      
    if(
$mobile == '' && osc_item_user_id() <> 0) { $mobile $item_user['s_phone_land']; }      
    if(
$mobile == '') { $mobile __('No phone number''veronika'); }   
   
    if(
trim($mobile) == '' || strlen(trim($mobile)) < 4) { 
      
$mobile __('No phone number''veronika');
      
$mobile_found false;
    }      
  
?>



I could not find any issue there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mohsan

  • ***
  • 42 posts
Re: All contact number has been lost.
« Reply #6 on: June 02, 2017, 02:44:31 PM »
Fatal error: Call to undefined function veronika_item_extra() in /home/beelusco/public_html/oc-content/themes/veronika/item.php on line 38

after apply your function. i am getting this error.

please click on the below link to get more detail. thanks

http://www.beelus.com/for-sale/cell-phones-accessories/mobiles/samsung/samsung-s3-mini_i4

*

MB Themes

Re: All contact number has been lost.
« Reply #7 on: June 02, 2017, 02:59:42 PM »
@mohsan
What you mean? I just told how the data are retrieved from database...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mohsan

  • ***
  • 42 posts
Re: All contact number has been lost.
« Reply #8 on: June 02, 2017, 03:04:45 PM »
I mean to say, Phone number is not be showing.

click on the link http://www.beelus.com/for-sale/cell-phones-accessories/mobiles/apple/iphone-5/i-phone-5-good_i19306

and see it's not showing phone number at the bottom of the page.

Thanks
MOhsan

*

MB Themes

Re: All contact number has been lost.
« Reply #9 on: June 02, 2017, 03:10:41 PM »
@mohsan
I sent you code that do this job, if it is not shown, it is not in database.
You can PM me login to your FTP and I can take a look on it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mohsan

  • ***
  • 42 posts
Re: All contact number has been lost.
« Reply #10 on: June 02, 2017, 03:16:34 PM »
I Revert back up to old version of  Veronika, Now i am going to aftari for my fasting.

will talk you on some other day.

Thanks for your support