Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1160716
    sandrayin
    Participant

    Hi,

    I am having a fatal error related to the upsell function. I added a shortcode [product_page id=” “] into a new page.
    Please see here: http://www.lorybloom.com/store/babies/bloomix/

    #1160729
    Thai
    Moderator

    Hi There,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password
    – FTP Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1160901
    sandrayin
    Participant
    This reply has been marked as private.
    #1161086
    Rue Nel
    Moderator

    Hello There,

    Thank you for the very detailed information. I have checked the page and even created a test page. I can confirm that this is a bug in the shortcode. I will be reporting this to our developers for them to investigate further more about this issue. For the meantime, I am not sure though what you would like to display the product inside your page wherein you already have a product page that exactly look like it. The product page is this:
    http://www.lorybloom.com/shop/babies/the-bubblegum-car/

    and you would like to display it on this page:
    http://www.lorybloom.com/store/babies/bloomix/

    Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you.

    #1161089
    sandrayin
    Participant

    Hi,

    Actually I am trying to achieve this:
    http://www.swellbottle.com/shop-swell-bottle/

    My idea is under the Bloomix series, I have 3 products people can buy and they don’t have to go to each single product page. I am not sure what plugin are they using.. πŸ™

    #1161170
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! The example url is somehow custom coded or might be using a 3rd party plugin. How about using the product shortcode instead?

    [product id="3580"]
    
    [product id="3581"]
    
    [product id="3578"]

    Hope this helps.

    #1161183
    sandrayin
    Participant

    The thing is I want it to be in list form and have the option to choose and add to cart rather than a button ‘Select Options’. that solution above is using grid display as well. i wonder if essential grid is able to do so? Since we don’t have access to directly ask support from them. not sure if u have the answer for this?

    #1161190
    Rue Nel
    Moderator

    Hello There,

    You can try out Essential Grid. There might be a suitable skin that displays almost the same as what you have in mind. You can check out the skins and examples from here: http://essential.themepunch.com/#examples

    Hope this helps.

    #1161285
    sandrayin
    Participant

    I think the upsell error has been around since last year. still no fix to that? Can help to fix it first?

    #1161304
    Paul R
    Moderator

    Hi,

    I tried creating a test page and added a product shortcode as content.

    I didn’t get a fatal error – http://www.lorybloom.com/xsupport-test/

    Can you provide us the url of the page where we can see the issue.

    Thanks

    #1161305
    sandrayin
    Participant

    Hi,

    Scroll all the way down, you will see it.

    Fatal error: Call to a member function get_upsells() on null in /home/lorybloo/public_html/wp-content/themes/x/woocommerce/single-product/up-sells.php on line 15

    #1161314
    Christian
    Moderator

    Would you mind setting an upsell for that product. Or, in Customize > WooCommerce, disable Upsells

    Thanks.

    #1161317
    sandrayin
    Participant

    I have already disabled the upsell and also the related product options in customizer.

    #1161341
    Rue Nel
    Moderator

    Hello There,

    I have taken some time to investigate this further. To resolve the fatal error, I would recommend that you insert the following in your child theme’s functions.php;

    //
    // Remove UpSells
    // =============================================================================
    function custom_remove_upsells(){
      remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
      remove_action( 'woocommerce_after_single_product', 'woocommerce_upsell_display', 10 );
      remove_action( 'woocommerce_after_single_product_summary', 'x_woocommerce_output_upsells', 21 );
    }
    add_action('init', 'custom_remove_upsells');
    // =============================================================================

    I already tested this code in my local testing server. This code should work.
    Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-1160716 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>