• Inloggen
  • Registreer
  • Zoeken
Dit topic
  • Overal
  • Dit topic
  • Dit forum
  • Artikelen
  • Pagina's
  • Forum
  • Downloads
  • Meer opties

ICTscripters

Dé plek voor IT

Dé plek voor IT

Aanmelden

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  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
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  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
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  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
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • Top List Games

    tcbhome 28 november 2026 om 00:05
  • Praktische workflow voor WhatsApp-berichten vanuit een Excel-lijst

    Jeroen.G 27 november 2026 om 11:17
  • [Beta] wh0.nl: gratis misdaadspel in een 3D-stad, zonder account. Feedback gezocht!

    frio 27 november 2026 om 05:46
  • Maffia Hotel: een browsergame waarin je van lobbygast naar spil van het hotel groeit

    Luc 26 november 2026 om 06:32
  • GEZ Crimevalley source

    frio 23 november 2026 om 16:30
  • Criminolz

    qevanto 14 november 2026 om 14:37
  • Externe testers gezocht — Saphaxis AI Chat Organizer 0.1.59

    FreelanceAP 4 november 2026 om 07:42
  • nieuwe game

    tigermaffia 2 november 2026 om 15:21

Marktplaats

  • Ik wil website maken maar weet niks

    frio 13 november 2026 om 20:29
  • [Aanbod] Logo vectoriseren: wazige jpg of AI-logo wordt een scherpe PDF en SVG, vanaf €29

    frio 11 november 2026 om 11:44
  • 293 Nieuwe Domeinnamen Oktober 2026

    shiga 5 november 2026 om 11:02

PHP vraag

  • R4
  • 10 januari 2013 om 08:09
  • R4
    Gevorderd
    Berichten
    439
    • 10 januari 2013 om 08:09
    • #1

    Hallo,

    Ik heb een probleem met de opencart winkelwagen.
    Ik wil graag dat op de pagina

    Code
    <div class="box">
      <div class="box-content">

    Dat staat, dan is er een box om de pagina heen.

    Dit gebeurd wel als er een product in de bijlage zit maar als de winkelwagen leeg is niet.
    Hoe kan dit? (ZIE BIJLAGE WAT IK BEDOEL)

    Dit is de code:

    PHP
    <?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
    
    
    <div id="content"><?php echo $content_top; ?>
    	<div class="box">
      <div class="box-content">
      <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
      </div>
    
    
      <h1><?php echo $heading_title; ?></h1>
        </h1>
        <?php if ($attention) { ?>
        <div class="attention"><?php echo $attention; ?></div>
        <?php } ?>    
        <?php if ($success) { ?>
        <div class="success"><?php echo $success; ?></div>
        <?php } ?>
        <?php if ($error_warning) { ?>
        <div class="warning"><?php echo $error_warning; ?></div>
        <?php } ?>
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="basket">
          <div class="cart-info">
            <table>
              <thead>
                <tr>
                  <td class="remove"><?php echo $column_remove; ?></td>
                  <td class="image"><?php echo $column_image; ?></td>
                  <td class="name"><?php echo $column_name; ?></td>
                  <td class="model"><?php echo $column_model; ?></td>
                  <td class="quantity"><?php echo $column_quantity; ?></td>
                  <td class="price"><?php echo $column_price; ?></td>
                  <td class="total"><?php echo $column_total; ?></td>
                </tr>
              </thead>
              <tbody>
                <?php foreach ($products as $product) { ?>
                <tr>
                  <td class="remove"><input type="checkbox" name="remove[]" value="<?php echo $product['key']; ?>" /></td>
                  <td class="image"><?php if ($product['thumb']) { ?>
                    <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
                    <?php } ?></td>
                  <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                    <?php if (!$product['stock']) { ?>
                    <span class="stock">***</span>
                    <?php } ?>
                    <div>
                      <?php foreach ($product['option'] as $option) { ?>
                      - <small><?php echo $option['name']; ?>: <?php echo $option['value']; ?></small><br />
                      <?php } ?>
                    </div>
                    <?php if ($product['reward']) { ?>
                    <small><?php echo $product['reward']; ?></small>
                    <?php } ?></td>
                  <td class="model"><?php echo $product['model']; ?></td>
                  <td class="quantity"><input type="text" name="quantity[<?php echo $product['key']; ?>]" value="<?php echo $product['quantity']; ?>" size="3" /></td>
                  <td class="price"><?php echo $product['price']; ?></td>
                  <td class="total"><?php echo $product['total']; ?></td>
                </tr>
                <?php } ?>
                <?php foreach ($vouchers as $voucher) { ?>
                <tr>
                  <td class="remove"><input type="checkbox" name="voucher[]" value="<?php echo $voucher['key']; ?>" /></td>
                  <td class="image"></td>
                  <td class="name"><?php echo $voucher['description']; ?></td>
                  <td class="model"></td>
                  <td class="quantity">1</td>
                  <td class="price"><?php echo $voucher['amount']; ?></td>
                  <td class="total"><?php echo $voucher['amount']; ?></td>
                </tr>
                <?php } ?>
              </tbody>
            </table>
          </div>
        </form>
        <div class="cart-module">
          <?php foreach ($modules as $module) { ?>
          <?php echo $module; ?>
          <?php } ?>
        </div>
        <div class="cart-total">
          <table>
            <?php foreach ($totals as $total) { ?>
            <tr>
              <td colspan="5"></td>
              <td class="right"><b><?php echo $total['title']; ?>:</b></td>
              <td class="right"><?php echo $total['text']; ?></td>
            </tr>
            <?php } ?>
          </table>
        </div>
         <div class="buttons">
          <div class="left"><a onclick="$('#basket').submit();" class="button"><span><?php echo $button_update; ?></span></a></div>
          <div class="right"><a href="<?php echo $checkout; ?>" class="button"><span><?php echo $button_checkout; ?></span></a></div>
          <div class="center"><a href="<?php echo $continue; ?>" class="button"><span><?php echo $button_shopping; ?></span></a></div>
        </div></div>
        <?php echo $content_bottom; ?></div>
    </div>
    <script type="text/javascript"><!--
    $('.cart-module .cart-heading').bind('click', function() {
    	if ($(this).hasClass('active')) {
    		$(this).removeClass('active');
    	} else {
    		$(this).addClass('active');
    	}
    		
    	$(this).parent().find('.cart-content').slideToggle('slow');
    });
    //--></script> 
    <?php echo $footer; ?>
    Meer tonen

    Thanks

    Afbeeldingen

    • cartfull.png
      • 25,47 kB
      • 687 × 502
    • cartempty.png
      • 107,99 kB
      • 700 × 272

    :cheer:
    ---------

  • Gast, wil je besparen op je domeinnamen? (ad)
  • mhmhmh
    Leerling
    Berichten
    87
    • 10 januari 2013 om 22:05
    • #2

    Welke document is dit? Neem aan cart.php.. Maar daarvan zijn er meerderen.... 9 Stuks in opencart..

  • R4
    Gevorderd
    Berichten
    439
    • 11 januari 2013 om 14:53
    • #3

    cart.tpl van catalog in de map checkout.

    :cheer:
    ---------

Registratie

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

Nu registreren Aanmelden

ICT Nieuws

  • PHP waarschuwt voor twee ernstige bugs die makkelijk uit te buiten lijken

    Aaron 22 oktober 2026 om 22:19

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. Privacyverklaring
  10. Contact
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design