Subversion Repositories SmartDukaan

Rev

Rev 13532 | Rev 13903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13532 Rev 13901
Line 1... Line 1...
1
<div class="storeProducts view">
1
<div class="container">
2
<h2><?php echo __('Store Product'); ?></h2>
2
	<?php echo $this->element('unlikemodal');?>
3
	<dl>
-
 
4
		<dt><?php echo __('Id'); ?></dt>
-
 
5
		<dd>
-
 
6
			<?php echo h($storeProduct['StoreProduct']['id']); ?>
3
	<?php echo $this->element('variantsModal');?>
7
			&nbsp;
-
 
8
		</dd>
-
 
9
		<dt><?php echo __('Store'); ?></dt>
4
	<div class="row card">
10
		<dd>
-
 
11
			<?php echo $this->Html->link($storeProduct['Store']['name'], array('controller' => 'stores', 'action' => 'view', $storeProduct['Store']['id'])); ?>
-
 
12
			&nbsp;
-
 
13
		</dd>
-
 
14
		<dt><?php echo __('Product'); ?></dt>
5
		<?php if(!empty($storeProduct)):?>
15
		<dd>
-
 
16
			<?php echo $this->Html->link($storeProduct['Product']['name'], array('controller' => 'products', 'action' => 'view', $storeProduct['Product']['id'])); ?>
-
 
17
			&nbsp;
-
 
18
		</dd>
-
 
19
		<dt><?php echo __('Product Url'); ?></dt>
6
			<?php //debug($storeProduct);?>
20
		<dd>
-
 
21
			<?php echo h($storeProduct['StoreProduct']['product_url']); ?>
-
 
22
			&nbsp;
-
 
23
		</dd>
-
 
24
		<dt><?php echo __('Img Url'); ?></dt>
7
			<div class="centeredimage col-xs-6">
25
		<dd>
-
 
26
			<?php echo h($storeProduct['StoreProduct']['img_url']); ?>
8
				<img class="thumbnail" src="<?php echo $storeProduct['thumbnail'];?>"/>	
27
			&nbsp;
-
 
28
		</dd>
-
 
29
		<dt><?php echo __('Short Descrption'); ?></dt>
-
 
30
		<dd>
-
 
31
			<?php echo h($storeProduct['StoreProduct']['short_descrption']); ?>
-
 
32
			&nbsp;
-
 
33
		</dd>
9
			</div>
34
		<dt><?php echo __('Price'); ?></dt>
10
			<div class="col-xs-6">
35
		<dd>
-
 
36
			<?php echo h($storeProduct['StoreProduct']['price']); ?>
11
				<div class="hidden" id="bestpricecontainer">Best Price : Rs. <span id="bestprice"></span></div>
37
			&nbsp;
-
 
38
		</dd>
-
 
39
		<dt><?php echo __('Status'); ?></dt>
-
 
40
		<dd>
-
 
41
			<?php echo h($storeProduct['StoreProduct']['status']); ?>
-
 
42
			&nbsp;
-
 
43
		</dd>
-
 
44
		<dt><?php echo __('Last Crawled'); ?></dt>
-
 
45
		<dd>
-
 
46
			<?php echo h($storeProduct['StoreProduct']['last_crawled']); ?>
12
				<button class="btn btn-primary hidden viewproduct" id="beststorelink">Buy Now</button>
47
			&nbsp;
-
 
48
		</dd>
13
			</div>
49
		<dt><?php echo __('Created'); ?></dt>
14
			<div class="clearfix"></div>
50
		<dd>
-
 
51
			<?php echo h($storeProduct['StoreProduct']['created']); ?>
15
			<h3><?php echo $storeProduct['product_name'];?></h3>
52
			&nbsp;
-
 
53
		</dd>
-
 
54
		<dt><?php echo __('Modified'); ?></dt>
-
 
55
		<dd>
-
 
56
			<?php echo h($storeProduct['StoreProduct']['modified']); ?>
-
 
57
			&nbsp;
-
 
58
		</dd>
-
 
59
	</dl>
-
 
60
</div>
-
 
61
<div class="actions">
16
			<div class="row">
62
	<h3><?php echo __('Actions'); ?></h3>
17
				<h4>Available On</h4>
63
	<ul>
-
 
64
		<li><?php echo $this->Html->link(__('Edit Store Product'), array('action' => 'edit', $storeProduct['StoreProduct']['id'])); ?> </li>
-
 
65
		<li><?php echo $this->Form->postLink(__('Delete Store Product'), array('action' => 'delete', $storeProduct['StoreProduct']['id']), null, __('Are you sure you want to delete # %s?', $storeProduct['StoreProduct']['id'])); ?> </li>
-
 
66
		<li><?php echo $this->Html->link(__('List Store Products'), array('action' => 'index')); ?> </li>
-
 
67
		<li><?php echo $this->Html->link(__('New Store Product'), array('action' => 'add')); ?> </li>
-
 
68
		<li><?php echo $this->Html->link(__('List Stores'), array('controller' => 'stores', 'action' => 'index')); ?> </li>
-
 
69
		<li><?php echo $this->Html->link(__('New Store'), array('controller' => 'stores', 'action' => 'add')); ?> </li>
-
 
70
		<li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
-
 
71
		<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
-
 
72
		<li><?php echo $this->Html->link(__('List Clicks'), array('controller' => 'clicks', 'action' => 'index')); ?> </li>
-
 
