Forum Replies Created
-
Author
-
costa974Participant
I use the following woocommerce hooks to customize the shopping cart and everything works fine in standard woocommerce cart:
woocommerce_cart_item_name
woocommerce_single_product_image_html
woocommerce_cart_item_subtotal
woocommerce_cart_item_priceBut these hooks are not called by your ajax minicart.
I think you should follow the reference implementetion of woocommerce minicart in
plugins\woocommerce\templates\cart\mini-cart.php
If you open that file you will notice they keep calling apply_filters()… so that custom hook code is properly called.
Thanks
costa974ParticipantThanks, maybe I bought the wrong theme, it seems to be very buddypress oriented. But it’s so beautiful!
costa974Participantfor example: woocommerce_cart_item_price, woocommerce_single_product_image_html, woocommerce_cart_item_name
costa974Participantadd_shortcode(‘pitturo_my_gallery’, ‘pitturo_my_gallery_shortcode’);
function pitturo_my_gallery_shortcode() {
$args = array(
‘post_type’ => ‘painting’,
‘post_status’ => ‘publish’,
‘author’ => get_current_user_id()
);$query = new WP_Query($args);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
get_template_part(‘page-parts/post-content-masonry’);
}
}wp_reset_query();
}it works, but the layout is broken… ho can I reuse the kleo masonsry template?
costa974ParticipantI see… but can I do it with the Visual Composer or I have to code something?
Don’t you have an example?
Thanks -
AuthorPosts