Okay
  Public Ticket #2578174
Display Add To CartButton
Closed

Comments

  • dtwill started the conversation

    Hi All

    Looking to add an add to cart button to the shop archive page.

    Just wondering how I could do this?

    Thanks

  •  933
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will add some code to your website for that.

    Feel free to ask for anything you need.

    Kind Regards


  •   dtwill replied privately
  •   Neuron replied privately
  •   dtwill replied privately
  •   Neuron replied privately
  • dtwill replied

    Hi

    We would like it to be on the shop archive page displaying as "Add To Cart"" as not all users will know to hover over the image to add it to the cart.

    Regards

    Designtec

  •  933
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    We've added you the following code at Appearance > Customize > Additional CSS.

    .o-neuron-hover-holder__button-holder {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10 !important;
        transform: none !important;
        top: 160px !important;
    }
    .o-neuron-hover__body {
        margin-top: 60px !important
    }
    .o-neuron-hover .o-neuron-hover-holder {
        overflow: visible !important;
    }
    

    Feel free to ask for anything you need.

    Kind Regards


  • dtwill replied

    Hi 

    No worries for the delay, still great response times.

    Thats great, thanks for sorting this.

    Last questions i hope

    Is it possible to display the product SKU on the shop archive page, and can we display the short description for each product on the shop archive page.

    Thanks

    Designtec

  •  933
    Neuron replied

    Hi,

    We've added you the following code at Appearance > Theme editor > functions.php, so the SKU of product will be displayed just below the product price.

    function rupom_custom_price_sku( $price ) { 
        global $woocommerce , $product;
        $sku = $product->get_sku();
        if (is_shop() || is_product_category() || is_product_tag()){
            return $price . '<br><span class="price-sku">Item #' . $sku . '</span>';
        }
        else { 
            return $price; 
        } 
    }
    add_filter( 'woocommerce_get_price_html', 'rupom_custom_price_sku' );

    Feel free to ask for anything you need.

    Kind Regards


  • dtwill replied

    Hi

    That's great.

    Sorry to keep asking for support, but is it possible to display the product short description under the title on the shop archive page?

    Thanks


  •  933
    Neuron replied

    Hi,

    I'm so sorry while trying to display the short description on your Archive pages, accidentally we've crashed your host, so please go and delete this file (content-product.php) in Child Theme, and tell us again to check it. I'm so sorry.

    https://prnt.sc/v76o7d

    Feel free to ask for anything you need.

    Kind Regards


  • dtwill replied

    Hi

    No worries

    We have sorted this and brought the website live again.

    Regards

    James

  •  933
    Neuron replied

    Hi James,

    Thank you so much for understanding.

    We've installed you a plugin called Theme Editor and created a new file in Amartha Theme, and added the short description function to it, so now everything is alright.

    If you want to change the font-size of the description you can simply add the following code to Appearance > Customize > Additional CSS.

    .o-neuron-hover__body-meta p {
        font-size: 14px !important;
    }

    Feel free to ask for anything you need.

    Kind Regards


  • dtwill replied

    Hi 

    Thanks for this, it does exactly what we wanted.

    Unfortunately it now means none of the page redirects work anymore.

    I.e. when we go to edit a product and hit update, it just shows a blank white screen.

    If you could look into this that would be great.

    Regards

    Designtec 

  •  933
    Neuron replied

    Hi Designtec,

    That's not coming from our theme, so please try by deactivating plugins that are not required by theme, or try updating them if there's a new version of them. This should fix that problem.

    Feel free to ask for anything you need.

    Kind Regards


  • dtwill replied

    Hi All

    Is it possible to have every product on any shop archive page, to have a button that says "Add To Cart" as a lot of customers don't know to click the + to add an item to the cart.


    Thanks

  •  933
    Neuron replied

    Hi,

    Can you please provide me with your WP-admin, I will try to change it with some JS code.

    Feel free to ask for anything you need.

    Kind Regards


  •   dtwill replied privately
  •  933
    Neuron replied

    Hi,

    I am really sorry for the late reply, somehow I missed your ticket.

    Have you managed to add the add to cart button, because as I could see you have done that.

    Feel free to ask for anything you need.

    Kind Regards