Exemplo n.º 1
0
				
	ecart('catalog','featured-products','order='.$shop_catalog_order.'&load=true'); 
					
	// START SHOP SYSTEM LOOP - PLEASE DO NOT EDIT THIS UNLESS YOU KNOW WHAT YOU ARE DOING 
	
	$related_limit = epanel_option('related_limit');
	
	if(ecart('category','hasproducts','load=prices,specs,categories&limit='.$related_limit)) : ?>
		
		<ul id="products-scroller">
			
			<?php while(ecart('category','products')) : $counter++; $counter_last++;?>
			
				<li>
					<a href="<?php ecart('product','link'); ?>"><?php ecart('product','coverimage','width=150&height=120&fit=matte&sharpen=100&alt=product-picture'); ?></a>
					<p class="related-product-details"><a href="<?php ecart('product','link'); ?>"><?php ecart('product','name'); ?></a></p>
				</li>
			
			<?php endwhile; ?>
			
		</ul>

	<?php
	
	//END SHOP SYSTEM LOOP 
	
	endif; ?>
		
	</div>
	
</div>
Exemplo n.º 2
0
<?php
/**
 ** WARNING! DO NOT EDIT!
 **
 ** UNLESS YOU KNOW WHAT YOU ARE DOING
 **
 **/
?>
<?php ecart('catalog','catalog-products'); ?>
Exemplo n.º 3
0
.order { width: 100%; overflow: hidden; border: none; }
.order td { border: none; }
.order th { font-weight: bold; text-align: left; }
.order .item { width: 50%; }
.order td.qty { text-align: center; }
.order .money,
.order .total,
.order .buttons td { text-align: right; }
.order .remove { font-size: 12px; }
.order tr.totals th,.order tr.totals td { padding: 10px 0 0 0; }
</style>
<html>

<div id="header">
<h1><?php bloginfo('name'); ?></h1>
<h2><?php _e('Order','Ecart'); ?> <?php ecart('purchase','id'); ?></h2>
</div>
<div id="body">
	
<?php ecart('purchase','receipt'); ?>

<?php if (ecart('purchase','notpaid')): ?>
    <?php if (ecart('checkout','offline-instructions','return=1')): ?>
    <p><?php ecart('checkout','offline-instructions'); ?></p>
    <?php endif; ?>
<?php endif; ?>

</div>

</html>
Exemplo n.º 4
0
<?php
/**
 ** WARNING! DO NOT EDIT!
 **
 ** UNLESS YOU KNOW WHAT YOU ARE DOING
 **
 **/
?>
<div id="ecart-cart-ajax">
<?php if (ecart('cart','hasitems')): ?>
	<p class="status">
		<span id="ecart-sidecart-items"><?php ecart('cart','totalitems'); ?></span> <strong><?php _e('Product(s)','Ecart'); ?></strong><br />
		<span id="ecart-sidecart-total" class="money"><?php ecart('cart','total'); ?></span> <strong><?php _e('Total','Ecart'); ?></strong>
	</p>
	<ul>
		<li><a href="<?php ecart('cart','url'); ?>"><?php _e('View Your Shopping Cart','Ecart'); ?></a></li>
		<?php if (ecart('checkout','local-payment')): ?>
		<li><a href="<?php ecart('checkout','url'); ?>"><?php _e('Proceed to Checkout','Ecart'); ?></a></li>
		<?php endif; ?>
	</ul>
<?php else: ?>
	<p class="status"><?php _e('Currently your shopping cart is empty.','Ecart'); ?></p>
<?php endif; ?>
</div>
Exemplo n.º 5
0
		<li><?php ecart('customer','login-errors'); ?></li>
		<li>
		<span><?php ecart('customer','account-login','size=20&title='.__('Login','Ecart')); ?><label for="login"><?php ecart('customer','login-label'); ?></label></span>
		<span><?php ecart('customer','recover-button'); ?></span>
		</li>
		<li></li>
	</ul>

<?php else: ?>
	
<ul>
	<?php if (ecart('customer','notloggedin')): ?>
	<?php ecart('customer','login-errors'); ?>
	<li id="login-inputs">
		<label for="login"><?php _e('Account Login','Ecart'); ?></label>
		<span><?php ecart('customer','account-login','size=20&title='.__('Login','Ecart')); ?></span>
		
		<label for="password"><?php _e('Password','Ecart'); ?></label>
		<span><?php ecart('customer','password-login','size=20&title='.__('Password','Ecart')); ?></span>
		
		<span><?php ecart('customer','login-button'); ?></span>
	</li>
	
	<?php endif; ?>
