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, 3 months ago by amin007.
-
AuthorPosts
-
August 10, 2010 at 7:08 am #1655clickbuildMember
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 #23256clickbuildMemberOops – found the cbt / return to merchant setting
August 10, 2010 at 7:27 am #23257clickbuildMemberOh, 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 #23258amin007ParticipantYou 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 #23259clickbuildMemberHi,
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 #23260amin007ParticipantAre you using a “Buy Now” type button or an “Add to Cart” type button?
August 12, 2010 at 4:48 pm #23261clickbuildMemberHi,
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” />
<input type=”hidden” name=”return” value=”http://www.WEBSITE.com/transaction-results/” />
<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 #23262amin007ParticipantI 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:
-
AuthorPosts
- You must be logged in to reply to this topic.