• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors

#6
[eluser]NateL[/eluser]
The whole idea is to create a shopping cart. When someone is viewing a product, there are 3 random products that are displayed.
some other information that may help:
autoload.php
Code:
$autoload['model'] = array('MProducts', 'MCats');

View - home.php
Code:
<div id='pleft'>
    <img src='&lt;?= $mainf[' border='0' align='left' />
    <h2>&lt;?= $mainf['name'] ?&gt;;</h2>
    <p>&lt;?=$mainf['shortdesc'];?&gt;<br />
        &lt;?=anchor('welcome/product/'.$mainf['id'], 'see details');?&gt;<br />
        &lt;?=anchor('welcome/cart/'.$mainf['id'], 'buy now');?&gt;</p>
</div>

<div id='pright'>
    &lt;? foreach ($sidef as $key => $list) : ?&gt;
    <img src='&lt;?= $list[' border='0' align='left' />
    <h4>&lt;?= $list['name'];?&gt;</h4>
    <p>&lt;?=anchor('welcome/cart/'.$list['id'], 'buy now');?&gt;</p>
    &lt;? endforeach; ?&gt;
</div>


Messages In This Thread
Errors - by El Forum - 09-19-2008, 08:41 AM
Errors - by El Forum - 09-19-2008, 08:49 AM
Errors - by El Forum - 09-19-2008, 08:52 AM
Errors - by El Forum - 09-19-2008, 09:47 AM
Errors - by El Forum - 09-19-2008, 10:11 AM
Errors - by El Forum - 09-19-2008, 10:12 AM
Errors - by El Forum - 09-19-2008, 01:15 PM
Errors - by El Forum - 09-19-2008, 01:48 PM
Errors - by El Forum - 09-19-2008, 03:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.