</ul>

<?php endif; ?>

</form>
<div class="clearfix"></div><br/>
Exemplo n.º 6
0
<form action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post">
<?php if(ecart('customer','errors-exist')) ecart('customer','errors'); ?>
<ul>
	<li>
		<span><input type="text" name="purchaseid" size="12" /><label><?php _e('Order Number','Ecart'); ?></label></span>
		<span><input type="text" name="email" size="32" /><label><?php _e('E-mail Address','Ecart'); ?></label></span>
		<span><input type="submit" name="vieworder" value="<?php _e('View Order','Ecart'); ?>" /></span>
	</li>
</ul>
<br class="clear" />
</form>
Exemplo n.º 7
0
Arquivo: parse.php Projeto: philum/cms
function interpret_xml($v)
{
    static $i;
    $i++;
    //static $ret;
    $aa = strpos($v, "<");
    $ab = strpos($v, ">");
    //aa_balise
    if ($aa !== false && $ab !== false && $ab > $aa) {
        $before = substr($v, 0, $aa);
        //...< //htmlentities
        $aa_inner = ecart($v, $aa, $ab);
        //<...>
        $aa_end = strpos($aa_inner, " ");
        if ($aa_end !== false) {
            $aa_balise = substr($aa_inner, 0, $aa_end);
        } else {
            $aa_balise = $aa_inner;
        }
    }
    $ba = strpos($v, '</' . $aa_balise, $ab);
    $bb = strpos($v, ">", $ba);
    //bb_balise
    if ($ba !== false && $bb !== false && $aa_balise != "" && $bb > $ba) {
        $ba = recursearch($v, $ab, $ba, $aa_balise);
        //recursearch
        $bb = strpos($v, ">", $ba);
        if ($bb) {
            $bb_balise = ecart($v, $ba, $bb);
        }
        $balise = ecart($v, $ab, $ba);
    } elseif ($ab !== false) {
        $bb = $ab;
    } else {
        $bb = -1;
    }
    $after = substr($v, $bb + 1);
    //>...
    //ok,go
    $ia = $i;
    $aa_balise = strtolower($aa_balise);
    $bb_balise = strtolower($bb_balise);
    $ret[$ia]['balise'] = $aa_balise;
    $attrb = mk_attrb($aa_inner, ' ', '=');
    if ($attrb) {
        $ret[$ia]['props'] = $attrb;
    }
    //itération
    if (strpos($balise, '<') !== false) {
        $balise = interpret_xml($balise);
    }
    if ($balise) {
        $ret[$ia]['content'] = $balise;
    }
    //sequence
    if (strpos($after, '<') !== false) {
        $retb = interpret_xml($after);
    }
    if ($retb) {
        $ret = array_merge_b($ret, $retb);
    }
    return $ret;
}
Exemplo n.º 8
0
<?php
/**
 ** WARNING! DO NOT EDIT!
 **
 ** UNLESS YOU KNOW WHAT YOU ARE DOING
 **
 **/
?>
<?php if (ecart('product','found')): ?>
	<div class="sideproduct">
	<a href="<?php ecart('product','url'); ?>"><?php ecart('product','thumbnail'); ?></a>

	<h3><a href="<?php ecart('product','url'); ?>"><?php ecart('product','name'); ?></a></h3>

	<?php if (ecart('product','onsale')): ?>
		<p class="original price"><?php ecart('product','price'); ?></p>
		<p class="sale price"><big><?php ecart('product','saleprice'); ?></big></p>
	<?php else: ?>
		<p class="price"><big><?php ecart('product','price'); ?></big></p>
	<?php endif; ?>
	</div>
<?php endif; ?>
Exemplo n.º 9
0
						 	
						 	<div class="catalog-price">
						 	 <?php ecart('product','price'); ?>
						 	</div>
						 	
						 	<a class="catalog-link" href="<?php ecart('product','link');?>"><?php _e('Read Details','epanel');?></a>
						 	
						 <?php endif; ?>
					
							
					</div>
				
				</div>
				
				<?php if($products_counter_last == 3) { echo '<div class="clearfix"></div>'; $products_counter_last = 0; } ?>
			
			<?php endwhile; ?>
		
		</div>
		
	</div>
	
	<div id="catalog-pagination"><?php ecart('category','pagination','label=&after=&before=&previous=Previous Page&next=Next Page'); ?></div>
	
	<?php else: ?>
	<?php if (!ecart('catalog','is-landing')): ?>
	<h3><?php _e('Ops Something Went Wrong.....','Ecart'); ?></h3>
	<p><?php _e('No products were found.','Ecart'); ?></p>
	<?php endif; ?>
<?php endif; ?>
Exemplo n.º 10
0
			<?php ecart('checkout','payment-options'); ?>
			<?php ecart('checkout','gateway-inputs'); ?>
		</li>
		<?php if (ecart('checkout','card-required')): ?>
		<li class="payment reg-input">
			<span><?php ecart('checkout','billing-card','required=true&size=30&title='.__('Credit/Debit Card Number','Ecart')); ?><label for="billing-card"><?php _e('Credit/Debit Card Number','Ecart'); ?></label></span>
			<span><?php ecart('checkout','billing-cardexpires-mm','size=4&required=true&minlength=2&maxlength=2&title='.__('Card\'s 2-digit expiration month','Ecart')); ?> /<label for="billing-cardexpires-mm"><?php _e('MM','Ecart'); ?></label></span>
			<span><?php ecart('checkout','billing-cardexpires-yy','size=4&required=true&minlength=2&maxlength=2&title='.__('Card\'s 2-digit expiration year','Ecart')); ?><label for="billing-cardexpires-yy"><?php _e('YY','Ecart'); ?></label></span>
			<span><?php ecart('checkout','billing-cardtype','required=true&title='.__('Card Type','Ecart')); ?></span>
		</li>
		<li class="payment reg-input">
			<span><?php ecart('checkout','billing-cardholder','required=true&size=30&title='.__('Card Holder\'s Name','Ecart')); ?><label for="billing-cardholder"><?php _e('Name on Card','Ecart'); ?></label></span>
			<span><?php ecart('checkout','billing-cvv','size=7&minlength=3&maxlength=4&title='.__('Card\'s security code (3-4 digits on the back of the card)','Ecart')); ?><label for="billing-cvv"><?php _e('Security ID','Ecart'); ?></label></span>
		</li>
		<?php if (ecart('checkout','billing-xcsc-required')): // Extra billing security fields ?>
		<li class="payment reg-input">
		<span><?php ecart('checkout','billing-xcsc','input=start&size=7&minlength=5&maxlength=5&title='.__('Card\'s start date (MM/YY)','Ecart')); ?><label for="billing-xcsc-start"><?php _e('Start Date','Ecart'); ?></label></span>
			<span><?php ecart('checkout','billing-xcsc','input=issue&size=7&minlength=3&maxlength=4&title='.__('Card\'s issue number','Ecart')); ?><label for="billing-xcsc-issue"><?php _e('Issue #','Ecart'); ?></label></span>
		</li>
		<?php endif; ?>
		
		<?php endif; ?>
		<li></li>
		<li>
		</li>
	</ul>
	<p class="submit"><?php ecart('checkout','submit','value='.__('Confirm This Order','Ecart')); ?></p>

<?php endif; ?>
</form>
Exemplo n.º 11
0
			
			<?php 
						
			ecart('catalog','featured-products','order='.$shop_catalog_order.'&load=true'); 
							
			// START SHOP SYSTEM LOOP - PLEASE DO NOT EDIT THIS UNLESS YOU KNOW WHAT YOU ARE DOING 
			
			if(ecart('category','hasproducts','load=prices,specs,categories&limit='.$shop_home_limit)) : ?>
				
				<ul id="products-scroller">
					
					<?php while(ecart('category','products')) : $counter++; $counter_last++;?>
					
						<li>
							<a href="<?php ecart('product','link'); ?>"><?php ecart('product','coverimage','width=205&height=140&fit=crop&sharpen=100&alt=product-picture'); ?></a>
							<p class="scroller-product-details"><a href="<?php ecart('product','link'); ?>"><?php ecart('product','name'); ?></a></p>
						</li>
					
					<?php endwhile; ?>
					
				</ul>
		
			<?php
			
			//END SHOP SYSTEM LOOP 
			
			endif; ?>
				
			</div>
			
		</div>