73
		<li><?php echo $this->Html->link(__('New Click'), array('controller' => 'clicks', 'action' => 'add')); ?> </li>
-
 
74
		<li><?php echo $this->Html->link(__('List User Actions'), array('controller' => 'user_actions', 'action' => 'index')); ?> </li>
-
 
75
		<li><?php echo $this->Html->link(__('New User Action'), array('controller' => 'user_actions', 'action' => 'add')); ?> </li>
-
 
76
	</ul>
-
 
77
</div>
18
			</div>
78
<div class="related">
-
 
79
	<h3><?php echo __('Related Clicks'); ?></h3>
-
 
80
	<?php if (!empty($storeProduct['Click'])): ?>
19
			<?php if(!empty($activestores)):?>
81
	<table cellpadding = "0" cellspacing = "0">
-
 
82
	<tr>
-
 
83
		<th><?php echo __('Id'); ?></th>
-
 
84
		<th><?php echo __('User Id'); ?></th>
-
 
85
		<th><?php echo __('Store Product Id'); ?></th>
-
 
86
		<th><?php echo __('Tag'); ?></th>
-
 
87
		<th><?php echo __('Created'); ?></th>
-
 
88
		<th class="actions"><?php echo __('Actions'); ?></th>
-
 
89
	</tr>
-
 
90
	<?php foreach ($storeProduct['Click'] as $click): ?>
20
			<?php foreach($activestores AS $store):?>
91
		<tr>
-
 
92
			<td><?php echo $click['id']; ?></td>
-
 
93
			<td><?php echo $click['user_id']; ?></td>
-
 
94
			<td><?php echo $click['store_product_id']; ?></td>
-
 
95
			<td><?php echo $click['tag']; ?></td>
-
 
96
			<td><?php echo $click['created']; ?></td>
21
			<div class="row greenborder">
97
			<td class="actions">
22
				<div class="col-xs-4">
98
				<?php echo $this->Html->link(__('View'), array('controller' => 'clicks', 'action' => 'view', $click['id'])); ?>
-
 
99
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'clicks', 'action' => 'edit', $click['id'])); ?>
23
					<img class="storelogo" src="<?php echo $store['logo'];?>"/>
100
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'clicks', 'action' => 'delete', $click['id']), null, __('Are you sure you want to delete # %s?', $click['id'])); ?>
-
 
101
			</td>
24
				</div>
102
		</tr>
-
 
103
	<?php endforeach; ?>
-
 
104
	</table>
-
 
105
<?php endif; ?>
-
 
106
 
-
 
107
	<div class="actions">
25
				<div class="col-xs-4">
108
		<ul>
-
 
109
			<li><?php echo $this->Html->link(__('New Click'), array('controller' => 'clicks', 'action' => 'add')); ?> </li>
26
					<span class="cashbackrupee"></span> <span class="storeminprice" data-id="<?php echo $store['store_id'];?>" data-bundle_id="<?php echo $storeProduct['skuBundleId'];?>">Loading...</span>
110
		</ul>
-
 
111
	</div>
27
				</div>
112
</div>
-
 
113
<div class="related">
-
 
114
	<h3><?php echo __('Related User Actions'); ?></h3>
-
 
115
	<?php if (!empty($storeProduct['UserAction'])): ?>
-
 
116
	<table cellpadding = "0" cellspacing = "0">
-
 
117
	<tr>
-
 
118
		<th><?php echo __('Id'); ?></th>
-
 
119
		<th><?php echo __('User Id'); ?></th>
-
 
120
		<th><?php echo __('Store Product Id'); ?></th>
-
 
121
		<th><?php echo __('Action'); ?></th>
-
 
122
		<th><?php echo __('Created'); ?></th>
-
 
123
		<th class="actions"><?php echo __('Actions'); ?></th>
28
				<div class="col-xs-4 viewproduct hidden" id="sku-<?php echo $store['store_id'];?>">
124
	</tr>
-
 
125
	<?php foreach ($storeProduct['UserAction'] as $userAction): ?>
-
 
126
		<tr>
-
 
127
			<td><?php echo $userAction['id']; ?></td>
-
 
128
			<td><?php echo $userAction['user_id']; ?></td>
-
 
129
			<td><?php echo $userAction['store_product_id']; ?></td>
29
					<button type="button" class="btn btn-success" type="button">Go To Store</button>
130
			<td><?php echo $userAction['action']; ?></td>
-
 
131
			<td><?php echo $userAction['created']; ?></td>
-
 
132
			<td class="actions">
-
 
133
				<?php echo $this->Html->link(__('View'), array('controller' => 'user_actions', 'action' => 'view', $userAction['id'])); ?>
-
 
134
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'user_actions', 'action' => 'edit', $userAction['id'])); ?>
-
 
135
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_actions', 'action' => 'delete', $userAction['id']), null, __('Are you sure you want to delete # %s?', $userAction['id'])); ?>
-
 
136
			</td>
30
				</div>
137
		</tr>
31
			</div>
138
	<?php endforeach; ?>
32
			<?php endforeach;?>
139
	</table>
33
			<?php endif;?>
140
<?php endif; ?>
34
		<?php endif;?>
141
 
-
 
142
	<div class="actions">
-
 
143
		<ul>
-
 
144
			<li><?php echo $this->Html->link(__('New User Action'), array('controller' => 'user_actions', 'action' => 'add')); ?> </li>
-
 
145
		</ul>
-
 
146
	</div>
35
	</div>
147
</div>
36
</div>
-
 
37
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
148
38