Shoppica 2 BETA

ThemeBurn SupportForumsGeneralWhat’s new?ArchiveShoppica 2 BETA

yeahh!, i found the solution for the problem of the menu information.

in menu.tpl just replace this block of code


  <li id="menu_information">
    <a href="#" onclick="return false; ">Informação</a>

    <div class="s_submenu">
      <h3>Informação</h3>
      <ul class="s_list_1 clearfix">
      <?php foreach ($informations as $result): ?>
          <li><a href="<?php echo $Url->link('information/information', 'information_id=' . $result['information_id']); ?>"><?php echo $result['title']; ?></a></li>
      <?php endforeach; ?>
      </ul>

      <h3><?php echo $text_extra; ?></h3>
      <ul class="s_list_1 clearfix">
        <?php if ($tbData->common['manufacturers_enabled']): ?>
        <li><a href="<?php echo $Url->link('product/manufacturer', '', 'SSL'); ?>"><?php echo $text_manufacturer; ?></a></li>
        <?php endif; ?>
        <?php if ($tbData->common['voucher_enabled']): ?>
        <li><a href="<?php echo $Url->link('checkout/voucher', '', 'SSL'); ?>"><?php echo $text_voucher; ?></a></li>
        <?php endif; ?>
        <?php if ($tbData->common['affiliate_enabled']): ?>
        <li><a href="<?php echo $Url->link('affiliate/account', '', 'SSL'); ?>"><?php echo $text_affiliate; ?></a></li>
        <?php endif; ?>
        <li><a href="<?php echo $Url->link('product/special', '', 'SSL'); ?>"><?php echo $text_special; ?></a></li>
      </ul>

      <h3><?php echo $text_service; ?></h3>
      <ul class="s_list_1 clearfix">
        <li><a href="<?php echo $Url->link('information/contact', '', 'SSL'); ?>"><?php echo $text_contact; ?></a></li>
        <?php if ($tbData->common['returns_enabled']): ?>
        <li><a href="<?php echo $Url->link('account/return/insert', '', 'SSL'); ?>"><?php echo $text_return; ?></a></li>
        <?php endif; ?>
        <li><a href="<?php echo $Url->link('information/sitemap', '', 'SSL'); ?>"><?php echo $text_sitemap; ?></a></li>
      </ul>

    </div>
  </li>

with this:



<?php if ($tbData->common['menu_infopages_enabled']): ?>
  <li id="menu_information">
    <a href="#" onclick="return false; ">Informação</a>

    <div class="s_submenu">
      <h3>Informação</h3>
      <ul class="s_list_1 clearfix">
      <?php foreach ($informations as $result): ?>
          <li><a href="<?php echo $Url->link('information/information', 'information_id=' . $result['information_id']); ?>"><?php echo $result['title']; ?></a></li>
      <?php endforeach; ?>
      </ul>

      <h3><?php echo $text_extra; ?></h3>
      <ul class="s_list_1 clearfix">
        <?php if ($tbData->common['manufacturers_enabled']): ?>
        <li><a href="<?php echo $Url->link('product/manufacturer', '', 'SSL'); ?>"><?php echo $text_manufacturer; ?></a></li>
        <?php endif; ?>
        <?php if ($tbData->common['voucher_enabled']): ?>
        <li><a href="<?php echo $Url->link('checkout/voucher', '', 'SSL'); ?>"><?php echo $text_voucher; ?></a></li>
        <?php endif; ?>
        <?php if ($tbData->common['affiliate_enabled']): ?>
        <li><a href="<?php echo $Url->link('affiliate/account', '', 'SSL'); ?>"><?php echo $text_affiliate; ?></a></li>
        <?php endif; ?>
        <li><a href="<?php echo $Url->link('product/special', '', 'SSL'); ?>"><?php echo $text_special; ?></a></li>
      </ul>

      <h3><?php echo $text_service; ?></h3>
      <ul class="s_list_1 clearfix">
        <li><a href="<?php echo $Url->link('information/contact', '', 'SSL'); ?>"><?php echo $text_contact; ?></a></li>
        <?php if ($tbData->common['returns_enabled']): ?>
        <li><a href="<?php echo $Url->link('account/return/insert', '', 'SSL'); ?>"><?php echo $text_return; ?></a></li>
        <?php endif; ?>
        <li><a href="<?php echo $Url->link('information/sitemap', '', 'SSL'); ?>"><?php echo $text_sitemap; ?></a></li>
      </ul>

    </div>
  </li>
