Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Hacked a function to get the feature I needed – Is there a better way?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Hacked a function to get the feature I needed – Is there a better way?

Tagged: no_shipping, page_style, paypal checkout

  • This topic has 7 replies, 2 voices, and was last updated 14 years, 9 months ago by amin007.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • August 10, 2010 at 7:08 am #1655
    clickbuild
    Member

    Hi, Had to hack the eStore_misc_functions.php file to add hidden vars for “page_style” to set the look of the paypal page and a “no_shipping” var – not really needed for a digi product! – is there a better way to do this?

    I’d also like to add the “cbt” var so I can make the return to merchant link way more obvious, again, is there a better way?

    Ta,

    Steve

    August 10, 2010 at 7:18 am #23256
    clickbuild
    Member

    Oops – found the cbt / return to merchant setting :)

    August 10, 2010 at 7:27 am #23257
    clickbuild
    Member

    Oh, BTW, I also had to hack the eStore_button_display_helper.php file as I use a huge belcher buy button for a product, which is then used in the product list and looks stupid.

    I just put $button_url=”; for the first line of the get_input_button function so the default WP_ESTORE_ADD_CART_BUTTON is *always* used.

    Steve

    August 11, 2010 at 1:07 am #23258
    amin007
    Participant

    You can specify the “page_style” in the Payment Gateway Settings menu (look for the “Custom Checkout Page Style Name” field)

    You can also customize the return button text from that settings menu.

    August 12, 2010 at 2:58 am #23259
    clickbuild
    Member

    Hi,

    Thanks for the info – got the upgrade and found the Checkout Page Style Name as stated. Now that I have 4.x installed I am back to PayPal asking for a shipping address for a digital product and cannot find any config to turn that off (should send no_shipping=1).

    Please advise.

    Thanks

    Steve

    August 12, 2010 at 3:31 am #23260
    amin007
    Participant

    Are you using a “Buy Now” type button or an “Add to Cart” type button?

    August 12, 2010 at 4:48 pm #23261
    clickbuild
    Member

    Hi,

    I am using a buy now button – this is the form that eStore generates (edited the domain name):

    form action=”https://www.paypal.com/cgi-bin/webscr” method=”post” onsubmit=”return ReadForm1(this, 2);”>

    <input type=”hidden” name=”product_name_tmp1″ value=”Sex and Heart” />

    <input type=”hidden” name=”price_tmp1″ value=”1″ />

    <input type=”hidden” name=”cmd” value=”_xclick” />

    <input type=”hidden” name=”business” value=”paypal@bigglesmedia.com” />

    <input type=”hidden” name=”item_name” value=”Sex and Heart” />

    <input type=”hidden” name=”amount” value=”1″ />

    <input type=”hidden” name=”currency_code” value=”USD” />

    <input type=”hidden” name=”item_number” value=”1″ />

    <input type=”hidden” name=”notify_url” value=”http://www.WEBSITE.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php&#8221; />

    <input type=”hidden” name=”return” value=”http://www.WEBSITE.com/transaction-results/&#8221; />

    <input type=”hidden” name=”mrb” value=”3FWGC6LFTMTUG” />

    <input type=”hidden” name=”cbt” value=”Click This Link To Return To The Site And Pick Up Your Product(s)” />

    <input type=”hidden” name=”page_style” value=”lrr” />

    <input type=”hidden” name=”rm” value=”2″>

    <input type=”hidden” name=”custom” value=”” id=”eStore_custom_values” />

    <input type=”image” src=”/wp-content/uploads/2010/07/thebelcherbutton.jpg” class=”eStore_buy_now_button” alt=”Buy Now”/>

    </form>

    Steve

    August 13, 2010 at 4:15 am #23262
    amin007
    Participant

    I have made it so if a product doesn’t have any shipping cost specified with it then it will set the “no_shopping” to 1. I have sent you an updated version of the plugin.

    The following post should be helpful too:

    https://support.tipsandtricks-hq.com/forums/topic/wp-estore-how-not-to-ask-for-shipping-address-on-paypal

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