I'm new here and just wanted to say how much I like the OpenCart Platform. Well done to all involved.
I'm very new to PHP but have a little coding experience and would appreciate any guidance on the following.
Im trying to mod the cart so that Free products can be sold (aka given away). However not all products are free so some products will be sellable via the normal procedures. If I set the price of a product to zero thats fine but it still goes through the checkout trying to bill for zero! So I am hoping to do the following:
- In the relevant catalog->view scripts, amend so if price is zero display "[Free]" instead of the actual price
- On checkout (I havn't determined where this might happen) - if order total is zero then skip payment and go straight to order complete.
Code: Select all
<span style="color: #900; font-weight: bold;"><?php echo $products[$j]['price']; ?></span><br />
Code: Select all
<span style="color: #900; font-weight: bold;"><?php if ($products[$j]['price']==0) echo "[Free]"; else echo $products[$j]['price']; ?></span><br />