<?php endif; ?>

It works well…:)

  • This reply was modified 4393 days ago by  sopedro.
  • This reply was modified 4393 days ago by  sopedro.
April 14, 2012 at 1:07 pm #8068

it«s the same for the “brands in manu” item, just change the first line to


<?php if ($tbData->common['menu_brands_enabled']): ?>

:)

April 14, 2012 at 1:16 pm #8071

why the ajax in reviews stay in loop and do nothing?

April 15, 2012 at 2:12 am #8085

@sopedro

Thanks for spotting these two bugs. They are now fixed.

About the reviews, we don’t experience any problems at all. It will be nice, if we could take a look at your installation.

You can use hidepost to share private information with the support staff.

Thanks,
ThemeBurn team

April 17, 2012 at 10:30 am #8112

sorry, but is local installation, not live. Take a look at my file product.tpl and see if it’s all ok.
There is some erros in code…

<?php echo $header; ?>

  <!-- ---------------------- -->
  <!--     I N T R O          -->
  <!-- ---------------------- -->
  <div id="intro">
    <div id="intro_wrap">
      <div class="s_wrap">
        <div id="breadcrumbs" class="s_col_12">
          <?php foreach ($breadcrumbs as $breadcrumb): ?>
          <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
          <?php endforeach; ?>
        </div>
        <h1><?php echo $heading_title; ?></h1>
      </div>
    </div>
  </div>
  <!-- end of intro -->

  <!-- ---------------------- -->
  <!--      C O N T E N T     -->
  <!-- ---------------------- -->
  <div id="content" class="s_wrap">

    <?php if ($tbData->common['column_position'] == "left" && $column_right): ?>
    <div id="left_col" class="s_side_col">
    <?php echo $column_right; ?>
    </div>
    <?php endif; ?>

    <div id="product" class="s_main_col">

      <?php echo $content_top; ?>

      <span class="clear"></span>
      
      <div id="product_images">
        <div id="product_image_preview_holder" class="clearfix">
          <?php if ($tbData->common['product_gallery_type'] == 'prettyphoto' || $tbData->common['product_gallery_position'] == 'tab'): ?>
          <a id="product_image_preview" class="clearfix" rel="prettyPhoto[gallery]" href="<?php echo $popup; ?>">
            <img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
          </a>
          <?php endif; ?>
          <?php if ($tbData->common['product_gallery_type'] == 'cloudzoom' && $tbData->common['product_gallery_position'] == 'under_preview'): ?>
          <a id="product_image_preview" class="cloud-zoom clearfix" rel="showTitle: false, <?php if ($tbData->common['product_zoom_position'] == 'inside'): ?>position: 'inside', adjustX: -2, adjustY: -2<?php else: ?>position: 'right', adjustX: 20, adjustY: -2<?php endif; ?>" href="<?php echo $popup; ?>">
            <img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
          </a>
          <?php endif; ?>
        </div>
        <?php if ($images && $tbData->common['product_gallery_position'] == 'under_preview'): ?>
        <div id="product_gallery">
          <ul class="s_thumbs clearfix">
            <?php if ($tbData->common['product_gallery_type'] == 'prettyphoto'): ?>
            <?php foreach ($images as $image): ?>
            <li>
              <a class="s_thumb" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" rel="prettyPhoto[gallery]">
                <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
              </a>
            </li>
            <?php endforeach; ?>
            <?php endif; ?>
            <?php if ($tbData->common['product_gallery_type'] == 'cloudzoom'): ?>
            <li>
              <a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: '<?php echo $popup; ?>'" href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>">
                <img src="<?php echo $thumb; ?>" width="<?php echo $this->config->get('config_image_additional_width'); ?>" height="<?php echo $this->config->get('config_image_additional_height'); ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
              </a>
            </li>
            <?php foreach ($images as $image): ?>
            <li>
              <a class="s_thumb cloud-zoom-gallery" rel="useZoom: 'product_image_preview', smallImage: '<?php echo $image['popup']; ?>'" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>">
                <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
              </a>
            </li>
            <?php endforeach; ?>
            <?php endif; ?>
          </ul>
        </div>
        <?php endif; ?>
      </div>

      <?php if ($price): ?>
      <div id="product_price" class="s_price_holder s_size_4">
        <?php if (!$special): ?>
        <p class="s_price"><?php echo $tbData->priceFormat($price); ?></p>
        <?php else: ?>
        <p class="s_price s_promo_price">
          <span class="s_old_price"><?php echo $tbData->priceFormat($price); ?></span>
          <?php echo $tbData->priceFormat($special); ?>
        </p>
        <?php endif; ?>
        <?php if ($tax): ?>
        <p class="s_price_tax"><?php echo $text_tax; ?> <?php echo $tax; ?></p>
        <?php endif; ?>
        <?php if ($points): ?>
        <p class="s_reward_points"><small><?php echo $text_points; ?> <?php echo $points; ?></small></p>
        <?php endif; ?>
      </div>
      <?php endif; ?>
      
      <div id="product_info">

        <dl class="clearfix">
          <dt><?php echo $text_stock; ?></dt>
          <dd><?php echo $stock; ?></dd>
          <dt><?php echo $text_model; ?></dt>
          <dd><?php echo $model; ?></dd>
          <?php if ($reward): ?>
          <dt><?php echo $text_reward; ?></dt>
          <dd><?php echo $reward; ?></dd>
          <?php endif; ?>
          <?php if ($tbData->common['manufacturers_enabled'] && $manufacturer): ?>
          <dt><?php echo $text_manufacturer; ?></dt>
          <dd><a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></dd>
          <?php endif; ?>
        </dl>
        
        <?php if ($review_status || $tbData->common['product_social_share_enabled']): ?>
        <div id="product_share" class="clearfix">
          <?php if ($review_status): ?>
          <?php if ($rating): ?>
          <div class="s_rating_holder">
            <p class="s_rating s_rating_5"><span style="width: <?php echo $rating * 2 ; ?>0%;" class="s_percent"></span></p>
            <span class="s_average"><?php echo $rating; ?>/5 <span class="s_total">(<a class="s_999" href="<?php echo $tbData->current_url; ?>#product_tabs"><?php echo $reviews; ?></a>)</span></span>
            <br />
            <a class="s_review_write s_icon_10 s_main_color" href="<?php echo $tbData->current_url; ?>#product_tabs"><span class="s_icon s_main_color_bgr"></span> <?php echo $text_write; ?></a>
          </div>
          <?php else: ?>
          <div class="s_rating_holder">
            <p class="s_rating s_rating_5 s_rating_blank"></p>
            <span class="s_average"><span class="s_total"><?php echo $tbData->text_product_not_yet_rated; ?></span></span>
            <br />
            <a class="s_review_write s_icon_10 s_main_color" href="<?php echo $tbData->current_url; ?>#product_tabs"><span class="s_icon s_main_color_bgr"></span> <?php echo $text_write; ?></a>
          </div>
          <?php endif; ?>
          <?php endif; ?>
          <?php if ($tbData->common['product_social_share_enabled']): ?>
          <!-- AddThis Button BEGIN -->
          <div class="addthis_toolbox addthis_default_style ">
            <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
            <div class="s_plusone"><g:plusone size="medium"></g:plusone></div>
            <a class="addthis_button_tweet"></a>
            <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
          </div>
          <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e20919036eba525"></script>
          <!-- AddThis Button END -->
          <?php endif; ?>
        </div>
        <?php endif; ?>

      <?php if ($tbData->right_column_empty): ?>
      </div>
      <div id="product_buy_col">
      <?php endif; ?>

        <?php if ($price): ?>
        <?php if ($tbData->common['checkout_enabled'] || $tbData->common['wishlist_enabled'] || $tbData->common['compare_enabled']): ?>
        <form id="product_add_to_cart_form">

          <?php if ($options) require 'catalog/view/theme/' . $this->config->get('config_template') . '/template/product/product_options.tpl'; ?>

          <?php if ($price && $discounts): ?>
          <div id="product_discounts">
            <h3><?php echo $tbData->text_product_discount; ?></h3>
            <table width="100%" class="s_table" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <th><?php echo $tbData->text_product_order_quantity; ?></th>
                <th><?php echo $tbData->text_product_price_per_item; ?></th>
              </tr>
              <?php foreach ($discounts as $discount): ?>
              <tr>
                <td><?php echo sprintf($tbData->text_product_discount_items, $discount['quantity']); ?></td>
                <td><?php echo $discount['price']; ?></td>
              </tr>
              <?php endforeach; ?>
            </table>
          </div>
          <?php endif; ?>
          
          <div id="product_buy" class="clearfix">
            <?php if ($tbData->common['checkout_enabled']): ?>
            <label for="product_buy_quantity"><?php echo $text_qty; ?></label>
            <input id="product_buy_quantity" type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />
            <a id="add_to_cart" class="s_main_color_bgr">
              <span class="s_text"><span class="s_icon"></span> <?php echo $button_cart; ?></span>
            </a>
            <?php endif; ?>

            <?php if ($minimum > 1): ?>
            <p class="s_purchase_info"><?php echo $text_minimum; ?></p>
            <?php endif; ?>

            <span class="clear"></span>

            <p class="s_actions">
              <?php if ($tbData->common['wishlist_enabled']): ?>
              <a class="s_button_wishlist s_icon_10" onclick="addToWishList('<?php echo $product_id; ?>');"><span class="s_icon s_add_10"></span><?php echo $button_wishlist; ?></a>
              <?php endif; ?>
              <?php if ($tbData->common['compare_enabled']): ?>
              <a class="s_button_compare s_icon_10" onclick="addToCompare('<?php echo $product_id; ?>');"><span class="s_icon s_add_10"></span><?php echo $button_compare; ?></a>
              <?php endif; ?>
            </p>
          </div>

          <?php if ($tbData->common['checkout_enabled']): ?>
          <input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
          <?php endif; ?>
        </form>
        <?php endif; ?>
        <?php endif; ?>

      </div>

      <div id="product_tabs" class="clear"></div>

      <?php
      $tabs_num = 1;
      if ($attribute_groups) $tabs_num++;
      if ($review_status) $tabs_num++;
      if ($images && $tbData->common['product_gallery_position'] == 'tab') $tabs_num++;
      ?>

      <div class="s_tabs">
        <?php if ($tabs_num > 1): ?>
        <ul class="s_tabs_nav s_<?php echo $tabs_num ?>col_wrap clearfix">
          <li class="s_1_<?php echo $tabs_num ?>"><a href="#product_description"><?php echo $tab_description; ?></a></li>
          <?php if ($attribute_groups): ?>
          <li class="s_1_<?php echo $tabs_num ?>"><a href="#product_attributes"><?php echo $tab_attribute; ?></a></li>
          <?php endif; ?>
          <?php if ($review_status): ?>
          <li class="s_1_<?php echo $tabs_num ?>"><a href="#product_reviews"><?php echo $tab_review; ?></a></li>
          <?php endif; ?>
          <?php if ($images && $tbData->common['product_gallery_position'] == 'tab'): ?>
          <li class="s_1_<?php echo $tabs_num ?>"><a href="#product_gallery"><?php echo $tbData->text_product_tab_images; ?> (<?php echo count($images); ?>)</a></li>
          <?php endif; ?>
        </ul>
        <?php endif; ?>

        <div class="s_tab_box">
          <h2 class="s_head"><?php echo $tab_description; ?></h2>
          <div id="product_description"><?php echo $description; ?></div>
          
          <?php if ($attribute_groups): ?>
          <h2 class="s_head"><?php echo $tab_attribute; ?></h2>
          <div id="product_attributes">
            <table class="s_table_1" width="100%" cellpadding="0" cellspacing="0" border="0">
              <?php foreach ($attribute_groups as $attribute_group): ?>
              <thead>
                <tr>
                  <th colspan="2"><?php echo $attribute_group['name']; ?></th>
                </tr>
              </thead>
              <tbody>
                <?php foreach ($attribute_group['attribute'] as $attribute): ?>
                <tr>
                  <td width="30%"><?php echo $attribute['name']; ?></td>
                  <td><?php echo $attribute['text']; ?></td>
                </tr>
                <?php endforeach; ?>
              </tbody>
              <?php endforeach; ?>
            </table>
          </div>
          <?php endif; ?>

          <?php if ($review_status): ?>
          <h2 class="s_head"><?php echo $tab_review; ?></h2>
          <div id="product_reviews">
            <div id="review" class="s_listing"></div>
            <h2 class="s_title_1"><?php echo $text_write; ?></h2>
            <div id="review_title" class="clear"></div>
            <div class="s_row_3 s_1_3 clearfix">
              <label><strong><?php echo $entry_name; ?></strong></label>
              <div class="s_full">
                <input type="text" name="name" value="" />
              </div>
            </div>
            <div class="s_row_3 clearfix">
              <label><strong><?php echo $entry_review; ?></strong></label>
              <div class="s_full">
                <textarea name="text" rows="8"></textarea>
                <p class="s_legend"><?php echo $text_note; ?></p>
              </div>
            </div>
            <div class="s_row_3 clearfix">
              <label><strong><?php echo $entry_rating; ?></strong></label>
              <span class="clear"></span>
              <span><?php echo $entry_bad; ?></span>&nbsp;
              <input type="radio" name="rating" value="1" />
              &nbsp;
              <input type="radio" name="rating" value="2" />
              &nbsp;
              <input type="radio" name="rating" value="3" />
              &nbsp;
              <input type="radio" name="rating" value="4" />
              &nbsp;
              <input type="radio" name="rating" value="5" />
              &nbsp; <span><?php echo $entry_good; ?></span>
            </div>
            <div class="s_row_3 clearfix">
              <label><strong><?php echo $entry_captcha; ?></strong></label>
              <input type="text" name="captcha" value="" autocomplete="off" />
              <span class="clear"></span>
              <br />
              <img src="index.php?route=product/product/captcha" id="captcha" />
            </div>
            <span class="clear border_ddd"></span>
            <br />
            <a onclick="review();" class="s_button_1 s_main_color_bgr"><span class="s_text"><?php echo $button_continue; ?></span></a>
            <span class="clear"></span>
          </div>
          <?php endif; ?>

          <?php if ($images && $tbData->common['product_gallery_position'] == 'tab'): ?>
          <h2 class="s_head"><?php echo $tbData->text_product_tab_images; ?> (<?php echo count($images); ?>)</h2>
          <div id="product_gallery">
            <ul class="s_thumbs clearfix">
              <?php foreach ($images as $image): ?>
              <li>
                <a class="s_thumb" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" rel="prettyPhoto[gallery]">
                  <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
                </a>
              </li>
              <?php endforeach; ?>
            </ul>
          </div>
          <?php endif; ?>
        </div>

      </div>

      <?php if ($products): ?>
      <div id="related_products">
        <h2 class="s_title_1"><?php echo $tab_related; ?></h2>
        <div class="clear"></div>
        <div class="s_listing s_grid_view <?php echo $tbData->common['products_per_row']; ?> clearfix">
          <?php foreach ($products as $product): ?>
          <div class="s_item">
            <a class="s_thumb" href="<?php echo $product['href']; ?>">
              <img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" />
            </a>
            <div class="s_item_info">
              <h3><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h3>
              <?php if ($product['price']): ?>
              <div class="s_price_holder s_size_<?php echo $tbData->common['price_size']; ?>">
                <?php if (!$product['special']): ?>
                <p class="s_price"><?php echo $tbData->priceFormat($product['price']); ?></p>
                <?php else: ?>
                <p class="s_price s_promo_price"><span class="s_old_price"><?php echo $tbData->priceFormat($product['price']); ?></span><?php echo $tbData->priceFormat($product['special']); ?></p>
                <?php endif ?>
              </div>
              <?php endif; ?>
              <?php if ($product['rating']): ?>
              <p class="s_rating s_rating_5">
                <span style="width: <?php echo $product['rating'] * 2 ; ?>0%;" class="s_percent"></span>
              </p>
              <?php endif; ?>
              <?php if ($tbData->common['checkout_enabled'] || $tbData->common['wishlist_enabled'] || $tbData->common['compare_enabled']): ?>
              <div class="s_actions">
                <?php if ($product['price']): ?>
                <?php if ($tbData->common['checkout_enabled']): ?>
                <a class="s_button_add_to_cart" href="javascript:;" onclick="addToCart('<?php echo $product['product_id']; ?>');">
                  <span class="s_icon_16"><span class="s_icon"></span><?php echo $button_cart; ?></span>
                </a>
                <?php endif; ?>
                <?php endif; ?>
                <?php if ($tbData->common['wishlist_enabled']): ?>
                <a class="s_button_wishlist s_icon_10" onclick="addToWishList('<?php echo $product['product_id']; ?>');"><span class="s_icon s_add_10"></span><?php echo $tbData->text_wishlist; ?></a>
                <?php endif; ?>
                <?php if ($tbData->common['compare_enabled']): ?>
                <a class="s_button_compare s_icon_10" onclick="addToCompare('<?php echo $product['product_id']; ?>');"><span class="s_icon s_add_10"></span><?php echo $tbData->text_compare; ?></a>
                <?php endif; ?>
              </div>
              <?php endif; ?>
            </div>
          </div>
          <?php endforeach; ?>
        </div>
      </div>
      <?php endif; ?>

      <?php if ($tags): ?>
      <div class="clear"></div>

      <div id="product_tags">
        <h2 class="s_title_1"><?php echo $text_tags; ?></h2>
        <div class="clear"></div>
        <ul class="clearfix">
          <?php foreach ($tags as $tag): ?>
          <li><a href="<?php echo $tag['href']; ?>"><?php echo $tag['tag']; ?></a></li>
          <?php endforeach; ?>
        </ul>
      </div>
      <?php endif; ?>

      <span class="clear"></span>

      <?php echo $content_bottom; ?>

    </div>

    <?php if ($tbData->common['column_position'] == "right" && $column_right): ?>
    <div id="right_col" class="s_side_col">
    <?php echo $column_right; ?>
    </div>
    <?php endif; ?>

  </div>
  <!-- end of content -->

<?php if ($tbData->is_mobile == '0'): ?>

<?php if ($tbData->common['product_gallery_type'] == 'prettyphoto' || $tbData->common['product_gallery_position'] == 'tab'): ?>
<link rel="stylesheet" type="text/css" href="<?php echo $tbData->javascript_url; ?>prettyphoto/css/prettyPhoto.css" media="all" />
<script type="text/javascript" src="<?php echo $tbData->javascript_url; ?>prettyphoto/js/jquery.prettyPhoto.js"></script>
<?php endif; ?>

<?php if ($tbData->common['product_gallery_type'] == 'cloudzoom' && $tbData->common['product_gallery_position'] == 'under_preview'): ?>
<link rel="stylesheet" type="text/css" href="<?php echo $tbData->javascript_url; ?>cloudzoom/css/jquery.cloud-zoom.css" media="all" />
<script type="text/javascript" src="<?php echo $tbData->javascript_url; ?>cloudzoom/js/jquery.cloud-zoom.min.js"></script>
<?php endif; ?>

<?php endif; ?>

<script type="text/javascript">

jQuery( function($) {
  
  function set_product_info() {
    var w = $("html").width();
    if (w < 768) {
      $(".s_tabs").tabs("destroy");
      $(".s_tab_box").accordion ({
        autoHeight:         false,
        collapsible:        true,
        active:             false
      });
    }
    else {
      $(".s_tab_box").accordion("destroy");
      $(".s_tabs").tabs({ fx: { opacity: 'toggle', duration: 300 } });
    }
  }
  
  set_product_info();
  
  <?php if ($tbData->is_mobile == '0'): ?>

  $(window).bind("resize", function() {
    set_product_info();
  });

  <?php if ($tbData->common['product_gallery_type'] == 'prettyphoto' || $tbData->common['product_gallery_position'] == 'tab'): ?>
  $("#product_images a[rel^='prettyPhoto'], #product_gallery a[rel^='prettyPhoto']").prettyPhoto({
    theme: 'light_square',
    opacity: 0.5,
    deeplinking: false,
    ie6_fallback: false,
    social_tools: ''
  });
  <?php endif; ?>

  <?php else: ?>

  $("#product_images a.s_thumb").bind("click", function() {
    $("#product_image_preview > img").attr("src", ($(this).attr("href")));

    return false;
  });

  <?php endif; ?>

  <?php if ($review_status): ?>
  $(".s_review_write, .s_total a").bind("click", function() {
    $('.s_tabs').tabs('select', '#product_reviews');
  });

  $('#review .pagination a').live('click', function() {
    $('#review').slideUp('slow');
    $('#review').load(this.href);
    $('#review').slideDown('slow');

    return false;
  });

  $('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');
  <?php endif; ?>

});
<?php if ($review_status): ?>
function review() {
  $.ajax({
    type: 'POST',
    url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>',
    dataType: 'json',
    data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
    beforeSend: function() {
      $('#review_button').attr('disabled', 'disabled');
      $('#review_title').after('<div class="wait"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
    },
    complete: function() {
      $('#review_button').attr('disabled', '');
      $('.wait').remove();
    },
    success: function(data) {
      console.log(data);
      if (data.error) {
        simpleNotice('Error!', data.error, 'failure');
      }

      if (data.success) {
        simpleNotice('Success!', data.success, 'success');

        $('input[name=\'name\']').val('');
        $('textarea[name=\'text\']').val('');
        $('input[name=\'rating\']:checked').attr('checked', '');
        $('input[name=\'captcha\']').val('');
      }
    }
  });
}
<?php endif; ?>
<?php if ($tbData->common['checkout_enabled']): ?>
$('#add_to_cart').bind('click', function() {
  $.ajax({
    url: 'index.php?route=tb/cartCallback',
    type: 'post',
    data: $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form input[type=\'hidden\'], #product_add_to_cart_form input[type=\'radio\']:checked, #product_add_to_cart_form input[type=\'checkbox\']:checked, #product_add_to_cart_form select, #product_add_to_cart_form textarea'),
    dataType: 'json',
    success: function(json) {

      if (json['error']) {
        if (json['error']['warning']) {
          productNotice(json['title'], json['thumb'], json['error']['warning'], 'failure');
          $('.warning').fadeIn('slow');
        }

        for (i in json['error']) {
          $('#option-' + i).append('<p class="s_error_msg">' + json['error'][i] + '</p>');
        }
      }

      if (json['success']) {
        productNotice(json['title'], json['thumb'], json['success'], 'success');
        $('#cart_menu span.s_grand_total').html(json['total_sum']);
        <?php if ($tbData->is_mobile == '0'): ?>
        $('#cart_menu div.s_cart_holder').html(json['html']);
        <?php endif; ?>
      }
    }
  });

  return false;
});
<?php endif; ?>
</script>

<?php echo $footer; ?>

Thanks

Pedro

April 17, 2012 at 11:58 am #8118

Hi, I found the solution for the reviews problem. It in the javascript function reviews.
I study the code and see that the function sends a log information to the console, this prevent the system to show the results. the line that i drop is console.log(data);


    success: function(data) {
  console.log(data);
      if (data.error) {
        simpleNotice('Error!', data.error, 'failure');
      }

:)

April 17, 2012 at 12:20 pm #8119

I clean too the errors in file and it works to…

I just clean the php code inside javascript function.
Ex:

from

  <?php endif; ?>

  <?php if ($review_status): ?>

To

  <?php endif; 

   if ($review_status): ?>

and now…no errors in file.

Hope i do all correct, i’m newbie in php..:S

April 17, 2012 at 12:29 pm #8122

Hi!

In my error log I get this message. I checked my facebook and everything seems to work fine,

2012-04-17 21:15:13 – PHP Notice: Undefined index: facebook_appid in /home/my_url/public_html/catalog/view/theme/tbspecial/template/common/header.tpl on line 47
2012-04-17 21:15:13 – PHP Notice: Undefined index: facebook_channel in /home/my_url/public_html/catalog/view/theme/tbspecial/template/common/header.tpl on line 48

I have tried to install seo friendly urls and dont get it to work,
Getting blank screen.

This two files does not load correctly, sometimes they dont load at all.

blogger.js twitter.com/javascripts/
my_url.json?callback=twitterCal…

Twitter and Facebook may have a problem..

Best regards,
Henrik

April 17, 2012 at 10:34 pm #8148

Hi,

Yes, there is an error en header.tpl file exactly in the javascript where the facebook code is… but for me all seems to work fine…

April 17, 2012 at 10:47 pm #8149

Can I make a polite suggestion?

I’m not sure if this is possible but if you can…

Rather than have a single post for Shoppica Beta testers, can you maybe create a forum where individual bugs can then be added as posts. If possible, also restrict access to confirmed beta testers who have installed and who are testing and highlighting bugs.

I am sure this would help to highlight and fix bugs a little more effectively.

I am now using this beta on a production environment despite knowing that minor bugs exist. It appears to be stable enough so I’ll take my chances.

I can confirm that there is a bug in the Facebook code:

2012-04-18 4:48:57 – PHP Notice: Undefined index: facebook_appid in /www/catalog/view/theme/tbspecial/template/common/header.tpl on line 47

2012-04-18 4:48:57 – PHP Notice: Undefined index: facebook_channel in /www/catalog/view/theme/tbspecial/template/common/header.tpl on line 48

My channel Page ID is defined.

Any help with this appreciated.

Regards

April 18, 2012 at 8:02 am #8156

HiHi, i can’t find any bugs on the theme but the others i report…so, now i’m using it in a production environment and it seems very very stable.

If i find som other bugs i will report here, the live environment it’s risky, but the better mode to debug….:P

I made all the changes to the template with vqmod, so i think when the full release is available theres no need to worry about lost the work i’ve done…Hope so….looooooooooool

Thanks ThemeBurn for this amazing work…

One more thing, think about to implement a blog system as optional funcionality in the shoppica theme, i would pay for that and think the others too. ;)

Pedro

  • This reply was modified 4389 days ago by  sopedro.
  • This reply was modified 4389 days ago by  sopedro.
April 18, 2012 at 12:15 pm #8160

There are plenty of blog systems available, Blog Manager works brilliantly and the developer helps with the install and any problems.

April 19, 2012 at 12:40 am #8170

Blog Manager it’s fully compatible with shoppica?

Thanks

April 19, 2012 at 1:58 am #8173

If you contact the developer he will assist you if you mention you have shoppica before you buy am sure he will be able to help you as he helped me get the module to work when I first bought it, he is a nice guy too.

I know you are on the Opencart forums, tomorrow I will send you a PM with my website address linking to the blog page so you can get an idea of how it will look with shoppica.

All the best

Caz

April 19, 2012 at 5:47 am #8179

Thanks, i will appreciate that..::)

April 19, 2012 at 12:53 pm #8199
Viewing 15 posts - 16 through 30 (of 65 total)
  • The topic ‘Shoppica 2 BETA’ is closed to new replies.