dantecapelli
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Cart Problem ?wc-ajax=get_refreshed_fragmentsI got a workaround by doing the following:
add_action('wp_footer', 'dc_fix_mini_cart_redirect');function dc_fix_mini_cart_redirect() {if (is_cart()) {return;}?><script type="text/javascript">jQuery(function($) {// Altera o link de "Ver Carrinho" no mini carrinhofunction updateCartButton() {var cartButton = $('.woocommerce-mini-cart__buttons .button.wc-forward');cartButton.attr('href', "<?php echo wc_get_cart_url(); ?>"); // Define o link corretocartButton.off('click touchstart').on('click touchstart', function(e) {e.preventDefault(); // Previene o comportamento AJAXwindow.location.href = "<?php echo wc_get_cart_url(); ?>"; // Redireciona para a página de carrinho correta});}// Executa a fun??o de atualiza??o ao carregar a página e após atualiza??es AJAX do WooCommerce$(document.body).on('wc_fragments_refreshed wc_fragments_loaded', updateCartButton);// Executa a fun??o de atualiza??o inicial ao carregar a páginaupdateCartButton();});</script><?php}
It’s not a correct solution but it works for now
Forum: Themes and Templates
In reply to: [OceanWP] Cart Problem ?wc-ajax=get_refreshed_fragmentsI got a workaround by doing the following:
add_action('wp_footer', 'dc_fix_mini_cart_redirect');
function dc_fix_mini_cart_redirect() {
if (is_cart()) {
return;
}
?>
<script type="text/javascript">
jQuery(function($) {
// Altera o link de "Ver Carrinho" no mini carrinho
function updateCartButton() {
var cartButton = $('.woocommerce-mini-cart__buttons .button.wc-forward');
cartButton.attr('href', "<?php echo wc_get_cart_url(); ?>"); // Define o link correto
cartButton.off('click touchstart').on('click touchstart', function(e) {
e.preventDefault(); // Previene o comportamento AJAX
window.location.href = "<?php echo wc_get_cart_url(); ?>"; // Redireciona para a página de carrinho correta
});
}
// Executa a fun??o de atualiza??o ao carregar a página e após atualiza??es AJAX do WooCommerce
$(document.body).on('wc_fragments_refreshed wc_fragments_loaded', updateCartButton);
// Executa a fun??o de atualiza??o inicial ao carregar a página
updateCartButton();
});
</script>
<?php
}It’s not a correct solution but it works for now
- This reply was modified 4 months, 4 weeks ago by dantecapelli.
Forum: Themes and Templates
In reply to: [OceanWP] Add to cart problemProblem solved!
it wasn’t the Ocean update but sendinblue update, I used sendinblue rollback and everything came back 100%
Thanks!Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Dropdown menu for mobileI have a problem in the Dropdown menu for mobile, the flags do not appear, do you know how to solve it?
Forum: Plugins
In reply to: [Product Labels For Woocommerce (Sale Badges)] badges not working properlyForum: Plugins
In reply to: [Product Labels For Woocommerce (Sale Badges)] badges not working properlyHere I am also having some problems, I use oceanwp.
I configure the badge perfectly but when applying it it is completely different from what I created, unusable.
- This reply was modified 4 years, 4 months ago by dantecapelli.
Forum: Plugins
In reply to: [WooCommerce Parcelas com e sem Juros] Mudar Posi??o no OceanwpBoa tarde, estou com mesmo problema aqui…
utilizo o oceanwp, na posicao 2 as parcelas ficam abaixo do bot?o comprar, sabe me dizer como posso deixar abaixo do valor? seria uma op??o premium? se deixar na posi??o 1 fica acima da foto.
alguem descobriu uma solu?ao?
cool, I got the badge but the value remains normal, I need it to appear like this: $?1?0?0?,?0?0? $95.00
is that some incompatibility with another plugin?
Forum: Themes and Templates
In reply to: [OceanWP] products rating disappear after 2.0Hello, first thank you very much!
Enabled Appearance> Customize> WooCommerce> Archives, Rating
but now it is visible all the time.
also “Theme Panel> Scripts & Styles, and hit the save button a couple of times” did not work …
at the link you sent: https://oceanwp.org/blog/oceanwp-20-coming-out-what-to-expect/
> “Archive product rating has been introduced as a separate element and does no longer hide on hover”
I think that explains …
If possible it would be very nice to also show the number of product reviews next to the stars “***** (50)”
thanks again for all the support, I really love the Oceanwp theme, thanks for everything!
Forum: Themes and Templates
In reply to: [OceanWP] search results products efficiencynot yet, works only with add to cart ajax QuadLayers
Forum: Themes and Templates
In reply to: [OceanWP] search results products efficiencyI used another plugin, I couldn’t use only native ocean.
Forum: Plugins
In reply to: [WooCommerce Advanced Free Shipping] Free shipping display orderHow to make Free Shipping Default Selected?
i clear my server cache but it didn’t work…
and the same with different browsers…
it is working because, as I mentioned above I am using the plugin “Add to cart with Ajax for WooCommerce – QuadLayers” if I disable this plugin it happens as in the video:[video src="https://dantecapelli.com.br/wp-content/uploads/2020/11/WhatsApp-Video-2020-11-01-at-14.35.48.mp4" /]
I believe that the native “ajax” of oceanwp has some incompatibility with the newest version of wordpressI tried to clear the cache and it didn’t work, I solve it installing the plugin “Add to cart with Ajax for WooCommerce – QuadLayers” but it worked before with just oceanwp, I tried to disable plugin by plugin and nothing, I believe it is some mistake with the new version of wordpress 5.5.3 and oceanwp
I solved it, moved a comment to spam, then moved it back so it was spam (0)
thank you.