-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-product-noajax.php
103 lines (76 loc) · 3.18 KB
/
template-product-noajax.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<div id="details">
<div class="product" id="item-<?php the_ID(); ?>" name="qty-<?php ocart_product_quantity(); ?>">
<!-- close product detail -->
<a href="#return" id="closeProductdetail"></a>
<!-- you may also like module -->
<?php if (ocart_has_similar_products()) { ?>
<a href="#similar-products" class="recommend-btn"><?php _e('You may also like','ocart'); ?></a>
<?php } ?>
<!-- end you may also like -->
<div class="product-img">
<!-- navigator -->
<?php if (ocart_get_option('show_product_breadcrumb')) { ocart_product_breadcrumb(); } ?>
<?php if (ocart_has_images() && ocart_get_option('main_image_nav') ) { ?>
<div class="nextImage"></div>
<div class="prevImage"></div>
<?php } ?>
<!-- mini thumbs -->
<?php if (ocart_get_option('product_thumbs') == 'default') { ocart_product('thumbs'); } ?>
<?php if (ocart_get_option('product_thumbs') == 'below') { ocart_product('thumbs2'); } ?>
<!-- main image -->
<div class="main-image">
<?php ocart_product('main_image'); ?>
<?php ocart_product('images'); ?>
</div>
</div>
<div class="product-info">
<div class="product-div">
<?php ocart_wishlist_button(); ?>
<?php ocart_show_product_title(); ?>
<?php ocart_show_price_and_status(); ?>
<div class="product-about">
<div class="tabbed">
<?php if (!ocart_get_option('disable_cart')) { ?>
<div class="product-rating">
<?php ocart_product_avg_rating() ?>
</div>
<?php } ?>
<ul class="infotabs">
<li><a href="" rel="tab_content" class="current"><?php _e('Description','ocart'); ?></a></li>
<?php
$tab_name = get_post_meta($post->ID, 'customtab_name', true);
$video = get_post_meta($post->ID, 'customtab_video', true);
?>
<?php if (!empty($tab_name)) { ?><li><a href="" rel="tab_custom"><?php echo $tab_name; ?></a></li><?php } ?>
<?php if (!empty($video)) { ?><li><a href="javascript:lightbox(null, '<?php echo get_template_directory_uri(); ?>/ajax/playvideo.php', '', '<?php echo $post->ID; ?>');" rel="tab_video"><?php _e('Video','ocart'); ?></a></li><?php } ?>
<?php if (!ocart_get_option('disable_cart')) { ?>
<li><a href="" rel="tab_reviews"><?php printf(__('Reviews (<span class="ajax_reviews_count">%s</span>)','ocart'), ocart_reviews_count()); ?></a></li>
<?php } ?>
</ul>
<div class="infotab">
<div class="infotab_div_default">
<?php ocart_the_content(130,'...','',get_the_ID(),'char'); ?>
</div>
<a href="#readmore" class="togglemore"><?php _e('Read More','ocart'); ?></a>
</div>
</div>
</div>
<?php if (ocart_product_in_stock()) { ?>
<div class="product-var">
<?php ocart_product_taxonomy(); ?>
</div>
<?php if (!ocart_get_option('disable_cart')) { ?>
<div class="product-add">
<form action="/" class="addtocart">
<input type="submit" value="<?php _e('Add to Cart','ocart'); ?>" class="btn-add" />
<input type="text" value="<?php _e('Qty','ocart'); ?>" class="btn-quantity" title="<?php _e('Please enter a quantity','ocart'); ?>" />
</form>
</div><div class="clear"></div>
<?php } ?>
<?php } else { ?>
<?php ocart_notify_me_stock(); ?>
<?php } ?>
</div>
</div>
</div>
</div>