Support » Plugin: Cart66 Lite :: WordPress Ecommerce » Price, only for registered users?

  • skmaksio

    (@skmaksio)


    Hello,

    I want to hide price for unregistered users. I using CART66 plugin

    if(CART66_PRO && $p->is_paypal_subscription == 1) {
                $sub = new Cart66PayPalSubscription($p->id);
                $subPrice = strip_tags($sub->getPriceDescription($sub->offerTrial > 0, '(trial)'));
                $prices[] = htmlspecialchars($subPrice);
                $optionClasses .= " subscriptionProduct ";
                //Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] subscription price in dialog: $subPrice");
              }
              else {
                $priceDescription = __('Price:', 'cart66') . ' ' . Cart66Common::currency($p->price);
                if($p->price_description != null) {
                  $priceDescription = $p->price_description;
                }
    
                $prices[] = htmlspecialchars(strip_tags($priceDescription));
              }

    What i must change?

    http://wordpress.org/extend/plugins/cart66-lite/

  • The topic ‘Price, only for registered users?’ is closed to new replies.