Devam Ediyor

515421 jcart php update

Hi we are looking for a jcart expert.

**Please do not apply if you have not got experience with jcart**

We need the <?php $jcart->display_cart();?> function modified to fit our design.

This is the current jcart code:

////////////////////////////////////////////////////////////////////////

// Output the cart

// Return specified number of tabs to improve readability of HTML output

function tab($n) {

$tabs = null;

while ($n > 0) {

$tabs .= "\t";

--$n;

}

return $tabs;

}

// If there's an error message wrap it in some HTML

if ($errorMessage) {

$errorMessage = "<p id='jcart-error'>$errorMessage</p>";

}

// Display the cart header

echo tab(1) . "$errorMessage\n";

echo tab(1) . "<form method='post' action='$checkout'>\n";

echo tab(2) . "<fieldset>\n";

echo tab(3) . "<input type='hidden' name='jcartToken' value='{$_SESSION['jcartToken']}' />\n";

echo tab(3) . "<table border='1'>\n";

echo tab(4) . "<thead>\n";

echo tab(5) . "<tr>\n";

echo tab(6) . "<th colspan='3'>\n";

echo tab(7) . "<strong id='jcart-title'>{$config['text']['cartTitle']}</strong> ($this->itemCount $itemsText)\n";

echo tab(6) . "</th>\n";

echo tab(5) . "</tr>". "\n";

echo tab(4) . "</thead>\n";

// Display the cart footer

echo tab(4) . "<tfoot>\n";

echo tab(5) . "<tr>\n";

echo tab(6) . "<th colspan='3'>\n";

// If this is the checkout hide the cart checkout button

if ($isCheckout !== true) {

if ($config['button']['checkout']) {

$inputType = "image";

$src = " src='{$config['button']['checkout']}' alt='{$config['text']['checkout']}' title='' ";

}

echo tab(7) . "<input type='$inputType' $src id='jcart-checkout' name='jcartCheckout' class='jcart-button' value='{$config['text']['checkout']}' />\n";

}

echo tab(7) . "<span id='jcart-subtotal'>{$config['text']['subtotal']}: <strong>$currencySymbol" . number_format($this->subtotal, $priceFormat['decimals'], $priceFormat['dec_point'], $priceFormat['thousands_sep']) . "</strong></span>\n";

echo tab(6) . "</th>\n";

echo tab(5) . "</tr>\n";

echo tab(4) . "</tfoot>\n";

echo tab(4) . "<tbody>\n";

// If any items in the cart

if($this->itemCount > 0) {

// Display line items

foreach($this->get_contents() as $item) {

echo tab(5) . "<tr>\n";

echo tab(6) . "<td class='jcart-item-qty'>\n";

echo tab(7) . "<input name='jcartItemId[]' type='hidden' value='{$item['id']}' />\n";

echo tab(7) . "<input id='jcartItemQty-{$item['id']}' name='jcartItemQty[]' size='2' type='text' value='{$item['qty']}' />\n";

echo tab(6) . "</td>\n";

echo tab(6) . "<td class='jcart-item-name'>\n";

if ($item['url']) {

echo tab(7) . "<a href='{$item['url']}'>{$item['name']}</a>\n";

}

else {

echo tab(7) . $item['name'] . "\n";

}

echo tab(7) . "<input name='jcartItemName[]' type='hidden' value='{$item['name']}' />\n";

echo tab(6) . "</td>\n";

echo tab(6) . "<td class='jcart-item-price'>\n";

echo tab(7) . "<span>$currencySymbol" . number_format($item['subtotal'], $priceFormat['decimals'], $priceFormat['dec_point'], $priceFormat['thousands_sep']) . "</span><input name='jcartItemPrice[]' type='hidden' value='{$item['price']}' />\n";

echo tab(7) . "<a class='jcart-remove' href='?jcartRemove={$item['id']}'>{$config['text']['removeLink']}</a>\n";

echo tab(6) . "</td>\n";

echo tab(5) . "</tr>\n";

}

}

// The cart is empty

else {

echo tab(5) . "<tr><td id='jcart-empty' colspan='3'>{$config['text']['emptyMessage']}</td></tr>\n";

}

echo tab(4) . "</tbody>\n";

echo tab(3) . "</table>\n\n";

echo tab(3) . "<div id='jcart-buttons'>\n";

if ($config['button']['update']) {

$inputType = "image";

$src = " src='{$config['button']['update']}' alt='{$config['text']['update']}' title='' ";

}

echo tab(4) . "<input type='$inputType' $src name='jcartUpdateCart' value='{$config['text']['update']}' class='jcart-button' />\n";

