*

Yogesh

  • ***
  • 27 posts
Facing issues in send to friend and contact seller
« on: May 14, 2017, 10:24:20 PM »
Hello there,
facing 2 issues
1. after filling up "send to a friend" form, when i cliick at 'send message' button...... the page just shows the white background(not loading - like the same condition when there is some coding error)
2. when a logged in user try to contact seller, the name and email fields are filled automatically (that's good). after filling the form when a user click at send message button it shows an error...[Your name: this field is required, Invalid email address]
NOTE:- second issue is only when user is logged in.

waiting for a solution....
thnks
« Last Edit: May 14, 2017, 10:27:48 PM by Yogesh »

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #1 on: May 14, 2017, 11:36:40 PM »
1. Make sure you have latest version
2. Enable debug mode and look for errors
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Facing issues in send to friend and contact seller
« Reply #2 on: May 15, 2017, 12:19:08 PM »
Thanx for your reply frosticek,
after using debug log it shows
PHP Notice:  Undefined variable: item_user in ........oc-content/themes/zara/item.php on line 556

code starting from line 556 is-

Code: [Select]
if($c_name == '' and $item_user['s_name'] <> '') {
                      $c_name = $item_user['s_name'];
                    }

                    if($c_name == '') {
                      $c_name = __('Anonymous', 'zara');
                    }
                  ?>

                  <?php if(osc_item_user_id() <> and osc_item_user_id() <> '') { ?>
                    <a href="<?php echo osc_user_public_profile_url(osc_item_user_id()); ?>" title="<?php echo osc_esc_html(__('Check profile of this user''zara')); ?>">
                      <?php echo $c_name?>
                    </a>
                  <?php } else { ?>
                    <?php echo $c_name?>
                  <?php ?>
                </div>

now any idea..????
thanks...


and many other PHP Notice:  Undefined offset: 1 in ...........oc-content/plugins/zara_configurator/functions.php on line 144,227,238

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #3 on: May 15, 2017, 04:41:21 PM »
Php notice is just informal message and does not have any effect on your issue.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #4 on: May 15, 2017, 04:42:09 PM »
What is your theme version?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Facing issues in send to friend and contact seller
« Reply #5 on: May 15, 2017, 07:12:09 PM »
theme 1.2.6
osclass  3.7.3

just updated theme and osclass few days ago. problem is arised after update.
Note:- contact seller issue is only when user is logged in...
Thanx
« Last Edit: June 03, 2017, 08:58:48 PM by Yogesh »

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #6 on: May 15, 2017, 08:33:08 PM »
@Yogesh
Can you please PM me login to your FTP?
Thanks!

For problem #2, in file:
oc-content/themes/zara/item-send-friend.php

Find:
Code: [Select]
        $('#yourName').attr('disabled', true).addClass('disabled');
        $('#yourEmail').attr('disabled', true).addClass('disabled');

Replace with:
Code: [Select]
        $('#yourName').attr('readonly', true).addClass('disabled');
        $('#yourEmail').attr('readonly', true).addClass('disabled');
« Last Edit: May 15, 2017, 08:35:36 PM by frosticek »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Facing issues in send to friend and contact seller
« Reply #7 on: May 16, 2017, 12:01:22 AM »
Thanx frosticek.....

 #2 is solved.... :)

*

Yogesh

  • ***
  • 27 posts
Re: Facing issues in send to friend and contact seller
« Reply #8 on: May 16, 2017, 12:51:54 PM »
Thanx a lot for your support and time frosticek..... i think you have done some work there....
today when i checked send friend section.... it didn't hang at white page.... it show me an error for recaptcha....
after adding the recaptcha code in item-send-friend.php just before the submit button code in "send to friend form" section it worked fine... thanks a lot for helping me again...

in item-send-friend.php
Code: [Select]
<button type="submit" id="blue"><?php _e('Send message''zara'); ?></button>
added the recaptcha code just before the above line..
Code: [Select]
      <?php if(osc_recaptcha_public_key() <> '') { ?>
        <div class="box">
          <div class="row">
            <?php osc_show_recaptcha(); ?>
          </div>
        </div>
      <?php } else { ?>
        <div class="norecaptcha" style="float:left;clear:both;width:100%;margin:15px 0 5px 0;">
          <?php osc_run_hook("anr_captcha_form_field"); ?>
        </div>
      <?php ?>


Both the problems are solved now..... :)

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #9 on: May 16, 2017, 12:52:38 PM »
@Yogesh
Great, this was what I wanted to check, if recaptcha error is correct or not.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Facing issues in send to friend and contact seller
« Reply #10 on: May 16, 2017, 12:54:56 PM »
@Yogesh
Can you please send me your item-send-friend.php file? I will update original theme files to make sure you will not lost this fix after update.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots