luisalonsobr
Forum Replies Created
-
Try copy paste the code below as is.
if ($wpcs_display_cart == 'yes') { ?> <div class="cart"><a class="add_to_cart_button btcarrossel" href="<?php the_permalink(); ?>" title="Comprar <?php the_title();?>"> Comprar </a> </div> <?php } ?>
And sorry if I’m rude, but you should pay way more attention to your code. You have a parse error because you have html inside php without echo “”, and without the need to do so.
Try to spot the differences between the code above and the one you posted.
Edit: Sorry, the code i posted first was broken because I did not use de “code” wrap around it.
Did it work?
If you still get an error let me know which.On the file:
wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-shortcodes.php
replace around line 217 the following.
echo do_shortcode('[add_to_cart id="'.get_the_ID().'"]')
by:
<div class="cart"><a class="add_to_cart_button btcarrossel" href="<?php the_permalink(); ?>" title="Buy <?php the_title();?>">Buy</a></div>
Let me know if it works for you.
Hi,
I’m having the same problem, it seens to be a – somewhere in the code.
pets.luisalonso.com.br
If I inspect the div cart element it shows the code to hiden span displaying the price with the ‘-‘ betwen visible.
but i can’t trace it on the source files.
Forum: Plugins
In reply to: [WordPress Popular Posts] Current CategoryWorked like a charm. Thank you for your time and your plugin!
Forum: Plugins
In reply to: [WordPress Popular Posts] Current CategoryThank You, will test and let you know!