Reply 66781 to: Single product page navigation buttons

Avatar: Floppy78
Floppy78
Participant
May 28, 2015 at 17:55

Hi!
I think I’ve found a solution for this issue.
I don’t know if is proper to post here my own solution. If not, please, delete this post!
I have thought it may be useful to someone..:)

In woopress > woocommerce > content-single-product.php I replaced this piece of code

<div class="col-lg-6 col-md-6 col-sm-12 product-information <?php if(etheme_get_option('ajax_addtocart')): ?>ajax-enabled<?php endif; ?>">
                <div class="product-navigation clearfix">
						<h4 class="meta-title"><span><?php _e('Product description', ETHEME_DOMAIN); ?></span></h4>
                       <div class="product-arrows pull-right">
                            		<?php next_post_link('%link', '<div class="prev-product"></div>', FALSE); ?> <?php previous_post_link('%link', '<div class="next-product"></div>', FALSE); ?>
								</div>
					</div>

with

<div class="col-lg-6 col-md-6 col-sm-12 product-information <?php if(etheme_get_option('ajax_addtocart')): ?>ajax-enabled<?php endif; ?>">
                <div class="product-navigation clearfix">
						<h4 class="meta-title"><span><?php _e('Scegli altri prodotti', ETHEME_DOMAIN); ?></span></h4>
                       <div class="product-arrows pull-right">
                               <?php next_post_link('%link', '<div class="prev-product"></div>', FALSE); ?> <?php previous_post_link('%link', '<div class="next-product"></div>', FALSE); ?>
                            		
								</div>
					</div>

Basically I used “previous_post_link” and “next_post_link” template tag instead of the theme ones.
At the moment I did not tried to complete this all with the beautiful rollover which worked on the original function. Maybe is too much for me, maybe I’ll try later..:)

I don’t know if this is completely correct but is working for me.

Thanks!

Flora

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.