[eluser]Moddi[/eluser]
Whats wrong in here is that first they didn't include the cargo fee but they added it later on dack4.se/cart - The correct price is marked with red colour and i wanted to fix it so it would be where "Varukorg" is to the right, where it says "Totalt: xxxx kr (and a shopping pic). And i got it to work
Code:
=$scart_tot+$shiping_cost+$shiping_cost_moms+
and it worked, on the /cart site that is but no other place.
Picture of the error code!
Cart.php (View)
Code:
<? require('header.php');?>
[removed][removed]
<div id="centerfoot">
<?if($vdata):?>
<div id="table-title">
<div id="search-tabtitle">Varukorg</div>
</div>
<?=$vdata?>
<div id="cart-total">
Frakt: <?=$shiping_cost+$shiping_cost_moms?> kr<br/>
<font color="red">Totalsumma: <?=$scart_totaly+$shiping_cost+$shiping_cost_moms?> kr</font><br/>
</div>
<div id="table-title">
<div id="search-tabtitle">Betalning & Frakter</div>
</div>
<div class="form-content">
<form id="cart-form" method="post" action="/cart/pay/">
<div class="form-block" style="width:250px; height:20px;">
<h2>Betalning</h2>
</div>
<div class="form-block" style="height: 20px;">
<h2>Välj Monteringsstation</h2>
</div>
<div class="form-block" style="width:250px;">
<label>Betalningssätt</label><br/>
<select id="select-payment" name="payment" style="width:150px;">
<!--<option value="1">Kreditkort</option> -->
<option value="">Välj Betalningssätt</option>
<option value="1">Bankgiro</option>
<option value="2">Faktura</option>
<? if ($price>0){?>
<option value="<?=$price?>">Avbetalning <?=$price?> kr</option>
<?}?>
</select>
</div>
<div style="float:left;">
<div class="form-block">
<label>Stad</label><br/>
<?=$s_countrys?>
</div>
<div class="form-block">
<label>Verkstad</label><br/>
<?=$garages?>
</div>
</div>
<div class="form-block" id="workshop-desc" style="width:500px;height: auto !important;"><?=$desc?></div>
<div class="form-block" style="width:500px; height: 40px;">
<label>Personummer (10 siffor):</label><br/>
<input type="text" id="soc_num" name="soc_num" class="text" maxlength="10"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:500px; height: 20px;">
<a class="subm" id="fillbutton">Fortsätt</a>
</div>
<div class="form-block" style="width:250px;">
<label>Förnamn:</label><br/>
<input type="text" id="pay_fname" name="fname" class="text" value="<?=$udata->fname?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Efternamn:</label><br/>
<input type="text" id="pay_lname" name="lname" class="text" value="<?=$udata->lname?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>E-post:</label><br/>
<input type="text" id="pay_email" name="email" class="text" value="<?=$udata->email?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Telefon:</label><br/>
<input type="text" id="pay_phone" name="phone" class="text" value="<?=$udata->phone?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Gata:</label><br/>
<input type="text" id="pay_street" name="street" class="text" value="<?=$udata->adress?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Postnummer:</label><br/>
<input type="text" id="pay_zip" name="zip" class="text" value="<?=$udata->zip?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Ort:</label><br/>
<input type="text" id="pay_city" name="city" class="text" value="<?=$udata->city?>"/> <span style="color: red;">*</span>
</div>
<div class="form-block" style="width:250px;">
<label>Årslön:</label><br/>
<input type="text" id="pay_sall" name="sall" class="text"/>
</div>
<div class="form-block" style="width:500px;">
<input type="checkbox" id="pay_agree" name="agree"/>
<label id='agree_content'>Jag accepterar <a href="http://www.dack4.se/main/page/3" target="_blank">köpvillkoren</a> samt <a href="http://www.delauppbetalningen.se/kontovillkor.pdf" target="_blank">kontovillkoren</a> för delbetalning.</label>
</div>
<div class="form-block" style="width:500px;">
<input class="bluesubm2" type="submit" value="Betala"/>
</div>
</form>
</div>
<div id="workshop-foot"></div>
<? else:?>
Din kundvagn är tom.
<? endif;?>
</div>
But for the cart controller, i cant really share that info public. but the thing is that its actually working on /cart but not other sites, why?