• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • Beta-testers gezocht voor Crypto-oefenplatform

    Syntax 29 januari 2026 om 16:11
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Syntax 19 januari 2026 om 09:34
  • Developer Gezocht

    Mikevdk 10 januari 2026 om 18:57
  • Op zoek naar de legends

    Syntax 5 januari 2026 om 13:50
  • [FREE] WeFact Hosting module

    Jeroen.G 13 oktober 2025 om 14:09
  • Help testers nodig voor android app Urgent

    urgentotservices 26 september 2025 om 10:21
  • Versio vervanger

    Jeroen.G 25 augustus 2025 om 15:56
  • Afspraken systeem met planbeperking

    Lijno 1 augustus 2025 om 23:04

Marktplaats

  • 350 Nieuwe Domeinnamen Januari 2026

    shiga 1 februari 2026 om 14:21
  • 321 Nieuwe Domeinnamen December 2025

    shiga 1 januari 2026 om 10:26
  • Meerdere mafia game template te koop

    Syntax 26 december 2025 om 00:07

opencart hulp

  • Starohosting
  • 11 augustus 2011 om 14:14
  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 11 augustus 2011 om 14:14
    • #1

    Beste leden,
    Ik gebruik voor speurtjes.nl een opencart versie.
    Nou heb ik een theme geinstalleerd en een aantal modules.
    Sommige modules hebben een standaard template die ik niet heb.
    Hoe moet ik deze tpl bestand ombouwen naar de mijne.
    Als ik in mijn eigen theme kijk en een tpl bestandje pak die al bestaat komen er een aantal errors en word mijn theme vaag.

    Zou iemand mij kunnen helpen met het volgende:

    winkelwagen die goed staat in thema:

    PHP
    <div class="box" id="shoppingcart" >
      <div class="box-head"><?php echo $heading_title; ?></div>
      
      <div class="box-body">
          <div id="module_cart">
          <div class="middle">
            <?php if ($products) { ?>
            <table cellpadding="2" cellspacing="0" style="width: 100%;">
              <?php foreach ($products as $product) { ?>
              <tr>
                <td align="left" valign="top" style="width:1px"><span class="cart_remove" id="remove_<?php echo $product['key']; ?>">&nbsp;</span></td><td valign="top" align="right" style="width:1px"><?php echo $product['quantity']; ?>&nbsp;x&nbsp;</td>
                <td align="left" valign="top"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                  <div>
                    <?php foreach ($product['option'] as $option) { ?>
                    - <small style="color: #999;"><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br />
                    <?php } ?>
                  </div></td>
              </tr>
              <?php } ?>
            </table>
            <br />
            <?php if ($display_price) { ?>
        	<table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
              <?php foreach ($totals as $total) { ?>
              <tr>
                <td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?></b></span></td>
                <td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>
              </tr>
              <?php } ?>
            </table>
        	<?php } ?>
            <div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>"><?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
            <?php } else { ?>
            <div style="text-align: center;"><?php echo $text_empty; ?></div>
            <?php } ?>
          </div>
          </div>
      </div>
      
    </div>
    
    
    
    
    
    
    <?php if ($ajax) { ?>
    <script type="text/javascript" src="catalog/view/javascript/jquery/ajax_add.js"></script>
    <?php } ?>
    
    
    <script type="text/javascript"><!--
    
    
    function getUrlParam(name) {
      var name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
      var regexS = "[\\?&]"+name+"=([^&#]*)";
      var regex = new RegExp(regexS);
      var results = regex.exec(window.location.href);
      if (results == null)
        return "";
      else
        return results[1];
    }
    
    
    $(document).ready(function () {
    	$('.cart_remove').live('click', function () {
    		if (!confirm('<?php echo $text_confirm; ?>')) {
    			return false;
    		}
    		$(this).removeClass('cart_remove').addClass('cart_remove_loading');
    		$.ajax({
    			type: 'post',
    			url: 'index.php?route=module/cart/callback',
    			dataType: 'html',
    			data: 'remove=' + this.id,
    			success: function (html) {
    				$('#module_cart .middle').html(html);
    				if (getUrlParam('route').indexOf('checkout') != -1) {
    					window.location.reload();
    				}
    			}
    		});
    	});
    });
    //--></script>
    Toon Meer

    Hier het nieuws aanmeld script die ingebouwd moet worden:

    PHP
    <div class="box">
      <div class="top"><img src="catalog/view/theme/default/image/contact.png" alt="" /><?php echo $heading_title; ?></div>
      <div class="middle" style="text-align: center;">
      
      <?php 
       if($thickbox) { ?>
    	<a href="#TB_inline?height=300&width=300&inlineId=frm_subscribe" title="Newsletter Subcribe" class="thickbox"> <?php echo($text_subscribe); ?> </a>
      <?php }  ?>
      <div id="frm_subscribe" <?php 
       if($thickbox) { ?> style="display:none;" <?php } ?>>
      <form name="subscribe" id="subscribe"   >
      <table border="0" cellpadding="2" cellspacing="2">
       <tr>
         <td align="left"><span class="required">*</span>&nbsp;<?php echo $entry_email; ?><br /><input type="text" value="" name="subscribe_email" id="subscribe_email"></td>
       </tr>
       <tr>
         <td align="left"><?php echo $entry_name; ?>&nbsp;<br /><input type="text" value="" name="subscribe_name" id="subscribe_name"> </td>
       </tr>
       <?php 
         for($ns=1;$ns<=$option_fields;$ns++) {
         $ns_var= "option_fields".$ns;
       ?>
       <tr>
        <td align="left">
          <?php 
           if($$ns_var!=""){
             echo($$ns_var."&nbsp;<br/>");
             echo('<input type="text" value="" name="option'.$ns.'" id="option'.$ns.'">');
           }
          ?>
         </td>
       </tr>
       <?php 
         }
       ?>
       <tr>
         <td align="left">
         <a class="button" onclick="email_subscribe()"><span><?php echo $entry_button; ?></span></a><?php if($option_unsubscribe) { ?>
              <a class="button" onclick="email_unsubscribe()"><span><?php echo $entry_unbutton; ?></span></a>
          <?php } ?>    
         </td>
       </tr>
       <tr>
         <td align="center" id="subscribe_result"></td>
       </tr>
      </table>
      </form>
      </div>
      </div>
      <div class="bottom">&nbsp;</div>
    <script language="javascript">
    	<?php 
      		if(!$thickbox) { 
    	?>	
    function email_subscribe(){
    	$.ajax({
    			type: 'post',
    			url: 'index.php?route=module/newslettersubscribe/subscribe',
    			dataType: 'html',
                data:$("#subscribe").serialize(),
    			success: function (html) {
    				eval(html);
    			}}); 
    }
    function email_unsubscribe(){
    	$.ajax({
    			type: 'post',
    			url: 'index.php?route=module/newslettersubscribe/unsubscribe',
    			dataType: 'html',
                data:$("#subscribe").serialize(),
    			success: function (html) {
    				eval(html);
    			}}); 
    }
       <?php }else{ ?>
    function email_subscribe(){
    	$.ajax({
    			type: 'post',
    			url: 'index.php?route=module/newslettersubscribe/subscribe',
    			dataType: 'html',
                data:$("#TB_ajaxContent #subscribe").serialize(),
    			success: function (html) {
    				eval(html);
    			}}); 
    }
    function email_unsubscribe(){
    	$.ajax({
    			type: 'post',
    			url: 'index.php?route=module/newslettersubscribe/unsubscribe',
    			dataType: 'html',
                data:$("#TB_ajaxContent #subscribe").serialize(),
    			success: function (html) {
    				eval(html);
    			}}); 
    }
       <?php } ?>
    </script>
    </div>
    Toon Meer

    Als iemand het voor me voor kan doen kan ik wellicht de rest zelf.

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

  • Guest, wil je besparen op je domeinnamen? (ad)

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Fijne feestdagen

    tcbhome 28 december 2025 om 13:55
  • Kritieke update voor Really Simple Security-plug-in

    K.Rens 16 november 2024 om 16:12
  • ING Nederland streeft naar ondersteuning van Google Pay tegen eind februari

    K.Rens 2 november 2024 om 16:09

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design