Home Forums Plugins Wholesale Pricing Support [Resolved] Products that are on sale are showing prices incorrectly after application addon

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6719
    MikeArsenault
    Participant

    I am noticing a rather large issue with your code at the moment. I placed all of the changes in the readme.txt file into the system, and now products that I have marked to be on sale are showing up as having their prices doubled BEFORE I log in as a wholesaler (so if you go in and just browse as a raw user, the pricing is double). Observe:

    Product display before your plug-in:

    http://www.mikearsenault.com/images/ProdBeforeYourCode.gif

    Product display after your plug-in:

    http://www.mikearsenault.com/images/ProdAfterYourCode.gif

    My brief investigation has lead me to believe that this function in your code is the culpret:

    /* @mod – 200510 – vl_wholesalepricing */
    function markup_product_price($price) {
    if( current_user_can(‘wholesale_pricing’) ) {
    $shop_markup = 0.5;
    } else {
    $shop_markup = 1.0;
    }
    if( $shop_markup ) {
    $price = ($price * $shop_markup) + $price;
    }
    return $price;
    }

    Specifically, the line here:

    if( $shop_markup ) {
    $price = ($price * $shop_markup) + $price;
    }

    We installed this add-on after we had entered in a bunch of products. What it seems to be saying is that all prices for products that we have entered need to be at cost for this to work, because you are taking the original price, and then adding on the price * the markup. So when you say in the instructions to make the $shop_markup = 0.75 to offer a 25% discount, what is really happening is that you are increasing the existing list price by 75%. All of the prices we will be entering into our e-commerce install will be the retail price. I can’t expect my client to remember to enter in the products at cost so that this code works as is.

    Which puts me in a very awkward position. Changing the code above is minor, I would just have to remove the ‘+ $price’ and that would work as I expect it to. But you charged me $40.00 for the “first working version”. Can you see how this is sort of very bad? And more importantly, what about other users who haven’t caught this error? I am eager to hear what you are going to do to resolve this, because so far, there is no way in hell the $40.00 is worth this level of aggrivation.

    #6720
    MikeArsenault
    Participant

    Specifically to products on sale, I went ahead and modified the function I mentioned above to behave like it should be behaving, but it doesn’t take products on sale into consideration at all. My mark-down for wholesalers is 50% (meaining they should be able to buy at 50% of retail or sales price) Observe:

    http://www.mikearsenault.com/images/AfterModsToYourCode.gif

    The original price in the case of a sale should remain what it normally is and not receive the wholesale discount. The ‘on sale’ price should receive the wholesale discount. This might not be a common occurance, but is something that should be addressed IMHO.

    #6721
    Conor
    Participant

    Hi Mike, I have the same drama..

    Can you tell me in which file you made the change? (+’price’)

    thanks
    conor

    #6722
    Michael Visser
    Keymaster

    Hi MikeArsenault, I’m on it; I’ll be back in Wellington on Tuesday so will follow this up and get an update out the door 🙂

    #6723
    jkellie
    Participant

    Had the same issue but made the change and working fine now.

    – Jason

    #6724
    acoeng
    Participant

    Hi Jason, could you please share the solution here? I just bought the product and experiencing the same issue. It should be Michael task, but seems no update at all from his side…, wondering if we can get a support after bought their product. Many posts can be categorized as obsolete without solution.

    #6725
    Michael Visser
    Keymaster

    Hi acoeng, please download the Wholesale Pricing Plugin from Premium Plugin Updates.

    http://www.visser.com.au/wp-ecommerce/premium-plugin-updates/

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Products that are on sale are showing prices incorrectly after application addon’ is closed to new replies.