Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

"Wrong Product Price Detected" How to avoid this?

(7 posts) (3 voices)
  • Started 1 year ago by anotherbreed
  • Latest reply from nhshinobi
  • Possible Solutions (Related Topics):
    1. Wrong Product Price Detected! what now?
    2. Product Variation - Price no longer working!
    3. Different prices for same product
    4. Base price is missing for digital product variations
    5. Wrong price in check out page and currency (dollars) not showing on the display

Tags:

No tags yet.

  1. anotherbreed
    Member

    Hi,

    I added some custom code to WP eStore, for example the price for users from specific country is calculated by taking the 20% off the main price before it is sent to PayPal.
    Everything works fine, but I got the following message in the Thank You page:

    "Wrong Product Price Detected. Actual Product Price : 1 Paid Product Price : 0.8"

    Sounds like a security check that doesn't allow the transaction to work correctly. How to remove that?

    Posted 1 year ago #
  2. amin007
    Key Master

    It's a security check to make sure someone cannot inject javascript to dynamically change the price before they make a payment(it's a hacking attempt that some scammers may try).

    I can tell you how to take this check out but you leave yourself open to threat. Yes it's a minor threat as most customers won't know this trick but it is still a threat. So let me know if you are still okay with going ahead and I will tell you the workaround.

    Posted 1 year ago #
  3. anotherbreed
    Member

    Yes, please tell me how to disable this.

    Posted 1 year ago #
  4. amin007
    Key Master

    Open the "paypal.php" and find the following:

    if ($cart_item_data_total < $true_product_price)
    {
        $error_msg .= 'Wrong Product Price Detected! Actual Product Price : '.$true_product_price.' Amount Paid: '.$cart_item_data_total;
        $this->debug_log($error_msg,false);
        return false;
    }

    Once you find it just comment it out or delete it. If you are displaying the download links on the "Thank You" page then there one other place where you will need to make the similar change:

    Open the "eStore_includes3.php" and find the following:

    if ($cart_item_data_total < $true_product_price)
    {
        $error_msg .= 'Wrong Product Price Detected. Actual Product Price : '.$true_product_price;
        $error_msg .= 'Paid Product Price : '.$cart_item_data_total;
        return false;
    }

    Once you find it just delete it or comment it out and that should do it.

    Posted 1 year ago #
  5. anotherbreed
    Member

    Thank you, now it works fine again.

    Posted 1 year ago #
  6. nhshinobi
    Member

    I received the same message:

    "Here are some more details for the exact cause of this transaction failure...
    Wrong Product Price Detected! Actual Product Price : 249 Amount Paid: 1.00"

    This is on a subscription product that has been working fine up till now. We recently added a thirty day trial for $1 in the product section.

    I'm not sure why this came through. I have since updated my shopping cart to the current version.

    Two questions:

    1) what did I miss in the setup so this doesn't happen again?

    2) How do I fix the customer who this happened to? They are in limbo at this moment.

    Thanks

    I love these products!

    Dennis

    Posted 1 month ago #
  7. nhshinobi
    Member

    Quick update: It was human error...mine!

    When we added the $1.00 trial period we didn't change the price field to reflect that. It was taking a payment for $1 but looking for the regular monthly rate of our subscription.

    This cart is the best.

    Thanks

    Dennis

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin