Example #1
0
            <div class="row">
                <div class="col-md-4">
                    <div class="well well-sm well-light text-center"><h5><small>Code</small><br/><?php 
echo $item->code;
?>
</h5></div>
                </div>
                <div class="col-md-4">
                    <div class="well well-sm well-light text-center"><h5><small>Initial Value</small><br/><?php 
echo \Shop\Models\Currency::format($item->initial_value);
?>
</h5></div>
                </div>
                <div class="col-md-4">
                    <div class="well well-sm bg-color-darken txt-color-white text-center"><h5><small>Balance</small><br/><?php 
echo \Shop\Models\Currency::format($item->balance());
?>
</h5></div>
                </div>
            </div>
            
            <hr/>
            
            <div class="row">
                <div class="col-md-2">
                    
                    <h3>Issued To</h3>
                            
                </div>
                <!-- /.col-md-2 -->
                            
Example #2
0
        echo $item->id;
        ?>
">
                            <?php 
        echo $item->code;
        ?>
                            </a>
                        </div>
                        <div class="col-sm-2">
                            <?php 
        echo (int) $item->countSales(true);
        ?>
                        </div>
                        <div class="col-sm-3">
                            <?php 
        echo \Shop\Models\Currency::format($item->totalSales(true));
        ?>
                        </div>
                    </div>
                </li>
                <?php 
    }
    ?>
                </ul>
            
            <?php 
} else {
    ?>
                <p>No items found.</p>
            <?php 
}
Example #3
0
                    <div>
                        <span class="quantity"><?php 
    echo \Dsc\ArrayHelper::get($item, 'quantity');
    ?>
</span>
                        x
                        <span class="price"><?php 
    echo \Shop\Models\Currency::format(\Dsc\ArrayHelper::get($item, 'price'));
    ?>
</span> 
                    </div>
                    
                </td>
                <td>
                    <div class="subtotal"><?php 
    echo \Shop\Models\Currency::format($cart->calcItemSubtotal($item));
    ?>
</div>
                </td>
            </tr>
        <?php 
}
?>
        
        </tbody>
    </table>
</div>

<script>
jQuery(document).ready(function(){
	jQuery('[data-toggle="tooltip"]').tooltip();
Example #4
0
        } else {
            ?>
                        
                                <?php 
            if ((int) $product->get('prices.list') > 0 && $product->get('prices.list') != $product->price()) {
                ?>
                                    <span class="list-price"><strike><?php 
                echo \Shop\Models\Currency::format($product->{'prices.list'});
                ?>
</strike></span>
                                <?php 
            }
            ?>
                                <div class="product-price">
                                    <?php 
            echo \Shop\Models\Currency::format($product->price());
            ?>
                                </div>
                            <?php 
        }
        ?>
                        </div>                        
               
                    </div>
                    
                    <?php 
        $n++;
        if ($n % 4 == 0 || $n == $count) {
            ?>
</div> <hr/><?php 
        }
Example #5
0
</span>
                                        x
                                        <span class="price"><?php 
            echo \Shop\Models\Currency::format(\Dsc\ArrayHelper::get($cartitem, 'price'));
            ?>
</span> 
                                    </div>                                
                                </div>
                            </div>        
                            <?php 
        }
        ?>
                        </div>
                        <div class="col-md-2">
                            <span class="price"><?php 
        echo \Shop\Models\Currency::format($item->subtotal());
        ?>
</span>
                        </div>
                        <div class="col-md-3">
                            <?php 
        echo date('Y-m-d g:i a', $item->{'metadata.last_modified.time'});
        ?>
                        </div>                        
                    </div>
                
            </div>
            <?php 
    }
    ?>
            
Example #6
0
                </div>
                <?php 
    }
    ?>
                <div>
                    <small>
                    <span class="quantity"><?php 
    echo $quantity = \Dsc\ArrayHelper::get($item, 'quantity');
    ?>
</span>
                    x
                    <span class="price"><?php 
    echo \Shop\Models\Currency::format($price = \Dsc\ArrayHelper::get($item, 'price'));
    ?>
</span>
                    </small> 
                </div>
            </h4>
        </td>
        <td style="vertical-align: top; text-align: right;">
            <h4>
                <?php 
    echo \Shop\Models\Currency::format($quantity * $price);
    ?>
            </h4>
        </td>
    </tr>        
    <?php 
}
?>
</div>
Example #7
0
 public function toString($glue = ' | ', $prefix = '', $suffix = '')
 {
     $strings = array();
     $strings[] = $this->customer_name;
     $strings[] = (new \DateTime($this->{'metadata.created.local'}))->format('F j, Y g:i a');
     $strings[] = \Shop\Models\Currency::format($this->{'grand_total'});
     $strings[] = 'Status: ' . $this->status;
     $strings[] = $this->number;
     return $prefix . implode($glue, $strings) . $suffix;
 }
Example #8
0
 /**
  * Converts this to a search item, used in the search template when displaying each search result
  */
 public function toAdminSearchItem()
 {
     $image = !empty($this->{'featured_image.slug'}) ? './asset/thumb/' . $this->{'featured_image.slug'} : null;
     $sku = $this->{'tracking.sku'} ? ' - ' . $this->{'tracking.sku'} : null;
     $published_status = '<span class="label ' . $this->publishableStatusLabel() . '">' . $this->{'publication.status'} . '</span>';
     $item = new \Search\Models\Item(array('url' => './admin/shop/product/edit/' . $this->id, 'title' => $this->title . $sku, 'subtitle' => \Shop\Models\Currency::format($this->price()), 'image' => $image, 'summary' => $this->getAbstract(), 'datetime' => $published_status . ' ' . date('Y-m-d', $this->{'publication.start.time'}), 'price' => $this->price(), 'prices' => $this->{'prices'}));
     return $item;
 }
Example #9
0
$salesdata = $model->salesData();
$conversions = $model->conversions();
?>

<hr/>

<div class="row">
    <div class="col-md-6">
        <h4 class="clearfix">
            <a href="./admin/shop/orders">
            Total Sales
            <?php 
if (isset($total['total'])) {
    ?>
            <small class="pull-right"><?php 
    echo \Shop\Models\Currency::format($total['total']);
    ?>
 total (<?php 
    echo $total['count'];
    ?>
)</small>
            <?php 
}
?>
            </a>
        </h4>
        <hr/>
        <div class="well well-sm">
            <div id="shop_stats_chart_div" style="width: 100%; height: 300px;"></div>
        </div>
    </div>
Example #10
0
    ?>

                            </tbody>
                            
                            <tfoot>
                                <td><div class="strong">
                                        Total<?php 
    if (!($shippingMethod = $cart->shippingMethod())) {
        ?>
 <small>(est)</small> <?php 
    }
    ?>
:
                                    </div></td>
                                <td><div class="price"><?php 
    echo \Shop\Models\Currency::format($cart->total());
    ?>
</div></td>
                            </tfoot>                        
                            
                        </table>
                    </div>
                </div>
            </div>

            <?php 
    if (empty($cart->userCoupons())) {
        \Dsc\System::instance()->get('session')->set('site.addcoupon.redirect', '/shop/cart');
        ?>
            <div class="margin-top">
                <div class="row">
Example #11
0
        </div>
    </div>
    
    <?php 
if ($balance = $this->auth->getIdentity()->reload()->{'shop.credits.balance'}) {
    ?>
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-4">
                    <legend>Store Credit</legend>
                    <p class="help-block"><small>Store credits will be applied automatically during checkout</small></p>
                </div>
                <div class="col-xs-12 col-sm-12 col-md-8">
                    <h4>Available Balance: <span class="label label-success"><?php 
    echo \Shop\Models\Currency::format($balance);
    ?>
</span></h4>                
                </div>
            </div>
        </div>
    </div>
    <?php 
}
?>
    
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-4">
                    <legend>Settings</legend>
Example #12
0
            <?php 
} else {
    ?>
                <?php 
    if ((int) $item->get('prices.list') > 0 && (double) $item->get('prices.list') != (double) $item->price()) {
        ?>
                    <span class="list-price"><strike><?php 
        echo \Shop\Models\Currency::format($item->{'prices.list'});
        ?>
</strike></span>
                <?php 
    }
    ?>
                &nbsp;                
                <a href="<?php 
    echo $item->url;
    ?>
">
                    <span class="new-price"><?php 
    echo \Shop\Models\Currency::format($item->price());
    ?>
</span>
                </a>
            <?php 
}
?>
        
        </div>
    </div>

</article>
Example #13
0
        echo \Shop\Models\Currency::format($item->totalSpent());
        ?>
 
                        </h4>
                    </div>
                    <div class="col-md-2">
                        <h4>
                            <?php 
        echo (int) $item->ordersCount();
        ?>
                        </h4>                        
                    </div>
                    <div class="col-md-2">
                        <h4>
                            <?php 
        echo \Shop\Models\Currency::format($item->{'shop.credits.balance'});
        ?>
                        </h4>                        
                    </div>
                    <div class="hidden-xs hidden-sm col-md-2">
                        <span class="pull-right">
    	                    <a class="btn btn-xs btn-danger" data-bootbox="confirm" href="./admin/shop/customer/delete/<?php 
        echo $item->id;
        ?>
">
    	                        <i class="fa fa-times"></i>
    	                    </a>
	                    </span>
                    </div>
                </div>
                
Example #14
0
                            <div class="col-sm-6">
                                <h5>
                                    <a href="./admin/affiliates/commission/read/<?php 
        echo $item->id;
        ?>
">
                                    <?php 
        echo $item->affiliate_name;
        ?>
                                    </a>
                                </h5>
                            </div>
                            <div class="col-sm-2">
                                <h5>
                                    <?php 
        echo \Shop\Models\Currency::format($item->amount);
        ?>
                                </h5>
                            </div>
                            <div class="col-sm-2">
                                <span class="label-lg label <?php 
        echo $item->issued ? 'label-success' : 'label-warning';
        ?>
"><?php 
        echo $item->issued ? 'Issued' : 'Not Issued';
        ?>
</span>
                            </div>
                        </div>
                    </li>
                <?php 
Example #15
0
        $method = new \Shop\Models\ShippingMethods($method_array);
        ?>
		<div class="form-field radio">
			<label class="control-label">
				<input data-required="true" type="radio" name="checkout[shipping_method]" value="<?php 
        echo $method->{'id'};
        ?>
" <?php 
        if (\Dsc\ArrayHelper::get($cart, 'checkout.shipping_method') == $method->{'id'}) {
            echo 'checked';
        }
        ?>
 />
				<?php 
        echo $method->{'name'};
        ?>
 &mdash; <?php 
        if (empty($method->total())) {
            echo "FREE";
        } else {
            echo \Shop\Models\Currency::format($method->total());
        }
        ?>
			</label>
		</div>        
        <?php 
    }
    ?>
	</div>
	<?php 
}
Example #16
0
                                    <?php 
            }
            ?>
                        
                                </div>
                                <div class="details">
                
                                </div>
                                <div>
                                    <span class="quantity"><?php 
            echo \Dsc\ArrayHelper::get($item, 'quantity');
            ?>
</span>
                                    x
                                    <span class="price"><?php 
            echo \Shop\Models\Currency::format(\Dsc\ArrayHelper::get($item, 'price'));
            ?>
</span> 
                                </div>                                
                            </div>
                        </div>        
                        <?php 
        }
        ?>
                                                
                    </div>
                </div>
            </div>
        </div>
        <?php 
    }
Example #17
0
<?php

$link = $SCHEME . '://' . $HOST . $BASE . '/shop';
?>

Hello <?php 
echo $data['recipient_name'];
?>
, 

You have received a <?php 
echo \Shop\Models\Currency::format($giftcard->balance());
?>
 gift card from <?php 
echo $data['sender_name'];
?>
. 
<?php 
if ($data['message']) {
    ?>

<?php 
    echo $data['message'];
    ?>
 

<?php 
}
?>
 
Example #18
0
    ?>
                    <h5>Automatic Coupons</h5>
                    <ul class="list-group">
                    <?php 
    foreach ($autoCoupons as $coupon) {
        ?>
                        <li class="list-group-item">
                            <div class="row">
                                <div class="col-md-2">
                                    <?php 
        echo \Dsc\ArrayHelper::get($coupon, 'code');
        ?>
                                </div>
                                <div class="col-md-10">
                                    <span class="price"><?php 
        echo \Shop\Models\Currency::format($price = \Dsc\ArrayHelper::get($coupon, 'amount'));
        ?>
</span>
                                </div>
                            </div>
                        </li>
                    <?php 
    }
    ?>
                    </ul>
                    <?php 
}
?>
                    
                </div>
                <!-- /.col-md-10 -->
Example #19
0
                </div>            
                <div class="col-md-3">
                    <div class="well well-sm well-light text-center"><h5><small>Amount</small><br/><?php 
echo \Shop\Models\Currency::format($item->amount);
?>
</h5></div>
                </div>
                <div class="col-md-3">
                    <div class="well well-sm bg-color-darken txt-color-white text-center"><h5><small>Balance before:</small><br/><?php 
echo \Shop\Models\Currency::format($item->balance_before);
?>
</h5></div>
                </div>
                <div class="col-md-3">
                    <div class="well well-sm bg-color-darken txt-color-white text-center"><h5><small>Balance after:</small><br/><?php 
echo \Shop\Models\Currency::format($item->balance_after);
?>
</h5></div>
                </div>
            </div>
            
            <hr/>
            
            <div class="row">
                <div class="col-md-2">
                    
                    <h3>Customer</h3>
                            
                </div>
                <!-- /.col-md-2 -->
                            
Example #20
0
    </ol>
    
    <h2>
        Invite Friends, Earn Cash
        <a href="./affiliate/invite-friends" class="btn btn-primary pull-right">Invite Friends</a>
    </h2>
    
    <hr/>
    
    <div><?php 
echo $settings->{'dashboard_header'};
?>
</div>
    
    <div><h4>Your total earnings from referrals: <?php 
echo \Shop\Models\Currency::format($identity->{'affiliate.commission.balance'});
?>
</h4></div>
    
    <tmpl type="modules" name="above-affiliate-dashboard" />
    
    <div class="row">
        <div class="col-md-4">
            <div class="well well-sm well-light text-center"><h5>Referrals:<br/><?php 
echo (int) $identity->{'affiliate.referrals_count'};
?>
</h5></div>
        </div>
        <div class="col-md-4">
            <div class="well well-sm well-light text-center"><h5>Invitations Sent:<br/><?php 
echo (int) $identity->{'affiliate.invites_count'};