Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter mas6ce

    (@mas6ce)

    Sure! It is http://www.culturecorners.com – the menu acting up is the top menu with the “languages” button

    Thread Starter mas6ce

    (@mas6ce)

    Thanks Tara – I’ve seen a lot of support threads that mention the problem being a disconnect between defining the site as http://www.culturecorners.com and simply culturecorners.com … I’ve changed everything I can think of to match so that everything is either with the www. or without the http://www., but that didn’t make a difference.

    Thread Starter mas6ce

    (@mas6ce)

    Does anyone have any suggestions on how to fix the problem?

    Thread Starter mas6ce

    (@mas6ce)

    Thank you! I have already changed all the information on my account – I didn’t realize it was included in the wp-config file!

    Thread Starter mas6ce

    (@mas6ce)

    Oh thanks Laurena!!

    Hi! I’m trying to remove the “add to cart” button and display a different message for some customers (depending on badges through myCred) and have the normal add-to-cart option for others. I wrote this code and the plugin doesn’t object to any syntax, but it is not working. I really appreciate any help with this – thank you!!

    // this keeps the site from crashing if badges are disabled
    if (function_exists ('mycred_get_users_badges')){
    
      // get a variable for the badge of the user
      // *note: this only works if badges are only used for purchasing myCred and reset after each purchase!
      $this->load->database();
      class mycred;
      $mycred = new mycred;
    	$userPurchasedCultureCoinsQuestion = $this->$mycred->get_users_badges ($user_id);
    
      // get users' user ID
      	$user_id = pb_displayed_user_id();
    
      // text for purchase button if user has a badge/cannot purchase
    	if ( ($userPurchasedCultureCoinsQuestion == 0)) {
    	  function remove_loop_button(){
    		remove_action ('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
    		remove_action ('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
    		add_action ('init', 'remove_loop_button');
    		add_action (echo "sorry, you don't have enough earned Culture Coins to purchase");
    	  }
    
    }
    Thread Starter mas6ce

    (@mas6ce)

    That’s a great idea I will try that thanks!

Viewing 7 replies - 16 through 22 (of 22 total)