• 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. PHP + SQL

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

  • 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
  • Van een pixelige afbeelding naar een strakke, moderne website

    Syntax 21 december 2025 om 17:05

PHP vraag

  • R4
  • 10 januari 2013 om 08:09
  • R4
    Intermediate
    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; ?>
    Toon Meer

    Thanks

    Images

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

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

  • Guest, wil je besparen op je domeinnamen? (ad)
  • mhmhmh
    Student
    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
    Intermediate
    Berichten
    439
    • 11 januari 2013 om 14:53
    • #3

    cart.tpl van catalog in de map checkout.

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

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