Exemplo n.º 12
0
	/**
	 * Provides ecart('cart') template api functionality
	 *	 
	 * @since 1.0
	 *
	 * @return mixed
	 **/
	function tag ($property,$options=array()) {
		global $Ecart;
		$submit_attrs = array('title','value','disabled','tabindex','accesskey','class');

		// Return strings with no options
		switch ($property) {
			case "url": return ecarturl(false,'cart'); break;
			case "referrer":
			case "referer":
				$referrer = $Ecart->Shopping->data->referrer;
				if (!$referrer) $referrer = ecart('catalog','url','return=1');
				return $referrer;
				break;
			case "hasitems":
			case "has-items": return (count($this->contents) > 0); break;
			case "totalitems":
			case "total-items": return $this->Totals->quantity; break;
			case "items":
				if (!isset($this->_item_loop)) {
					reset($this->contents);
					$this->_item_loop = true;
				} else next($this->contents);

				if (current($this->contents)) return true;
				else {
					unset($this->_item_loop);
					reset($this->contents);
					return false;
				}
				break;
			case "hasshipped":
			case "has-shipped": return $this->shipped(); break;
			case "shippeditems":
			case "shipped-items":
				if (!isset($this->_shipped_loop)) {
					reset($this->shipped);
					$this->_shipped_loop = true;
				} else next($this->shipped);

				if (current($this->shipped)) return true;
				else {
					unset($this->_shipped_loop);
					reset($this->shipped);
					return false;
				}
				break;
			case "hasdownloads":
			case "has-downloads": return $this->downloads(); break;
			case "downloaditems":
			case "download-items":
				if (!isset($this->_downloads_loop)) {
					reset($this->downloads);
					$this->_downloads_loop = true;
				} else next($this->downloads);

				if (current($this->downloads)) return true;
				else {
					unset($this->_downloads_loop);
					reset($this->downloads);
					return false;
				}
				break;
			case "lastitem":
			case "last-item": return $this->contents[$this->added]; break;
			case "totalpromos":
			case "total-promos": return count($this->discounts); break;
			case "haspromos":
			case "has-promos": return (count($this->discounts) > 0); break;
			case "discounts":
			case "promos":
				if (!isset($this->_promo_looping)) {
					reset($this->discounts);
					$this->_promo_looping = true;
				} else next($this->discounts);

				$discount = current($this->discounts);
				while ($discount && empty($discount->applied) && !$discount->freeshipping)
					$discount = next($this->discounts);

				if (current($this->discounts)) return true;
				else {
					unset($this->_promo_looping);
					reset($this->discounts);
					return false;
				}
			case "promoname":
			case "promo-name":
				$discount = current($this->discounts);
				if ($discount->applied == 0 && empty($discount->items) && !isset($this->freeshipping)) return false;
				return $discount->name;
				break;
			case "promodiscount":
			case "promo-discount":
				$discount = current($this->discounts);
				if ($discount->applied == 0 && empty($discount->items) && !isset($this->freeshipping)) return false;
				if (!isset($options['label'])) $options['label'] = ' '.__('Off!','Ecart');
				else $options['label'] = ' '.$options['label'];
				$string = false;
				if (!empty($options['before'])) $string = $options['before'];

				switch($discount->type) {
					case "Free Shipping": $string .= money($discount->freeshipping).$options['label']; break;
					case "Percentage Off": $string .= percentage($discount->discount,array('precision' => 0)).$options['label']; break;
					case "Amount Off": $string .= money($discount->discount).$options['label']; break;
					case "Buy X Get Y Free": return sprintf(__('Buy %s get %s free','Ecart'),$discount->buyqty,$discount->getqty); break;
				}
				if (!empty($options['after'])) $string .= $options['after'];

				return $string;
				break;
			case "function":
				$result = '<div class="hidden"><input type="hidden" id="cart-action" name="cart" value="true" /></div><input type="submit" name="update" id="hidden-update" />';

				$Errors = &EcartErrors();
				if (!$Errors->exist(ECART_STOCK_ERR)) return $result;

				ob_start();
				include(ECART_TEMPLATES."/errors.php");
				$errors = ob_get_contents();
				ob_end_clean();
				return $result.$errors;
				break;
			case "emptybutton":
			case "empty-button":
				if (!isset($options['value'])) $options['value'] = __('Empty Cart','Ecart');
				return '<input type="submit" name="empty" id="empty-button" '.inputattrs($options,$submit_attrs).' />';
				break;
			case "updatebutton":
			case "update-button":
				if (!isset($options['value'])) $options['value'] = __('Update Subtotal','Ecart');
				if (isset($options['class'])) $options['class'] .= " update-button";
				else $options['class'] = "update-button";
				return '<input type="submit" name="update"'.inputattrs($options,$submit_attrs).' />';
				break;
			case "sidecart":
				ob_start();
				include(ECART_TEMPLATES."/sidecart.php");
				$content = ob_get_contents();
				ob_end_clean();
				return $content;
				break;
			case "hasdiscount":
			case "has-discount": return ($this->Totals->discount > 0); break;
			case "discount": return money($this->Totals->discount); break;
		}

		$result = "";
		switch ($property) {
			case "promos-available":
				if (!$Ecart->Promotions->available()) return false;
				// Skip if the promo limit has been reached
				if ($Ecart->Settings->get('promo_limit') > 0 &&
					count($this->discounts) >= $Ecart->Settings->get('promo_limit')) return false;
				return true;
				break;
			case "promo-code":
				// Skip if no promotions exist
				if (!$Ecart->Promotions->available()) return false;
				// Skip if the promo limit has been reached
				if ($Ecart->Settings->get('promo_limit') > 0 &&
					count($this->discounts) >= $Ecart->Settings->get('promo_limit')) return false;
				if (!isset($options['value'])) $options['value'] = __("Apply Promo Code","Ecart");
				$result = '<ul><li>';

				if ($Ecart->Errors->exist()) {
					$result .= '<p class="error">';
					$errors = $Ecart->Errors->source('CartDiscounts');
					foreach ((array)$errors as $error) if (!empty($error)) $result .= $error->message(true,false);
					$result .= '</p>';
				}

				$result .= '<span><input type="text" id="promocode" name="promocode" value="" size="10" /></span>';
				$result .= '<span><input type="submit" id="apply-code" name="update" '.inputattrs($options,$submit_attrs).' /></span>';
				$result .= '</li></ul>';
				return $result;
			case "has-shipping-methods":
				return apply_filters(
							'ecart_shipping_hasestimates',
							(!empty($this->shipping) && !$this->noshipping),
							$this->shipping
						); break;
			case "needs-shipped": return (!empty($this->shipped)); break;
			case "hasshipcosts":
			case "has-shipcosts":
			case "hasship-costs":
			case "has-ship-costs": return ($this->Totals->shipping > 0); break;
			case "needs-shipping-estimates":
				$markets = $Ecart->Settings->get('target_markets');
				return (!empty($this->shipped) && !$this->noshipping && ($this->showpostcode || count($markets) > 1));
				break;
			case "shipping-estimates":
				if (empty($this->shipped)) return "";
				$base = $Ecart->Settings->get('base_operations');
				$markets = $Ecart->Settings->get('target_markets');
				$Shipping = &$Ecart->Order->Shipping;
				if (empty($markets)) return "";
				foreach ($markets as $iso => $country) $countries[$iso] = $country;
				if (!empty($Shipping->country)) $selected = $Shipping->country;
				else $selected = $base['country'];
				$result .= '<ul><li>';
				if ((isset($options['postcode']) && value_is_true($options['postcode'])) || $this->showpostcode) {
					$result .= '<span>';
					$result .= '<input type="text" name="shipping[postcode]" id="shipping-postcode" size="6" value="'.$Shipping->postcode.'" />&nbsp;';
					$result .= '</span>';
				}
				if (count($countries) > 1) {
					$result .= '<span>';
					$result .= '<select name="shipping[country]" id="shipping-country">';
					$result .= menuoptions($countries,$selected,true);
					$result .= '</select>';
					$result .= '</span>';
				} else $result .= '<input type="hidden" name="shipping[country]" id="shipping-country" value="'.key($markets).'" />';
				$result .= '<br class="clear" /></li></ul>';
				return $result;
				break;
		}

		$result = "";
		switch ($property) {
			case "subtotal": $result = $this->Totals->subtotal; break;
			case "shipping":
				if (empty($this->shipped)) return "";
				if (isset($options['label'])) {
					$options['currency'] = "false";
					if ($this->freeshipping) {
						$result = $Ecart->Settings->get('free_shipping_text');
						if (empty($result)) $result = __('Free Shipping!','Ecart');
					}

					else $result = $options['label'];
				} else {
					if ($this->Totals->shipping === null)
						return __("Enter Postal Code","Ecart");
					elseif ($this->Totals->shipping === false)
						return __("Not Available","Ecart");
					else $result = $this->Totals->shipping;
				}
				break;
			case "hastaxes":
			case "has-taxes":
				return ($this->Totals->tax > 0); break;
			case "tax":
				if ($this->Totals->tax > 0) {
					if (isset($options['label'])) {
						$options['currency'] = "false";
						$result = $options['label'];
					} else $result = $this->Totals->tax;
				} else $options['currency'] = "false";
				break;
			case "total":
				$result = $this->Totals->total;
				break;
		}

		if (isset($options['currency']) && !value_is_true($options['currency'])) return $result;
		if (is_numeric($result)) return '<span class="ecart_cart_'.$property.'">'.money($result).'</span>';

		return false;
	}
Exemplo n.º 13
0
<?php if (ecart('checkout','completed')): ?>

<?php if (ecart('purchase','notpaid')): ?>
	<p><?php _e('Your order has been received but the payment has not yet completed processing.','Ecart'); ?></p>
	
	<?php if (ecart('checkout','offline-instructions','return=1')): ?>
	<p><?php ecart('checkout','offline-instructions'); ?></p>
	<?php endif; ?>
	
	<?php if (ecart('purchase','hasdownloads')): ?>
	<p><?php _e('The download links on your order receipt will not work until the payment is received.','Ecart'); ?></p>
	<?php endif; ?>

	<?php if (ecart('purchase','hasfreight')): ?>
	<p><?php _e('Your items will not ship out until the payment is received.','Ecart'); ?></p>
	<?php endif; ?>

<?php endif; ?>

<?php ecart('checkout','receipt'); ?>

<?php if (ecart('customer','wpuser-created')): ?>
	<p><?php _e('An email was sent with account login information to the email address provided for your order.','Ecart'); ?>  <a href="<?php ecart('customer','url'); ?>"><?php _e('Login to your account','Ecart'); ?></a> <?php _e('to access your orders, change your password and manage your checkout information.','Ecart'); ?></p>
<?php endif; ?>

<?php else: ?>

<p><?php _e('Your order is still in progress and has not yet been received from the payment processor. You will receive an email notification when your payment has been verified and the order has been completed.','Ecart'); ?></p>

<?php endif; ?>
Exemplo n.º 14
0
h1 { margin-bottom: 0; }
p { margin-bottom: 24px; }

.order { width: 100%; overflow: hidden; border: none; }
.order td { border: none; }
.order th { font-weight: bold; text-align: left; }
.order .item { width: 50%; }
.order td.qty { text-align: center; }
.order .money,
.order .total,
.order .buttons td { text-align: right; }
.order .remove { font-size: 12px; }
.order tr.totals th,.order tr.totals td { padding: 10px 0 0 0; }
</style>
<html>

<div id="header">
<h1><?php bloginfo('name'); ?></h1>
<h2><?php _e('Order Update','Ecart'); ?></h2>
</div>
<div id="body">

[message]

<p class="status"><?php _e('Your order is','Ecart'); ?>: <strong><?php ecart('purchase','status'); ?></strong></p>

<?php ecart('purchase','receipt'); ?>
</div>

</html>
Exemplo n.º 15
0
<?php
/*
Template Name: Inner Page Store
*/
get_header();
?>
<div id="breadcumb">

	<div class="container">
		<?php ecart('catalog','breadcrumb'); ?>
	</div>

</div>

<div id="inner-page">

	<div class="container" id="inner-wrapper">
	
		<?php if (get_post_meta($post->ID, 'sidebar_position', true ) =='left') { ?>
		
			<div class="one_fourth" id="sidebar">
				<?php if ( !function_exists('dynamic_sidebar') || ! generated_dynamic_sidebar('Page Sidebar') ) ; ?>
			</div>
			
			<div class="three_fourth last" id="page-content">
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			
			<?php the_content();?>
			
			<?php endwhile; endif; ?>
			</div>
Exemplo n.º 16
0
				
				<?php if (ecart('cart','hasdiscount')): ?>
				<p><?php _e('Discount :','Ecart'); ?> <span>-<?php ecart('cart','discount'); ?></span></p>
				<?php endif; ?>
				
				<?php if (ecart('cart','needs-shipped')): ?>
				<p><?php ecart('cart','shipping','label='.__('Shipping :','Ecart')); ?> <span><?php ecart('cart','shipping'); ?></span></p>
				<?php endif; ?>
				
				<?php if(ecart('cart','hastaxes')) : ?>
				<p><?php ecart('cart','tax','label='.__('Taxes :','Ecart')); ?> <span><?php ecart('cart','tax'); ?></span></p>
				<?php endif; ?>
				
				<p class="last-total"><?php _e('Total','Ecart'); ?> <span><?php ecart('cart','total'); ?></span></p>
				
			</div>
			
		</div>
		
		<div id="update-cart" class="alignright"><?php ecart('cart','update-button','value=Update Shopping Cart'); ?></div>
	
	</div>

</div>
</form>

<?php else: ?>
	<p class="warning"><?php _e('There are currently no items in your shopping cart.','Ecart'); ?></p>
	<p><a href="<?php ecart('catalog','url'); ?>">&laquo; <?php _e('Continue Shopping','Ecart'); ?></a></p>
<?php endif; ?>
Exemplo n.º 17
0
<?php
/**
 ** WARNING! DO NOT EDIT!
 **
 ** UNLESS YOU KNOW WHAT YOU ARE DOING
 **
 **/
?>
<div id="errors" class="ecart">
	<h3><?php _e('Errors','Ecart'); ?></h3>
	<ul>
		<?php ecart('checkout','errors'); ?>
	</ul>
</div>
Exemplo n.º 18
0
Arquivo: tri.php Projeto: philum/cms
function interpret_html($v, $X)
{
    $aa = strpos($v, "<");
    $ab = strpos($v, ">");
    //aa_balise
    if ($aa !== false && $ab !== false && $ab > $aa) {
        $before = substr($v, 0, $aa);
        //...<
        $aa_inner = ecart($v, $aa, $ab);
        //<...>
        $aa_end = strpos($aa_inner, " ");
        if ($aa_end !== false) {
            $aa_balise = substr($aa_inner, 0, $aa_end);
        } else {
            $aa_balise = $aa_inner;
        }
    }
    //else $before=$v;
    $ba = strpos($v, '</' . $aa_balise, $ab);
    $bb = strpos($v, ">", $ba);
    //bb_balise
    if ($ba !== false && $bb !== false && $aa_balise != "" && $bb > $ba) {
        $ba = recursearch($v, $ab, $ba, $aa_balise);
        //recursearch
        $bb = strpos($v, ">", $ba);
        $bb_balise = ecart($v, $ba, $bb);
        $balise = ecart($v, $ab, $ba);
    } elseif ($ab !== false) {
        $bb = $ab;
    } else {
        $bb = -1;
    }
    $after = substr($v, $bb + 1);
    //>...
    //ok,go
    $aa_balise = strtolower($aa_balise);
    $bb_balise = strtolower($bb_balise);
    if ($aa_balise == "head" or $aa_balise == "style" or $aa_balise == "script") {
        $balise = "";
    }
    if ($_POST["see"]) {
        static $i;
        $i++;
        echo $i . ' :: ' . $aa_balise . '=>' . $bb_balise . ' - ';
    }
    //itération
    if (strpos($balise, '<') !== false) {
        $balise = interpret_html($balise, $X);
    }
    //""//100909
    if ($X != "ok") {
        //else interdit l'imbrication
        if ($aa_balise == 'pagespeed_iframe') {
            $aa_balise = 'iframe';
        }
        //patch
        $ret = balise_converter($aa_balise, $aa_inner, $bb_balise, $balise);
        if ($ret[1] == $balise) {
            $ret[1] = balise_converter_style($balise, $aa_inner);
        } else {
            $balise = $ret[1];
        }
        $taga .= $ret[0];
        $tagb .= $ret[2];
    }
    //sequential
    if (strpos($after, '<') !== false) {
        $after = interpret_html($after, $X);
    }
    $ret = $before . $taga . $balise . $tagb . $after;
    return $ret;
}
Exemplo n.º 19
0
	</tr>

	<?php while(ecart('purchase','items')): ?>
		<tr class="product_row">
			<td class="item-column"><?php ecart('purchase','item-name'); ?><?php ecart('purchase','item-options','before= – '); ?><br />
				<?php ecart('purchase','item-download'); ?>
				<?php ecart('purchase','item-addons-list'); ?>
				</td>
			<td class="right-row"><?php ecart('purchase','item-quantity'); ?></td>
			<td class="money right-row"><?php ecart('purchase','item-unitprice'); ?></td>
			<td class="money right-row"><?php ecart('purchase','item-total'); ?></td>
		</tr>
	<?php endwhile; ?>
	
</table>
</div>
<?php if(ecart('purchase','has-data')): ?>
	<ul>
	<?php while(ecart('purchase','orderdata')): ?>
		<?php if (ecart('purchase','data','echo=0') == '') continue; ?>
		<li><strong><?php ecart('purchase','data','name'); ?>:</strong> <?php ecart('purchase','data'); ?></li>
	<?php endwhile; ?>
	</ul>
<?php endif; ?>
	

<?php else: ?>
	<p class="warning"><?php _e('There were no items found for this purchase.','Ecart'); ?></p>
<?php endif; ?>
</div>
Exemplo n.º 20
-1
	/**
	 * Handles rendering the [buynow] shortcode
	 *	 
	 * @since 1.1
	 *
	 * @param array $attrs The parsed shortcode attributes
	 * @return string The processed content
	 **/
	function buynow_shortcode ($atts) {
		global $Ecart;

		if (empty($Ecart->Product->id)) {
			if (isset($atts['name'])) {
				$Ecart->Product = new Product($atts['name'],'name');
			} elseif (isset($atts['slug'])) {
				$Ecart->Product = new Product($atts['slug'],'slug');
			} elseif (isset($atts['id'])) {
				$Ecart->Product = new Product($atts['id']);
			} else return "";
		}
		if (empty($Ecart->Product->id)) return "";

		ob_start();
		?>
		<form action="<?php ecart('cart','url'); ?>" method="post" class="ecart product">
			<input type="hidden" name="redirect" value="checkout" />
			<?php if (isset($atts['variations'])): $variations = empty($atts['variations'])?'mode=multiple&label=true&defaults='.__('Select an option','Ecart').'&before_menu=<li>&after_menu=</li>':$atts['variations']; ?>
				<?php if(ecart('product','has-variations')): ?>
				<ul class="variations">
					<?php ecart('product','variations',$variations); ?>
				</ul>
				<?php endif; ?>
			<?php endif; ?>
			<?php if (isset($atts['addons'])): $addons = empty($atts['addons'])?'mode=menu&label=true&defaults='.__('Select an add-on','Ecart').'&before_menu=<li>&after_menu=</li>':$atts['addons']; ?>
				<?php if(ecart('product','has-addons')): ?>
					<ul class="addons">
						<?php ecart('product','addons','mode=menu&label=true&defaults='.__('Select an add-on','Ecart').'&before_menu=<li>&after_menu=</li>'); ?>
					</ul>
				<?php endif; ?>
			<?php endif; ?>
			<p><?php if (isset($atts['quantity'])): $quantity = (empty($atts['quantity']))?'class=selectall&input=menu':$atts['quantity']; ?>
				<?php ecart('product','quantity',$quantity); ?>
			<?php endif; ?>
			<?php $button = empty($atts['button'])?'label='.__('Buy Now','Ecart'):$atts['button']; ?>
			<?php ecart('product','addtocart',$button); ?></p>
		</form>
		<?php
		$markup = ob_get_contents();
		ob_end_clean();

		return $markup;
	}
Exemplo n.º 21
-1
			<?php 
						
			ecart('catalog','featured-products','order='.$shop_catalog_order.'&load=true'); 
							
			// START SHOP SYSTEM LOOP - PLEASE DO NOT EDIT THIS UNLESS YOU KNOW WHAT YOU ARE DOING 
			
			if(ecart('category','hasproducts','load=prices,specs,categories&limit='.$shop_home_limit)) : ?>
				
				<ul id="products-scroller">
					
					<?php while(ecart('category','products')) : $counter++; $counter_last++;?>
					
						<li>
							<a href="<?php ecart('product','link'); ?>"><?php ecart('product','coverimage','width=205&height=140&fit=crop&sharpen=100&alt=product-picture'); ?></a>
							<p class="scroller-product-details"><a href="<?php ecart('product','link'); ?>"><?php ecart('product','name'); ?></a></p>
							<p class="scroller-desc"><?php ecart('product','summary');?></p>
						</li>
					
					<?php endwhile; ?>
					
				</ul>
		
			<?php
			
			//END SHOP SYSTEM LOOP 
			
			endif; ?>
				
			</div>
			
		</div>
Exemplo n.º 22
-1
			<?php else: ?>
				<p class="singular-price"><?php _e('Product Price : ','Ecart'); echo '<span>'; ecart('product','price'); echo '</span>';?></p>
			<?php endif; ?>
			</div>
			
			<div class="purchase-fields">
					<span><?php _e('Quantity','epanel');?> :</span><span class="form"><?php ecart('product','quantity','class=selectall&options=1&input=text'); ?></span><span class="addtocart"><?php ecart('product','addtocart','ajax=on'); ?></span>
			</div>
				
		</div><!-- end product prices -->
		
		<?php if(ecart('product','has-variations')): ?>
		
			<div class="product-settings">	
				<ul class="product-config">
					<?php ecart('product','variations','mode=multiple&label=true&defaults='.__('Select an option','Ecart').'&before_menu=<li>&after_menu=</li>'); ?>
				</ul>
			</div>
			
		<?php endif; ?>
		
		
		</form>
		
	</div>

</div>
<?php else: ?>
<h3><?php _e('Product Not Found','Ecart'); ?></h3>
<p><?php _e('Sorry! The product you requested is not found in our catalog!','Ecart'); ?></p>
<?php endif; ?>
Exemplo n.º 23
-1
	function cartcheckout ($result) {
		$tag = $this->submit();
		$form = '<form id="checkout" action="'.ecarturl(false,'checkout').'" method="post" >'
		.'<input type="hidden" name="google_cartcheckout" value="true" />'
		.ecart('checkout','function','return=1')
		.$tag[$this->settings['label']].'</form>';
		return $form;
	}