if ($config['button']['empty']) {

$inputType = "image";

$src = " src='{$config['button']['empty']}' alt='{$config['text']['emptyButton']}' title='' ";

}

echo tab(4) . "<input type='$inputType' $src name='jcartEmpty' value='{$config['text']['emptyButton']}' class='jcart-button' />\n";

echo tab(3) . "</div>\n";

// If this is the checkout display the PayPal checkout button

if ($isCheckout === true) {

// Hidden input allows us to determine if we're on the checkout page

// We normally check against request uri but ajax update sets value to [url removed, login to view]

echo tab(3) . "<input type='hidden' id='jcart-is-checkout' name='jcartIsCheckout' value='true' />\n";

// PayPal checkout button

if ($config['button']['checkout']) {

$inputType = "image";

$src = " src='{$config['button']['checkout']}' alt='{$config['text']['checkoutPaypal']}' title='' ";

}

if($this->itemCount <= 0) {

$disablePaypalCheckout = " disabled='disabled'";

}

echo tab(3) . "<input type='$inputType' $src id='jcart-paypal-checkout' name='jcartPaypalCheckout' value='{$config['text']['checkoutPaypal']}' $disablePaypalCheckout />\n";

}

echo tab(2) . "</fieldset>\n";

echo tab(1) . "</form>\n\n";

echo tab(1) . "<div id='jcart-tooltip'></div>\n";

}

}

We need it formatted like this:

<div class="heading">

<h1>Your Shopping Cart</h1>

<a href="#"><img src="skin/images/[url removed, login to view]" width="21px" height="22px" alt="shopping-cart" /></a>

</div>

<br class="clear" />

<div class="trash">

<a href="#"><img src="skin/images/[url removed, login to view]" width="33px" height="34px" alt="trash-box" /></a>

<a href="#" class="image-two"><img src="skin/images/[url removed, login to view]" width="33px" height="34px" alt="trash-box" /></a>

</div>

<div class="cart">

<ul class="list-one">

<li class="list-item-one"> </li>

<li class="list-item-two">Item Description</li>

<li class="list-item-three">Qty</li>

<li class="list-item-four">Artwork Uploaded</li>

<li class="list-item-five">VAT</li>

<li class="list-item-six">Price</li>

</ul>

<ul class="list-two">

<li class="list-item-one"><img src="skin/images/[url removed, login to view]" width="107px" height="92px" alt="image" /></li>

<li class="list-item-two">

<span>Matt Laminated Business Cards</span>

<p>

55mm x 85mm<br /> Double Sided

</p>

<em>Options</em>

<p>

3 Names <span>Edit</span>

</p>

</li>

<li class="list-item-three">1000</li>

<li class="list-item-four"><p>No artwork uploaded – <a href="#">click<br /> here to upload now</a></p></li>

<li class="list-item-five">20%</li>

<li class="list-item-six">£89.99</li>

</ul>

<ul class="list-three">

<li class="list-item-one"><img src="skin/images/[url removed, login to view]" width="107px" height="92px" alt="image" /></li>

<li class="list-item-two">

<span>Business Stationery Bundle</span>

<em>Options</em>

<p>

Combo Package (Business Cards,<br /> Letterheads & Compliment slips) <span>Edit</span>

</p>

</li>

<li class="list-item-three">1000</li>

<li class="list-item-four"><p>[url removed, login to view] uploaded – <a href="#">click<br /> here to change</a></p></li>

<li class="list-item-five">20%</li>

<li class="list-item-six">£300.00</li>

</ul>

<p class="paragraph-one">Sub Total: <span>£389.99</span></p>

<br class="clear" />

</div>

<div class="bottom-content">

<a class="continue-shopping" href="#">Continue Shopping</a>

<div class="totals">

<p>VAT: <span>78.00</span></p>

<p class="paragraph-one">Grand Total: <span>£468.00</span></p>

<input type="submit" name="proceed_to_checkout" value="Proceed to Checkout" />

***Please only apply if you have experience with jcart***

Beceriler: AJAX, Her şey Kabul, Düzenleme, HTML, Magento, PHP, Alışveriş Sepetleri, Web Sitesi Yönetimi

Daha fazlasını görün: jcart vat, cart php, jcart paypal change, jcart image submit, tooltip html, text em, echo design, display artwork design, combo box html, box artwork design, border html, jcart php, change width jcart table, config text removelink, jcart update, jcart continue shopping, vat number check, business cards line, package design price list, design wrap box, business cards design price, artwork design edit, vat return, tab 4, hide price

İşveren Hakkında:
( 7 değerlendirme )

Proje NO: #2261353

Seçilen:

kabirchy

let me help you on this. Can do what you need. Thanks

2 gün içinde 75$ USD
(940 Değerlendirme)
8.3