A
A
Ali Ali2021-03-04 00:00:02
JavaScript
Ali Ali, 2021-03-04 00:00:02

How to fix the buy button on Openacart 2.0.3?

Please help!
When you press the BUY button in the product card , the product is not added to the cart!
How to fix?
Code file: /mister-watch.ru/public_html/catalog/view/theme/sstore/template/product/product.tpl

<div class="btn-group">
                    <button type="button" class="btn btn-default main-color1-text" title="<?php echo $button_wishlist; ?>" onclick="addToWishList('<?php echo $product_id; ?>');"><i class="fa fa-heart"></i></button>
                              <button type="button" class="btn btn-default main-color1-text" title="<?php echo $button_compare; ?>" onclick="addToCompare('<?php echo $product_id; ?>');"><i class="fa fa-exchange"></i></button>
                  </div>
                  
                  <div class="clearfix"></div>
                  
        <a id="button-cart" class="button"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;<?php echo $button_cart; ?></a>
        
       <?php if ( isset($popup_purchase_data['status']) && $popup_purchase_data['status'] ) { ?>
         <br/><a href="javascript: void(0);" onclick="get_popup_purchase(<?php echo $product_id; ?>); return false" class="button" ><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;<?php echo $text_one_click_buy; ?></a>  
         <?php } ?> 
       </div>
       <div class="additional-buttons">
            
        </div>
        
              
         
        <div class="clearfix"></div>
              
            <?php } ?>
            
                 
          
      
      
      <?php if ($tags) { ?>
        <div class="tags"><b><?php echo $text_tags; ?></b>
            <?php for ($i = 0; $i < count($tags); $i++) { ?>
            <?php if ($i < (count($tags) - 1)) { ?>
            <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
            <?php } else { ?>
            <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
            <?php } ?>
            <?php } ?>
        </div>
        
  <?php } ?>
   <?php if($store_text!='') { 
    
               echo html_entity_decode($store_text);
    
   } ?>
</div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question