Jump to content

hugo_064

Members
  • Content count

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. For "Your shopping cart (x)" button : in "tpl_cm_footer_modal_cart.php" hide : <?php /* <div class="modal-footer"> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button><?php echo tep_draw_button(MODULE_CONTENT_FOOTER_MODAL_CART_HEADING_TITLE . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link('shopping_cart.php')) . tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'fas fa-angle-right', tep_href_link('checkout_shipping.php', '', 'SSL')); ?> </div> */?> and in "ajax_shopping_cart_total.php" add after ?> : <div class="modal-footer"> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button><?php echo tep_draw_button(MODULE_CONTENT_FOOTER_MODAL_CART_HEADING_TITLE . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link('shopping_cart.php')) . tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'fas fa-angle-right', tep_href_link('checkout_shipping.php', '', 'SSL')); ?> </div>
  2. Hi all I try to develop this module with remove (and update quantity) product without close modal. Actualy i can delete product, but I need help to update "total cart" case and quantity in the button => "Your shopping cart (qty)". If you want to try it : Create new file 'ajax.php' in catalog : require('includes/application_top.php'); if($_POST["action"] == "Delete"){ if(isset($_POST["id"])){ $cart->remove($_POST["id"]); } } in 'cm_footer_modal_cart.php' after image add : $cart_contents_string .= '<td><span class="delete" id="del_'.$products[$i]['id'].'"><i class="fas fa-times-circle"></i></span></td>'; in 'tpl_cm_modal_cart.php' after </style> add : <script> $(document).ready(function(){ // Delete product $('.delete').click(function(){ var el = this; var id = this.id; var splitid = id.split("_"); // Delete id var deleteid = splitid[1]; var action = "Delete"; //Define action variable value Delete // AJAX Request $.ajax({ url: 'ajax.php', type: 'POST', data: { id:deleteid, action:action }, success: function(response){ // Removing row from HTML Table $(el).closest('tr').css('background','tomato'); $(el).closest('tr').fadeOut(800, function(){ $(this).remove(); }); } }); }); }); </script> That all. Thank you for your contribution. See u soon.
  3. hugo_064

    Admin responsive sidebar with bootstrap

    Hi piernas, Think you for your great job. I try to install it on a fresh osc 2.3.4 and on fresh osc 2.3.4.1 but expand or collapse menu didn't work. I downloaded jquery-2.2.3.min.js (i saw it in your template_top.php) because osc 2.3.4 is on jquery-1.11.1.min.js but same result, can't expand or collapse the menu. Witch version of osc did u use for that ? Can you help me to resolve it ? Sincerly
×