Jponsen schreef:Bedankt!https://github.com/woothemes/woocommerce/blob/master/templates/single-product/add-to-cart/simple.phpEerdere citaten tonen
Stef schreef:Ik ben nu met een custom Woocommerce thema bezig. Weet iemand hoe ik de "add to cart" button er neerzet?
Ik heb nu dit in variable.php:
Spoiler tonen
Codeblok (variable.php):
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
104
105
106
107
108
109
/**
* Variable product add to cart
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( ABSPATH ) ) exit; // Exit if accessed directly
global $product, $post;
?>
do_action( woocommerce_before_add_to_cart_form ); ?>
do_action( woocommerce_after_add_to_cart_form ); ?>
Maar wanneer ik op "add to cart" klik, komt er te staan "Kies product opties..." terwijl ik duidelijk de opties heb aangeklikt.
Weet iemand hoe dit komt?
toevoeging op 20 januari 2015, 17:08:29:
Ik weet wat er aan de hand was.
Het ding dat je in moest vullen was de "variation_id" dus ik heb die gewoon een value meegegeven en het werkt
