кнопка купить joomshopping

Тема в разделе "JoomShopping", создана пользователем Riders, 25.11.2013.

  1. Offline

    Riders Недавно здесь

    Регистрация:
    25.11.2013
    Сообщения:
    1
    Симпатии:
    0
    Пол:
    Мужской
    У меня возник вопрос что и на что нужно изменить в этих файлах чтобы переходило по другой ссылке при нажатии на кнопку скачать?
    category_default.php
    Код (CODE):
    1. <?php defined('_JEXEC') or die(); ?>
    2. <div class="jshop">
    3. <h1><?php print $this->category->name?></h1>
    4. <?php print $this->category->description?>
    5.  
    6. <div class="jshop_list_category">
    7. <?php if (count($this->categories)){ ?>
    8. <table class = "jshop list_category">
    9.     <?php foreach($this->categories as $k=>$category){?>
    10.         <?php if ($k%$this->count_category_to_row==0) print "<tr>"; ?>
    11.         <td class="jshop_categ" width="<?php print (100/$this->count_category_to_row)?>%">
    12.           <table class = "category">
    13.             <tr>
    14.             <td class="image">
    15.                 <a href = "<?php print $category->category_link;?>"><img class="jshop_img" src="<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name)?>" title="<?php print htmlspecialchars($category->name)?>" /></a>
    16.             </td>
    17.             <td>
    18.                <a class = "product_link" href = "<?php print $category->category_link?>"><?php print $category->name?></a>
    19.                <p class = "category_short_description"><?php print $category->short_description?></p>
    20.             </td>
    21.             </tr>
    22.            </table>
    23.         </td>    
    24.         <?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) print '</tr>'; ?>
    25.     <?php } ?>
    26.         <?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) print '</tr>'; ?>
    27. </table>
    28. <?php }?>
    29. </div>
    30. <?php include(dirname(__FILE__)."/products.php");?>
    31. </div>

    и
    product_default.php
    Код (CODE):
    1. <td class="prod_qty_input">
    2.                 <input type="text" name="quantity" id="quantity" onkeyup="reloadPrices();" class="inputbox" value="<?php print $this->default_count_product?>" /><?php print $this->_tmp_qty_unit;?>
    3.             </td>        
    4.             <td class="buttons">            
    5.                 <input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
    6.                 <?php if ($this->enable_wishlist){?>
    7.                     <input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
    8.                 <?php }?>
    9.                 <?php print $this->_tmp_product_html_buttons;?>
    10.             </td>
    11.             <td id="jshop_image_loading" style="display:none"></td>
    12.         </tr>
    13.         </table>
    14.     <?php }?>
    15.     <?php print $this->_tmp_product_html_after_buttons;?>
    16.    
    17. <input type="hidden" name="to" id='to' value="cart" />
    18. <input type="hidden" name="product_id" id="product_id" value="<?php print $this->product->product_id?>" />
    19. <input type="hidden" name="category_id" id="category_id" value="<?php print $this->category_id?>" />
    20. </form>
    21.  
    22. <?php print $this->_tmp_product_html_before_demofiles; ?>
    23. <div id="list_product_demofiles"><?php include(dirname(__FILE__)."/demofiles.php");?></div>
    24. <?php
    25. if ($this->config->product_show_button_back){?>
    26. <div class="button_back">
    27. <input type="button" class="button" value="<?php print _JSHOP_BACK;?>" onclick="<?php print $this->product->button_back_js_click;?>" />
    28. </div>
    29. <?php }?>
    30. <?php
    31.     print $this->_tmp_product_html_before_related;
    32.     include(dirname(__FILE__)."/related.php");
    33.     print $this->_tmp_product_html_before_review;
    34.     include(dirname(__FILE__)."/review.php");
    35. ?>
    36. <?php print $this->_tmp_product_html_end;?>
    37. </div>

    помогите если не трудно!
     
  2.  
  3. OlegM
    Offline

    OlegM Russian Joomla! Team Команда форума

    Регистрация:
    12.04.2007
    Сообщения:
    4 311
    Симпатии:
    375
    Пол:
    Мужской
    Это как? Что конкретно надо, как должно работать?
     

Поделиться этой страницей

Загрузка...