*

Yogesh

  • ***
  • 27 posts
Problem in listing (quick view) timing
« on: March 21, 2016, 12:51:57 PM »
Hello
I am facing problem in quick view of listings, when a listing is opened in quick view, the date of registration of publisher* always show January 1, 1970.
But there is no problem when i open the same listing completely.

(*)I have changed the word 'seller' to 'publisher' in php files i.e. item.php

Attached images

*

MB Themes

Re: Problem in listing (quick view) timing
« Reply #1 on: March 21, 2016, 01:48:18 PM »
@Yogesh
Found problem.

Please go to file:
oc-content/themes/zara/item.php

Find this code:
Code: [Select]

      <!-- ITEM BUTTONS - SEND TO FRIEND / PRINT / MAKE FAVORITE -->
      <?php if(!$content_only) { ?>
        <div id="item-buttons">
          <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

          <a id="send-friend" href="<?php echo osc_item_send_friend_url(); ?>" class="tr1" title="<?php echo osc_esc_html(__('Send this listing to your friend''zara')); ?>"><i class="fa fa-paper-plane tr1"></i></a>

          <?php if (function_exists('print_ad')) { ?>
            <div id="item-print-box">
              <?php print_ad(); ?>
            </div>
          <?php ?>

          <?php if (function_exists('show_printpdf')) { ?>
            <a id="print_pdf" class="tr1" target="_blank" href="<?php echo osc_base_url(); ?>oc-content/plugins/printpdf/download.php?item=<?php echo osc_item_id(); ?>" title="<?php echo osc_esc_html(__('Show PDF sheet for this listing''zara')); ?>"><i class="fa fa-file-pdf-o tr1"></i></a>
          <?php ?>
        </div>
      <?php ?>

Change it to:

Code: [Select]
      <!-- ITEM BUTTONS - SEND TO FRIEND / PRINT / MAKE FAVORITE -->
      <?php if($content_only) { ?><div style="display:none;"><?php ?>
        <div id="item-buttons">
          <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

          <a id="send-friend" href="<?php echo osc_item_send_friend_url(); ?>" class="tr1" title="<?php echo osc_esc_html(__('Send this listing to your friend''zara')); ?>"><i class="fa fa-paper-plane tr1"></i></a>

          <?php if (function_exists('print_ad')) { ?>
            <div id="item-print-box">
              <?php print_ad(); ?>
            </div>
          <?php ?>

          <?php if (function_exists('show_printpdf')) { ?>
            <a id="print_pdf" class="tr1" target="_blank" href="<?php echo osc_base_url(); ?>oc-content/plugins/printpdf/download.php?item=<?php echo osc_item_id(); ?>" title="<?php echo osc_esc_html(__('Show PDF sheet for this listing''zara')); ?>"><i class="fa fa-file-pdf-o tr1"></i></a>
          <?php ?>
        </div>
      <?php if($content_only) { ?></div><?php ?>
« Last Edit: March 21, 2016, 01:59:46 PM by frosticek »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Problem in listing (quick view) timing
« Reply #2 on: March 21, 2016, 02:46:06 PM »

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Problem in listing (quick view) timing
« Reply #4 on: March 21, 2016, 03:26:02 PM »
helllo frosticek,
i have applied these changes but the problem not solved.

*

MB Themes

Re: Problem in listing (quick view) timing
« Reply #5 on: March 21, 2016, 03:34:07 PM »
@Yogesh
Hm, try this. Go to same file.
Find code that is very similar to this (may not exactly match):
Code: [Select]

            <div class="elem regdate">
              <?php if(osc_item_user_id() <> 0) { ?>
                  <?php echo __('Registered on''zara') . ' ' osc_format_dateosc_user_reg_date() ); ?>
              <?php } else { ?>
                <?php echo __('Unregistered user''zara'); ?>
              <?php ?>
            </div>

Replace it with:
Code: [Select]

            <div class="elem regdate">
              <?php if(osc_item_user_id() <> 0) { ?>
                <?php $get_user User::newInstance()->findByPrimaryKeyosc_item_user_id() ); ?>

                <?php if(isset($get_user['dt_reg_date']) AND $get_user['dt_reg_date'] <> '') { ?>
                  <?php echo __('Registered on''zara') . ' ' osc_format_date$get_user['dt_reg_date'] ); ?>
                <?php } else { ?>
                  <?php echo __('Unknown registration date''zara'); ?>
                <?php ?>
              <?php } else { ?>
                <?php echo __('Unregistered user''zara'); ?>
              <?php ?>
            </div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yogesh

  • ***
  • 27 posts
Re: Problem in listing (quick view) timing
« Reply #6 on: March 21, 2016, 03:45:32 PM »
Thanx a lot Frosticek
it is solved...     :)

*

MB Themes

Re: Problem in listing (quick view) timing
« Reply #7 on: March 21, 2016, 03:48:46 PM »
@Yogesh
Perfect, thanks.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel PM

  • ****
  • 111 posts
Re: Problem in listing (quick view) timing
« Reply #8 on: March 30, 2016, 07:02:09 AM »
Thanks for fixing this frosticek  :D
Daniel PM

*

MB Themes

Re: Problem in listing (quick view) timing
« Reply #9 on: March 30, 2016, 09:02:04 AM »
@Daniel PM
NP ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots